blob: 574961135b862dd87705709618ba91133f0a2697 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Tanya Lattner953042b2009-08-22 04:37:30 +0000564PACKAGE_VERSION='2.7svn'
565PACKAGE_STRING='llvm 2.7svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
692TARGETS_TO_BUILD
693LLVM_ENUM_TARGETS
694LLVM_ENUM_ASM_PRINTERS
695LLVM_ENUM_ASM_PARSERS
696LLVM_ENUM_DISASSEMBLERS
697ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000698CLANGPATH
699CLANGXXPATH
700ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000701OPTIMIZE_OPTION
702EXTRA_OPTIONS
703BINUTILS_INCDIR
704ENABLE_LLVMC_DYNAMIC
705ENABLE_LLVMC_DYNAMIC_PLUGINS
706CXX
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
738DOXYGEN
739GROFF
740GZIP
741POD2HTML
742POD2MAN
743RUNTEST
744TCLSH
745ZIP
746OCAMLC
747OCAMLOPT
748OCAMLDEP
749OCAMLDOC
750GAS
751INSTALL_LTDL_TRUE
752INSTALL_LTDL_FALSE
753CONVENIENCE_LTDL_TRUE
754CONVENIENCE_LTDL_FALSE
755LIBADD_DL
756LLVMGCCCOMMAND
757LLVMGXXCOMMAND
758LLVMGCC
759LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000760LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
763USE_UDIS86
764USE_OPROFILE
765HAVE_PTHREAD
766HUGE_VAL_SANITY
767MMAP_FILE
768LLVMCC1
769LLVMCC1PLUS
770LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771LLVMGCC_LANGS
772SHLIBEXT
773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
789LIBOBJS
790LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000791ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
799CPP
800CXX
801CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000802CCC'
Reid Spencera773bd52006-08-04 18:18:08 +0000803ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000804projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000805projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000806projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000807projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000808projects/llvm-reopt
809projects/llvm-gcc
810projects/llvm-java
811projects/llvm-tv
812projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000813projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000815
816# Initialize some variables set by options.
817ac_init_help=
818ac_init_version=false
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000841# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000850includedir='${prefix}/include'
851oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000861
862ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000863ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000864for ac_option
865do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000868 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000869 ac_prev=
870 continue
871 fi
872
Reid Spencera773bd52006-08-04 18:18:08 +0000873 case $ac_option in
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *) ac_optarg=yes ;;
876 esac
John Criswell7a73b802003-06-30 21:59:07 +0000877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
Reid Spencera773bd52006-08-04 18:18:08 +0000880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
Reid Spencera773bd52006-08-04 18:18:08 +0000904 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000905 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000907 datadir=$ac_optarg ;;
908
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
John Criswell7a73b802003-06-30 21:59:07 +0000916 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000917 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000918 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000919 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
920 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
921 { (exit 1); exit 1; }; }
922 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
923 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000934
935 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000936 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000937 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940 { (exit 1); exit 1; }; }
941 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000943
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
952
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
956
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
963
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
968
Reid Spencera773bd52006-08-04 18:18:08 +0000969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
974
John Criswell7a73b802003-06-30 21:59:07 +0000975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
981
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
986
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
991
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
998
Reid Spencera773bd52006-08-04 18:18:08 +0000999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1003
John Criswell7a73b802003-06-30 21:59:07 +00001004 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001005 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001009 localstatedir=$ac_optarg ;;
1010
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1015
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1019
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1023
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1027
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1036
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1041
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1048
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1055
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1072
Reid Spencera773bd52006-08-04 18:18:08 +00001073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1077
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1082
John Criswell7a73b802003-06-30 21:59:07 +00001083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1086
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 ac_prev=sbindir ;;
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 | --sbi=* | --sb=*)
1091 sbindir=$ac_optarg ;;
1092
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1096 | --sha | --sh)
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 | --sha=* | --sh=*)
1102 sharedstatedir=$ac_optarg ;;
1103
1104 -site | --site | --sit)
1105 ac_prev=site ;;
1106 -site=* | --site=* | --sit=*)
1107 site=$ac_optarg ;;
1108
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 ac_prev=srcdir ;;
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1113
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1120
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1125
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 verbose=yes ;;
1128
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1131
1132 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001133 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001134 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001135 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1136 { echo "$as_me: error: invalid package name: $ac_package" >&2
1137 { (exit 1); exit 1; }; }
1138 ac_package=`echo $ac_package| sed 's/-/_/g'`
1139 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001140
1141 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001142 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001143 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package | sed 's/-/_/g'`
1148 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001168 -*) { echo "$as_me: error: unrecognized option: $ac_option
1169Try \`$0 --help' for more information." >&2
1170 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001176 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1178 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001179 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188 ;;
1189
1190 esac
1191done
1192
1193if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001195 { echo "$as_me: error: missing argument to $ac_option" >&2
1196 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001197fi
1198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001200for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001204do
Reid Spencera773bd52006-08-04 18:18:08 +00001205 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001206 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001209 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001210 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1211 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001225 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1229 fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
Reid Spencera773bd52006-08-04 18:18:08 +00001238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001241 { echo "$as_me: error: Working directory cannot be determined" >&2
1242 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001243test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001244 { echo "$as_me: error: pwd does not report name of working directory" >&2
1245 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001246
1247
John Criswell7a73b802003-06-30 21:59:07 +00001248# Find the source files, if location was not specified.
1249if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001251 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001252 ac_confdir=`$as_dirname -- "$0" ||
1253$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$0" : 'X\(//\)[^/]' \| \
1255 X"$0" : 'X\(//\)$' \| \
1256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1257echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)[^/].*/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\).*/{
1271 s//\1/
1272 q
1273 }
1274 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001275 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001276 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001277 srcdir=..
1278 fi
1279else
1280 ac_srcdir_defaulted=no
1281fi
Reid Spencera773bd52006-08-04 18:18:08 +00001282if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001284 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1285 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001286fi
Reid Spencera773bd52006-08-04 18:18:08 +00001287ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001289 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1290 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001291 pwd)`
1292# When building in place, set srcdir=.
1293if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295fi
1296# Remove unnecessary trailing slashes from srcdir.
1297# Double slashes in file names in object file debugging info
1298# mess up M-x gdb in Emacs.
1299case $srcdir in
1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301esac
1302for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307done
John Criswell7a73b802003-06-30 21:59:07 +00001308
1309#
1310# Report the --help message.
1311#
1312if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001316\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001317
1318Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321VAR=VALUE. See below for descriptions of some of the useful variables.
1322
1323Defaults for the options are specified in brackets.
1324
1325Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
John Criswell7a73b802003-06-30 21:59:07 +00001336Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001338 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001340 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001341
1342By default, \`make install' will install all the files in
1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345for instance \`--prefix=\$HOME'.
1346
1347For better control, use the options below.
1348
1349Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001369_ACEOF
1370
1371 cat <<\_ACEOF
1372
1373System types:
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001382 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001383 esac
1384 cat <<\_ACEOF
1385
1386Optional Features:
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001389 --enable-optimized Compile with optimizations enabled (default is NO)
1390 --enable-profiling Compile with profiling enabled (default is NO)
1391 --enable-assertions Compile with assertion checks enabled (default is
1392 YES)
David Greenea696d242007-06-28 19:36:08 +00001393 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001394 Compile with expensive debug checks enabled (default
1395 is NO)
1396 --enable-debug-runtime Build runtime libs with debug symbols (default is
1397 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001398 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1399 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001400 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001401 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001402 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001403 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001404 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001405 --enable-targets Build specific host targets: all or
1406 target1,target2,... Valid targets are: host, x86,
1407 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1408 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1409 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001410 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1411 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001412 --enable-bindings Build specific language bindings:
1413 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001414 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001415 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1416 Win32)
1417 --enable-llvmc-dynamic-plugins
1418 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001419 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001420
1421Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001424 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1425 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001426 --with-llvmgcc Specify location of llvm-gcc driver (default
1427 searches PATH)
1428 --with-llvmgxx Specify location of llvm-g++ driver (default
1429 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001430 --with-clang Specify location of clang compiler (default is
1431 --with-built-clang)
1432 --with-built-clang Use the compiled Clang as the LLVM compiler
1433 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001434 --with-optimize-option Select the compiler options to use for optimized
1435 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001436 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001439 --with-c-include-dirs Colon separated list of directories clang will
1440 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001441 --with-cxx-include-root Directory with the libstdc++ headers.
1442 --with-cxx-include-arch Architecture of the libstdc++ headers.
1443 --with-cxx-include-32bit-dir
1444 32 bit multilib dir.
1445 --with-cxx-include-64bit-dir
1446 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001447 --with-binutils-include Specify path to binutils/include/ containing
1448 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001449 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001450 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1451 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001452 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001455
1456Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001457 CC C compiler command
1458 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001462 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001463 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
1470Report bugs to <llvmbugs@cs.uiuc.edu>.
1471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001472ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001478 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001479 ac_builddir=.
1480
Reid Spencera773bd52006-08-04 18:18:08 +00001481case "$ac_dir" in
1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001485 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 esac ;;
1491esac
1492ac_abs_top_builddir=$ac_pwd
1493ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494# for backward compatibility:
1495ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001496
1497case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001498 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001499 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001503 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1506 *) # Relative name.
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001510esac
Reid Spencera773bd52006-08-04 18:18:08 +00001511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001512
Reid Spencera773bd52006-08-04 18:18:08 +00001513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001521 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001525 done
1526fi
1527
Reid Spencera773bd52006-08-04 18:18:08 +00001528test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001529if $ac_init_version; then
1530 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001531llvm configure 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001532generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001538
Tanya Lattnerc2264592009-08-22 21:01:26 +00001539Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001540_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001541 exit
John Criswell7a73b802003-06-30 21:59:07 +00001542fi
Reid Spencera773bd52006-08-04 18:18:08 +00001543cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001544This file contains any messages produced by compilers while
1545running configure, to aid debugging if configure makes a mistake.
1546
Tanya Lattner953042b2009-08-22 04:37:30 +00001547It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001548generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001549
1550 $ $0 $@
1551
1552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001553exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001554{
1555cat <<_ASUNAME
1556## --------- ##
1557## Platform. ##
1558## --------- ##
1559
1560hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565
1566/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1568
1569/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001572/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001573/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1576
1577_ASUNAME
1578
1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001584 echo "PATH: $as_dir"
1585done
Reid Spencera773bd52006-08-04 18:18:08 +00001586IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001587
1588} >&5
1589
1590cat >&5 <<_ACEOF
1591
1592
1593## ----------- ##
1594## Core tests. ##
1595## ----------- ##
1596
1597_ACEOF
1598
1599
1600# Keep a trace of the command line.
1601# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001602# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001603# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001604# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001605ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001606ac_configure_args0=
1607ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001608ac_must_keep_next=false
1609for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001610do
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 for ac_arg
1612 do
1613 case $ac_arg in
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1617 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001618 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 esac
1621 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001626 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001628 case $ac_arg in
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635 esac
1636 ;;
1637 -* ) ac_must_keep_next=true ;;
1638 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001640 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ;;
1642 esac
1643 done
John Criswell7a73b802003-06-30 21:59:07 +00001644done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646$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 +00001647
1648# When interrupted or exit'd, cleanup temporary files, and complete
1649# config.log. We remove comments because anyway the quotes in there
1650# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001651# WARNING: Use '\'' to represent an apostrophe within the trap.
1652# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001653trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1655 {
1656 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001657
John Criswell7a73b802003-06-30 21:59:07 +00001658 cat <<\_ASBOX
1659## ---------------- ##
1660## Cache variables. ##
1661## ---------------- ##
1662_ASBOX
1663 echo
1664 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001665(
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1668 case $ac_val in #(
1669 *${as_nl}*)
1670 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001673 esac
1674 case $ac_var in #(
1675 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001677 esac ;;
1678 esac
1679 done
John Criswell7a73b802003-06-30 21:59:07 +00001680 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001683 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001687 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001690 esac |
1691 sort
1692)
John Criswell7a73b802003-06-30 21:59:07 +00001693 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001694
1695 cat <<\_ASBOX
1696## ----------------- ##
1697## Output variables. ##
1698## ----------------- ##
1699_ASBOX
1700 echo
1701 for ac_var in $ac_subst_vars
1702 do
Reid Spencera773bd52006-08-04 18:18:08 +00001703 eval ac_val=\$$ac_var
1704 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001706 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001707 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001708 done | sort
1709 echo
1710
1711 if test -n "$ac_subst_files"; then
1712 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001713## ------------------- ##
1714## File substitutions. ##
1715## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001716_ASBOX
1717 echo
1718 for ac_var in $ac_subst_files
1719 do
Reid Spencera773bd52006-08-04 18:18:08 +00001720 eval ac_val=\$$ac_var
1721 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001723 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 done | sort
1726 echo
1727 fi
1728
John Criswell7a73b802003-06-30 21:59:07 +00001729 if test -s confdefs.h; then
1730 cat <<\_ASBOX
1731## ----------- ##
1732## confdefs.h. ##
1733## ----------- ##
1734_ASBOX
1735 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001736 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001737 echo
1738 fi
1739 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001742 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001745 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001746' 0
John Criswell7a73b802003-06-30 21:59:07 +00001747for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001749done
1750ac_signal=0
1751
1752# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001753rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001754
1755# Predefined preprocessor variables.
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_NAME "$PACKAGE_NAME"
1759_ACEOF
1760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001761
John Criswell7a73b802003-06-30 21:59:07 +00001762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
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_VERSION "$PACKAGE_VERSION"
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_STRING "$PACKAGE_STRING"
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_BUGREPORT "$PACKAGE_BUGREPORT"
1779_ACEOF
1780
1781
1782# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001783# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001784if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001786elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792shift
1793for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001794do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001798 sed 's/^/| /' "$ac_site_file" >&5
1799 . "$ac_site_file"
1800 fi
1801done
1802
1803if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001809 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001812 esac
1813 fi
1814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001817 >$cache_file
1818fi
1819
1820# Check that the precious variables saved in the cache have kept the same
1821# value.
1822ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001823for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001828 case $ac_old_set,$ac_new_set in
1829 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001832 ac_cache_corrupted=: ;;
1833 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 ac_cache_corrupted=: ;;
1837 ,);;
1838 *)
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001847 fi;;
1848 esac
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1851 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001853 *) ac_arg=$ac_var=$ac_new_val ;;
1854 esac
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 esac
1859 fi
1860done
1861if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001867fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
Reid Spencera773bd52006-08-04 18:18:08 +00001892
John Criswell7a73b802003-06-30 21:59:07 +00001893ac_ext=c
1894ac_cpp='$CPP $CPPFLAGS'
1895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
Tanya Lattnerc2264592009-08-22 21:01:26 +00001901LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001902
1903
1904
1905
1906
1907
1908
John Criswell7a73b802003-06-30 21:59:07 +00001909ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001910for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001911 if test -f "$ac_dir/install-sh"; then
1912 ac_aux_dir=$ac_dir
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1914 break
1915 elif test -f "$ac_dir/install.sh"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1918 break
1919 elif test -f "$ac_dir/shtool"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1922 break
1923 fi
John Criswell7a73b802003-06-30 21:59:07 +00001924done
1925if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1927echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1928 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001929fi
Reid Spencera773bd52006-08-04 18:18:08 +00001930
1931# These three variables are undocumented and unsupported,
1932# and are intended to be withdrawn in a future Autoconf release.
1933# They can cause serious problems if a builder's source tree is in a directory
1934# whose full name contains unusual characters.
1935ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1938
John Criswell7a73b802003-06-30 21:59:07 +00001939
John Criswell392aaa32003-07-22 19:18:09 +00001940
Reid Spencer2706f8c2004-09-19 23:53:36 +00001941if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001942 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001943 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1944echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1945 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001946 fi
John Criswell93e1c722003-09-15 17:04:06 +00001947fi
1948
John Criswell33a911a2003-11-25 20:36:46 +00001949for i in `ls ${srcdir}/projects`
1950do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001951 if test -d ${srcdir}/projects/${i} ; then
1952 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001953 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001954 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001955 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001956 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001957 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001958 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001959 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00001960 # llvm-test is the old name of the test-suite, kept here for backwards
1961 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00001962 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00001963 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00001964 test-suite) subdirs="$subdirs projects/test-suite"
1965 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001966 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001967;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001968 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001969 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001970 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001971 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001972 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001973 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001974 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001975 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00001976 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00001977 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001978 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00001979 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001980 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001981 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1982echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001983 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001984 esac
John Criswell33a911a2003-11-25 20:36:46 +00001985 fi
1986done
John Criswell559a6c12003-09-30 16:31:48 +00001987
John Criswell7a73b802003-06-30 21:59:07 +00001988
1989# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00001990$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1992echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1993 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001995{ echo "$as_me:$LINENO: checking build system type" >&5
1996echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1997if test "${ac_cv_build+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001999else
Reid Spencera773bd52006-08-04 18:18:08 +00002000 ac_build_alias=$build_alias
2001test "x$ac_build_alias" = x &&
2002 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2003test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002004 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2005echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2006 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002007ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2009echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2010 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002011
2012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2014echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002015case $ac_cv_build in
2016*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2018echo "$as_me: error: invalid value of canonical build" >&2;}
2019 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002020esac
John Criswell7a73b802003-06-30 21:59:07 +00002021build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002022ac_save_IFS=$IFS; IFS='-'
2023set x $ac_cv_build
2024shift
2025build_cpu=$1
2026build_vendor=$2
2027shift; shift
2028# Remember, the first character of IFS is used to create $*,
2029# except with old shells:
2030build_os=$*
2031IFS=$ac_save_IFS
2032case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002033
2034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035{ echo "$as_me:$LINENO: checking host system type" >&5
2036echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2037if test "${ac_cv_host+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002039else
Reid Spencera773bd52006-08-04 18:18:08 +00002040 if test "x$host_alias" = x; then
2041 ac_cv_host=$ac_cv_build
2042else
2043 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2045echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2046 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002047fi
John Criswell7a73b802003-06-30 21:59:07 +00002048
2049fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002050{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2051echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002052case $ac_cv_host in
2053*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002054*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2055echo "$as_me: error: invalid value of canonical host" >&2;}
2056 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002057esac
John Criswell7a73b802003-06-30 21:59:07 +00002058host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002059ac_save_IFS=$IFS; IFS='-'
2060set x $ac_cv_host
2061shift
2062host_cpu=$1
2063host_vendor=$2
2064shift; shift
2065# Remember, the first character of IFS is used to create $*,
2066# except with old shells:
2067host_os=$*
2068IFS=$ac_save_IFS
2069case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002070
2071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002072{ echo "$as_me:$LINENO: checking target system type" >&5
2073echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2074if test "${ac_cv_target+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002076else
Reid Spencera773bd52006-08-04 18:18:08 +00002077 if test "x$target_alias" = x; then
2078 ac_cv_target=$ac_cv_host
2079else
2080 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2082echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002084fi
John Criswell7a73b802003-06-30 21:59:07 +00002085
2086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002087{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2088echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002089case $ac_cv_target in
2090*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002091*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2092echo "$as_me: error: invalid value of canonical target" >&2;}
2093 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002094esac
John Criswell7a73b802003-06-30 21:59:07 +00002095target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002096ac_save_IFS=$IFS; IFS='-'
2097set x $ac_cv_target
2098shift
2099target_cpu=$1
2100target_vendor=$2
2101shift; shift
2102# Remember, the first character of IFS is used to create $*,
2103# except with old shells:
2104target_os=$*
2105IFS=$ac_save_IFS
2106case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002107
2108
2109# The aliases save the names the user supplied, while $host etc.
2110# will get canonicalized.
2111test -n "$target_alias" &&
2112 test "$program_prefix$program_suffix$program_transform_name" = \
2113 NONENONEs,x,x, &&
2114 program_prefix=${target_alias}-
2115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002116{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2117echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2118if test "${llvm_cv_os_type+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002120else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002121 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002122 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002123 llvm_cv_link_all_option="-Wl,--whole-archive"
2124 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002125 llvm_cv_os_type="AIX"
2126 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002127 *-*-irix*)
2128 llvm_cv_link_all_option="-Wl,--whole-archive"
2129 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2130 llvm_cv_os_type="IRIX"
2131 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002132 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002133 llvm_cv_link_all_option="-Wl,--whole-archive"
2134 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002135 llvm_cv_os_type="Cygwin"
2136 llvm_cv_platform_type="Unix" ;;
2137 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002138 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002139 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002140 llvm_cv_os_type="Darwin"
2141 llvm_cv_platform_type="Unix" ;;
2142 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002143 llvm_cv_link_all_option="-Wl,--whole-archive"
2144 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002145 llvm_cv_os_type="FreeBSD"
2146 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002147 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002148 llvm_cv_link_all_option="-Wl,--whole-archive"
2149 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002150 llvm_cv_os_type="OpenBSD"
2151 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002152 *-*-netbsd*)
2153 llvm_cv_link_all_option="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2155 llvm_cv_os_type="NetBSD"
2156 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002157 *-*-dragonfly*)
2158 llvm_cv_link_all_option="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160 llvm_cv_os_type="DragonFly"
2161 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002162 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002163 llvm_cv_link_all_option="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002165 llvm_cv_os_type="HP-UX"
2166 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002167 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002168 llvm_cv_link_all_option="-Wl,--whole-archive"
2169 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002170 llvm_cv_os_type="Interix"
2171 llvm_cv_platform_type="Unix" ;;
2172 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002173 llvm_cv_link_all_option="-Wl,--whole-archive"
2174 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002175 llvm_cv_os_type="Linux"
2176 llvm_cv_platform_type="Unix" ;;
2177 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002178 llvm_cv_link_all_option="-Wl,-z,allextract"
2179 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002180 llvm_cv_os_type="SunOS"
2181 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002182 *-*-auroraux*)
2183 llvm_cv_link_all_option="-Wl,-z,allextract"
2184 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2185 llvm_cv_os_type="AuroraUX"
2186 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002187 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002188 llvm_cv_link_all_option="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002190 llvm_cv_os_type="Win32"
2191 llvm_cv_platform_type="Win32" ;;
2192 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002193 llvm_cv_link_all_option="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002195 llvm_cv_os_type="MingW"
2196 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002197 *-*-haiku*)
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="Haiku"
2201 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002202 *-unknown-eabi*)
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="Freestanding"
2206 llvm_cv_platform_type="Unix" ;;
2207 *-unknown-elf*)
2208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210 llvm_cv_os_type="Freestanding"
2211 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002212 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002213 llvm_cv_link_all_option=""
2214 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002215 llvm_cv_os_type="Unknown"
2216 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002217esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002219{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2220echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002222{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2223echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2224if test "${llvm_cv_target_os_type+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002226else
2227 case $target in
2228 *-*-aix*)
2229 llvm_cv_target_os_type="AIX" ;;
2230 *-*-irix*)
2231 llvm_cv_target_os_type="IRIX" ;;
2232 *-*-cygwin*)
2233 llvm_cv_target_os_type="Cygwin" ;;
2234 *-*-darwin*)
2235 llvm_cv_target_os_type="Darwin" ;;
2236 *-*-freebsd*)
2237 llvm_cv_target_os_type="FreeBSD" ;;
2238 *-*-openbsd*)
2239 llvm_cv_target_os_type="OpenBSD" ;;
2240 *-*-netbsd*)
2241 llvm_cv_target_os_type="NetBSD" ;;
2242 *-*-dragonfly*)
2243 llvm_cv_target_os_type="DragonFly" ;;
2244 *-*-hpux*)
2245 llvm_cv_target_os_type="HP-UX" ;;
2246 *-*-interix*)
2247 llvm_cv_target_os_type="Interix" ;;
2248 *-*-linux*)
2249 llvm_cv_target_os_type="Linux" ;;
2250 *-*-solaris*)
2251 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002252 *-*-auroraux*)
2253 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002254 *-*-win32*)
2255 llvm_cv_target_os_type="Win32" ;;
2256 *-*-mingw*)
2257 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002258 *-*-haiku*)
2259 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002260 *-unknown-eabi*)
2261 llvm_cv_target_os_type="Freestanding" ;;
2262 *)
2263 llvm_cv_target_os_type="Unknown" ;;
2264esac
2265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002266{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2267echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002268
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002270 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2271echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2272 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002273fi
2274
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002276
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002277HOST_OS=$llvm_cv_os_type
2278
2279TARGET_OS=$llvm_cv_target_os_type
2280
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002281
Reid Spencera773bd52006-08-04 18:18:08 +00002282LINKALL=$llvm_cv_link_all_option
2283
2284NOLINKALL=$llvm_cv_no_link_all_option
2285
2286
Reid Spencer7b3e8512004-12-24 06:29:05 +00002287case $llvm_cv_platform_type in
2288 Unix)
2289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002290cat >>confdefs.h <<\_ACEOF
2291#define LLVM_ON_UNIX 1
2292_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002294 LLVM_ON_UNIX=1
2295
2296 LLVM_ON_WIN32=0
2297
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 ;;
2299 Win32)
2300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002301cat >>confdefs.h <<\_ACEOF
2302#define LLVM_ON_WIN32 1
2303_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002305 LLVM_ON_UNIX=0
2306
2307 LLVM_ON_WIN32=1
2308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309 ;;
2310esac
2311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312{ echo "$as_me:$LINENO: checking target architecture" >&5
2313echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2314if test "${llvm_cv_target_arch+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002316else
2317 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002318 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002319 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002320 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2321 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002322 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002323 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002324 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002325 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002326 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002327 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002328 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002329 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00002330 microblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002331 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002332esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2335echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002336
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002337if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2339echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002340fi
John Criswell76595452003-07-01 22:07:39 +00002341
Nick Lewycky83fc4472009-09-29 05:48:51 +00002342# Determine the LLVM native architecture for the target
2343case "$llvm_cv_target_arch" in
2344 x86) LLVM_NATIVE_ARCH="X86" ;;
2345 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2346 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2347esac
2348
2349ARCH=$llvm_cv_target_arch
2350
2351
2352ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002357if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2359set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002364else
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2367else
2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 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 +00002375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377 break 2
2378 fi
2379done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002380done
Reid Spencera773bd52006-08-04 18:18:08 +00002381IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002382
2383fi
2384fi
2385CC=$ac_cv_prog_CC
2386if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002387 { echo "$as_me:$LINENO: result: $CC" >&5
2388echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002390 { echo "$as_me:$LINENO: result: no" >&5
2391echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392fi
2393
Reid Spencera773bd52006-08-04 18:18:08 +00002394
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395fi
2396if test -z "$ac_cv_prog_CC"; then
2397 ac_ct_CC=$CC
2398 # Extract the first word of "gcc", so it can be a program name with args.
2399set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404else
2405 if test -n "$ac_ct_CC"; then
2406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 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 +00002415 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417 break 2
2418 fi
2419done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420done
Reid Spencera773bd52006-08-04 18:18:08 +00002421IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422
2423fi
2424fi
2425ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2428echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002430 { echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432fi
2433
Reid Spencera773bd52006-08-04 18:18:08 +00002434 if test "x$ac_ct_CC" = x; then
2435 CC=""
2436 else
2437 case $cross_compiling:$ac_tool_warned in
2438yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002439{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2440whose name does not start with the host triplet. If you think this
2441configuration is useful to you, please write to autoconf@gnu.org." >&5
2442echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2443whose name does not start with the host triplet. If you think this
2444configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002445ac_tool_warned=yes ;;
2446esac
2447 CC=$ac_ct_CC
2448 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449else
2450 CC="$ac_cv_prog_CC"
2451fi
2452
2453if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002454 if test -n "$ac_tool_prefix"; then
2455 # 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 +00002456set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459if test "${ac_cv_prog_CC+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461else
2462 if test -n "$CC"; then
2463 ac_cv_prog_CC="$CC" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 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 +00002472 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474 break 2
2475 fi
2476done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002477done
Reid Spencera773bd52006-08-04 18:18:08 +00002478IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479
2480fi
2481fi
2482CC=$ac_cv_prog_CC
2483if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484 { echo "$as_me:$LINENO: result: $CC" >&5
2485echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002487 { echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002489fi
2490
Reid Spencera773bd52006-08-04 18:18:08 +00002491
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002492 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493fi
2494if test -z "$CC"; then
2495 # Extract the first word of "cc", so it can be a program name with args.
2496set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
2505 ac_prog_rejected=no
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 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 +00002513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2514 ac_prog_rejected=yes
2515 continue
2516 fi
2517 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519 break 2
2520 fi
2521done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002522done
Reid Spencera773bd52006-08-04 18:18:08 +00002523IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524
2525if test $ac_prog_rejected = yes; then
2526 # We found a bogon in the path, so make sure we never use it.
2527 set dummy $ac_cv_prog_CC
2528 shift
2529 if test $# != 0; then
2530 # We chose a different compiler from the bogus one.
2531 # However, it has the same basename, so the bogon will be chosen
2532 # first if we set CC to just the basename; use the full file name.
2533 shift
2534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2535 fi
2536fi
2537fi
2538fi
2539CC=$ac_cv_prog_CC
2540if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002541 { echo "$as_me:$LINENO: result: $CC" >&5
2542echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 { echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546fi
2547
Reid Spencera773bd52006-08-04 18:18:08 +00002548
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549fi
2550if test -z "$CC"; then
2551 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002552 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002553 do
2554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558if test "${ac_cv_prog_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002560else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 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 +00002571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002573 break 2
2574 fi
2575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002576done
Reid Spencera773bd52006-08-04 18:18:08 +00002577IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002578
2579fi
2580fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002581CC=$ac_cv_prog_CC
2582if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002583 { echo "$as_me:$LINENO: result: $CC" >&5
2584echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002586 { echo "$as_me:$LINENO: result: no" >&5
2587echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002588fi
2589
Reid Spencera773bd52006-08-04 18:18:08 +00002590
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002591 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002592 done
2593fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594if test -z "$CC"; then
2595 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002596 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002597do
2598 # Extract the first word of "$ac_prog", so it can be a program name with args.
2599set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002604else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 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 +00002615 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002617 break 2
2618 fi
2619done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620done
Reid Spencera773bd52006-08-04 18:18:08 +00002621IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002622
2623fi
2624fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002630 { echo "$as_me:$LINENO: result: no" >&5
2631echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002632fi
2633
Reid Spencera773bd52006-08-04 18:18:08 +00002634
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002636done
John Criswell7a73b802003-06-30 21:59:07 +00002637
Reid Spencera773bd52006-08-04 18:18:08 +00002638 if test "x$ac_ct_CC" = x; then
2639 CC=""
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002643{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2644whose name does not start with the host triplet. If you think this
2645configuration is useful to you, please write to autoconf@gnu.org." >&5
2646echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2647whose name does not start with the host triplet. If you think this
2648configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002649ac_tool_warned=yes ;;
2650esac
2651 CC=$ac_ct_CC
2652 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653fi
2654
John Criswell7a73b802003-06-30 21:59:07 +00002655fi
2656
2657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002658test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2659See \`config.log' for more details." >&5
2660echo "$as_me: error: no acceptable C compiler found in \$PATH
2661See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663
John Criswell7a73b802003-06-30 21:59:07 +00002664# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002665echo "$as_me:$LINENO: checking for C compiler version" >&5
2666ac_compiler=`set X $ac_compile; echo $2`
2667{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002668case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002674 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677{ (ac_try="$ac_compiler -v >&5"
2678case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681esac
2682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler -v >&5") 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687{ (ac_try="$ac_compiler -V >&5"
2688case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691esac
2692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compiler -V >&5") 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698cat >conftest.$ac_ext <<_ACEOF
2699/* confdefs.h. */
2700_ACEOF
2701cat confdefs.h >>conftest.$ac_ext
2702cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002704
John Criswell7a73b802003-06-30 21:59:07 +00002705int
2706main ()
2707{
2708
2709 ;
2710 return 0;
2711}
2712_ACEOF
2713ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002714ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002715# Try to create an executable without -o first, disregard a.out.
2716# It will help us diagnose broken compilers, and finding out an intuition
2717# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002718{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2719echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2720ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2721#
2722# List of possible output files, starting from the most likely.
2723# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2724# only as a last resort. b.out is created by i960 compilers.
2725ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2726#
2727# The IRIX 6 linker writes into existing files which may not be
2728# executable, retaining their permissions. Remove them first so a
2729# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002730ac_rmfiles=
2731for ac_file in $ac_files
2732do
2733 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2736 esac
2737done
2738rm -f $ac_rmfiles
2739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002746 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002747 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002750 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2751# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2752# in a Makefile. We should not override ac_cv_exeext if it was cached,
2753# so that the user can short-circuit this test for compilers unknown to
2754# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002756do
2757 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002758 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002760 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002761 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002762 # We found the default executable, but exeext='' is most
2763 # certainly right.
2764 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002765 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002766 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002767 then :; else
2768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769 fi
2770 # We set ac_cv_exeext here because the later test for it is not
2771 # safe: cross compilers may not add the suffix if given an `-o'
2772 # argument, so we may need to know it at that point already.
2773 # Even if this section looks crufty: it has the advantage of
2774 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002775 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002776 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002777 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002778 esac
2779done
Reid Spencera773bd52006-08-04 18:18:08 +00002780test "$ac_cv_exeext" = no && ac_cv_exeext=
2781
John Criswell7a73b802003-06-30 21:59:07 +00002782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002784sed 's/^/| /' conftest.$ac_ext >&5
2785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002786{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2787See \`config.log' for more details." >&5
2788echo "$as_me: error: C compiler cannot create executables
2789See \`config.log' for more details." >&2;}
2790 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002791fi
John Criswell7a73b802003-06-30 21:59:07 +00002792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002793ac_exeext=$ac_cv_exeext
2794{ echo "$as_me:$LINENO: result: $ac_file" >&5
2795echo "${ECHO_T}$ac_file" >&6; }
2796
2797# Check that the compiler produces executables we can run. If not, either
2798# the compiler is broken, or we cross compile.
2799{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2800echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2801# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2802# If not cross compiling, check that we can run a simple program.
2803if test "$cross_compiling" != yes; then
2804 if { ac_try='./$ac_file'
2805 { (case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808esac
2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_try") 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 cross_compiling=no
2815 else
2816 if test "$cross_compiling" = maybe; then
2817 cross_compiling=yes
2818 else
2819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2820If you meant to cross compile, use \`--host'.
2821See \`config.log' for more details." >&5
2822echo "$as_me: error: cannot run C compiled programs.
2823If you meant to cross compile, use \`--host'.
2824See \`config.log' for more details." >&2;}
2825 { (exit 1); exit 1; }; }
2826 fi
2827 fi
2828fi
2829{ echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6; }
2831
2832rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002833ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002834# Check that the compiler produces executables we can run. If not, either
2835# the compiler is broken, or we cross compile.
2836{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2837echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2838{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2839echo "${ECHO_T}$cross_compiling" >&6; }
2840
2841{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2842echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2843if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002844case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002849 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002850 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2855# work properly (i.e., refer to `conftest.exe'), while it won't with
2856# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002857for ac_file in conftest.exe conftest conftest.*; do
2858 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002859 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002862 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002863 * ) break;;
2864 esac
2865done
2866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002867 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2868See \`config.log' for more details." >&5
2869echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2870See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002873
2874rm -f conftest$ac_cv_exeext
2875{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2876echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002877
2878rm -f conftest.$ac_ext
2879EXEEXT=$ac_cv_exeext
2880ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002881{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2882echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2883if test "${ac_cv_objext+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002886 cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002891/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002892
John Criswell7a73b802003-06-30 21:59:07 +00002893int
2894main ()
2895{
2896
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002902if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002908 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002909 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002912 for ac_file in conftest.o conftest.obj conftest.*; do
2913 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002914 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2917 break;;
2918 esac
2919done
2920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002922sed 's/^/| /' conftest.$ac_ext >&5
2923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002924{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925See \`config.log' for more details." >&5
2926echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002929fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002930
John Criswell7a73b802003-06-30 21:59:07 +00002931rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002933{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002935OBJEXT=$ac_cv_objext
2936ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2939if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942 cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002948
John Criswell7a73b802003-06-30 21:59:07 +00002949int
2950main ()
2951{
2952#ifndef __GNUC__
2953 choke me
2954#endif
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002960rm -f conftest.$ac_objext
2961if { (ac_try="$ac_compile"
2962case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002994 ac_compiler_gnu=yes
2995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002996 echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003001
Reid Spencera773bd52006-08-04 18:18:08 +00003002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003003ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003004
3005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003006{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3007echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3008GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003009ac_test_CFLAGS=${CFLAGS+set}
3010ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003011{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3012echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3013if test "${ac_cv_prog_cc_g+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003015else
Reid Spencera773bd52006-08-04 18:18:08 +00003016 ac_save_c_werror_flag=$ac_c_werror_flag
3017 ac_c_werror_flag=yes
3018 ac_cv_prog_cc_g=no
3019 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003020 cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003026
John Criswell7a73b802003-06-30 21:59:07 +00003027int
3028main ()
3029{
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003035rm -f conftest.$ac_objext
3036if { (ac_try="$ac_compile"
3037case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063esac
3064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003069 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003071 echo "$as_me: failed program was:" >&5
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
3074 CFLAGS=""
3075 cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h. */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003080/* end confdefs.h. */
3081
3082int
3083main ()
3084{
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003090rm -f conftest.$ac_objext
3091if { (ac_try="$ac_compile"
3092case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 :
Torok Edwin871384f2010-01-26 08:50:50 +00003125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003126 echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003130 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003131 cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h. */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003136/* end confdefs.h. */
3137
3138int
3139main ()
3140{
3141
3142 ;
3143 return 0;
3144}
3145_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003146rm -f conftest.$ac_objext
3147if { (ac_try="$ac_compile"
3148case "(($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_compile") 2>conftest.er1
3154 ac_status=$?
3155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
3175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003180 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003181else
3182 echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
3185
John Criswell7a73b802003-06-30 21:59:07 +00003186fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003187
Reid Spencera773bd52006-08-04 18:18:08 +00003188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003190
Reid Spencera773bd52006-08-04 18:18:08 +00003191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003193
Reid Spencera773bd52006-08-04 18:18:08 +00003194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_c_werror_flag=$ac_save_c_werror_flag
3196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003197{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3198echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003199if test "$ac_test_CFLAGS" = set; then
3200 CFLAGS=$ac_save_CFLAGS
3201elif test $ac_cv_prog_cc_g = yes; then
3202 if test "$GCC" = yes; then
3203 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003204 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003205 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003206 fi
3207else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003208 if test "$GCC" = yes; then
3209 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003210 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003211 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003212 fi
3213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3215echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3216if test "${ac_cv_prog_cc_c89+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003218else
Reid Spencera773bd52006-08-04 18:18:08 +00003219 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003220ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003221cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003226/* end confdefs.h. */
3227#include <stdarg.h>
3228#include <stdio.h>
3229#include <sys/types.h>
3230#include <sys/stat.h>
3231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232struct buf { int x; };
3233FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234static char *e (p, i)
3235 char **p;
3236 int i;
3237{
3238 return p[i];
3239}
3240static char *f (char * (*g) (char **, int), char **p, ...)
3241{
3242 char *s;
3243 va_list v;
3244 va_start (v,p);
3245 s = g (p, va_arg (v,int));
3246 va_end (v);
3247 return s;
3248}
3249
3250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003253 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003256 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258
Reid Spencera773bd52006-08-04 18:18:08 +00003259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3261#define FOO(x) 'x'
3262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264int test (int i, double x);
3265struct s1 {int (*f) (int a);};
3266struct s2 {int (*f) (double a);};
3267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268int argc;
3269char **argv;
3270int
3271main ()
3272{
3273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 ;
3275 return 0;
3276}
3277_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280do
3281 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003282 rm -f conftest.$ac_objext
3283if { (ac_try="$ac_compile"
3284case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287esac
3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3297 { (case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_try") 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest.$ac_objext'
3307 { (case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310esac
3311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_try") 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003316 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003317else
3318 echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003323
Reid Spencera773bd52006-08-04 18:18:08 +00003324rm -f core conftest.err conftest.$ac_objext
3325 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003326done
Reid Spencera773bd52006-08-04 18:18:08 +00003327rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328CC=$ac_save_CC
3329
3330fi
Reid Spencera773bd52006-08-04 18:18:08 +00003331# AC_CACHE_VAL
3332case "x$ac_cv_prog_cc_c89" in
3333 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003334 { echo "$as_me:$LINENO: result: none needed" >&5
3335echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003336 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003337 { echo "$as_me:$LINENO: result: unsupported" >&5
3338echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003340 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343esac
3344
John Criswell0c38eaf2003-09-10 15:17:25 +00003345
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346ac_ext=c
3347ac_cpp='$CPP $CPPFLAGS'
3348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351
3352
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003353ac_ext=c
3354ac_cpp='$CPP $CPPFLAGS'
3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003358{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3359echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360# On Suns, sometimes $CPP names a directory.
3361if test -n "$CPP" && test -d "$CPP"; then
3362 CPP=
3363fi
3364if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003365 if test "${ac_cv_prog_CPP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003367else
3368 # Double quotes because CPP needs to be expanded
3369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370 do
3371 ac_preproc_ok=false
3372for ac_c_preproc_warn_flag in '' yes
3373do
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
3378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003380 cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h. */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385/* end confdefs.h. */
3386#ifdef __STDC__
3387# include <limits.h>
3388#else
3389# include <assert.h>
3390#endif
3391 Syntax error
3392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393if { (ac_try="$ac_cpp conftest.$ac_ext"
3394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 else
3410 ac_cpp_err=
3411 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003413 ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
3416 :
3417else
3418 echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421 # Broken: fails on valid input.
3422continue
3423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003424
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425rm -f conftest.err conftest.$ac_ext
3426
Reid Spencera773bd52006-08-04 18:18:08 +00003427 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003429 cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h. */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434/* end confdefs.h. */
3435#include <ac_nonexistent.h>
3436_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003437if { (ac_try="$ac_cpp conftest.$ac_ext"
3438case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
3442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453 else
3454 ac_cpp_err=
3455 fi
3456else
3457 ac_cpp_err=yes
3458fi
3459if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460 # Broken: success on invalid input.
3461continue
3462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466 # Passes both tests.
3467ac_preproc_ok=:
3468break
3469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003470
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003471rm -f conftest.err conftest.$ac_ext
3472
3473done
3474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003476if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003477 break
3478fi
3479
3480 done
3481 ac_cv_prog_CPP=$CPP
3482
3483fi
3484 CPP=$ac_cv_prog_CPP
3485else
3486 ac_cv_prog_CPP=$CPP
3487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003488{ echo "$as_me:$LINENO: result: $CPP" >&5
3489echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003490ac_preproc_ok=false
3491for ac_c_preproc_warn_flag in '' yes
3492do
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003499 cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504/* end confdefs.h. */
3505#ifdef __STDC__
3506# include <limits.h>
3507#else
3508# include <assert.h>
3509#endif
3510 Syntax error
3511_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003512if { (ac_try="$ac_cpp conftest.$ac_ext"
3513case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516esac
3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null; then
3525 if test -s conftest.err; then
3526 ac_cpp_err=$ac_c_preproc_warn_flag
3527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3528 else
3529 ac_cpp_err=
3530 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003532 ac_cpp_err=yes
3533fi
3534if test -z "$ac_cpp_err"; then
3535 :
3536else
3537 echo "$as_me: failed program was:" >&5
3538sed 's/^/| /' conftest.$ac_ext >&5
3539
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003540 # Broken: fails on valid input.
3541continue
3542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003543
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544rm -f conftest.err conftest.$ac_ext
3545
Reid Spencera773bd52006-08-04 18:18:08 +00003546 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003547 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003548 cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h. */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003553/* end confdefs.h. */
3554#include <ac_nonexistent.h>
3555_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003556if { (ac_try="$ac_cpp conftest.$ac_ext"
3557case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572 else
3573 ac_cpp_err=
3574 fi
3575else
3576 ac_cpp_err=yes
3577fi
3578if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579 # Broken: success on invalid input.
3580continue
3581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003582 echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003585 # Passes both tests.
3586ac_preproc_ok=:
3587break
3588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003589
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590rm -f conftest.err conftest.$ac_ext
3591
3592done
3593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003595if $ac_preproc_ok; then
3596 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003598 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3599See \`config.log' for more details." >&5
3600echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3601See \`config.log' for more details." >&2;}
3602 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003603fi
3604
John Criswell7a73b802003-06-30 21:59:07 +00003605ac_ext=c
3606ac_cpp='$CPP $CPPFLAGS'
3607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610
John Criswell7a73b802003-06-30 21:59:07 +00003611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003612{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3613echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3614if test "${ac_cv_path_GREP+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003617 # Extract the first word of "grep ggrep" to use in msg output
3618if test -z "$GREP"; then
3619set dummy grep ggrep; ac_prog_name=$2
3620if test "${ac_cv_path_GREP+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
Reid Spencera773bd52006-08-04 18:18:08 +00003623 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003624# Loop through the user's path and test for each of PROGNAME-LIST
3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003627do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003630 for ac_prog in grep ggrep; do
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3633 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3634 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003635 # Check for GNU $ac_path_GREP
3636case `"$ac_path_GREP" --version 2>&1` in
3637*GNU*)
3638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3639*)
3640 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003641 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003642 while :
3643 do
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003647 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003650 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_GREP="$ac_path_GREP"
3654 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003655 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3658 done
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660esac
3661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003662
3663 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003664 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003665done
3666
3667done
Reid Spencera773bd52006-08-04 18:18:08 +00003668IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003669
3670
3671fi
3672
3673GREP="$ac_cv_path_GREP"
3674if test -z "$GREP"; then
3675 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3676echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3677 { (exit 1); exit 1; }; }
3678fi
3679
Reid Spencera773bd52006-08-04 18:18:08 +00003680else
3681 ac_cv_path_GREP=$GREP
3682fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003684
Reid Spencera773bd52006-08-04 18:18:08 +00003685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003686{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3687echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003688 GREP="$ac_cv_path_GREP"
3689
3690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003691{ echo "$as_me:$LINENO: checking for egrep" >&5
3692echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3693if test "${ac_cv_path_EGREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003695else
3696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3697 then ac_cv_path_EGREP="$GREP -E"
3698 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699 # Extract the first word of "egrep" to use in msg output
3700if test -z "$EGREP"; then
3701set dummy egrep; ac_prog_name=$2
3702if test "${ac_cv_path_EGREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
Reid Spencera773bd52006-08-04 18:18:08 +00003705 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003706# Loop through the user's path and test for each of PROGNAME-LIST
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003712 for ac_prog in egrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3716 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003717 # Check for GNU $ac_path_EGREP
3718case `"$ac_path_EGREP" --version 2>&1` in
3719*GNU*)
3720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3721*)
3722 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003724 while :
3725 do
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003729 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003732 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_EGREP="$ac_path_EGREP"
3736 ac_path_EGREP_max=$ac_count
3737 fi
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3740 done
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742esac
3743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003744
3745 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003746 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747done
3748
3749done
Reid Spencera773bd52006-08-04 18:18:08 +00003750IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003751
3752
3753fi
3754
3755EGREP="$ac_cv_path_EGREP"
3756if test -z "$EGREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3760fi
3761
Reid Spencera773bd52006-08-04 18:18:08 +00003762else
3763 ac_cv_path_EGREP=$EGREP
3764fi
3765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766
Reid Spencera773bd52006-08-04 18:18:08 +00003767 fi
3768fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003769{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3770echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003771 EGREP="$ac_cv_path_EGREP"
3772
3773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003774{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3775echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3776if test "${ac_cv_header_stdc+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003779 cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h. */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003784/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003785#include <stdlib.h>
3786#include <stdarg.h>
3787#include <string.h>
3788#include <float.h>
3789
John Criswell0c38eaf2003-09-10 15:17:25 +00003790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
John Criswell7a73b802003-06-30 21:59:07 +00003797_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003798rm -f conftest.$ac_objext
3799if { (ac_try="$ac_compile"
3800case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803esac
3804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_compile") 2>conftest.er1
3806 ac_status=$?
3807 grep -v '^ *+' conftest.er1 >conftest.err
3808 rm -f conftest.er1
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } &&
3812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3813 { (case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816esac
3817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_try") 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826esac
3827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_try") 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003832 ac_cv_header_stdc=yes
3833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003834 echo "$as_me: failed program was:" >&5
3835sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003838fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003839
Reid Spencera773bd52006-08-04 18:18:08 +00003840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003841
3842if test $ac_cv_header_stdc = yes; then
3843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003844 cat >conftest.$ac_ext <<_ACEOF
3845/* confdefs.h. */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003849/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003850#include <string.h>
3851
3852_ACEOF
3853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003854 $EGREP "memchr" >/dev/null 2>&1; then
3855 :
John Criswell7a73b802003-06-30 21:59:07 +00003856else
3857 ac_cv_header_stdc=no
3858fi
3859rm -f conftest*
3860
3861fi
3862
3863if test $ac_cv_header_stdc = yes; then
3864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003865 cat >conftest.$ac_ext <<_ACEOF
3866/* confdefs.h. */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003870/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003871#include <stdlib.h>
3872
3873_ACEOF
3874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003875 $EGREP "free" >/dev/null 2>&1; then
3876 :
John Criswell7a73b802003-06-30 21:59:07 +00003877else
3878 ac_cv_header_stdc=no
3879fi
3880rm -f conftest*
3881
3882fi
3883
3884if test $ac_cv_header_stdc = yes; then
3885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003886 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003887 :
3888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003889 cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h. */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003894/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003895#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003896#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003897#if ((' ' & 0x0FF) == 0x020)
3898# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3899# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3900#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003901# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003902 (('a' <= (c) && (c) <= 'i') \
3903 || ('j' <= (c) && (c) <= 'r') \
3904 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003905# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3906#endif
3907
3908#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3909int
3910main ()
3911{
3912 int i;
3913 for (i = 0; i < 256; i++)
3914 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003915 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003916 return 2;
3917 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003918}
3919_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920rm -f conftest$ac_exeext
3921if { (ac_try="$ac_link"
3922case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925esac
3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_link") 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934esac
3935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_try") 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 :
John Criswell7a73b802003-06-30 21:59:07 +00003941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003942 echo "$as_me: program exited with status $ac_status" >&5
3943echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946( exit $ac_status )
3947ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003949rm -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 +00003950fi
3951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003952
John Criswell7a73b802003-06-30 21:59:07 +00003953fi
3954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3956echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003957if test $ac_cv_header_stdc = yes; then
3958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959cat >>confdefs.h <<\_ACEOF
3960#define STDC_HEADERS 1
3961_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003962
3963fi
3964
Reid Spencera773bd52006-08-04 18:18:08 +00003965# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003966
3967
3968
3969
3970
3971
3972
3973
3974
Reid Spencera773bd52006-08-04 18:18:08 +00003975for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3976 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977do
3978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3979{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984 cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h. */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h. */
3990$ac_includes_default
3991
3992#include <$ac_header>
3993_ACEOF
3994rm -f conftest.$ac_objext
3995if { (ac_try="$ac_compile"
3996case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999esac
4000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012esac
4013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022esac
4023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_try") 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 eval "$as_ac_Header=yes"
4029else
4030 echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 eval "$as_ac_Header=no"
4034fi
4035
4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037fi
4038ac_res=`eval echo '${'$as_ac_Header'}'`
4039 { echo "$as_me:$LINENO: result: $ac_res" >&5
4040echo "${ECHO_T}$ac_res" >&6; }
4041if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004042 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004044_ACEOF
4045
4046fi
4047
4048done
4049
4050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004051{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4052echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4053if test "${ac_cv_c_bigendian+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004056 # See if sys/param.h defines the BYTE_ORDER macro.
4057cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004059_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004062/* end confdefs.h. */
4063#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004065
4066int
4067main ()
4068{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004069#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4070 bogus endian macros
4071#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004072
4073 ;
4074 return 0;
4075}
4076_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077rm -f conftest.$ac_objext
4078if { (ac_try="$ac_compile"
4079case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082esac
4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095esac
4096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105esac
4106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_try") 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004111 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004112cat >conftest.$ac_ext <<_ACEOF
4113/* confdefs.h. */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004117/* end confdefs.h. */
4118#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004120
4121int
4122main ()
4123{
4124#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004125 not big endian
4126#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004127
4128 ;
4129 return 0;
4130}
4131_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004132rm -f conftest.$ac_objext
4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004166 ac_cv_c_bigendian=yes
4167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004168 echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 ac_cv_c_bigendian=no
4172fi
4173
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175else
4176 echo "$as_me: failed program was:" >&5
4177sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 # It does not; compile a test program.
4180if test "$cross_compiling" = yes; then
4181 # try to guess the endianness by grepping values into an object file
4182 ac_cv_c_bigendian=unknown
4183 cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
4189short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4190short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4191void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4192short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4193short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4194void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004195int
4196main ()
4197{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004199 ;
4200 return 0;
4201}
4202_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203rm -f conftest.$ac_objext
4204if { (ac_try="$ac_compile"
4205case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004238 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004239fi
4240if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4241 if test "$ac_cv_c_bigendian" = unknown; then
4242 ac_cv_c_bigendian=no
4243 else
4244 # finding both strings is unlikely to happen, but who knows?
4245 ac_cv_c_bigendian=unknown
4246 fi
4247fi
Reid Spencera773bd52006-08-04 18:18:08 +00004248else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004249 echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004252
Torok Edwin871384f2010-01-26 08:50:50 +00004253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004254
Reid Spencera773bd52006-08-04 18:18:08 +00004255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257 cat >conftest.$ac_ext <<_ACEOF
4258/* confdefs.h. */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004262/* end confdefs.h. */
4263$ac_includes_default
4264int
4265main ()
4266{
4267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004268 /* Are we little or big endian? From Harbison&Steele. */
4269 union
4270 {
4271 long int l;
4272 char c[sizeof (long int)];
4273 } u;
4274 u.l = 1;
4275 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004276
4277 ;
4278 return 0;
4279}
4280_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004281rm -f conftest$ac_exeext
4282if { (ac_try="$ac_link"
4283case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_link") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4292 { (case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004301 ac_cv_c_bigendian=no
4302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004303 echo "$as_me: program exited with status $ac_status" >&5
4304echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307( exit $ac_status )
4308ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004309fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004310rm -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 +00004311fi
4312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004313
Reid Spencera773bd52006-08-04 18:18:08 +00004314fi
4315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317fi
4318{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4319echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4320case $ac_cv_c_bigendian in
4321 yes)
4322 ENDIAN=big
4323 ;;
4324 no)
4325 ENDIAN=little
4326 ;;
4327 *)
4328 { { echo "$as_me:$LINENO: error: unknown endianness
4329presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4330echo "$as_me: error: unknown endianness
4331presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4332 { (exit 1); exit 1; }; } ;;
4333esac
Reid Spencera773bd52006-08-04 18:18:08 +00004334
4335
4336if test "$cross_compiling" = yes; then
4337 LLVM_CROSS_COMPILING=1
4338
4339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004340{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4341echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4342if test "${ac_cv_build_exeext+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004344else
4345 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4346 ac_cv_build_exeext=.exe
4347else
4348 ac_build_prefix=${build_alias}-
4349
4350 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4351set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004356else
4357 if test -n "$BUILD_CC"; then
4358 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 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 +00004367 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004369 break 2
4370 fi
4371done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004372done
Reid Spencera773bd52006-08-04 18:18:08 +00004373IFS=$as_save_IFS
4374
4375fi
4376fi
4377BUILD_CC=$ac_cv_prog_BUILD_CC
4378if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4380echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004382 { echo "$as_me:$LINENO: result: no" >&5
4383echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004384fi
4385
4386
4387 if test -z "$BUILD_CC"; then
4388 # Extract the first word of "gcc", so it can be a program name with args.
4389set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4392if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004394else
4395 if test -n "$BUILD_CC"; then
4396 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4397else
4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH
4400do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 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 +00004405 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004407 break 2
4408 fi
4409done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004410done
Reid Spencera773bd52006-08-04 18:18:08 +00004411IFS=$as_save_IFS
4412
4413fi
4414fi
4415BUILD_CC=$ac_cv_prog_BUILD_CC
4416if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4418echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004419else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004420 { echo "$as_me:$LINENO: result: no" >&5
4421echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004422fi
4423
4424
4425 if test -z "$BUILD_CC"; then
4426 # Extract the first word of "cc", so it can be a program name with args.
4427set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4430if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004432else
4433 if test -n "$BUILD_CC"; then
4434 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4435else
4436 ac_prog_rejected=no
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 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 +00004444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4445 ac_prog_rejected=yes
4446 continue
4447 fi
4448 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004450 break 2
4451 fi
4452done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004453done
Reid Spencera773bd52006-08-04 18:18:08 +00004454IFS=$as_save_IFS
4455
4456if test $ac_prog_rejected = yes; then
4457 # We found a bogon in the path, so make sure we never use it.
4458 set dummy $ac_cv_prog_BUILD_CC
4459 shift
4460 if test $# != 0; then
4461 # We chose a different compiler from the bogus one.
4462 # However, it has the same basename, so the bogon will be chosen
4463 # first if we set BUILD_CC to just the basename; use the full file name.
4464 shift
4465 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4466 fi
4467fi
4468fi
4469fi
4470BUILD_CC=$ac_cv_prog_BUILD_CC
4471if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004474else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475 { echo "$as_me:$LINENO: result: no" >&5
4476echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004477fi
4478
4479
4480 fi
4481 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4483echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4484 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004485 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4486 rm -f conftest*
4487 echo 'int main () { return 0; }' > conftest.$ac_ext
4488 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004489 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004490 (eval $ac_build_link) 2>&5
4491 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004494 for file in conftest.*; do
4495 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004496 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004497 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4498 esac
4499 done
4500 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004501 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4502echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4503 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004504 fi
4505 rm -f conftest*
4506 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4507fi
4508fi
4509
4510BUILD_EXEEXT=""
4511test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004512{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4513echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004514ac_build_exeext=$BUILD_EXEEXT
4515
Jim Grosbach673612e2008-10-02 22:56:44 +00004516 ac_build_prefix=${build_alias}-
4517 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4518set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4521if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004523else
4524 if test -n "$BUILD_CXX"; then
4525 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 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 +00004534 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004536 break 2
4537 fi
4538done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004539done
Jim Grosbach673612e2008-10-02 22:56:44 +00004540IFS=$as_save_IFS
4541
4542fi
4543fi
4544BUILD_CXX=$ac_cv_prog_BUILD_CXX
4545if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4547echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549 { echo "$as_me:$LINENO: result: no" >&5
4550echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004551fi
4552
4553
4554 if test -z "$BUILD_CXX"; then
4555 # Extract the first word of "g++", so it can be a program name with args.
4556set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004561else
4562 if test -n "$BUILD_CXX"; then
4563 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4564else
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 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 +00004572 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004574 break 2
4575 fi
4576done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577done
Jim Grosbach673612e2008-10-02 22:56:44 +00004578IFS=$as_save_IFS
4579
4580fi
4581fi
4582BUILD_CXX=$ac_cv_prog_BUILD_CXX
4583if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4585echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587 { echo "$as_me:$LINENO: result: no" >&5
4588echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004589fi
4590
4591
4592 if test -z "$BUILD_CXX"; then
4593 # Extract the first word of "c++", so it can be a program name with args.
4594set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4597if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004599else
4600 if test -n "$BUILD_CXX"; then
4601 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4602else
4603 ac_prog_rejected=no
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 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 +00004611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4612 ac_prog_rejected=yes
4613 continue
4614 fi
4615 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004617 break 2
4618 fi
4619done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620done
Jim Grosbach673612e2008-10-02 22:56:44 +00004621IFS=$as_save_IFS
4622
4623if test $ac_prog_rejected = yes; then
4624 # We found a bogon in the path, so make sure we never use it.
4625 set dummy $ac_cv_prog_BUILD_CXX
4626 shift
4627 if test $# != 0; then
4628 # We chose a different compiler from the bogus one.
4629 # However, it has the same basename, so the bogon will be chosen
4630 # first if we set BUILD_CXX to just the basename; use the full file name.
4631 shift
4632 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4633 fi
4634fi
4635fi
4636fi
4637BUILD_CXX=$ac_cv_prog_BUILD_CXX
4638if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004639 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4640echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004642 { echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004644fi
4645
4646
4647 fi
4648 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004649else
4650 LLVM_CROSS_COMPILING=0
4651
4652fi
4653
Nick Lewycky5b28f862009-04-10 05:18:27 +00004654if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004655 cvsbuild="yes"
4656 optimize="no"
4657 CVSBUILD=CVSBUILD=1
4658
4659else
4660 cvsbuild="no"
4661 optimize="yes"
4662fi
4663
4664
4665# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004667 enableval=$enable_optimized;
4668else
4669 enableval=$optimize
4670fi
4671
4672if test ${enableval} = "no" ; then
4673 ENABLE_OPTIMIZED=
4674
4675else
4676 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4677
4678fi
4679
David Greene2a5a12c2009-04-17 14:50:39 +00004680# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004681if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004682 enableval=$enable_profiling;
4683else
4684 enableval="no"
4685fi
4686
4687if test ${enableval} = "no" ; then
4688 ENABLE_PROFILING=
4689
4690else
4691 ENABLE_PROFILING=ENABLE_PROFILING=1
4692
4693fi
4694
Reid Spencera773bd52006-08-04 18:18:08 +00004695# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004696if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004697 enableval=$enable_assertions;
4698else
4699 enableval="yes"
4700fi
4701
4702if test ${enableval} = "yes" ; then
4703 DISABLE_ASSERTIONS=
4704
4705else
4706 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4707
4708fi
4709
David Greenea696d242007-06-28 19:36:08 +00004710# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004711if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004712 enableval=$enable_expensive_checks;
4713else
4714 enableval="no"
4715fi
4716
4717if test ${enableval} = "yes" ; then
4718 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4719
4720 EXPENSIVE_CHECKS=yes
4721
4722else
4723 ENABLE_EXPENSIVE_CHECKS=
4724
4725 EXPENSIVE_CHECKS=no
4726
4727fi
4728
Reid Spencer8b2e1412006-11-17 03:32:33 +00004729# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004730if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004731 enableval=$enable_debug_runtime;
4732else
4733 enableval=no
4734fi
4735
4736if test ${enableval} = "no" ; then
4737 DEBUG_RUNTIME=
4738
4739else
4740 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4741
4742fi
4743
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004744# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004746 enableval=$enable_debug_symbols;
4747else
4748 enableval=no
4749fi
4750
4751if test ${enableval} = "no" ; then
4752 DEBUG_SYMBOLS=
4753
4754else
4755 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4756
4757fi
4758
Reid Spencera773bd52006-08-04 18:18:08 +00004759# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004760if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004761 enableval=$enable_jit;
4762else
4763 enableval=default
4764fi
4765
4766if test ${enableval} = "no"
4767then
4768 JIT=
4769
4770else
4771 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004772 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004773 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004774 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004775 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004776 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004777 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004778 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004779 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004780 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004781 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004782 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004783 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004784 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004785 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004786 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004787 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004788 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004789 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004790 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004791 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004792 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004793 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004794 Blackfin) TARGET_HAS_JIT=0
4795 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004796 MBlaze) TARGET_HAS_JIT=0
4797 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004798 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004799 ;;
4800 esac
4801fi
4802
4803# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004804if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004805 enableval=$enable_doxygen;
4806else
4807 enableval=default
4808fi
4809
4810case "$enableval" in
4811 yes) ENABLE_DOXYGEN=1
4812 ;;
4813 no) ENABLE_DOXYGEN=0
4814 ;;
4815 default) ENABLE_DOXYGEN=0
4816 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4818echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4819 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004820esac
4821
4822# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004823if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004824 enableval=$enable_threads;
4825else
Reid Spencer65c5d752006-11-05 17:08:18 +00004826 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004827fi
4828
4829case "$enableval" in
4830 yes) ENABLE_THREADS=1
4831 ;;
4832 no) ENABLE_THREADS=0
4833 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004834 default) ENABLE_THREADS=1
4835 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004836 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4837echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4838 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004839esac
4840
Owen Andersona8603702009-05-19 22:18:56 +00004841cat >>confdefs.h <<_ACEOF
4842#define ENABLE_THREADS $ENABLE_THREADS
4843_ACEOF
4844
4845
Reid Spencer89b0d992006-12-16 22:07:52 +00004846# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004848 enableval=$enable_pic;
4849else
4850 enableval=default
4851fi
4852
4853case "$enableval" in
4854 yes) ENABLE_PIC=1
4855 ;;
4856 no) ENABLE_PIC=0
4857 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004858 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004859 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004860 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4861echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4862 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004863esac
4864
4865cat >>confdefs.h <<_ACEOF
4866#define ENABLE_PIC $ENABLE_PIC
4867_ACEOF
4868
4869
Reid Spencera773bd52006-08-04 18:18:08 +00004870TARGETS_TO_BUILD=""
4871# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004873 enableval=$enable_targets;
4874else
4875 enableval=all
4876fi
4877
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004878if test "$enableval" = host-only ; then
4879 enableval=host
4880fi
Reid Spencera773bd52006-08-04 18:18:08 +00004881case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004882 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 +00004883 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4884 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004885 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4886 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4887 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4888 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4889 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4890 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4891 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4892 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4893 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4894 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4895 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4896 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4897 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4898 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4899 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4900 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004901 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004902 host) case "$llvm_cv_target_arch" in
4903 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4904 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4905 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4906 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4907 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4908 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4909 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004910 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004911 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4912 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4913 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4914 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004915 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004916 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004917 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4918echo "$as_me: error: Can not set target to build" >&2;}
4919 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004920 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004921 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4922echo "$as_me: error: Unrecognized target $a_target" >&2;}
4923 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004924 esac
4925 done
4926 ;;
4927esac
Reid Spencera773bd52006-08-04 18:18:08 +00004928TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4929
4930
Douglas Gregor0711c302009-06-17 00:43:20 +00004931# Determine whether we are building LLVM support for the native architecture.
4932# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4933for a_target in $TARGETS_TO_BUILD; do
4934 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004935 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004936
4937cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004938#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004939_ACEOF
4940
4941 fi
4942done
4943
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004944# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4945# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004946LLVM_ENUM_TARGETS=""
4947LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004948LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004949LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004950for target_to_build in $TARGETS_TO_BUILD; do
4951 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4952 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4953 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4954 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004955 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4956 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4957 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004958 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4959 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4960 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00004961done
4962
4963
4964
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004965
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004966
Reid Spencer65c5d752006-11-05 17:08:18 +00004967# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004968if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00004969 enableval=$enable_cbe_printf_a;
4970else
4971 enableval=default
4972fi
4973
4974case "$enableval" in
4975 yes) ENABLE_CBE_PRINTF_A=1
4976 ;;
4977 no) ENABLE_CBE_PRINTF_A=0
4978 ;;
4979 default) ENABLE_CBE_PRINTF_A=1
4980 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4982echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4983 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004984esac
4985
4986cat >>confdefs.h <<_ACEOF
4987#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4988_ACEOF
4989
4990
Reid Spencera773bd52006-08-04 18:18:08 +00004991
4992# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004993if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004994 withval=$with_llvmgccdir;
4995else
4996 withval=default
4997fi
4998
4999case "$withval" in
5000 default) WITH_LLVMGCCDIR=default ;;
5001 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005002 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5003echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5004 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005005esac
5006
5007
Devang Patel5d28b882007-12-04 22:54:47 +00005008# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005009if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005010 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5011 WITH_LLVMGCCDIR=""
5012fi
5013
5014
5015
5016# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005017if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005018 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5019 WITH_LLVMGCCDIR=""
5020fi
5021
Douglas Gregor01746742009-05-11 18:05:52 +00005022
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005023if test -n "$LLVMGCC"; then
5024 LLVMGCCCOMMAND="$LLVMGCC"
5025fi
5026
5027if test -n "$LLVMGXX"; then
5028 LLVMGXXCOMMAND="$LLVMGXX"
5029fi
Devang Patel5d28b882007-12-04 22:54:47 +00005030
5031if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005032 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5033echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5034 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005035fi
5036
5037if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005038 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5039echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5040 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005041fi
5042
5043
Daniel Dunbar98515672010-02-23 10:00:49 +00005044# Check whether --with-clang was given.
5045if test "${with_clang+set}" = set; then
5046 withval=$with_clang;
5047else
5048 with_clang=default
5049fi
5050
5051
5052
5053# Check whether --with-built-clang was given.
5054if test "${with_built_clang+set}" = set; then
5055 withval=$with_built_clang;
5056else
5057 with_built_clang=check
5058fi
5059
5060
5061{ echo "$as_me:$LINENO: checking clang compiler" >&5
5062echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5063WITH_CLANGPATH=""
5064WITH_BUILT_CLANG=0
5065if test "$with_clang" != "default"; then
5066 WITH_CLANGPATH="$with_clang"
5067 if ! test -x "$WITH_CLANGPATH"; then
5068 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5069echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5070 { (exit 1); exit 1; }; }
5071 fi
5072elif test "$with_built_clang" = "yes"; then
5073 WITH_BUILT_CLANG=1
5074elif test "$with_built_clang" = "no"; then
5075 WITH_BUILT_CLANG=0
5076else
5077 if test "$with_built_clang" != "check"; then
5078 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5079echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5080 { (exit 1); exit 1; }; }
5081 fi
5082
5083 if test -f ${srcdir}/tools/clang/README.txt; then
5084 WITH_BUILT_CLANG=1
5085 fi
5086fi
5087
5088if ! test -z "$WITH_CLANGPATH"; then
5089 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5090echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5091 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5092elif test "$WITH_BUILT_CLANG" = "1"; then
5093 { echo "$as_me:$LINENO: result: built" >&5
5094echo "${ECHO_T}built" >&6; }
5095else
5096 { echo "$as_me:$LINENO: result: none" >&5
5097echo "${ECHO_T}none" >&6; }
5098fi
5099CLANGPATH=$WITH_CLANGPATH
5100
5101CLANGXXPATH=$WITH_CLANGXXPATH
5102
5103ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5104
5105
5106
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005107# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005108if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005109 withval=$with_optimize_option;
5110else
5111 withval=default
5112fi
5113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005114{ echo "$as_me:$LINENO: checking optimization flags" >&5
5115echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005116case "$withval" in
5117 default)
5118 case "$llvm_cv_os_type" in
5119 MingW) optimize_option=-O3 ;;
5120 *) optimize_option=-O2 ;;
5121 esac ;;
5122 *) optimize_option="$withval" ;;
5123esac
5124OPTIMIZE_OPTION=$optimize_option
5125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005126{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5127echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005128
5129
Reid Spencera773bd52006-08-04 18:18:08 +00005130# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005131if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005132 withval=$with_extra_options;
5133else
5134 withval=default
5135fi
5136
5137case "$withval" in
5138 default) EXTRA_OPTIONS= ;;
5139 *) EXTRA_OPTIONS=$withval ;;
5140esac
5141EXTRA_OPTIONS=$EXTRA_OPTIONS
5142
5143
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005144# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005145if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005146 enableval=$enable_bindings;
5147else
5148 enableval=default
5149fi
5150
5151BINDINGS_TO_BUILD=""
5152case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005153 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005154 all ) BINDINGS_TO_BUILD="ocaml" ;;
5155 none | no) BINDINGS_TO_BUILD="" ;;
5156 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5157 case "$a_binding" in
5158 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005159 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5160echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5161 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005162 esac
5163 done
5164 ;;
5165esac
5166
Reid Spencera773bd52006-08-04 18:18:08 +00005167
Gordon Henriksenf0915682007-10-02 16:42:22 +00005168# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005169if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005170 withval=$with_ocaml_libdir;
5171else
5172 withval=auto
5173fi
5174
5175case "$withval" in
5176 auto) with_ocaml_libdir="$withval" ;;
5177 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005178 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5179echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5180 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005181esac
5182
5183
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005184# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005185if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005186 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005187else
5188 withval=""
5189fi
5190
5191
5192cat >>confdefs.h <<_ACEOF
5193#define C_INCLUDE_DIRS "$withval"
5194_ACEOF
5195
5196
5197
Rafael Espindola420d23c2009-11-16 19:46:55 +00005198# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005199if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005200 withval=$with_cxx_include_root;
5201else
5202 withval=""
5203fi
5204
5205
5206cat >>confdefs.h <<_ACEOF
5207#define CXX_INCLUDE_ROOT "$withval"
5208_ACEOF
5209
5210
5211
5212# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005214 withval=$with_cxx_include_arch;
5215else
5216 withval=""
5217fi
5218
5219
5220cat >>confdefs.h <<_ACEOF
5221#define CXX_INCLUDE_ARCH "$withval"
5222_ACEOF
5223
5224
5225
5226# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005227if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005228 withval=$with_cxx_include_32bit_dir;
5229else
5230 withval=""
5231fi
5232
5233
5234cat >>confdefs.h <<_ACEOF
5235#define CXX_INCLUDE_32BIT_DIR "$withval"
5236_ACEOF
5237
5238
5239
5240# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005241if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005242 withval=$with_cxx_include_64bit_dir;
5243else
5244 withval=""
5245fi
5246
5247
5248cat >>confdefs.h <<_ACEOF
5249#define CXX_INCLUDE_64BIT_DIR "$withval"
5250_ACEOF
5251
5252
5253
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005254# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005255if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005256 withval=$with_binutils_include;
5257else
5258 withval=default
5259fi
5260
5261case "$withval" in
5262 default) WITH_BINUTILS_INCDIR=default ;;
5263 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005264 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5265echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5266 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005267esac
5268if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5269 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5270
5271 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5272 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005273 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5274echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5275 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005276 fi
5277fi
5278
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005279# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005280if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005281 enableval=$enable_libffi; case "$enableval" in
5282 yes) llvm_cv_enable_libffi="yes" ;;
5283 no) llvm_cv_enable_libffi="no" ;;
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005285echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005287 esac
5288else
5289 llvm_cv_enable_libffi=no
5290fi
5291
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005292
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005293if test "$llvm_cv_os_type" = "Win32" ; then
5294 llvmc_dynamic="yes"
5295else
5296 llvmc_dynamic="no"
5297fi
5298
5299# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005300if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005301 enableval=$enable_llvmc_dynamic;
5302else
5303 enableval=$llvmc_dynamic
5304fi
5305
5306if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5307 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5308
5309else
5310 ENABLE_LLVMC_DYNAMIC=
5311
5312fi
5313
5314# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005315if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005316 enableval=$enable_llvmc_dynamic_plugins;
5317else
5318 enableval=yes
5319fi
5320
5321if test ${enableval} = "yes" ; then
5322 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5323
5324else
5325 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5326
5327fi
5328
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005329
Reid Spencera773bd52006-08-04 18:18:08 +00005330ac_ext=c
5331ac_cpp='$CPP $CPPFLAGS'
5332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005335{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5336echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005337# On Suns, sometimes $CPP names a directory.
5338if test -n "$CPP" && test -d "$CPP"; then
5339 CPP=
5340fi
5341if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005342 if test "${ac_cv_prog_CPP+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005344else
5345 # Double quotes because CPP needs to be expanded
5346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5347 do
5348 ac_preproc_ok=false
5349for ac_c_preproc_warn_flag in '' yes
5350do
5351 # Use a header file that comes with gcc, so configuring glibc
5352 # with a fresh cross-compiler works.
5353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5354 # <limits.h> exists even on freestanding compilers.
5355 # On the NeXT, cc -E runs the code through the compiler's parser,
5356 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005357 cat >conftest.$ac_ext <<_ACEOF
5358/* confdefs.h. */
5359_ACEOF
5360cat confdefs.h >>conftest.$ac_ext
5361cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005362/* end confdefs.h. */
5363#ifdef __STDC__
5364# include <limits.h>
5365#else
5366# include <assert.h>
5367#endif
5368 Syntax error
5369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005370if { (ac_try="$ac_cpp conftest.$ac_ext"
5371case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374esac
5375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_c_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386 else
5387 ac_cpp_err=
5388 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005389else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005390 ac_cpp_err=yes
5391fi
5392if test -z "$ac_cpp_err"; then
5393 :
5394else
5395 echo "$as_me: failed program was:" >&5
5396sed 's/^/| /' conftest.$ac_ext >&5
5397
Reid Spencera773bd52006-08-04 18:18:08 +00005398 # Broken: fails on valid input.
5399continue
5400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005401
Reid Spencera773bd52006-08-04 18:18:08 +00005402rm -f conftest.err conftest.$ac_ext
5403
5404 # OK, works on sane cases. Now check whether nonexistent headers
5405 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005406 cat >conftest.$ac_ext <<_ACEOF
5407/* confdefs.h. */
5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005411/* end confdefs.h. */
5412#include <ac_nonexistent.h>
5413_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414if { (ac_try="$ac_cpp conftest.$ac_ext"
5415case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418esac
5419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430 else
5431 ac_cpp_err=
5432 fi
5433else
5434 ac_cpp_err=yes
5435fi
5436if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005437 # Broken: success on invalid input.
5438continue
5439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005440 echo "$as_me: failed program was:" >&5
5441sed 's/^/| /' conftest.$ac_ext >&5
5442
Reid Spencera773bd52006-08-04 18:18:08 +00005443 # Passes both tests.
5444ac_preproc_ok=:
5445break
5446fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447
Reid Spencera773bd52006-08-04 18:18:08 +00005448rm -f conftest.err conftest.$ac_ext
5449
5450done
5451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5452rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005453if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005454 break
5455fi
5456
5457 done
5458 ac_cv_prog_CPP=$CPP
5459
5460fi
5461 CPP=$ac_cv_prog_CPP
5462else
5463 ac_cv_prog_CPP=$CPP
5464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005465{ echo "$as_me:$LINENO: result: $CPP" >&5
5466echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005467ac_preproc_ok=false
5468for ac_c_preproc_warn_flag in '' yes
5469do
5470 # Use a header file that comes with gcc, so configuring glibc
5471 # with a fresh cross-compiler works.
5472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5473 # <limits.h> exists even on freestanding compilers.
5474 # On the NeXT, cc -E runs the code through the compiler's parser,
5475 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005476 cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h. */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005481/* end confdefs.h. */
5482#ifdef __STDC__
5483# include <limits.h>
5484#else
5485# include <assert.h>
5486#endif
5487 Syntax error
5488_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005489if { (ac_try="$ac_cpp conftest.$ac_ext"
5490case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493esac
5494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } >/dev/null; then
5502 if test -s conftest.err; then
5503 ac_cpp_err=$ac_c_preproc_warn_flag
5504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5505 else
5506 ac_cpp_err=
5507 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005509 ac_cpp_err=yes
5510fi
5511if test -z "$ac_cpp_err"; then
5512 :
5513else
5514 echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
Reid Spencera773bd52006-08-04 18:18:08 +00005517 # Broken: fails on valid input.
5518continue
5519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005520
Reid Spencera773bd52006-08-04 18:18:08 +00005521rm -f conftest.err conftest.$ac_ext
5522
5523 # OK, works on sane cases. Now check whether nonexistent headers
5524 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005525 cat >conftest.$ac_ext <<_ACEOF
5526/* confdefs.h. */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005530/* end confdefs.h. */
5531#include <ac_nonexistent.h>
5532_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005533if { (ac_try="$ac_cpp conftest.$ac_ext"
5534case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537esac
5538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } >/dev/null; then
5546 if test -s conftest.err; then
5547 ac_cpp_err=$ac_c_preproc_warn_flag
5548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5549 else
5550 ac_cpp_err=
5551 fi
5552else
5553 ac_cpp_err=yes
5554fi
5555if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005556 # Broken: success on invalid input.
5557continue
5558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
Reid Spencera773bd52006-08-04 18:18:08 +00005562 # Passes both tests.
5563ac_preproc_ok=:
5564break
5565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566
Reid Spencera773bd52006-08-04 18:18:08 +00005567rm -f conftest.err conftest.$ac_ext
5568
5569done
5570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005572if $ac_preproc_ok; then
5573 :
Reid Spencera773bd52006-08-04 18:18:08 +00005574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5576See \`config.log' for more details." >&5
5577echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5578See \`config.log' for more details." >&2;}
5579 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005580fi
5581
5582ac_ext=c
5583ac_cpp='$CPP $CPPFLAGS'
5584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586ac_compiler_gnu=$ac_cv_c_compiler_gnu
5587
5588ac_ext=c
5589ac_cpp='$CPP $CPPFLAGS'
5590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592ac_compiler_gnu=$ac_cv_c_compiler_gnu
5593if test -n "$ac_tool_prefix"; then
5594 for ac_prog in gcc
5595 do
5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5597set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5600if test "${ac_cv_prog_CC+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005602else
5603 if test -n "$CC"; then
5604 ac_cv_prog_CC="$CC" # Let the user override the test.
5605else
5606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607for as_dir in $PATH
5608do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 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 +00005613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005615 break 2
5616 fi
5617done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005618done
Reid Spencera773bd52006-08-04 18:18:08 +00005619IFS=$as_save_IFS
5620
5621fi
5622fi
5623CC=$ac_cv_prog_CC
5624if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005625 { echo "$as_me:$LINENO: result: $CC" >&5
5626echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005628 { echo "$as_me:$LINENO: result: no" >&5
5629echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005630fi
5631
5632
5633 test -n "$CC" && break
5634 done
5635fi
5636if test -z "$CC"; then
5637 ac_ct_CC=$CC
5638 for ac_prog in gcc
5639do
5640 # Extract the first word of "$ac_prog", so it can be a program name with args.
5641set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5644if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005646else
5647 if test -n "$ac_ct_CC"; then
5648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5649else
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 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 +00005657 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005659 break 2
5660 fi
5661done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005662done
Reid Spencera773bd52006-08-04 18:18:08 +00005663IFS=$as_save_IFS
5664
5665fi
5666fi
5667ac_ct_CC=$ac_cv_prog_ac_ct_CC
5668if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005669 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5670echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005671else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005672 { echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005674fi
5675
5676
5677 test -n "$ac_ct_CC" && break
5678done
5679
5680 if test "x$ac_ct_CC" = x; then
5681 CC=""
5682 else
5683 case $cross_compiling:$ac_tool_warned in
5684yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005685{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5686whose name does not start with the host triplet. If you think this
5687configuration is useful to you, please write to autoconf@gnu.org." >&5
5688echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5689whose name does not start with the host triplet. If you think this
5690configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005691ac_tool_warned=yes ;;
5692esac
5693 CC=$ac_ct_CC
5694 fi
5695fi
5696
5697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005698test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5699See \`config.log' for more details." >&5
5700echo "$as_me: error: no acceptable C compiler found in \$PATH
5701See \`config.log' for more details." >&2;}
5702 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005703
5704# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005705echo "$as_me:$LINENO: checking for C compiler version" >&5
5706ac_compiler=`set X $ac_compile; echo $2`
5707{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005708case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005714 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }
5717{ (ac_try="$ac_compiler -v >&5"
5718case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721esac
5722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compiler -v >&5") 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }
5727{ (ac_try="$ac_compiler -V >&5"
5728case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731esac
5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compiler -V >&5") 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5739echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5740if test "${ac_cv_c_compiler_gnu+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743 cat >conftest.$ac_ext <<_ACEOF
5744/* confdefs.h. */
5745_ACEOF
5746cat confdefs.h >>conftest.$ac_ext
5747cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005748/* end confdefs.h. */
5749
5750int
5751main ()
5752{
5753#ifndef __GNUC__
5754 choke me
5755#endif
5756
5757 ;
5758 return 0;
5759}
5760_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761rm -f conftest.$ac_objext
5762if { (ac_try="$ac_compile"
5763case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compile") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5776 { (case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_try") 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789esac
5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_try") 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005795 ac_compiler_gnu=yes
5796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 echo "$as_me: failed program was:" >&5
5798sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005802
Reid Spencera773bd52006-08-04 18:18:08 +00005803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804ac_cv_c_compiler_gnu=$ac_compiler_gnu
5805
5806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005807{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5808echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5809GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005810ac_test_CFLAGS=${CFLAGS+set}
5811ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005812{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5813echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5814if test "${ac_cv_prog_cc_g+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005816else
5817 ac_save_c_werror_flag=$ac_c_werror_flag
5818 ac_c_werror_flag=yes
5819 ac_cv_prog_cc_g=no
5820 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005821 cat >conftest.$ac_ext <<_ACEOF
5822/* confdefs.h. */
5823_ACEOF
5824cat confdefs.h >>conftest.$ac_ext
5825cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005826/* end confdefs.h. */
5827
5828int
5829main ()
5830{
5831
5832 ;
5833 return 0;
5834}
5835_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005836rm -f conftest.$ac_objext
5837if { (ac_try="$ac_compile"
5838case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5851 { (case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_try") 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_try") 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005870 ac_cv_prog_cc_g=yes
5871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 CFLAGS=""
5876 cat >conftest.$ac_ext <<_ACEOF
5877/* confdefs.h. */
5878_ACEOF
5879cat confdefs.h >>conftest.$ac_ext
5880cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005881/* end confdefs.h. */
5882
5883int
5884main ()
5885{
5886
5887 ;
5888 return 0;
5889}
5890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891rm -f conftest.$ac_objext
5892if { (ac_try="$ac_compile"
5893case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5906 { (case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_try") 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919esac
5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_try") 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 :
Torok Edwin871384f2010-01-26 08:50:50 +00005926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927 echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005931 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005932 cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h. */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005937/* end confdefs.h. */
5938
5939int
5940main ()
5941{
5942
5943 ;
5944 return 0;
5945}
5946_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005947rm -f conftest.$ac_objext
5948if { (ac_try="$ac_compile"
5949case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952esac
5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5971 { ac_try='test -s conftest.$ac_objext'
5972 { (case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975esac
5976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_try") 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005981 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982else
5983 echo "$as_me: failed program was:" >&5
5984sed 's/^/| /' conftest.$ac_ext >&5
5985
5986
Reid Spencera773bd52006-08-04 18:18:08 +00005987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005988
Reid Spencera773bd52006-08-04 18:18:08 +00005989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005991
Reid Spencera773bd52006-08-04 18:18:08 +00005992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994
Reid Spencera773bd52006-08-04 18:18:08 +00005995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 ac_c_werror_flag=$ac_save_c_werror_flag
5997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005998{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5999echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006000if test "$ac_test_CFLAGS" = set; then
6001 CFLAGS=$ac_save_CFLAGS
6002elif test $ac_cv_prog_cc_g = yes; then
6003 if test "$GCC" = yes; then
6004 CFLAGS="-g -O2"
6005 else
6006 CFLAGS="-g"
6007 fi
6008else
6009 if test "$GCC" = yes; then
6010 CFLAGS="-O2"
6011 else
6012 CFLAGS=
6013 fi
6014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6016echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6017if test "${ac_cv_prog_cc_c89+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006019else
6020 ac_cv_prog_cc_c89=no
6021ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006027/* end confdefs.h. */
6028#include <stdarg.h>
6029#include <stdio.h>
6030#include <sys/types.h>
6031#include <sys/stat.h>
6032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6033struct buf { int x; };
6034FILE * (*rcsopen) (struct buf *, struct stat *, int);
6035static char *e (p, i)
6036 char **p;
6037 int i;
6038{
6039 return p[i];
6040}
6041static char *f (char * (*g) (char **, int), char **p, ...)
6042{
6043 char *s;
6044 va_list v;
6045 va_start (v,p);
6046 s = g (p, va_arg (v,int));
6047 va_end (v);
6048 return s;
6049}
6050
6051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6052 function prototypes and stuff, but not '\xHH' hex character constants.
6053 These don't provoke an error unfortunately, instead are silently treated
6054 as 'x'. The following induces an error, until -std is added to get
6055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6056 array size at least. It's necessary to write '\x00'==0 to get something
6057 that's true only with -std. */
6058int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6059
6060/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6061 inside strings and character constants. */
6062#define FOO(x) 'x'
6063int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6064
6065int test (int i, double x);
6066struct s1 {int (*f) (int a);};
6067struct s2 {int (*f) (double a);};
6068int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6069int argc;
6070char **argv;
6071int
6072main ()
6073{
6074return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6075 ;
6076 return 0;
6077}
6078_ACEOF
6079for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6081do
6082 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 rm -f conftest.$ac_objext
6084if { (ac_try="$ac_compile"
6085case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6098 { (case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101esac
6102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_try") 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111esac
6112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_try") 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006117 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006118else
6119 echo "$as_me: failed program was:" >&5
6120sed 's/^/| /' conftest.$ac_ext >&5
6121
6122
Reid Spencera773bd52006-08-04 18:18:08 +00006123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006124
Reid Spencera773bd52006-08-04 18:18:08 +00006125rm -f core conftest.err conftest.$ac_objext
6126 test "x$ac_cv_prog_cc_c89" != "xno" && break
6127done
6128rm -f conftest.$ac_ext
6129CC=$ac_save_CC
6130
6131fi
6132# AC_CACHE_VAL
6133case "x$ac_cv_prog_cc_c89" in
6134 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006135 { echo "$as_me:$LINENO: result: none needed" >&5
6136echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006137 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006138 { echo "$as_me:$LINENO: result: unsupported" >&5
6139echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006140 *)
6141 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6143echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006144esac
6145
6146
6147ac_ext=c
6148ac_cpp='$CPP $CPPFLAGS'
6149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152
6153ac_ext=cpp
6154ac_cpp='$CXXCPP $CPPFLAGS'
6155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6158if test -z "$CXX"; then
6159 if test -n "$CCC"; then
6160 CXX=$CCC
6161 else
6162 if test -n "$ac_tool_prefix"; then
6163 for ac_prog in g++
6164 do
6165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6166set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169if test "${ac_cv_prog_CXX+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006171else
6172 if test -n "$CXX"; then
6173 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6174else
6175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176for as_dir in $PATH
6177do
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 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 +00006182 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006184 break 2
6185 fi
6186done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187done
Reid Spencera773bd52006-08-04 18:18:08 +00006188IFS=$as_save_IFS
6189
6190fi
6191fi
6192CXX=$ac_cv_prog_CXX
6193if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006194 { echo "$as_me:$LINENO: result: $CXX" >&5
6195echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006197 { echo "$as_me:$LINENO: result: no" >&5
6198echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006199fi
6200
6201
6202 test -n "$CXX" && break
6203 done
6204fi
6205if test -z "$CXX"; then
6206 ac_ct_CXX=$CXX
6207 for ac_prog in g++
6208do
6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
6210set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006211{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006215else
6216 if test -n "$ac_ct_CXX"; then
6217 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 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 +00006226 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006228 break 2
6229 fi
6230done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231done
Reid Spencera773bd52006-08-04 18:18:08 +00006232IFS=$as_save_IFS
6233
6234fi
6235fi
6236ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6237if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006238 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6239echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006241 { echo "$as_me:$LINENO: result: no" >&5
6242echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006243fi
6244
6245
6246 test -n "$ac_ct_CXX" && break
6247done
6248
6249 if test "x$ac_ct_CXX" = x; then
6250 CXX="g++"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6255whose name does not start with the host triplet. If you think this
6256configuration is useful to you, please write to autoconf@gnu.org." >&5
6257echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6258whose name does not start with the host triplet. If you think this
6259configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006260ac_tool_warned=yes ;;
6261esac
6262 CXX=$ac_ct_CXX
6263 fi
6264fi
6265
6266 fi
6267fi
6268# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6270ac_compiler=`set X $ac_compile; echo $2`
6271{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006272case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006278 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }
6281{ (ac_try="$ac_compiler -v >&5"
6282case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285esac
6286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_compiler -v >&5") 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }
6291{ (ac_try="$ac_compiler -V >&5"
6292case "(($ac_try" in
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6295esac
6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297 (eval "$ac_compiler -V >&5") 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6303echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6304if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h. */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006312/* end confdefs.h. */
6313
6314int
6315main ()
6316{
6317#ifndef __GNUC__
6318 choke me
6319#endif
6320
6321 ;
6322 return 0;
6323}
6324_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325rm -f conftest.$ac_objext
6326if { (ac_try="$ac_compile"
6327case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6330esac
6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compile") 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343esac
6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353esac
6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_try") 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006359 ac_compiler_gnu=yes
6360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361 echo "$as_me: failed program was:" >&5
6362sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006365fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366
Reid Spencera773bd52006-08-04 18:18:08 +00006367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6369
6370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6372echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6373GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006374ac_test_CXXFLAGS=${CXXFLAGS+set}
6375ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006376{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6377echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6378if test "${ac_cv_prog_cxx_g+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006380else
6381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6382 ac_cxx_werror_flag=yes
6383 ac_cv_prog_cxx_g=no
6384 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385 cat >conftest.$ac_ext <<_ACEOF
6386/* confdefs.h. */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006390/* end confdefs.h. */
6391
6392int
6393main ()
6394{
6395
6396 ;
6397 return 0;
6398}
6399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400rm -f conftest.$ac_objext
6401if { (ac_try="$ac_compile"
6402case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6415 { (case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
6419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_try") 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428esac
6429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_try") 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006434 ac_cv_prog_cxx_g=yes
6435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436 echo "$as_me: failed program was:" >&5
6437sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 CXXFLAGS=""
6440 cat >conftest.$ac_ext <<_ACEOF
6441/* confdefs.h. */
6442_ACEOF
6443cat confdefs.h >>conftest.$ac_ext
6444cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006445/* end confdefs.h. */
6446
6447int
6448main ()
6449{
6450
6451 ;
6452 return 0;
6453}
6454_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455rm -f conftest.$ac_objext
6456if { (ac_try="$ac_compile"
6457case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460esac
6461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6470 { (case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_try") 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483esac
6484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_try") 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 :
Torok Edwin871384f2010-01-26 08:50:50 +00006490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006491 echo "$as_me: failed program was:" >&5
6492sed 's/^/| /' conftest.$ac_ext >&5
6493
6494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006495 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006496 cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h. */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006501/* end confdefs.h. */
6502
6503int
6504main ()
6505{
6506
6507 ;
6508 return 0;
6509}
6510_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006511rm -f conftest.$ac_objext
6512if { (ac_try="$ac_compile"
6513case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516esac
6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_compile") 2>conftest.er1
6519 ac_status=$?
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6535 { ac_try='test -s conftest.$ac_objext'
6536 { (case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6539esac
6540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_try") 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006545 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546else
6547 echo "$as_me: failed program was:" >&5
6548sed 's/^/| /' conftest.$ac_ext >&5
6549
6550
Reid Spencera773bd52006-08-04 18:18:08 +00006551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006552
Reid Spencera773bd52006-08-04 18:18:08 +00006553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006555
Reid Spencera773bd52006-08-04 18:18:08 +00006556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558
Reid Spencera773bd52006-08-04 18:18:08 +00006559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006562{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6563echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006564if test "$ac_test_CXXFLAGS" = set; then
6565 CXXFLAGS=$ac_save_CXXFLAGS
6566elif test $ac_cv_prog_cxx_g = yes; then
6567 if test "$GXX" = yes; then
6568 CXXFLAGS="-g -O2"
6569 else
6570 CXXFLAGS="-g"
6571 fi
6572else
6573 if test "$GXX" = yes; then
6574 CXXFLAGS="-O2"
6575 else
6576 CXXFLAGS=
6577 fi
6578fi
6579ac_ext=c
6580ac_cpp='$CPP $CPPFLAGS'
6581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584
Reid Spencera773bd52006-08-04 18:18:08 +00006585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006586{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6587echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6588if test "${lt_cv_path_NM+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006590else
6591 if test -n "$NM"; then
6592 # Let the user override the test.
6593 lt_cv_path_NM="$NM"
6594else
6595 lt_nm_to_check="${ac_tool_prefix}nm"
6596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6597 lt_nm_to_check="$lt_nm_to_check nm"
6598 fi
6599 for lt_tmp_nm in $lt_nm_to_check; do
6600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6602 IFS="$lt_save_ifs"
6603 test -z "$ac_dir" && ac_dir=.
6604 tmp_nm="$ac_dir/$lt_tmp_nm"
6605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6606 # Check to see if the nm accepts a BSD-compat flag.
6607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6608 # nm: unknown option "B" ignored
6609 # Tru64's nm complains that /dev/null is an invalid object file
6610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6611 */dev/null* | *'Invalid file or object type'*)
6612 lt_cv_path_NM="$tmp_nm -B"
6613 break
6614 ;;
6615 *)
6616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6617 */dev/null*)
6618 lt_cv_path_NM="$tmp_nm -p"
6619 break
6620 ;;
6621 *)
6622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6623 continue # so that we can try to find one that supports BSD flags
6624 ;;
6625 esac
6626 ;;
6627 esac
6628 fi
6629 done
6630 IFS="$lt_save_ifs"
6631 done
6632 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6633fi
6634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6636echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006637NM="$lt_cv_path_NM"
6638
6639
6640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006641{ echo "$as_me:$LINENO: checking for GNU make" >&5
6642echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6643if test "${llvm_cv_gnu_make_command+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006645else
6646 llvm_cv_gnu_make_command=''
6647 for a in "$MAKE" make gmake gnumake ; do
6648 if test -z "$a" ; then continue ; fi ;
6649 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6650 then
6651 llvm_cv_gnu_make_command=$a ;
6652 break;
6653 fi
6654 done
6655fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006656{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6657echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006658 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6659 ifGNUmake='' ;
6660 else
6661 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6663echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006664 fi
6665
6666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006667{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6668echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006669LN_S=$as_ln_s
6670if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671 { echo "$as_me:$LINENO: result: yes" >&5
6672echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006674 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6675echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006676fi
6677
6678# Extract the first word of "cmp", so it can be a program name with args.
6679set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682if test "${ac_cv_path_CMP+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006684else
6685 case $CMP in
6686 [\\/]* | ?:[\\/]*)
6687 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6688 ;;
6689 *)
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 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 +00006697 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006699 break 2
6700 fi
6701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702done
Reid Spencera773bd52006-08-04 18:18:08 +00006703IFS=$as_save_IFS
6704
6705 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6706 ;;
6707esac
6708fi
6709CMP=$ac_cv_path_CMP
6710if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711 { echo "$as_me:$LINENO: result: $CMP" >&5
6712echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006714 { echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006716fi
6717
6718
6719# Extract the first word of "cp", so it can be a program name with args.
6720set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723if test "${ac_cv_path_CP+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006725else
6726 case $CP in
6727 [\\/]* | ?:[\\/]*)
6728 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6729 ;;
6730 *)
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 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 +00006738 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006740 break 2
6741 fi
6742done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743done
Reid Spencera773bd52006-08-04 18:18:08 +00006744IFS=$as_save_IFS
6745
6746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6747 ;;
6748esac
6749fi
6750CP=$ac_cv_path_CP
6751if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752 { echo "$as_me:$LINENO: result: $CP" >&5
6753echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755 { echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006757fi
6758
6759
6760# Extract the first word of "date", so it can be a program name with args.
6761set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764if test "${ac_cv_path_DATE+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006766else
6767 case $DATE in
6768 [\\/]* | ?:[\\/]*)
6769 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6770 ;;
6771 *)
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 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 +00006779 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006781 break 2
6782 fi
6783done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784done
Reid Spencera773bd52006-08-04 18:18:08 +00006785IFS=$as_save_IFS
6786
6787 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6788 ;;
6789esac
6790fi
6791DATE=$ac_cv_path_DATE
6792if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793 { echo "$as_me:$LINENO: result: $DATE" >&5
6794echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796 { echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006798fi
6799
6800
6801# Extract the first word of "find", so it can be a program name with args.
6802set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6805if test "${ac_cv_path_FIND+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006807else
6808 case $FIND in
6809 [\\/]* | ?:[\\/]*)
6810 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6811 ;;
6812 *)
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 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 +00006820 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006822 break 2
6823 fi
6824done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825done
Reid Spencera773bd52006-08-04 18:18:08 +00006826IFS=$as_save_IFS
6827
6828 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6829 ;;
6830esac
6831fi
6832FIND=$ac_cv_path_FIND
6833if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006834 { echo "$as_me:$LINENO: result: $FIND" >&5
6835echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006837 { echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006839fi
6840
6841
6842# Extract the first word of "grep", so it can be a program name with args.
6843set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846if test "${ac_cv_path_GREP+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006848else
6849 case $GREP in
6850 [\\/]* | ?:[\\/]*)
6851 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6852 ;;
6853 *)
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 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 +00006861 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006863 break 2
6864 fi
6865done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866done
Reid Spencera773bd52006-08-04 18:18:08 +00006867IFS=$as_save_IFS
6868
6869 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6870 ;;
6871esac
6872fi
6873GREP=$ac_cv_path_GREP
6874if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875 { echo "$as_me:$LINENO: result: $GREP" >&5
6876echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006878 { echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006880fi
6881
6882
6883# Extract the first word of "mkdir", so it can be a program name with args.
6884set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887if test "${ac_cv_path_MKDIR+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006889else
6890 case $MKDIR in
6891 [\\/]* | ?:[\\/]*)
6892 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6893 ;;
6894 *)
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 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 +00006902 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006904 break 2
6905 fi
6906done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907done
Reid Spencera773bd52006-08-04 18:18:08 +00006908IFS=$as_save_IFS
6909
6910 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6911 ;;
6912esac
6913fi
6914MKDIR=$ac_cv_path_MKDIR
6915if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6917echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006919 { echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006921fi
6922
6923
6924# Extract the first word of "mv", so it can be a program name with args.
6925set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928if test "${ac_cv_path_MV+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006930else
6931 case $MV in
6932 [\\/]* | ?:[\\/]*)
6933 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6934 ;;
6935 *)
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 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 +00006943 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006945 break 2
6946 fi
6947done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006948done
Reid Spencera773bd52006-08-04 18:18:08 +00006949IFS=$as_save_IFS
6950
6951 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6952 ;;
6953esac
6954fi
6955MV=$ac_cv_path_MV
6956if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 { echo "$as_me:$LINENO: result: $MV" >&5
6958echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006962fi
6963
6964
6965if test -n "$ac_tool_prefix"; then
6966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6967set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970if test "${ac_cv_prog_RANLIB+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006972else
6973 if test -n "$RANLIB"; then
6974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6975else
6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 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 +00006983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006985 break 2
6986 fi
6987done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988done
Reid Spencera773bd52006-08-04 18:18:08 +00006989IFS=$as_save_IFS
6990
6991fi
6992fi
6993RANLIB=$ac_cv_prog_RANLIB
6994if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6996echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 { echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007000fi
7001
7002
7003fi
7004if test -z "$ac_cv_prog_RANLIB"; then
7005 ac_ct_RANLIB=$RANLIB
7006 # Extract the first word of "ranlib", so it can be a program name with args.
7007set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007012else
7013 if test -n "$ac_ct_RANLIB"; then
7014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 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 +00007023 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007025 break 2
7026 fi
7027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007028done
Reid Spencera773bd52006-08-04 18:18:08 +00007029IFS=$as_save_IFS
7030
7031fi
7032fi
7033ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7034if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007035 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7036echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007038 { echo "$as_me:$LINENO: result: no" >&5
7039echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007040fi
7041
7042 if test "x$ac_ct_RANLIB" = x; then
7043 RANLIB=":"
7044 else
7045 case $cross_compiling:$ac_tool_warned in
7046yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7048whose name does not start with the host triplet. If you think this
7049configuration is useful to you, please write to autoconf@gnu.org." >&5
7050echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7051whose name does not start with the host triplet. If you think this
7052configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007053ac_tool_warned=yes ;;
7054esac
7055 RANLIB=$ac_ct_RANLIB
7056 fi
7057else
7058 RANLIB="$ac_cv_prog_RANLIB"
7059fi
7060
Torok Edwin871384f2010-01-26 08:50:50 +00007061if test -n "$ac_tool_prefix"; then
7062 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7063set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066if test "${ac_cv_prog_AR+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007068else
7069 if test -n "$AR"; then
7070 ac_cv_prog_AR="$AR" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 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 +00007079 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007081 break 2
7082 fi
7083done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084done
Torok Edwin871384f2010-01-26 08:50:50 +00007085IFS=$as_save_IFS
7086
7087fi
7088fi
7089AR=$ac_cv_prog_AR
7090if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091 { echo "$as_me:$LINENO: result: $AR" >&5
7092echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007094 { echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007096fi
7097
7098
7099fi
7100if test -z "$ac_cv_prog_AR"; then
7101 ac_ct_AR=$AR
7102 # Extract the first word of "ar", so it can be a program name with args.
7103set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007108else
7109 if test -n "$ac_ct_AR"; then
7110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 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 +00007119 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007121 break 2
7122 fi
7123done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007124done
Torok Edwin871384f2010-01-26 08:50:50 +00007125IFS=$as_save_IFS
7126
7127fi
7128fi
7129ac_ct_AR=$ac_cv_prog_ac_ct_AR
7130if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7132echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134 { echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007136fi
7137
7138 if test "x$ac_ct_AR" = x; then
7139 AR="false"
7140 else
7141 case $cross_compiling:$ac_tool_warned in
7142yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7144whose name does not start with the host triplet. If you think this
7145configuration is useful to you, please write to autoconf@gnu.org." >&5
7146echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7147whose name does not start with the host triplet. If you think this
7148configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007149ac_tool_warned=yes ;;
7150esac
7151 AR=$ac_ct_AR
7152 fi
7153else
7154 AR="$ac_cv_prog_AR"
7155fi
7156
Reid Spencera773bd52006-08-04 18:18:08 +00007157# Extract the first word of "rm", so it can be a program name with args.
7158set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161if test "${ac_cv_path_RM+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007163else
7164 case $RM in
7165 [\\/]* | ?:[\\/]*)
7166 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7167 ;;
7168 *)
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 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 +00007176 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007178 break 2
7179 fi
7180done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181done
Reid Spencera773bd52006-08-04 18:18:08 +00007182IFS=$as_save_IFS
7183
7184 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7185 ;;
7186esac
7187fi
7188RM=$ac_cv_path_RM
7189if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190 { echo "$as_me:$LINENO: result: $RM" >&5
7191echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007192else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 { echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007195fi
7196
7197
7198# Extract the first word of "sed", so it can be a program name with args.
7199set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202if test "${ac_cv_path_SED+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007204else
7205 case $SED in
7206 [\\/]* | ?:[\\/]*)
7207 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7208 ;;
7209 *)
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 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 +00007217 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007219 break 2
7220 fi
7221done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222done
Reid Spencera773bd52006-08-04 18:18:08 +00007223IFS=$as_save_IFS
7224
7225 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7226 ;;
7227esac
7228fi
7229SED=$ac_cv_path_SED
7230if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007231 { echo "$as_me:$LINENO: result: $SED" >&5
7232echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234 { echo "$as_me:$LINENO: result: no" >&5
7235echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007236fi
7237
7238
7239# Extract the first word of "tar", so it can be a program name with args.
7240set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243if test "${ac_cv_path_TAR+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007245else
7246 case $TAR in
7247 [\\/]* | ?:[\\/]*)
7248 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7249 ;;
7250 *)
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 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 +00007258 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007260 break 2
7261 fi
7262done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263done
Reid Spencera773bd52006-08-04 18:18:08 +00007264IFS=$as_save_IFS
7265
7266 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7267 ;;
7268esac
7269fi
7270TAR=$ac_cv_path_TAR
7271if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007272 { echo "$as_me:$LINENO: result: $TAR" >&5
7273echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007274else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275 { echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007277fi
7278
7279
7280# Extract the first word of "pwd", so it can be a program name with args.
7281set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284if test "${ac_cv_path_BINPWD+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007286else
7287 case $BINPWD in
7288 [\\/]* | ?:[\\/]*)
7289 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7290 ;;
7291 *)
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 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 +00007299 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007301 break 2
7302 fi
7303done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304done
Reid Spencera773bd52006-08-04 18:18:08 +00007305IFS=$as_save_IFS
7306
7307 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7308 ;;
7309esac
7310fi
7311BINPWD=$ac_cv_path_BINPWD
7312if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7314echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007315else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316 { echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007318fi
7319
7320
7321
7322# Extract the first word of "Graphviz", so it can be a program name with args.
7323set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007328else
7329 case $GRAPHVIZ in
7330 [\\/]* | ?:[\\/]*)
7331 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7332 ;;
7333 *)
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 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 +00007341 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007343 break 2
7344 fi
7345done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346done
Reid Spencera773bd52006-08-04 18:18:08 +00007347IFS=$as_save_IFS
7348
7349 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7350 ;;
7351esac
7352fi
7353GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7354if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007355 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7356echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358 { echo "$as_me:$LINENO: result: no" >&5
7359echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007360fi
7361
7362
7363if test "$GRAPHVIZ" != "echo Graphviz" ; then
7364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007365cat >>confdefs.h <<\_ACEOF
7366#define HAVE_GRAPHVIZ 1
7367_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007368
Jeff Cohen28783c32007-01-12 18:22:38 +00007369 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007370 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7371 fi
7372
7373cat >>confdefs.h <<_ACEOF
7374#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7375_ACEOF
7376
7377fi
7378# Extract the first word of "dot", so it can be a program name with args.
7379set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7382if test "${ac_cv_path_DOT+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007384else
7385 case $DOT in
7386 [\\/]* | ?:[\\/]*)
7387 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7388 ;;
7389 *)
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 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 +00007397 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007399 break 2
7400 fi
7401done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402done
Reid Spencera773bd52006-08-04 18:18:08 +00007403IFS=$as_save_IFS
7404
7405 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7406 ;;
7407esac
7408fi
7409DOT=$ac_cv_path_DOT
7410if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411 { echo "$as_me:$LINENO: result: $DOT" >&5
7412echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414 { echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007416fi
7417
7418
7419if test "$DOT" != "echo dot" ; then
7420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421cat >>confdefs.h <<\_ACEOF
7422#define HAVE_DOT 1
7423_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007424
Jeff Cohen28783c32007-01-12 18:22:38 +00007425 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007426 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7427 fi
7428
7429cat >>confdefs.h <<_ACEOF
7430#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7431_ACEOF
7432
7433fi
David Greenef0b9eff2009-07-09 17:16:26 +00007434# Extract the first word of "fdp", so it can be a program name with args.
7435set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438if test "${ac_cv_path_FDP+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007440else
7441 case $FDP in
7442 [\\/]* | ?:[\\/]*)
7443 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7444 ;;
7445 *)
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH
7448do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 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 +00007453 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007455 break 2
7456 fi
7457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458done
David Greenef0b9eff2009-07-09 17:16:26 +00007459IFS=$as_save_IFS
7460
7461 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7462 ;;
7463esac
7464fi
7465FDP=$ac_cv_path_FDP
7466if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 { echo "$as_me:$LINENO: result: $FDP" >&5
7468echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470 { echo "$as_me:$LINENO: result: no" >&5
7471echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007472fi
7473
7474
7475if test "$FDP" != "echo fdp" ; then
7476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477cat >>confdefs.h <<\_ACEOF
7478#define HAVE_FDP 1
7479_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007480
7481 if test "$llvm_cv_os_type" = "MingW" ; then
7482 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7483 fi
7484
7485cat >>confdefs.h <<_ACEOF
7486#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7487_ACEOF
7488
7489fi
7490# Extract the first word of "neato", so it can be a program name with args.
7491set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494if test "${ac_cv_path_NEATO+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007496else
7497 case $NEATO in
7498 [\\/]* | ?:[\\/]*)
7499 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7500 ;;
7501 *)
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 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 +00007509 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007511 break 2
7512 fi
7513done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514done
David Greenef0b9eff2009-07-09 17:16:26 +00007515IFS=$as_save_IFS
7516
7517 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7518 ;;
7519esac
7520fi
7521NEATO=$ac_cv_path_NEATO
7522if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523 { echo "$as_me:$LINENO: result: $NEATO" >&5
7524echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007525else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526 { echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007528fi
7529
7530
7531if test "$NEATO" != "echo neato" ; then
7532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007533cat >>confdefs.h <<\_ACEOF
7534#define HAVE_NEATO 1
7535_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007536
7537 if test "$llvm_cv_os_type" = "MingW" ; then
7538 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7539 fi
7540
7541cat >>confdefs.h <<_ACEOF
7542#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7543_ACEOF
7544
7545fi
7546# Extract the first word of "twopi", so it can be a program name with args.
7547set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550if test "${ac_cv_path_TWOPI+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007552else
7553 case $TWOPI in
7554 [\\/]* | ?:[\\/]*)
7555 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7556 ;;
7557 *)
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
7560do
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 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 +00007565 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007567 break 2
7568 fi
7569done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570done
David Greenef0b9eff2009-07-09 17:16:26 +00007571IFS=$as_save_IFS
7572
7573 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7574 ;;
7575esac
7576fi
7577TWOPI=$ac_cv_path_TWOPI
7578if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7580echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007582 { echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007584fi
7585
7586
7587if test "$TWOPI" != "echo twopi" ; then
7588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589cat >>confdefs.h <<\_ACEOF
7590#define HAVE_TWOPI 1
7591_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007592
7593 if test "$llvm_cv_os_type" = "MingW" ; then
7594 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7595 fi
7596
7597cat >>confdefs.h <<_ACEOF
7598#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7599_ACEOF
7600
7601fi
7602# Extract the first word of "circo", so it can be a program name with args.
7603set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606if test "${ac_cv_path_CIRCO+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007608else
7609 case $CIRCO in
7610 [\\/]* | ?:[\\/]*)
7611 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7612 ;;
7613 *)
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 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 +00007621 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007623 break 2
7624 fi
7625done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007626done
David Greenef0b9eff2009-07-09 17:16:26 +00007627IFS=$as_save_IFS
7628
7629 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7630 ;;
7631esac
7632fi
7633CIRCO=$ac_cv_path_CIRCO
7634if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7636echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007638 { echo "$as_me:$LINENO: result: no" >&5
7639echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007640fi
7641
7642
7643if test "$CIRCO" != "echo circo" ; then
7644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007645cat >>confdefs.h <<\_ACEOF
7646#define HAVE_CIRCO 1
7647_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007648
7649 if test "$llvm_cv_os_type" = "MingW" ; then
7650 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7651 fi
7652
7653cat >>confdefs.h <<_ACEOF
7654#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7655_ACEOF
7656
7657fi
Reid Spencera773bd52006-08-04 18:18:08 +00007658for ac_prog in gv gsview32
7659do
7660 # Extract the first word of "$ac_prog", so it can be a program name with args.
7661set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664if test "${ac_cv_path_GV+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007666else
7667 case $GV in
7668 [\\/]* | ?:[\\/]*)
7669 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7670 ;;
7671 *)
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 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 +00007679 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007681 break 2
7682 fi
7683done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684done
Reid Spencera773bd52006-08-04 18:18:08 +00007685IFS=$as_save_IFS
7686
7687 ;;
7688esac
7689fi
7690GV=$ac_cv_path_GV
7691if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692 { echo "$as_me:$LINENO: result: $GV" >&5
7693echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007695 { echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007697fi
7698
7699
7700 test -n "$GV" && break
7701done
7702test -n "$GV" || GV="echo gv"
7703
7704if test "$GV" != "echo gv" ; then
7705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706cat >>confdefs.h <<\_ACEOF
7707#define HAVE_GV 1
7708_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007709
Jeff Cohen28783c32007-01-12 18:22:38 +00007710 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007711 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7712 fi
7713
7714cat >>confdefs.h <<_ACEOF
7715#define LLVM_PATH_GV "$GV${EXEEXT}"
7716_ACEOF
7717
7718fi
7719# Extract the first word of "dotty", so it can be a program name with args.
7720set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723if test "${ac_cv_path_DOTTY+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007725else
7726 case $DOTTY in
7727 [\\/]* | ?:[\\/]*)
7728 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7729 ;;
7730 *)
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 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 +00007738 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007740 break 2
7741 fi
7742done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743done
Reid Spencera773bd52006-08-04 18:18:08 +00007744IFS=$as_save_IFS
7745
7746 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7747 ;;
7748esac
7749fi
7750DOTTY=$ac_cv_path_DOTTY
7751if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7753echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755 { echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007757fi
7758
7759
7760if test "$DOTTY" != "echo dotty" ; then
7761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007762cat >>confdefs.h <<\_ACEOF
7763#define HAVE_DOTTY 1
7764_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007765
Jeff Cohen28783c32007-01-12 18:22:38 +00007766 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007767 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7768 fi
7769
7770cat >>confdefs.h <<_ACEOF
7771#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7772_ACEOF
7773
7774fi
7775
7776
7777# Extract the first word of "perl", so it can be a program name with args.
7778set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7781if test "${ac_cv_path_PERL+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007783else
7784 case $PERL in
7785 [\\/]* | ?:[\\/]*)
7786 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7787 ;;
7788 *)
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 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 +00007796 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007798 break 2
7799 fi
7800done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801done
Reid Spencera773bd52006-08-04 18:18:08 +00007802IFS=$as_save_IFS
7803
7804 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7805 ;;
7806esac
7807fi
7808PERL=$ac_cv_path_PERL
7809if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007810 { echo "$as_me:$LINENO: result: $PERL" >&5
7811echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007813 { echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007815fi
7816
7817
7818if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007819 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7820echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007821 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007822 { echo "$as_me:$LINENO: result: yes" >&5
7823echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007824 else
7825 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826 { echo "$as_me:$LINENO: result: not found" >&5
7827echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007828 fi
7829fi
7830
7831
7832if test x"$PERL" = xnone; then
7833 HAVE_PERL=0
7834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7836echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7837 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007838else
7839 HAVE_PERL=1
7840
7841fi
7842
7843# Find a good install program. We prefer a C program (faster),
7844# so one script is as good as another. But avoid the broken or
7845# incompatible versions:
7846# SysV /etc/install, /usr/sbin/install
7847# SunOS /usr/etc/install
7848# IRIX /sbin/install
7849# AIX /bin/install
7850# AmigaOS /C/install, which installs bootblocks on floppy discs
7851# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7852# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7854# OS/2's system install, which has a completely different semantic
7855# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7857echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007858if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859if test "${ac_cv_path_install+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007861else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867 # Account for people who put trailing slashes in PATH elements.
7868case $as_dir/ in
7869 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007870 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007871 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007872 /usr/ucb/* ) ;;
7873 *)
7874 # OSF1 and SCO ODT 3.0 have their own names for install.
7875 # Don't use installbsd from OSF since it installs stuff as root
7876 # by default.
7877 for ac_prog in ginstall scoinst install; do
7878 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879 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 +00007880 if test $ac_prog = install &&
7881 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7882 # AIX install. It has an incompatible calling convention.
7883 :
7884 elif test $ac_prog = install &&
7885 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7886 # program-specific install script used by HP pwplus--don't use.
7887 :
7888 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007889 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7890 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007891 fi
7892 fi
7893 done
7894 done
7895 ;;
7896esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007897done
Reid Spencera773bd52006-08-04 18:18:08 +00007898IFS=$as_save_IFS
7899
7900
7901fi
7902 if test "${ac_cv_path_install+set}" = set; then
7903 INSTALL=$ac_cv_path_install
7904 else
7905 # As a last resort, use the slow shell script. Don't cache a
7906 # value for INSTALL within a source directory, because that will
7907 # break other packages using the cache if that directory is
7908 # removed, or if the value is a relative name.
7909 INSTALL=$ac_install_sh
7910 fi
7911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7913echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007914
7915# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7916# It thinks the first close brace ends the variable substitution.
7917test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7918
7919test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7920
7921test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7922
7923
7924# Extract the first word of "bzip2", so it can be a program name with args.
7925set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7928if test "${ac_cv_path_BZIP2+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007930else
7931 case $BZIP2 in
7932 [\\/]* | ?:[\\/]*)
7933 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7934 ;;
7935 *)
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 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 +00007943 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007945 break 2
7946 fi
7947done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007948done
Reid Spencera773bd52006-08-04 18:18:08 +00007949IFS=$as_save_IFS
7950
Reid Spencera773bd52006-08-04 18:18:08 +00007951 ;;
7952esac
7953fi
7954BZIP2=$ac_cv_path_BZIP2
7955if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007956 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7957echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007959 { echo "$as_me:$LINENO: result: no" >&5
7960echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007961fi
7962
7963
7964# Extract the first word of "doxygen", so it can be a program name with args.
7965set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7968if test "${ac_cv_path_DOXYGEN+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007970else
7971 case $DOXYGEN in
7972 [\\/]* | ?:[\\/]*)
7973 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7974 ;;
7975 *)
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 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 +00007983 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007985 break 2
7986 fi
7987done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007988done
Reid Spencera773bd52006-08-04 18:18:08 +00007989IFS=$as_save_IFS
7990
Reid Spencera773bd52006-08-04 18:18:08 +00007991 ;;
7992esac
7993fi
7994DOXYGEN=$ac_cv_path_DOXYGEN
7995if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007996 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7997echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007999 { echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008001fi
8002
8003
Reid Spencera773bd52006-08-04 18:18:08 +00008004# Extract the first word of "groff", so it can be a program name with args.
8005set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008if test "${ac_cv_path_GROFF+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008010else
8011 case $GROFF in
8012 [\\/]* | ?:[\\/]*)
8013 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8014 ;;
8015 *)
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 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 +00008023 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008025 break 2
8026 fi
8027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008028done
Reid Spencera773bd52006-08-04 18:18:08 +00008029IFS=$as_save_IFS
8030
Reid Spencera773bd52006-08-04 18:18:08 +00008031 ;;
8032esac
8033fi
8034GROFF=$ac_cv_path_GROFF
8035if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036 { echo "$as_me:$LINENO: result: $GROFF" >&5
8037echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008039 { echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008041fi
8042
8043
8044# Extract the first word of "gzip", so it can be a program name with args.
8045set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048if test "${ac_cv_path_GZIP+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008050else
8051 case $GZIP in
8052 [\\/]* | ?:[\\/]*)
8053 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8054 ;;
8055 *)
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 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 +00008063 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008065 break 2
8066 fi
8067done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008068done
Reid Spencera773bd52006-08-04 18:18:08 +00008069IFS=$as_save_IFS
8070
Reid Spencera773bd52006-08-04 18:18:08 +00008071 ;;
8072esac
8073fi
8074GZIP=$ac_cv_path_GZIP
8075if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008076 { echo "$as_me:$LINENO: result: $GZIP" >&5
8077echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008078else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008079 { echo "$as_me:$LINENO: result: no" >&5
8080echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008081fi
8082
8083
8084# Extract the first word of "pod2html", so it can be a program name with args.
8085set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8088if test "${ac_cv_path_POD2HTML+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008090else
8091 case $POD2HTML in
8092 [\\/]* | ?:[\\/]*)
8093 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8094 ;;
8095 *)
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 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 +00008103 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008105 break 2
8106 fi
8107done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008108done
Reid Spencera773bd52006-08-04 18:18:08 +00008109IFS=$as_save_IFS
8110
Reid Spencera773bd52006-08-04 18:18:08 +00008111 ;;
8112esac
8113fi
8114POD2HTML=$ac_cv_path_POD2HTML
8115if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008116 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8117echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008119 { echo "$as_me:$LINENO: result: no" >&5
8120echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008121fi
8122
8123
8124# Extract the first word of "pod2man", so it can be a program name with args.
8125set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8128if test "${ac_cv_path_POD2MAN+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008130else
8131 case $POD2MAN in
8132 [\\/]* | ?:[\\/]*)
8133 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8134 ;;
8135 *)
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 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 +00008143 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008145 break 2
8146 fi
8147done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008148done
Reid Spencera773bd52006-08-04 18:18:08 +00008149IFS=$as_save_IFS
8150
Reid Spencera773bd52006-08-04 18:18:08 +00008151 ;;
8152esac
8153fi
8154POD2MAN=$ac_cv_path_POD2MAN
8155if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008156 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8157echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 { echo "$as_me:$LINENO: result: no" >&5
8160echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008161fi
8162
8163
8164# Extract the first word of "runtest", so it can be a program name with args.
8165set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168if test "${ac_cv_path_RUNTEST+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008170else
8171 case $RUNTEST in
8172 [\\/]* | ?:[\\/]*)
8173 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8174 ;;
8175 *)
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177for as_dir in $PATH
8178do
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 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 +00008183 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008185 break 2
8186 fi
8187done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008188done
Reid Spencera773bd52006-08-04 18:18:08 +00008189IFS=$as_save_IFS
8190
Reid Spencera773bd52006-08-04 18:18:08 +00008191 ;;
8192esac
8193fi
8194RUNTEST=$ac_cv_path_RUNTEST
8195if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8197echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008199 { echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008201fi
8202
8203
8204
8205no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008206{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8207echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008208
8209# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008211 withval=$with_tclinclude; with_tclinclude=${withval}
8212else
8213 with_tclinclude=''
8214fi
8215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216if test "${ac_cv_path_tclsh+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008218else
8219
8220if test x"${with_tclinclude}" != x ; then
8221 if test -f ${with_tclinclude}/tclsh ; then
8222 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8223 elif test -f ${with_tclinclude}/src/tclsh ; then
8224 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8225 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008226 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8227echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8228 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008229 fi
8230fi
Torok Edwin871384f2010-01-26 08:50:50 +00008231fi
8232
Reid Spencera773bd52006-08-04 18:18:08 +00008233
8234if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008235 { echo "$as_me:$LINENO: result: none" >&5
8236echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008237 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
8238do
8239 # Extract the first word of "$ac_prog", so it can be a program name with args.
8240set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8243if test "${ac_cv_path_TCLSH+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008245else
8246 case $TCLSH in
8247 [\\/]* | ?:[\\/]*)
8248 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8249 ;;
8250 *)
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252for as_dir in $PATH
8253do
8254 IFS=$as_save_IFS
8255 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 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 +00008258 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008260 break 2
8261 fi
8262done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263done
Reid Spencera773bd52006-08-04 18:18:08 +00008264IFS=$as_save_IFS
8265
8266 ;;
8267esac
8268fi
8269TCLSH=$ac_cv_path_TCLSH
8270if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008271 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8272echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008273else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008274 { echo "$as_me:$LINENO: result: no" >&5
8275echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008276fi
8277
8278
8279 test -n "$TCLSH" && break
8280done
8281
8282 if test x"${TCLSH}" = x ; then
8283 ac_cv_path_tclsh='';
8284 else
8285 ac_cv_path_tclsh="${TCLSH}";
8286 fi
8287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008288 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8289echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008290 TCLSH="${ac_cv_path_tclsh}"
8291
8292fi
8293
Reid Spencera773bd52006-08-04 18:18:08 +00008294# Extract the first word of "zip", so it can be a program name with args.
8295set dummy zip; 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_ZIP+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008300else
8301 case $ZIP in
8302 [\\/]* | ?:[\\/]*)
8303 ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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
8324ZIP=$ac_cv_path_ZIP
8325if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 { echo "$as_me:$LINENO: result: $ZIP" >&5
8327echo "${ECHO_T}$ZIP" >&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
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008334for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008335do
8336 # Extract the first word of "$ac_prog", so it can be a program name with args.
8337set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8340if test "${ac_cv_path_OCAMLC+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008342else
8343 case $OCAMLC in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8346 ;;
8347 *)
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349for as_dir in $PATH
8350do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 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 +00008355 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008357 break 2
8358 fi
8359done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008361IFS=$as_save_IFS
8362
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008363 ;;
8364esac
8365fi
8366OCAMLC=$ac_cv_path_OCAMLC
8367if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8369echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008371 { echo "$as_me:$LINENO: result: no" >&5
8372echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008373fi
8374
8375
Gordon Henriksene7072162008-03-07 18:20:01 +00008376 test -n "$OCAMLC" && break
8377done
8378
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008379for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008380do
8381 # Extract the first word of "$ac_prog", so it can be a program name with args.
8382set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8385if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008387else
8388 case $OCAMLOPT in
8389 [\\/]* | ?:[\\/]*)
8390 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8391 ;;
8392 *)
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 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 +00008400 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008402 break 2
8403 fi
8404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008406IFS=$as_save_IFS
8407
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008408 ;;
8409esac
8410fi
8411OCAMLOPT=$ac_cv_path_OCAMLOPT
8412if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8414echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416 { echo "$as_me:$LINENO: result: no" >&5
8417echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008418fi
8419
8420
Gordon Henriksene7072162008-03-07 18:20:01 +00008421 test -n "$OCAMLOPT" && break
8422done
8423
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008424for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008425do
8426 # Extract the first word of "$ac_prog", so it can be a program name with args.
8427set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8430if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008432else
8433 case $OCAMLDEP in
8434 [\\/]* | ?:[\\/]*)
8435 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8436 ;;
8437 *)
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 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 +00008445 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008447 break 2
8448 fi
8449done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008450done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008451IFS=$as_save_IFS
8452
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008453 ;;
8454esac
8455fi
8456OCAMLDEP=$ac_cv_path_OCAMLDEP
8457if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8459echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008460else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008461 { echo "$as_me:$LINENO: result: no" >&5
8462echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008463fi
8464
8465
Gordon Henriksene7072162008-03-07 18:20:01 +00008466 test -n "$OCAMLDEP" && break
8467done
8468
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008469for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008470do
8471 # Extract the first word of "$ac_prog", so it can be a program name with args.
8472set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8475if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008477else
8478 case $OCAMLDOC in
8479 [\\/]* | ?:[\\/]*)
8480 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8481 ;;
8482 *)
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484for as_dir in $PATH
8485do
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 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 +00008490 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008492 break 2
8493 fi
8494done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008495done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008496IFS=$as_save_IFS
8497
8498 ;;
8499esac
8500fi
8501OCAMLDOC=$ac_cv_path_OCAMLDOC
8502if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008503 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8504echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008505else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008506 { echo "$as_me:$LINENO: result: no" >&5
8507echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008508fi
8509
8510
8511 test -n "$OCAMLDOC" && break
8512done
8513
Torok Edwincc499a42008-10-22 09:56:27 +00008514for ac_prog in gas as
8515do
8516 # Extract the first word of "$ac_prog", so it can be a program name with args.
8517set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8520if test "${ac_cv_path_GAS+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008522else
8523 case $GAS in
8524 [\\/]* | ?:[\\/]*)
8525 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8526 ;;
8527 *)
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529for as_dir in $PATH
8530do
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 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 +00008535 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008537 break 2
8538 fi
8539done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008540done
Torok Edwincc499a42008-10-22 09:56:27 +00008541IFS=$as_save_IFS
8542
8543 ;;
8544esac
8545fi
8546GAS=$ac_cv_path_GAS
8547if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548 { echo "$as_me:$LINENO: result: $GAS" >&5
8549echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008550else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008551 { echo "$as_me:$LINENO: result: no" >&5
8552echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008553fi
8554
8555
8556 test -n "$GAS" && break
8557done
8558
Reid Spencera773bd52006-08-04 18:18:08 +00008559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008560{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8561echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8562if test "${llvm_cv_link_use_r+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008564else
8565 ac_ext=c
8566ac_cpp='$CPP $CPPFLAGS'
8567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8569ac_compiler_gnu=$ac_cv_c_compiler_gnu
8570
8571 oldcflags="$CFLAGS"
8572 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008573 cat >conftest.$ac_ext <<_ACEOF
8574/* confdefs.h. */
8575_ACEOF
8576cat confdefs.h >>conftest.$ac_ext
8577cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008578/* end confdefs.h. */
8579
8580int
8581main ()
8582{
8583int main() { return 0; }
8584 ;
8585 return 0;
8586}
8587_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588rm -f conftest.$ac_objext conftest$ac_exeext
8589if { (ac_try="$ac_link"
8590case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593esac
8594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_link") 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } &&
8602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606esac
8607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest$ac_exeext'
8613 { (case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
8617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_try") 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008622 llvm_cv_link_use_r=yes
8623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008624 echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008629
Bill Wendlingebcceee2009-04-18 11:20:33 +00008630rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008631 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008632 CFLAGS="$oldcflags"
8633 ac_ext=c
8634ac_cpp='$CPP $CPPFLAGS'
8635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637ac_compiler_gnu=$ac_cv_c_compiler_gnu
8638
8639
8640fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008641{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8642echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008643if test "$llvm_cv_link_use_r" = yes ; then
8644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008645cat >>confdefs.h <<\_ACEOF
8646#define HAVE_LINK_R 1
8647_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008648
8649 fi
8650
8651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008652{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8653echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8654if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008656else
8657 ac_ext=c
8658ac_cpp='$CPP $CPPFLAGS'
8659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8661ac_compiler_gnu=$ac_cv_c_compiler_gnu
8662
8663 oldcflags="$CFLAGS"
8664 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008665 cat >conftest.$ac_ext <<_ACEOF
8666/* confdefs.h. */
8667_ACEOF
8668cat confdefs.h >>conftest.$ac_ext
8669cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008670/* end confdefs.h. */
8671
8672int
8673main ()
8674{
8675int main() { return 0; }
8676 ;
8677 return 0;
8678}
8679_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680rm -f conftest.$ac_objext conftest$ac_exeext
8681if { (ac_try="$ac_link"
8682case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685esac
8686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_link") 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695 { (case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_try") 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest$ac_exeext'
8705 { (case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708esac
8709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_try") 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008714 llvm_cv_link_use_export_dynamic=yes
8715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008716 echo "$as_me: failed program was:" >&5
8717sed 's/^/| /' conftest.$ac_ext >&5
8718
8719 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008721
Bill Wendlingebcceee2009-04-18 11:20:33 +00008722rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008723 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008724 CFLAGS="$oldcflags"
8725 ac_ext=c
8726ac_cpp='$CPP $CPPFLAGS'
8727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8729ac_compiler_gnu=$ac_cv_c_compiler_gnu
8730
8731
8732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008733{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8734echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008735if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008737cat >>confdefs.h <<\_ACEOF
8738#define HAVE_LINK_EXPORT_DYNAMIC 1
8739_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008740
8741 fi
8742
8743
Reid Spencera773bd52006-08-04 18:18:08 +00008744
8745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008746{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8747echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8748if test "${ac_cv_c_const+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008751 cat >conftest.$ac_ext <<_ACEOF
8752/* confdefs.h. */
8753_ACEOF
8754cat confdefs.h >>conftest.$ac_ext
8755cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008756/* end confdefs.h. */
8757
8758int
8759main ()
8760{
8761/* FIXME: Include the comments suggested by Paul. */
8762#ifndef __cplusplus
8763 /* Ultrix mips cc rejects this. */
8764 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008765 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008766 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008767 char const *const *ccp;
8768 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008769 /* NEC SVR4.0.2 mips cc rejects this. */
8770 struct point {int x, y;};
8771 static struct point const zero = {0,0};
8772 /* AIX XL C 1.02.0.0 rejects this.
8773 It does not let you subtract one const X* pointer from another in
8774 an arm of an if-expression whose if-part is not a constant
8775 expression */
8776 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008777 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008778 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008779 ++ccp;
8780 p = (char**) ccp;
8781 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008782 { /* SCO 3.2v4 cc rejects this. */
8783 char *t;
8784 char const *s = 0 ? (char *) 0 : (char const *) 0;
8785
8786 *t++ = 0;
8787 if (s) return 0;
8788 }
8789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8790 int x[] = {25, 17};
8791 const int *foo = &x[0];
8792 ++foo;
8793 }
8794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8795 typedef const int *iptr;
8796 iptr p = 0;
8797 ++p;
8798 }
8799 { /* AIX XL C 1.02.0.0 rejects this saying
8800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8801 struct s { int j; const int *ap[3]; };
8802 struct s *b; b->j = 5;
8803 }
8804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8805 const int foo = 10;
8806 if (!foo) return 0;
8807 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008808 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008809#endif
8810
8811 ;
8812 return 0;
8813}
8814_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008815rm -f conftest.$ac_objext
8816if { (ac_try="$ac_compile"
8817case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820esac
8821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_compile") 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833esac
8834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest.$ac_objext'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843esac
8844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008849 ac_cv_c_const=yes
8850else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008851 echo "$as_me: failed program was:" >&5
8852sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008855fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008856
Reid Spencera773bd52006-08-04 18:18:08 +00008857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008859{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8860echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008861if test $ac_cv_c_const = no; then
8862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008863cat >>confdefs.h <<\_ACEOF
8864#define const
8865_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008866
8867fi
8868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008869
8870
8871
8872
8873
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008874ac_header_dirent=no
8875for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008876 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8877{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8878echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008882 cat >conftest.$ac_ext <<_ACEOF
8883/* confdefs.h. */
8884_ACEOF
8885cat confdefs.h >>conftest.$ac_ext
8886cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008887/* end confdefs.h. */
8888#include <sys/types.h>
8889#include <$ac_hdr>
8890
8891int
8892main ()
8893{
8894if ((DIR *) 0)
8895return 0;
8896 ;
8897 return 0;
8898}
8899_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008900rm -f conftest.$ac_objext
8901if { (ac_try="$ac_compile"
8902case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8915 { (case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918esac
8919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_try") 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try='test -s conftest.$ac_objext'
8925 { (case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_try") 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008934 eval "$as_ac_Header=yes"
8935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008936 echo "$as_me: failed program was:" >&5
8937sed 's/^/| /' conftest.$ac_ext >&5
8938
8939 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008941
Reid Spencera773bd52006-08-04 18:18:08 +00008942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008944ac_res=`eval echo '${'$as_ac_Header'}'`
8945 { echo "$as_me:$LINENO: result: $ac_res" >&5
8946echo "${ECHO_T}$ac_res" >&6; }
8947if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008948 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008949#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008950_ACEOF
8951
8952ac_header_dirent=$ac_hdr; break
8953fi
8954
8955done
8956# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8957if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8959echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8960if test "${ac_cv_search_opendir+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008962else
8963 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008964cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h. */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008969/* end confdefs.h. */
8970
Reid Spencera773bd52006-08-04 18:18:08 +00008971/* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008974#ifdef __cplusplus
8975extern "C"
8976#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008977char opendir ();
8978int
8979main ()
8980{
Reid Spencera773bd52006-08-04 18:18:08 +00008981return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008982 ;
8983 return 0;
8984}
8985_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008986for ac_lib in '' dir; do
8987 if test -z "$ac_lib"; then
8988 ac_res="none required"
8989 else
8990 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008992 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008993 rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (ac_try="$ac_link"
8995case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8998esac
8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_link") 2>conftest.er1
9001 ac_status=$?
9002 grep -v '^ *+' conftest.er1 >conftest.err
9003 rm -f conftest.er1
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021esac
9022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_try") 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009027 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009028else
9029 echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009034
Bill Wendlingebcceee2009-04-18 11:20:33 +00009035rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009036 conftest$ac_exeext
9037 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009038 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009039fi
John Criswell7a73b802003-06-30 21:59:07 +00009040done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009041if test "${ac_cv_search_opendir+set}" = set; then
9042 :
Reid Spencera773bd52006-08-04 18:18:08 +00009043else
9044 ac_cv_search_opendir=no
9045fi
9046rm conftest.$ac_ext
9047LIBS=$ac_func_search_save_LIBS
9048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009049{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9050echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009051ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009052if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009054
Reid Spencera773bd52006-08-04 18:18:08 +00009055fi
9056
9057else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009058 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9059echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9060if test "${ac_cv_search_opendir+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009062else
9063 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009064cat >conftest.$ac_ext <<_ACEOF
9065/* confdefs.h. */
9066_ACEOF
9067cat confdefs.h >>conftest.$ac_ext
9068cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009069/* end confdefs.h. */
9070
9071/* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9074#ifdef __cplusplus
9075extern "C"
9076#endif
9077char opendir ();
9078int
9079main ()
9080{
9081return opendir ();
9082 ;
9083 return 0;
9084}
9085_ACEOF
9086for ac_lib in '' x; do
9087 if test -z "$ac_lib"; then
9088 ac_res="none required"
9089 else
9090 ac_res=-l$ac_lib
9091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9092 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009093 rm -f conftest.$ac_objext conftest$ac_exeext
9094if { (ac_try="$ac_link"
9095case "(($ac_try" in
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9098esac
9099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_link") 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9117 { ac_try='test -s conftest$ac_exeext'
9118 { (case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121esac
9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_try") 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009127 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009128else
9129 echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132
Reid Spencera773bd52006-08-04 18:18:08 +00009133fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009134
Bill Wendlingebcceee2009-04-18 11:20:33 +00009135rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009136 conftest$ac_exeext
9137 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009138 break
9139fi
9140done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009141if test "${ac_cv_search_opendir+set}" = set; then
9142 :
Reid Spencera773bd52006-08-04 18:18:08 +00009143else
9144 ac_cv_search_opendir=no
9145fi
9146rm conftest.$ac_ext
9147LIBS=$ac_func_search_save_LIBS
9148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009149{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9150echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009151ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009152if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9154
9155fi
9156
9157fi
John Criswell7a73b802003-06-30 21:59:07 +00009158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009159
John Criswell7a73b802003-06-30 21:59:07 +00009160for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009161do
9162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9168fi
9169ac_res=`eval echo '${'$as_ac_Header'}'`
9170 { echo "$as_me:$LINENO: result: $ac_res" >&5
9171echo "${ECHO_T}$ac_res" >&6; }
9172else
9173 # Is the header compilable?
9174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9176cat >conftest.$ac_ext <<_ACEOF
9177/* confdefs.h. */
9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h. */
9182$ac_includes_default
9183#include <$ac_header>
9184_ACEOF
9185rm -f conftest.$ac_objext
9186if { (ac_try="$ac_compile"
9187case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190esac
9191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_compile") 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9200 { (case "(($ac_try" in
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9203esac
9204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205 (eval "$ac_try") 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213esac
9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 ac_header_compiler=yes
9220else
9221 echo "$as_me: failed program was:" >&5
9222sed 's/^/| /' conftest.$ac_ext >&5
9223
9224 ac_header_compiler=no
9225fi
9226
9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9229echo "${ECHO_T}$ac_header_compiler" >&6; }
9230
9231# Is the header present?
9232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9234cat >conftest.$ac_ext <<_ACEOF
9235/* confdefs.h. */
9236_ACEOF
9237cat confdefs.h >>conftest.$ac_ext
9238cat >>conftest.$ac_ext <<_ACEOF
9239/* end confdefs.h. */
9240#include <$ac_header>
9241_ACEOF
9242if { (ac_try="$ac_cpp conftest.$ac_ext"
9243case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9246esac
9247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } >/dev/null; then
9255 if test -s conftest.err; then
9256 ac_cpp_err=$ac_c_preproc_warn_flag
9257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9258 else
9259 ac_cpp_err=
9260 fi
9261else
9262 ac_cpp_err=yes
9263fi
9264if test -z "$ac_cpp_err"; then
9265 ac_header_preproc=yes
9266else
9267 echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 ac_header_preproc=no
9271fi
9272
9273rm -f conftest.err conftest.$ac_ext
9274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9275echo "${ECHO_T}$ac_header_preproc" >&6; }
9276
9277# So? What about this header?
9278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9279 yes:no: )
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9284 ac_header_preproc=yes
9285 ;;
9286 no:yes:* )
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9299 ( cat <<\_ASBOX
9300## ----------------------------------- ##
9301## Report this to llvmbugs@cs.uiuc.edu ##
9302## ----------------------------------- ##
9303_ASBOX
9304 ) | sed "s/^/$as_me: WARNING: /" >&2
9305 ;;
9306esac
9307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312 eval "$as_ac_Header=\$ac_header_preproc"
9313fi
9314ac_res=`eval echo '${'$as_ac_Header'}'`
9315 { echo "$as_me:$LINENO: result: $ac_res" >&5
9316echo "${ECHO_T}$ac_res" >&6; }
9317
9318fi
9319if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009320 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009322_ACEOF
9323
9324fi
9325
9326done
9327
Reid Spencera773bd52006-08-04 18:18:08 +00009328# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009329if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009330 enableval=$enable_ltdl_install;
9331fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009334
9335
9336if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337 INSTALL_LTDL_TRUE=
9338 INSTALL_LTDL_FALSE='#'
9339else
9340 INSTALL_LTDL_TRUE='#'
9341 INSTALL_LTDL_FALSE=
9342fi
9343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009344
9345
9346if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009347 CONVENIENCE_LTDL_TRUE=
9348 CONVENIENCE_LTDL_FALSE='#'
9349else
9350 CONVENIENCE_LTDL_TRUE='#'
9351 CONVENIENCE_LTDL_FALSE=
9352fi
9353
9354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009355{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9356echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357library_names_spec=
9358libname_spec='lib$name'
9359soname_spec=
9360shrext_cmds=".so"
9361postinstall_cmds=
9362postuninstall_cmds=
9363finish_cmds=
9364finish_eval=
9365shlibpath_var=
9366shlibpath_overrides_runpath=unknown
9367version_type=none
9368dynamic_linker="$host_os ld.so"
9369sys_lib_dlsearch_path_spec="/lib /usr/lib"
9370if test "$GCC" = yes; then
9371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9372 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9373 # if the path contains ";" then we assume it to be the separator
9374 # otherwise default to the standard path separator (i.e. ":") - it is
9375 # assumed that no part of a normal pathname contains ";" but that should
9376 # okay in the real world where ";" in dirpaths is itself problematic.
9377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9378 else
9379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9380 fi
9381else
9382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9383fi
9384need_lib_prefix=unknown
9385hardcode_into_libs=no
9386
9387# when you set need_version to no, make sure it does not cause -set_version
9388# flags to be left without arguments
9389need_version=unknown
9390
9391case $host_os in
9392aix3*)
9393 version_type=linux
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9395 shlibpath_var=LIBPATH
9396
9397 # AIX 3 has no versioning support, so we append a major version to the name.
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 ;;
9400
9401aix4* | aix5*)
9402 version_type=linux
9403 need_lib_prefix=no
9404 need_version=no
9405 hardcode_into_libs=yes
9406 if test "$host_cpu" = ia64; then
9407 # AIX 5 supports IA64
9408 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 else
9411 # With GCC up to 2.95.x, collect2 would create an import file
9412 # for dependence libraries. The import file would start with
9413 # the line `#! .'. This would cause the generated library to
9414 # depend on `.', always an invalid library. This was fixed in
9415 # development snapshots of GCC prior to 3.0.
9416 case $host_os in
9417 aix4 | aix4.[01] | aix4.[01].*)
9418 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9419 echo ' yes '
9420 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9421 :
9422 else
9423 can_build_shared=no
9424 fi
9425 ;;
9426 esac
9427 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9428 # soname into executable. Probably we can add versioning support to
9429 # collect2, so additional links can be useful in future.
9430 if test "$aix_use_runtimelinking" = yes; then
9431 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9432 # instead of lib<name>.a to let people know that these are not
9433 # typical AIX shared libraries.
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9435 else
9436 # We preserve .a as extension for shared libraries through AIX4.2
9437 # and later when we are not doing run time linking.
9438 library_names_spec='${libname}${release}.a $libname.a'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 fi
9441 shlibpath_var=LIBPATH
9442 fi
9443 ;;
9444
9445amigaos*)
9446 library_names_spec='$libname.ixlibrary $libname.a'
9447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9448 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'
9449 ;;
9450
9451beos*)
9452 library_names_spec='${libname}${shared_ext}'
9453 dynamic_linker="$host_os ld.so"
9454 shlibpath_var=LIBRARY_PATH
9455 ;;
9456
9457bsdi[45]*)
9458 version_type=linux
9459 need_version=no
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9466 # the default ld.so.conf also contains /usr/contrib/lib and
9467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9468 # libtool to hard-code these into programs
9469 ;;
9470
9471cygwin* | mingw* | pw32*)
9472 version_type=windows
9473 shrext_cmds=".dll"
9474 need_version=no
9475 need_lib_prefix=no
9476
9477 case $GCC,$host_os in
9478 yes,cygwin* | yes,mingw* | yes,pw32*)
9479 library_names_spec='$libname.dll.a'
9480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9481 postinstall_cmds='base_file=`basename \${file}`~
9482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9483 dldir=$destdir/`dirname \$dlpath`~
9484 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009485 $install_prog $dir/$dlname \$dldir/$dlname~
9486 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9488 dlpath=$dir/\$dldll~
9489 $rm \$dlpath'
9490 shlibpath_overrides_runpath=yes
9491
9492 case $host_os in
9493 cygwin*)
9494 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9495 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9496 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9497 ;;
9498 mingw*)
9499 # MinGW DLLs use traditional 'lib' prefix
9500 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9501 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9502 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9503 # It is most probably a Windows format PATH printed by
9504 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9505 # path with ; separators, and with drive letters. We can handle the
9506 # drive letters (cygwin fileutils understands them), so leave them,
9507 # especially as we might pass files found there to a mingw objdump,
9508 # which wouldn't understand a cygwinified path. Ahh.
9509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9510 else
9511 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9512 fi
9513 ;;
9514 pw32*)
9515 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009516 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 +00009517 ;;
9518 esac
9519 ;;
9520
9521 *)
9522 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9523 ;;
9524 esac
9525 dynamic_linker='Win32 ld.exe'
9526 # FIXME: first we should search . and the directory the executable is in
9527 shlibpath_var=PATH
9528 ;;
9529
9530darwin* | rhapsody*)
9531 dynamic_linker="$host_os dyld"
9532 version_type=darwin
9533 need_lib_prefix=no
9534 need_version=no
9535 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9536 soname_spec='${libname}${release}${major}$shared_ext'
9537 shlibpath_overrides_runpath=yes
9538 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009539 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009540 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9541 if test "$GCC" = yes; then
9542 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"`
9543 else
9544 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9545 fi
9546 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9547 ;;
9548
9549dgux*)
9550 version_type=linux
9551 need_lib_prefix=no
9552 need_version=no
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 ;;
9557
9558freebsd1*)
9559 dynamic_linker=no
9560 ;;
9561
9562kfreebsd*-gnu)
9563 version_type=linux
9564 need_lib_prefix=no
9565 need_version=no
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 shlibpath_overrides_runpath=no
9570 hardcode_into_libs=yes
9571 dynamic_linker='GNU ld.so'
9572 ;;
9573
Reid Spencera773bd52006-08-04 18:18:08 +00009574freebsd* | dragonfly*)
9575 # DragonFly does not have aout. When/if they implement a new
9576 # versioning mechanism, adjust this.
9577 if test -x /usr/bin/objformat; then
9578 objformat=`/usr/bin/objformat`
9579 else
9580 case $host_os in
9581 freebsd[123]*) objformat=aout ;;
9582 *) objformat=elf ;;
9583 esac
9584 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585 version_type=freebsd-$objformat
9586 case $version_type in
9587 freebsd-elf*)
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9589 need_version=no
9590 need_lib_prefix=no
9591 ;;
9592 freebsd-*)
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9594 need_version=yes
9595 ;;
9596 esac
9597 shlibpath_var=LD_LIBRARY_PATH
9598 case $host_os in
9599 freebsd2*)
9600 shlibpath_overrides_runpath=yes
9601 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009602 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603 shlibpath_overrides_runpath=yes
9604 hardcode_into_libs=yes
9605 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608 shlibpath_overrides_runpath=no
9609 hardcode_into_libs=yes
9610 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009611 freebsd*) # from 4.6 on
9612 shlibpath_overrides_runpath=yes
9613 hardcode_into_libs=yes
9614 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009615 esac
9616 ;;
9617
9618gnu*)
9619 version_type=linux
9620 need_lib_prefix=no
9621 need_version=no
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 shlibpath_var=LD_LIBRARY_PATH
9625 hardcode_into_libs=yes
9626 ;;
9627
9628hpux9* | hpux10* | hpux11*)
9629 # Give a soname corresponding to the major version so that dld.sl refuses to
9630 # link against other versions.
9631 version_type=sunos
9632 need_lib_prefix=no
9633 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009634 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009635 ia64*)
9636 shrext_cmds='.so'
9637 hardcode_into_libs=yes
9638 dynamic_linker="$host_os dld.so"
9639 shlibpath_var=LD_LIBRARY_PATH
9640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 if test "X$HPUX_IA64_MODE" = X32; then
9644 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9645 else
9646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9647 fi
9648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9649 ;;
9650 hppa*64*)
9651 shrext_cmds='.sl'
9652 hardcode_into_libs=yes
9653 dynamic_linker="$host_os dld.sl"
9654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9660 ;;
9661 *)
9662 shrext_cmds='.sl'
9663 dynamic_linker="$host_os dld.sl"
9664 shlibpath_var=SHLIB_PATH
9665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 ;;
9669 esac
9670 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9671 postinstall_cmds='chmod 555 $lib'
9672 ;;
9673
Reid Spencera773bd52006-08-04 18:18:08 +00009674interix3*)
9675 version_type=linux
9676 need_lib_prefix=no
9677 need_version=no
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9681 shlibpath_var=LD_LIBRARY_PATH
9682 shlibpath_overrides_runpath=no
9683 hardcode_into_libs=yes
9684 ;;
9685
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009686irix5* | irix6* | nonstopux*)
9687 case $host_os in
9688 nonstopux*) version_type=nonstopux ;;
9689 *)
9690 if test "$lt_cv_prog_gnu_ld" = yes; then
9691 version_type=linux
9692 else
9693 version_type=irix
9694 fi ;;
9695 esac
9696 need_lib_prefix=no
9697 need_version=no
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9700 case $host_os in
9701 irix5* | nonstopux*)
9702 libsuff= shlibsuff=
9703 ;;
9704 *)
9705 case $LD in # libtool.m4 will add one of these switches to LD
9706 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9707 libsuff= shlibsuff= libmagic=32-bit;;
9708 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9709 libsuff=32 shlibsuff=N32 libmagic=N32;;
9710 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9711 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9712 *) libsuff= shlibsuff= libmagic=never-match;;
9713 esac
9714 ;;
9715 esac
9716 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9717 shlibpath_overrides_runpath=no
9718 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9719 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9720 hardcode_into_libs=yes
9721 ;;
9722
9723# No shared lib support for Linux oldld, aout, or coff.
9724linux*oldld* | linux*aout* | linux*coff*)
9725 dynamic_linker=no
9726 ;;
9727
9728# This must be Linux ELF.
9729linux*)
9730 version_type=linux
9731 need_lib_prefix=no
9732 need_version=no
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9736 shlibpath_var=LD_LIBRARY_PATH
9737 shlibpath_overrides_runpath=no
9738 # This implies no fast_install, which is unacceptable.
9739 # Some rework will be needed to allow for fast_install
9740 # before this can be enabled.
9741 hardcode_into_libs=yes
9742
9743 # Append ld.so.conf contents to the search path
9744 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009745 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 +00009746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9747 fi
9748
9749 # We used to test for /lib/ld.so.1 and disable shared libraries on
9750 # powerpc, because MkLinux only supported shared libraries with the
9751 # GNU dynamic linker. Since this was broken with cross compilers,
9752 # most powerpc-linux boxes support dynamic linking these days and
9753 # people can always --disable-shared, the test was removed, and we
9754 # assume the GNU/Linux dynamic linker is in use.
9755 dynamic_linker='GNU/Linux ld.so'
9756 ;;
9757
9758knetbsd*-gnu)
9759 version_type=linux
9760 need_lib_prefix=no
9761 need_version=no
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=no
9766 hardcode_into_libs=yes
9767 dynamic_linker='GNU ld.so'
9768 ;;
9769
9770netbsd*)
9771 version_type=sunos
9772 need_lib_prefix=no
9773 need_version=no
9774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9777 dynamic_linker='NetBSD (a.out) ld.so'
9778 else
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 dynamic_linker='NetBSD ld.elf_so'
9782 fi
9783 shlibpath_var=LD_LIBRARY_PATH
9784 shlibpath_overrides_runpath=yes
9785 hardcode_into_libs=yes
9786 ;;
9787
9788newsos6)
9789 version_type=linux
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 shlibpath_overrides_runpath=yes
9793 ;;
9794
9795nto-qnx*)
9796 version_type=linux
9797 need_lib_prefix=no
9798 need_version=no
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 shlibpath_overrides_runpath=yes
9803 ;;
9804
9805openbsd*)
9806 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009807 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9810 case $host_os in
9811 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9812 *) need_version=no ;;
9813 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9818 case $host_os in
9819 openbsd2.[89] | openbsd2.[89].*)
9820 shlibpath_overrides_runpath=no
9821 ;;
9822 *)
9823 shlibpath_overrides_runpath=yes
9824 ;;
9825 esac
9826 else
9827 shlibpath_overrides_runpath=yes
9828 fi
9829 ;;
9830
9831os2*)
9832 libname_spec='$name'
9833 shrext_cmds=".dll"
9834 need_lib_prefix=no
9835 library_names_spec='$libname${shared_ext} $libname.a'
9836 dynamic_linker='OS/2 ld.exe'
9837 shlibpath_var=LIBPATH
9838 ;;
9839
9840osf3* | osf4* | osf5*)
9841 version_type=osf
9842 need_lib_prefix=no
9843 need_version=no
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9849 ;;
9850
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851solaris*)
9852 version_type=linux
9853 need_lib_prefix=no
9854 need_version=no
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 shlibpath_overrides_runpath=yes
9859 hardcode_into_libs=yes
9860 # ldd complains unless libraries are executable
9861 postinstall_cmds='chmod +x $lib'
9862 ;;
9863
9864sunos4*)
9865 version_type=sunos
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 shlibpath_overrides_runpath=yes
9870 if test "$with_gnu_ld" = yes; then
9871 need_lib_prefix=no
9872 fi
9873 need_version=yes
9874 ;;
9875
Reid Spencera773bd52006-08-04 18:18:08 +00009876sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009877 version_type=linux
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 soname_spec='${libname}${release}${shared_ext}$major'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 case $host_vendor in
9882 sni)
9883 shlibpath_overrides_runpath=no
9884 need_lib_prefix=no
9885 export_dynamic_flag_spec='${wl}-Blargedynsym'
9886 runpath_var=LD_RUN_PATH
9887 ;;
9888 siemens)
9889 need_lib_prefix=no
9890 ;;
9891 motorola)
9892 need_lib_prefix=no
9893 need_version=no
9894 shlibpath_overrides_runpath=no
9895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9896 ;;
9897 esac
9898 ;;
9899
9900sysv4*MP*)
9901 if test -d /usr/nec ;then
9902 version_type=linux
9903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9904 soname_spec='$libname${shared_ext}.$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 fi
9907 ;;
9908
Reid Spencera773bd52006-08-04 18:18:08 +00009909sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9910 version_type=freebsd-elf
9911 need_lib_prefix=no
9912 need_version=no
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 hardcode_into_libs=yes
9917 if test "$with_gnu_ld" = yes; then
9918 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9919 shlibpath_overrides_runpath=no
9920 else
9921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9922 shlibpath_overrides_runpath=yes
9923 case $host_os in
9924 sco3.2v5*)
9925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9926 ;;
9927 esac
9928 fi
9929 sys_lib_dlsearch_path_spec='/usr/lib'
9930 ;;
9931
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932uts4*)
9933 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
9937 ;;
9938
9939*)
9940 dynamic_linker=no
9941 ;;
9942esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009943{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9944echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945test "$dynamic_linker" = no && can_build_shared=no
9946
Reid Spencera773bd52006-08-04 18:18:08 +00009947variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9948if test "$GCC" = yes; then
9949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9950fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951
Reid Spencera773bd52006-08-04 18:18:08 +00009952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009953{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9954echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9955if test "${libltdl_cv_shlibext+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009957else
9958
9959module=yes
9960eval libltdl_cv_shlibext=$shrext_cmds
9961
9962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009963{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9964echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965if test -n "$libltdl_cv_shlibext"; then
9966
9967cat >>confdefs.h <<_ACEOF
9968#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9969_ACEOF
9970
9971fi
9972
9973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009974{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9975echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9976if test "${libltdl_cv_shlibpath_var+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009978else
9979 libltdl_cv_shlibpath_var="$shlibpath_var"
9980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009981{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9982echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009983if test -n "$libltdl_cv_shlibpath_var"; then
9984
9985cat >>confdefs.h <<_ACEOF
9986#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9987_ACEOF
9988
9989fi
9990
9991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009992{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9993echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9994if test "${libltdl_cv_sys_search_path+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996else
9997 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009999{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10000echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001if test -n "$libltdl_cv_sys_search_path"; then
10002 sys_search_path=
10003 for dir in $libltdl_cv_sys_search_path; do
10004 if test -z "$sys_search_path"; then
10005 sys_search_path="$dir"
10006 else
10007 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10008 fi
10009 done
10010
10011cat >>confdefs.h <<_ACEOF
10012#define LTDL_SYSSEARCHPATH "$sys_search_path"
10013_ACEOF
10014
10015fi
10016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010017{ echo "$as_me:$LINENO: checking for objdir" >&5
10018echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10019if test "${libltdl_cv_objdir+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021else
10022 libltdl_cv_objdir="$objdir"
10023 if test -n "$objdir"; then
10024 :
10025 else
10026 rm -f .libs 2>/dev/null
10027 mkdir .libs 2>/dev/null
10028 if test -d .libs; then
10029 libltdl_cv_objdir=.libs
10030 else
10031 # MS-DOS does not allow filenames that begin with a dot.
10032 libltdl_cv_objdir=_libs
10033 fi
10034 rmdir .libs 2>/dev/null
10035 fi
10036
10037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010038{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10039echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040
10041cat >>confdefs.h <<_ACEOF
10042#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10043_ACEOF
10044
10045
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046
10047
10048
10049
10050# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010051{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10052echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10053if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055else
10056
10057# These are sane defaults that work on at least a few old systems.
10058# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10059
10060# Character class describing NM global symbol codes.
10061symcode='[BCDEGRST]'
10062
10063# Regexp to match symbols that can be accessed directly from C.
10064sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10065
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066# Transform an extracted symbol line into a proper C declaration
10067lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10068
10069# Transform an extracted symbol line into symbol name and symbol address
10070lt_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'"
10071
10072# Define system-specific variables.
10073case $host_os in
10074aix*)
10075 symcode='[BCDT]'
10076 ;;
10077cygwin* | mingw* | pw32*)
10078 symcode='[ABCDGISTW]'
10079 ;;
10080hpux*) # Its linker distinguishes data from code symbols
10081 if test "$host_cpu" = ia64; then
10082 symcode='[ABCDEGRST]'
10083 fi
10084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10085 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'"
10086 ;;
10087linux*)
10088 if test "$host_cpu" = ia64; then
10089 symcode='[ABCDGIRSTW]'
10090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10091 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'"
10092 fi
10093 ;;
10094irix* | nonstopux*)
10095 symcode='[BCDEGRST]'
10096 ;;
10097osf*)
10098 symcode='[BCDEGQRST]'
10099 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010100solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010101 symcode='[BDRT]'
10102 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010103sco3.2v5*)
10104 symcode='[DT]'
10105 ;;
10106sysv4.2uw2*)
10107 symcode='[DT]'
10108 ;;
10109sysv5* | sco5v6* | unixware* | OpenUNIX*)
10110 symcode='[ABDT]'
10111 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010112sysv4)
10113 symcode='[DFNSTU]'
10114 ;;
10115esac
10116
10117# Handle CRLF in mingw tool chain
10118opt_cr=
10119case $build_os in
10120mingw*)
10121 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10122 ;;
10123esac
10124
10125# If we're using GNU nm, then use its standard symbol codes.
10126case `$NM -V 2>&1` in
10127*GNU* | *'with BFD'*)
10128 symcode='[ABCDGIRSTW]' ;;
10129esac
10130
10131# Try without a prefix undercore, then with it.
10132for ac_symprfx in "" "_"; do
10133
Reid Spencera773bd52006-08-04 18:18:08 +000010134 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10135 symxfrm="\\1 $ac_symprfx\\2 \\2"
10136
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010138 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 +000010139
10140 # Check to see that the pipe works correctly.
10141 pipe_works=no
10142
10143 rm -f conftest*
10144 cat > conftest.$ac_ext <<EOF
10145#ifdef __cplusplus
10146extern "C" {
10147#endif
10148char nm_test_var;
10149void nm_test_func(){}
10150#ifdef __cplusplus
10151}
10152#endif
10153int main(){nm_test_var='a';nm_test_func();return(0);}
10154EOF
10155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157 (eval $ac_compile) 2>&5
10158 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161 # Now try to grab the symbols.
10162 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010163 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 +000010164 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10165 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168 # Try sorting and uniquifying the output.
10169 if sort "$nlist" | uniq > "$nlist"T; then
10170 mv -f "$nlist"T "$nlist"
10171 else
10172 rm -f "$nlist"T
10173 fi
10174
10175 # Make sure that we snagged all the symbols we need.
10176 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10177 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10178 cat <<EOF > conftest.$ac_ext
10179#ifdef __cplusplus
10180extern "C" {
10181#endif
10182
10183EOF
10184 # Now generate the symbol file.
10185 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10186
10187 cat <<EOF >> conftest.$ac_ext
10188#if defined (__STDC__) && __STDC__
10189# define lt_ptr_t void *
10190#else
10191# define lt_ptr_t char *
10192# define const
10193#endif
10194
10195/* The mapping between symbol names and symbols. */
10196const struct {
10197 const char *name;
10198 lt_ptr_t address;
10199}
10200lt_preloaded_symbols[] =
10201{
10202EOF
10203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10204 cat <<\EOF >> conftest.$ac_ext
10205 {0, (lt_ptr_t) 0}
10206};
10207
10208#ifdef __cplusplus
10209}
10210#endif
10211EOF
10212 # Now try linking the two files.
10213 mv conftest.$ac_objext conftstm.$ac_objext
10214 lt_save_LIBS="$LIBS"
10215 lt_save_CFLAGS="$CFLAGS"
10216 LIBS="conftstm.$ac_objext"
10217 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219 (eval $ac_link) 2>&5
10220 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223 pipe_works=yes
10224 fi
10225 LIBS="$lt_save_LIBS"
10226 CFLAGS="$lt_save_CFLAGS"
10227 else
10228 echo "cannot find nm_test_func in $nlist" >&5
10229 fi
10230 else
10231 echo "cannot find nm_test_var in $nlist" >&5
10232 fi
10233 else
10234 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10235 fi
10236 else
10237 echo "$progname: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10239 fi
10240 rm -f conftest* conftst*
10241
10242 # Do not use the global_symbol_pipe unless it works.
10243 if test "$pipe_works" = yes; then
10244 break
10245 else
10246 lt_cv_sys_global_symbol_pipe=
10247 fi
10248done
10249
10250fi
10251
10252if test -z "$lt_cv_sys_global_symbol_pipe"; then
10253 lt_cv_sys_global_symbol_to_cdecl=
10254fi
10255if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010256 { echo "$as_me:$LINENO: result: failed" >&5
10257echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010259 { echo "$as_me:$LINENO: result: ok" >&5
10260echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261fi
10262
10263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010264{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10265echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10266if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268else
10269 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10270 libltdl_cv_preloaded_symbols=yes
10271 else
10272 libltdl_cv_preloaded_symbols=no
10273 fi
10274
10275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010276{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10277echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010280cat >>confdefs.h <<\_ACEOF
10281#define HAVE_PRELOADED_SYMBOLS 1
10282_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283
10284fi
10285
10286LIBADD_DL=
10287
10288ac_ext=c
10289ac_cpp='$CPP $CPPFLAGS'
10290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10292ac_compiler_gnu=$ac_cv_c_compiler_gnu
10293
10294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010295{ echo "$as_me:$LINENO: checking for shl_load" >&5
10296echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10297if test "${ac_cv_func_shl_load+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299else
10300 cat >conftest.$ac_ext <<_ACEOF
10301/* confdefs.h. */
10302_ACEOF
10303cat confdefs.h >>conftest.$ac_ext
10304cat >>conftest.$ac_ext <<_ACEOF
10305/* end confdefs.h. */
10306/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10308#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010310/* System header to define __stub macros and hopefully few prototypes,
10311 which can conflict with char shl_load (); below.
10312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10313 <limits.h> exists even on freestanding compilers. */
10314
10315#ifdef __STDC__
10316# include <limits.h>
10317#else
10318# include <assert.h>
10319#endif
10320
10321#undef shl_load
10322
10323/* Override any GCC internal prototype to avoid an error.
10324 Use char because int might match the return type of a GCC
10325 builtin and then its argument prototype would still apply. */
10326#ifdef __cplusplus
10327extern "C"
10328#endif
10329char shl_load ();
10330/* The GNU C library defines this for functions which it implements
10331 to always fail with ENOSYS. Some functions are actually named
10332 something starting with __ and the normal name is an alias. */
10333#if defined __stub_shl_load || defined __stub___shl_load
10334choke me
10335#endif
10336
10337int
10338main ()
10339{
10340return shl_load ();
10341 ;
10342 return 0;
10343}
10344_ACEOF
10345rm -f conftest.$ac_objext conftest$ac_exeext
10346if { (ac_try="$ac_link"
10347case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350esac
10351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_link") 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363esac
10364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
10370 { (case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373esac
10374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_try") 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 ac_cv_func_shl_load=yes
10380else
10381 echo "$as_me: failed program was:" >&5
10382sed 's/^/| /' conftest.$ac_ext >&5
10383
10384 ac_cv_func_shl_load=no
10385fi
10386
10387rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389fi
10390{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10391echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10392if test $ac_cv_func_shl_load = yes; then
10393
10394cat >>confdefs.h <<\_ACEOF
10395#define HAVE_SHL_LOAD 1
10396_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010397
10398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010399 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10400echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10401if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010403else
10404 ac_check_lib_save_LIBS=$LIBS
10405LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010406cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411/* end confdefs.h. */
10412
Reid Spencera773bd52006-08-04 18:18:08 +000010413/* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416#ifdef __cplusplus
10417extern "C"
10418#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419char shl_load ();
10420int
10421main ()
10422{
Reid Spencera773bd52006-08-04 18:18:08 +000010423return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424 ;
10425 return 0;
10426}
10427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010428rm -f conftest.$ac_objext conftest$ac_exeext
10429if { (ac_try="$ac_link"
10430case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433esac
10434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_link") 2>conftest.er1
10436 ac_status=$?
10437 grep -v '^ *+' conftest.er1 >conftest.err
10438 rm -f conftest.er1
10439 cat conftest.err >&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } &&
10442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10443 { (case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446esac
10447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_try") 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
10453 { (case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456esac
10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_try") 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462 ac_cv_lib_dld_shl_load=yes
10463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010464 echo "$as_me: failed program was:" >&5
10465sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010469
Bill Wendlingebcceee2009-04-18 11:20:33 +000010470rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010471 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472LIBS=$ac_check_lib_save_LIBS
10473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010474{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10475echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10476if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010478cat >>confdefs.h <<\_ACEOF
10479#define HAVE_SHL_LOAD 1
10480_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010481
10482 LIBADD_DL="$LIBADD_DL -ldld"
10483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010484 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10485echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10486if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010488else
10489 ac_check_lib_save_LIBS=$LIBS
10490LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010491cat >conftest.$ac_ext <<_ACEOF
10492/* confdefs.h. */
10493_ACEOF
10494cat confdefs.h >>conftest.$ac_ext
10495cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496/* end confdefs.h. */
10497
Reid Spencera773bd52006-08-04 18:18:08 +000010498/* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501#ifdef __cplusplus
10502extern "C"
10503#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504char dlopen ();
10505int
10506main ()
10507{
Reid Spencera773bd52006-08-04 18:18:08 +000010508return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509 ;
10510 return 0;
10511}
10512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010513rm -f conftest.$ac_objext conftest$ac_exeext
10514if { (ac_try="$ac_link"
10515case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518esac
10519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531esac
10532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541esac
10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_try") 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547 ac_cv_lib_dl_dlopen=yes
10548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010549 echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010554
Bill Wendlingebcceee2009-04-18 11:20:33 +000010555rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010556 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557LIBS=$ac_check_lib_save_LIBS
10558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10560echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10561if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010563cat >>confdefs.h <<\_ACEOF
10564#define HAVE_LIBDL 1
10565_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566
10567 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010569 cat >conftest.$ac_ext <<_ACEOF
10570/* confdefs.h. */
10571_ACEOF
10572cat confdefs.h >>conftest.$ac_ext
10573cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574/* end confdefs.h. */
10575#if HAVE_DLFCN_H
10576# include <dlfcn.h>
10577#endif
10578
10579int
10580main ()
10581{
10582dlopen(0, 0);
10583 ;
10584 return 0;
10585}
10586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010587rm -f conftest.$ac_objext conftest$ac_exeext
10588if { (ac_try="$ac_link"
10589case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592esac
10593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_link") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10602 { (case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605esac
10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_try") 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010622cat >>confdefs.h <<\_ACEOF
10623#define HAVE_LIBDL 1
10624_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625 libltdl_cv_func_dlopen="yes"
10626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010627 echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10631echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10632if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634else
10635 ac_check_lib_save_LIBS=$LIBS
10636LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010637cat >conftest.$ac_ext <<_ACEOF
10638/* confdefs.h. */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010642/* end confdefs.h. */
10643
Reid Spencera773bd52006-08-04 18:18:08 +000010644/* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647#ifdef __cplusplus
10648extern "C"
10649#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650char dlopen ();
10651int
10652main ()
10653{
Reid Spencera773bd52006-08-04 18:18:08 +000010654return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010655 ;
10656 return 0;
10657}
10658_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010659rm -f conftest.$ac_objext conftest$ac_exeext
10660if { (ac_try="$ac_link"
10661case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664esac
10665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_link") 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677esac
10678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest$ac_exeext'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010693 ac_cv_lib_svld_dlopen=yes
10694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010695 echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010700
Bill Wendlingebcceee2009-04-18 11:20:33 +000010701rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010702 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703LIBS=$ac_check_lib_save_LIBS
10704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010705{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10706echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10707if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010709cat >>confdefs.h <<\_ACEOF
10710#define HAVE_LIBDL 1
10711_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712
10713 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010715 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10716echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10717if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719else
10720 ac_check_lib_save_LIBS=$LIBS
10721LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010722cat >conftest.$ac_ext <<_ACEOF
10723/* confdefs.h. */
10724_ACEOF
10725cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010727/* end confdefs.h. */
10728
Reid Spencera773bd52006-08-04 18:18:08 +000010729/* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010732#ifdef __cplusplus
10733extern "C"
10734#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735char dld_link ();
10736int
10737main ()
10738{
Reid Spencera773bd52006-08-04 18:18:08 +000010739return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740 ;
10741 return 0;
10742}
10743_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010744rm -f conftest.$ac_objext conftest$ac_exeext
10745if { (ac_try="$ac_link"
10746case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749esac
10750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_link") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } &&
10758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762esac
10763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest$ac_exeext'
10769 { (case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772esac
10773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_try") 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010778 ac_cv_lib_dld_dld_link=yes
10779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010780 echo "$as_me: failed program was:" >&5
10781sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010785
Bill Wendlingebcceee2009-04-18 11:20:33 +000010786rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010787 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788LIBS=$ac_check_lib_save_LIBS
10789fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010790{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10791echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10792if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010794cat >>confdefs.h <<\_ACEOF
10795#define HAVE_DLD 1
10796_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010797
10798 LIBADD_DL="$LIBADD_DL -ldld"
10799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010800 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10801echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10802if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h. */
10811/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010815/* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char _dyld_func_lookup (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010820#ifdef __STDC__
10821# include <limits.h>
10822#else
10823# include <assert.h>
10824#endif
10825
10826#undef _dyld_func_lookup
10827
10828/* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10831#ifdef __cplusplus
10832extern "C"
10833#endif
10834char _dyld_func_lookup ();
10835/* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10839choke me
10840#endif
10841
10842int
10843main ()
10844{
10845return _dyld_func_lookup ();
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext conftest$ac_exeext
10851if { (ac_try="$ac_link"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest$ac_exeext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_func__dyld_func_lookup=yes
10885else
10886 echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
10889 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010890fi
Reid Spencera773bd52006-08-04 18:18:08 +000010891
Bill Wendlingebcceee2009-04-18 11:20:33 +000010892rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010893 conftest$ac_exeext conftest.$ac_ext
10894fi
10895{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10896echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10897if test $ac_cv_func__dyld_func_lookup = yes; then
10898
10899cat >>confdefs.h <<\_ACEOF
10900#define HAVE_DYLD 1
10901_ACEOF
10902
10903fi
10904
10905
10906fi
10907
10908
10909fi
10910
10911
10912fi
10913
10914rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916
10917fi
10918
10919
10920fi
10921
10922
10923fi
10924
10925
10926if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10927then
10928 lt_save_LIBS="$LIBS"
10929 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010930
10931for ac_func in dlerror
10932do
10933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10934{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10936if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938else
10939 cat >conftest.$ac_ext <<_ACEOF
10940/* confdefs.h. */
10941_ACEOF
10942cat confdefs.h >>conftest.$ac_ext
10943cat >>conftest.$ac_ext <<_ACEOF
10944/* end confdefs.h. */
10945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10947#define $ac_func innocuous_$ac_func
10948
10949/* System header to define __stub macros and hopefully few prototypes,
10950 which can conflict with char $ac_func (); below.
10951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10952 <limits.h> exists even on freestanding compilers. */
10953
10954#ifdef __STDC__
10955# include <limits.h>
10956#else
10957# include <assert.h>
10958#endif
10959
10960#undef $ac_func
10961
10962/* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10965#ifdef __cplusplus
10966extern "C"
10967#endif
10968char $ac_func ();
10969/* The GNU C library defines this for functions which it implements
10970 to always fail with ENOSYS. Some functions are actually named
10971 something starting with __ and the normal name is an alias. */
10972#if defined __stub_$ac_func || defined __stub___$ac_func
10973choke me
10974#endif
10975
10976int
10977main ()
10978{
10979return $ac_func ();
10980 ;
10981 return 0;
10982}
10983_ACEOF
10984rm -f conftest.$ac_objext conftest$ac_exeext
10985if { (ac_try="$ac_link"
10986case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989esac
10990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_link") 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012esac
11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 eval "$as_ac_var=yes"
11019else
11020 echo "$as_me: failed program was:" >&5
11021sed 's/^/| /' conftest.$ac_ext >&5
11022
11023 eval "$as_ac_var=no"
11024fi
11025
11026rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028fi
11029ac_res=`eval echo '${'$as_ac_var'}'`
11030 { echo "$as_me:$LINENO: result: $ac_res" >&5
11031echo "${ECHO_T}$ac_res" >&6; }
11032if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011035_ACEOF
11036
11037fi
11038done
11039
11040 LIBS="$lt_save_LIBS"
11041fi
11042ac_ext=c
11043ac_cpp='$CPP $CPPFLAGS'
11044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11046ac_compiler_gnu=$ac_cv_c_compiler_gnu
11047
11048
11049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011050{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11051echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11052if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054else
11055 ac_cv_sys_symbol_underscore=no
11056 cat > conftest.$ac_ext <<EOF
11057void nm_test_func(){}
11058int main(){nm_test_func;return 0;}
11059EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061 (eval $ac_compile) 2>&5
11062 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065 # Now try to grab the symbols.
11066 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011067 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 +000011068 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11069 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072 # See whether the symbols have a leading underscore.
11073 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11074 ac_cv_sys_symbol_underscore=yes
11075 else
11076 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11077 :
11078 else
11079 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11080 fi
11081 fi
11082 else
11083 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11084 fi
11085 else
11086 echo "configure: failed program was:" >&5
11087 cat conftest.c >&5
11088 fi
11089 rm -rf conftest*
11090
11091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011092{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11093echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011094
11095
11096if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11097 if test x"$libltdl_cv_func_dlopen" = xyes ||
11098 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011099 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11100echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11101if test "${libltdl_cv_need_uscore+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103else
11104 libltdl_cv_need_uscore=unknown
11105 save_LIBS="$LIBS"
11106 LIBS="$LIBS $LIBADD_DL"
11107 if test "$cross_compiling" = yes; then :
11108 libltdl_cv_need_uscore=cross
11109else
11110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11111 lt_status=$lt_dlunknown
11112 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskin407fbdd2010-02-23 20:53:37 +000011113#line 11108 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114#include "confdefs.h"
11115
11116#if HAVE_DLFCN_H
11117#include <dlfcn.h>
11118#endif
11119
11120#include <stdio.h>
11121
11122#ifdef RTLD_GLOBAL
11123# define LT_DLGLOBAL RTLD_GLOBAL
11124#else
11125# ifdef DL_GLOBAL
11126# define LT_DLGLOBAL DL_GLOBAL
11127# else
11128# define LT_DLGLOBAL 0
11129# endif
11130#endif
11131
11132/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11133 find out it does not work in some platform. */
11134#ifndef LT_DLLAZY_OR_NOW
11135# ifdef RTLD_LAZY
11136# define LT_DLLAZY_OR_NOW RTLD_LAZY
11137# else
11138# ifdef DL_LAZY
11139# define LT_DLLAZY_OR_NOW DL_LAZY
11140# else
11141# ifdef RTLD_NOW
11142# define LT_DLLAZY_OR_NOW RTLD_NOW
11143# else
11144# ifdef DL_NOW
11145# define LT_DLLAZY_OR_NOW DL_NOW
11146# else
11147# define LT_DLLAZY_OR_NOW 0
11148# endif
11149# endif
11150# endif
11151# endif
11152#endif
11153
11154#ifdef __cplusplus
11155extern "C" void exit (int);
11156#endif
11157
11158void fnord() { int i=42;}
11159int main ()
11160{
11161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11162 int status = $lt_dlunknown;
11163
11164 if (self)
11165 {
11166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11168 /* dlclose (self); */
11169 }
Reid Spencera773bd52006-08-04 18:18:08 +000011170 else
11171 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172
11173 exit (status);
11174}
11175EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011177 (eval $ac_link) 2>&5
11178 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011181 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011182 lt_status=$?
11183 case x$lt_status in
11184 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11185 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011186 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011187 esac
11188 else :
11189 # compilation failed
11190
11191 fi
11192fi
11193rm -fr conftest*
11194
11195 LIBS="$save_LIBS"
11196
11197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011198{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11199echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200 fi
11201fi
11202
11203if test x"$libltdl_cv_need_uscore" = xyes; then
11204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011205cat >>confdefs.h <<\_ACEOF
11206#define NEED_USCORE 1
11207_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011208
11209fi
11210
11211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011212{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11213echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11214if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011216else
11217 # PORTME does your system automatically load deplibs for dlopen?
11218 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11219 # For now, we just catch OSes we know something about -- in the
11220 # future, we'll try test this programmatically.
11221 libltdl_cv_sys_dlopen_deplibs=unknown
11222 case "$host_os" in
11223 aix3*|aix4.1.*|aix4.2.*)
11224 # Unknown whether this is true for these versions of AIX, but
11225 # we want this `case' here to explicitly catch those versions.
11226 libltdl_cv_sys_dlopen_deplibs=unknown
11227 ;;
11228 aix[45]*)
11229 libltdl_cv_sys_dlopen_deplibs=yes
11230 ;;
11231 darwin*)
11232 # Assuming the user has installed a libdl from somewhere, this is true
11233 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11234 libltdl_cv_sys_dlopen_deplibs=yes
11235 ;;
11236 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11237 # GNU and its variants, using gnu ld.so (Glibc)
11238 libltdl_cv_sys_dlopen_deplibs=yes
11239 ;;
11240 hpux10*|hpux11*)
11241 libltdl_cv_sys_dlopen_deplibs=yes
11242 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011243 interix*)
11244 libltdl_cv_sys_dlopen_deplibs=yes
11245 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246 irix[12345]*|irix6.[01]*)
11247 # Catch all versions of IRIX before 6.2, and indicate that we don't
11248 # know how it worked for any of those versions.
11249 libltdl_cv_sys_dlopen_deplibs=unknown
11250 ;;
11251 irix*)
11252 # The case above catches anything before 6.2, and it's known that
11253 # at 6.2 and later dlopen does load deplibs.
11254 libltdl_cv_sys_dlopen_deplibs=yes
11255 ;;
11256 netbsd*)
11257 libltdl_cv_sys_dlopen_deplibs=yes
11258 ;;
11259 openbsd*)
11260 libltdl_cv_sys_dlopen_deplibs=yes
11261 ;;
11262 osf[1234]*)
11263 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11264 # it did *not* use an RPATH in a shared library to find objects the
11265 # library depends on, so we explictly say `no'.
11266 libltdl_cv_sys_dlopen_deplibs=no
11267 ;;
11268 osf5.0|osf5.0a|osf5.1)
11269 # dlopen *does* load deplibs and with the right loader patch applied
11270 # it even uses RPATH in a shared library to search for shared objects
11271 # that the library depends on, but there's no easy way to know if that
11272 # patch is installed. Since this is the case, all we can really
11273 # say is unknown -- it depends on the patch being installed. If
11274 # it is, this changes to `yes'. Without it, it would be `no'.
11275 libltdl_cv_sys_dlopen_deplibs=unknown
11276 ;;
11277 osf*)
11278 # the two cases above should catch all versions of osf <= 5.1. Read
11279 # the comments above for what we know about them.
11280 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11281 # is used to find them so we can finally say `yes'.
11282 libltdl_cv_sys_dlopen_deplibs=yes
11283 ;;
11284 solaris*)
11285 libltdl_cv_sys_dlopen_deplibs=yes
11286 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11288 libltdl_cv_sys_dlopen_deplibs=yes
11289 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011290 esac
11291
11292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011293{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11294echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011297cat >>confdefs.h <<\_ACEOF
11298#define LTDL_DLOPEN_DEPLIBS 1
11299_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300
11301fi
11302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011303
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011305do
11306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312fi
11313ac_res=`eval echo '${'$as_ac_Header'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315echo "${ECHO_T}$ac_res" >&6; }
11316else
11317 # Is the header compilable?
11318{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11320cat >conftest.$ac_ext <<_ACEOF
11321/* confdefs.h. */
11322_ACEOF
11323cat confdefs.h >>conftest.$ac_ext
11324cat >>conftest.$ac_ext <<_ACEOF
11325/* end confdefs.h. */
11326$ac_includes_default
11327#include <$ac_header>
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (ac_try="$ac_compile"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11344 { (case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347esac
11348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_try") 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; } &&
11353 { ac_try='test -s conftest.$ac_objext'
11354 { (case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_try") 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_header_compiler=yes
11364else
11365 echo "$as_me: failed program was:" >&5
11366sed 's/^/| /' conftest.$ac_ext >&5
11367
11368 ac_header_compiler=no
11369fi
11370
11371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11373echo "${ECHO_T}$ac_header_compiler" >&6; }
11374
11375# Is the header present?
11376{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11378cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
11384#include <$ac_header>
11385_ACEOF
11386if { (ac_try="$ac_cpp conftest.$ac_ext"
11387case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390esac
11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } >/dev/null; then
11399 if test -s conftest.err; then
11400 ac_cpp_err=$ac_c_preproc_warn_flag
11401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11402 else
11403 ac_cpp_err=
11404 fi
11405else
11406 ac_cpp_err=yes
11407fi
11408if test -z "$ac_cpp_err"; then
11409 ac_header_preproc=yes
11410else
11411 echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
11414 ac_header_preproc=no
11415fi
11416
11417rm -f conftest.err conftest.$ac_ext
11418{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11419echo "${ECHO_T}$ac_header_preproc" >&6; }
11420
11421# So? What about this header?
11422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11423 yes:no: )
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11428 ac_header_preproc=yes
11429 ;;
11430 no:yes:* )
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11443 ( cat <<\_ASBOX
11444## ----------------------------------- ##
11445## Report this to llvmbugs@cs.uiuc.edu ##
11446## ----------------------------------- ##
11447_ASBOX
11448 ) | sed "s/^/$as_me: WARNING: /" >&2
11449 ;;
11450esac
11451{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455else
11456 eval "$as_ac_Header=\$ac_header_preproc"
11457fi
11458ac_res=`eval echo '${'$as_ac_Header'}'`
11459 { echo "$as_me:$LINENO: result: $ac_res" >&5
11460echo "${ECHO_T}$ac_res" >&6; }
11461
11462fi
11463if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466_ACEOF
11467
11468fi
11469
11470done
11471
11472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011473{ echo "$as_me:$LINENO: checking for error_t" >&5
11474echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11475if test "${ac_cv_type_error_t+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478 cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h. */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h. */
11484#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485# include <argz.h>
11486#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011487
11488typedef error_t ac__type_new_;
11489int
11490main ()
11491{
11492if ((ac__type_new_ *) 0)
11493 return 0;
11494if (sizeof (ac__type_new_))
11495 return 0;
11496 ;
11497 return 0;
11498}
11499_ACEOF
11500rm -f conftest.$ac_objext
11501if { (ac_try="$ac_compile"
11502case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_compile") 2>conftest.er1
11508 ac_status=$?
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11515 { (case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518esac
11519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_try") 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest.$ac_objext'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 ac_cv_type_error_t=yes
11535else
11536 echo "$as_me: failed program was:" >&5
11537sed 's/^/| /' conftest.$ac_ext >&5
11538
11539 ac_cv_type_error_t=no
11540fi
11541
11542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11543fi
11544{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11545echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11546if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547
11548cat >>confdefs.h <<_ACEOF
11549#define HAVE_ERROR_T 1
11550_ACEOF
11551
11552
11553else
11554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011555cat >>confdefs.h <<\_ACEOF
11556#define error_t int
11557_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558
11559fi
11560
11561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011562
11563
11564
11565
11566
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011568do
11569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11572if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
11581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11583#define $ac_func innocuous_$ac_func
11584
11585/* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char $ac_func (); below.
11587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588 <limits.h> exists even on freestanding compilers. */
11589
11590#ifdef __STDC__
11591# include <limits.h>
11592#else
11593# include <assert.h>
11594#endif
11595
11596#undef $ac_func
11597
11598/* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11601#ifdef __cplusplus
11602extern "C"
11603#endif
11604char $ac_func ();
11605/* The GNU C library defines this for functions which it implements
11606 to always fail with ENOSYS. Some functions are actually named
11607 something starting with __ and the normal name is an alias. */
11608#if defined __stub_$ac_func || defined __stub___$ac_func
11609choke me
11610#endif
11611
11612int
11613main ()
11614{
11615return $ac_func ();
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext conftest$ac_exeext
11621if { (ac_try="$ac_link"
11622case "(($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_link") 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648esac
11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 eval "$as_ac_var=yes"
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 eval "$as_ac_var=no"
11660fi
11661
11662rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664fi
11665ac_res=`eval echo '${'$as_ac_var'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667echo "${ECHO_T}$ac_res" >&6; }
11668if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671_ACEOF
11672
11673fi
11674done
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011695
11696
11697
11698
11699
11700
11701
11702
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11704 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011705do
11706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712fi
11713ac_res=`eval echo '${'$as_ac_Header'}'`
11714 { echo "$as_me:$LINENO: result: $ac_res" >&5
11715echo "${ECHO_T}$ac_res" >&6; }
11716else
11717 # Is the header compilable?
11718{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11720cat >conftest.$ac_ext <<_ACEOF
11721/* confdefs.h. */
11722_ACEOF
11723cat confdefs.h >>conftest.$ac_ext
11724cat >>conftest.$ac_ext <<_ACEOF
11725/* end confdefs.h. */
11726$ac_includes_default
11727#include <$ac_header>
11728_ACEOF
11729rm -f conftest.$ac_objext
11730if { (ac_try="$ac_compile"
11731case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11734esac
11735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_compile") 2>conftest.er1
11737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
11743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11744 { (case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11747esac
11748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_try") 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; } &&
11753 { ac_try='test -s conftest.$ac_objext'
11754 { (case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757esac
11758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_try") 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_header_compiler=yes
11764else
11765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768 ac_header_compiler=no
11769fi
11770
11771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11773echo "${ECHO_T}$ac_header_compiler" >&6; }
11774
11775# Is the header present?
11776{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11778cat >conftest.$ac_ext <<_ACEOF
11779/* confdefs.h. */
11780_ACEOF
11781cat confdefs.h >>conftest.$ac_ext
11782cat >>conftest.$ac_ext <<_ACEOF
11783/* end confdefs.h. */
11784#include <$ac_header>
11785_ACEOF
11786if { (ac_try="$ac_cpp conftest.$ac_ext"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } >/dev/null; then
11799 if test -s conftest.err; then
11800 ac_cpp_err=$ac_c_preproc_warn_flag
11801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11802 else
11803 ac_cpp_err=
11804 fi
11805else
11806 ac_cpp_err=yes
11807fi
11808if test -z "$ac_cpp_err"; then
11809 ac_header_preproc=yes
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 ac_header_preproc=no
11815fi
11816
11817rm -f conftest.err conftest.$ac_ext
11818{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11819echo "${ECHO_T}$ac_header_preproc" >&6; }
11820
11821# So? What about this header?
11822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11823 yes:no: )
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11828 ac_header_preproc=yes
11829 ;;
11830 no:yes:* )
11831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11843 ( cat <<\_ASBOX
11844## ----------------------------------- ##
11845## Report this to llvmbugs@cs.uiuc.edu ##
11846## ----------------------------------- ##
11847_ASBOX
11848 ) | sed "s/^/$as_me: WARNING: /" >&2
11849 ;;
11850esac
11851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855else
11856 eval "$as_ac_Header=\$ac_header_preproc"
11857fi
11858ac_res=`eval echo '${'$as_ac_Header'}'`
11859 { echo "$as_me:$LINENO: result: $ac_res" >&5
11860echo "${ECHO_T}$ac_res" >&6; }
11861
11862fi
11863if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011864 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011866_ACEOF
11867
11868fi
11869
11870done
11871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011872
11873
11874
11875
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011877do
11878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884fi
11885ac_res=`eval echo '${'$as_ac_Header'}'`
11886 { echo "$as_me:$LINENO: result: $ac_res" >&5
11887echo "${ECHO_T}$ac_res" >&6; }
11888else
11889 # Is the header compilable?
11890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11892cat >conftest.$ac_ext <<_ACEOF
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898$ac_includes_default
11899#include <$ac_header>
11900_ACEOF
11901rm -f conftest.$ac_objext
11902if { (ac_try="$ac_compile"
11903case "(($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_compile") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919esac
11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest.$ac_objext'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929esac
11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 ac_header_compiler=yes
11936else
11937 echo "$as_me: failed program was:" >&5
11938sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 ac_header_compiler=no
11941fi
11942
11943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11945echo "${ECHO_T}$ac_header_compiler" >&6; }
11946
11947# Is the header present?
11948{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11950cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
11956#include <$ac_header>
11957_ACEOF
11958if { (ac_try="$ac_cpp conftest.$ac_ext"
11959case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11962esac
11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11965 ac_status=$?
11966 grep -v '^ *+' conftest.er1 >conftest.err
11967 rm -f conftest.er1
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } >/dev/null; then
11971 if test -s conftest.err; then
11972 ac_cpp_err=$ac_c_preproc_warn_flag
11973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11974 else
11975 ac_cpp_err=
11976 fi
11977else
11978 ac_cpp_err=yes
11979fi
11980if test -z "$ac_cpp_err"; then
11981 ac_header_preproc=yes
11982else
11983 echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 ac_header_preproc=no
11987fi
11988
11989rm -f conftest.err conftest.$ac_ext
11990{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11991echo "${ECHO_T}$ac_header_preproc" >&6; }
11992
11993# So? What about this header?
11994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11995 yes:no: )
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12000 ac_header_preproc=yes
12001 ;;
12002 no:yes:* )
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12015 ( cat <<\_ASBOX
12016## ----------------------------------- ##
12017## Report this to llvmbugs@cs.uiuc.edu ##
12018## ----------------------------------- ##
12019_ASBOX
12020 ) | sed "s/^/$as_me: WARNING: /" >&2
12021 ;;
12022esac
12023{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027else
12028 eval "$as_ac_Header=\$ac_header_preproc"
12029fi
12030ac_res=`eval echo '${'$as_ac_Header'}'`
12031 { echo "$as_me:$LINENO: result: $ac_res" >&5
12032echo "${ECHO_T}$ac_res" >&6; }
12033
12034fi
12035if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012038_ACEOF
12039
12040fi
12041
12042done
12043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012044
12045
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012047do
12048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054fi
12055ac_res=`eval echo '${'$as_ac_Header'}'`
12056 { echo "$as_me:$LINENO: result: $ac_res" >&5
12057echo "${ECHO_T}$ac_res" >&6; }
12058else
12059 # Is the header compilable?
12060{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12062cat >conftest.$ac_ext <<_ACEOF
12063/* confdefs.h. */
12064_ACEOF
12065cat confdefs.h >>conftest.$ac_ext
12066cat >>conftest.$ac_ext <<_ACEOF
12067/* end confdefs.h. */
12068$ac_includes_default
12069#include <$ac_header>
12070_ACEOF
12071rm -f conftest.$ac_objext
12072if { (ac_try="$ac_compile"
12073case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089esac
12090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_try") 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest.$ac_objext'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 ac_header_compiler=yes
12106else
12107 echo "$as_me: failed program was:" >&5
12108sed 's/^/| /' conftest.$ac_ext >&5
12109
12110 ac_header_compiler=no
12111fi
12112
12113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12115echo "${ECHO_T}$ac_header_compiler" >&6; }
12116
12117# Is the header present?
12118{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12120cat >conftest.$ac_ext <<_ACEOF
12121/* confdefs.h. */
12122_ACEOF
12123cat confdefs.h >>conftest.$ac_ext
12124cat >>conftest.$ac_ext <<_ACEOF
12125/* end confdefs.h. */
12126#include <$ac_header>
12127_ACEOF
12128if { (ac_try="$ac_cpp conftest.$ac_ext"
12129case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132esac
12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } >/dev/null; then
12141 if test -s conftest.err; then
12142 ac_cpp_err=$ac_c_preproc_warn_flag
12143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12144 else
12145 ac_cpp_err=
12146 fi
12147else
12148 ac_cpp_err=yes
12149fi
12150if test -z "$ac_cpp_err"; then
12151 ac_header_preproc=yes
12152else
12153 echo "$as_me: failed program was:" >&5
12154sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 ac_header_preproc=no
12157fi
12158
12159rm -f conftest.err conftest.$ac_ext
12160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12161echo "${ECHO_T}$ac_header_preproc" >&6; }
12162
12163# So? What about this header?
12164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12165 yes:no: )
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12170 ac_header_preproc=yes
12171 ;;
12172 no:yes:* )
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12185 ( cat <<\_ASBOX
12186## ----------------------------------- ##
12187## Report this to llvmbugs@cs.uiuc.edu ##
12188## ----------------------------------- ##
12189_ASBOX
12190 ) | sed "s/^/$as_me: WARNING: /" >&2
12191 ;;
12192esac
12193{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197else
12198 eval "$as_ac_Header=\$ac_header_preproc"
12199fi
12200ac_res=`eval echo '${'$as_ac_Header'}'`
12201 { echo "$as_me:$LINENO: result: $ac_res" >&5
12202echo "${ECHO_T}$ac_res" >&6; }
12203
12204fi
12205if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012206 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208_ACEOF
12209 break
12210fi
12211
12212done
12213
12214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012215
12216
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012217for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012218do
12219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12220{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224else
12225 cat >conftest.$ac_ext <<_ACEOF
12226/* confdefs.h. */
12227_ACEOF
12228cat confdefs.h >>conftest.$ac_ext
12229cat >>conftest.$ac_ext <<_ACEOF
12230/* end confdefs.h. */
12231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233#define $ac_func innocuous_$ac_func
12234
12235/* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char $ac_func (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12239
12240#ifdef __STDC__
12241# include <limits.h>
12242#else
12243# include <assert.h>
12244#endif
12245
12246#undef $ac_func
12247
12248/* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12251#ifdef __cplusplus
12252extern "C"
12253#endif
12254char $ac_func ();
12255/* The GNU C library defines this for functions which it implements
12256 to always fail with ENOSYS. Some functions are actually named
12257 something starting with __ and the normal name is an alias. */
12258#if defined __stub_$ac_func || defined __stub___$ac_func
12259choke me
12260#endif
12261
12262int
12263main ()
12264{
12265return $ac_func ();
12266 ;
12267 return 0;
12268}
12269_ACEOF
12270rm -f conftest.$ac_objext conftest$ac_exeext
12271if { (ac_try="$ac_link"
12272case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275esac
12276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_link") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12285 { (case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288esac
12289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_try") 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 eval "$as_ac_var=yes"
12305else
12306 echo "$as_me: failed program was:" >&5
12307sed 's/^/| /' conftest.$ac_ext >&5
12308
12309 eval "$as_ac_var=no"
12310fi
12311
12312rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314fi
12315ac_res=`eval echo '${'$as_ac_var'}'`
12316 { echo "$as_me:$LINENO: result: $ac_res" >&5
12317echo "${ECHO_T}$ac_res" >&6; }
12318if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012319 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012321_ACEOF
12322 break
12323fi
12324done
12325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012326
12327
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012328for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012329do
12330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12331{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12333if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335else
12336 cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h. */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h. */
12342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12344#define $ac_func innocuous_$ac_func
12345
12346/* System header to define __stub macros and hopefully few prototypes,
12347 which can conflict with char $ac_func (); below.
12348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12349 <limits.h> exists even on freestanding compilers. */
12350
12351#ifdef __STDC__
12352# include <limits.h>
12353#else
12354# include <assert.h>
12355#endif
12356
12357#undef $ac_func
12358
12359/* Override any GCC internal prototype to avoid an error.
12360 Use char because int might match the return type of a GCC
12361 builtin and then its argument prototype would still apply. */
12362#ifdef __cplusplus
12363extern "C"
12364#endif
12365char $ac_func ();
12366/* The GNU C library defines this for functions which it implements
12367 to always fail with ENOSYS. Some functions are actually named
12368 something starting with __ and the normal name is an alias. */
12369#if defined __stub_$ac_func || defined __stub___$ac_func
12370choke me
12371#endif
12372
12373int
12374main ()
12375{
12376return $ac_func ();
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381rm -f conftest.$ac_objext conftest$ac_exeext
12382if { (ac_try="$ac_link"
12383case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_link") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399esac
12400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest$ac_exeext'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 eval "$as_ac_var=yes"
12416else
12417 echo "$as_me: failed program was:" >&5
12418sed 's/^/| /' conftest.$ac_ext >&5
12419
12420 eval "$as_ac_var=no"
12421fi
12422
12423rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425fi
12426ac_res=`eval echo '${'$as_ac_var'}'`
12427 { echo "$as_me:$LINENO: result: $ac_res" >&5
12428echo "${ECHO_T}$ac_res" >&6; }
12429if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012430 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012432_ACEOF
12433 break
12434fi
12435done
12436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012437
12438
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012439for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012440do
12441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12442{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12444if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446else
12447 cat >conftest.$ac_ext <<_ACEOF
12448/* confdefs.h. */
12449_ACEOF
12450cat confdefs.h >>conftest.$ac_ext
12451cat >>conftest.$ac_ext <<_ACEOF
12452/* end confdefs.h. */
12453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12455#define $ac_func innocuous_$ac_func
12456
12457/* System header to define __stub macros and hopefully few prototypes,
12458 which can conflict with char $ac_func (); below.
12459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12460 <limits.h> exists even on freestanding compilers. */
12461
12462#ifdef __STDC__
12463# include <limits.h>
12464#else
12465# include <assert.h>
12466#endif
12467
12468#undef $ac_func
12469
12470/* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12473#ifdef __cplusplus
12474extern "C"
12475#endif
12476char $ac_func ();
12477/* The GNU C library defines this for functions which it implements
12478 to always fail with ENOSYS. Some functions are actually named
12479 something starting with __ and the normal name is an alias. */
12480#if defined __stub_$ac_func || defined __stub___$ac_func
12481choke me
12482#endif
12483
12484int
12485main ()
12486{
12487return $ac_func ();
12488 ;
12489 return 0;
12490}
12491_ACEOF
12492rm -f conftest.$ac_objext conftest$ac_exeext
12493if { (ac_try="$ac_link"
12494case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497esac
12498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_link") 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12507 { (case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12510esac
12511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512 (eval "$ac_try") 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest$ac_exeext'
12517 { (case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520esac
12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_try") 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 eval "$as_ac_var=yes"
12527else
12528 echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 eval "$as_ac_var=no"
12532fi
12533
12534rm -f core conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12536fi
12537ac_res=`eval echo '${'$as_ac_var'}'`
12538 { echo "$as_me:$LINENO: result: $ac_res" >&5
12539echo "${ECHO_T}$ac_res" >&6; }
12540if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012541 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012543_ACEOF
12544 break
12545fi
12546done
12547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012548
12549
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012550for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012551do
12552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12553{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12555if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557else
12558 cat >conftest.$ac_ext <<_ACEOF
12559/* confdefs.h. */
12560_ACEOF
12561cat confdefs.h >>conftest.$ac_ext
12562cat >>conftest.$ac_ext <<_ACEOF
12563/* end confdefs.h. */
12564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12566#define $ac_func innocuous_$ac_func
12567
12568/* System header to define __stub macros and hopefully few prototypes,
12569 which can conflict with char $ac_func (); below.
12570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12571 <limits.h> exists even on freestanding compilers. */
12572
12573#ifdef __STDC__
12574# include <limits.h>
12575#else
12576# include <assert.h>
12577#endif
12578
12579#undef $ac_func
12580
12581/* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12584#ifdef __cplusplus
12585extern "C"
12586#endif
12587char $ac_func ();
12588/* The GNU C library defines this for functions which it implements
12589 to always fail with ENOSYS. Some functions are actually named
12590 something starting with __ and the normal name is an alias. */
12591#if defined __stub_$ac_func || defined __stub___$ac_func
12592choke me
12593#endif
12594
12595int
12596main ()
12597{
12598return $ac_func ();
12599 ;
12600 return 0;
12601}
12602_ACEOF
12603rm -f conftest.$ac_objext conftest$ac_exeext
12604if { (ac_try="$ac_link"
12605case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>conftest.er1
12611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631esac
12632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 eval "$as_ac_var=yes"
12638else
12639 echo "$as_me: failed program was:" >&5
12640sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 eval "$as_ac_var=no"
12643fi
12644
12645rm -f core conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12647fi
12648ac_res=`eval echo '${'$as_ac_var'}'`
12649 { echo "$as_me:$LINENO: result: $ac_res" >&5
12650echo "${ECHO_T}$ac_res" >&6; }
12651if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012652 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012654_ACEOF
12655
12656fi
12657done
12658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012659
12660
12661
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012662for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012663do
12664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12665{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12667if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669else
12670 cat >conftest.$ac_ext <<_ACEOF
12671/* confdefs.h. */
12672_ACEOF
12673cat confdefs.h >>conftest.$ac_ext
12674cat >>conftest.$ac_ext <<_ACEOF
12675/* end confdefs.h. */
12676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12678#define $ac_func innocuous_$ac_func
12679
12680/* System header to define __stub macros and hopefully few prototypes,
12681 which can conflict with char $ac_func (); below.
12682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12683 <limits.h> exists even on freestanding compilers. */
12684
12685#ifdef __STDC__
12686# include <limits.h>
12687#else
12688# include <assert.h>
12689#endif
12690
12691#undef $ac_func
12692
12693/* Override any GCC internal prototype to avoid an error.
12694 Use char because int might match the return type of a GCC
12695 builtin and then its argument prototype would still apply. */
12696#ifdef __cplusplus
12697extern "C"
12698#endif
12699char $ac_func ();
12700/* The GNU C library defines this for functions which it implements
12701 to always fail with ENOSYS. Some functions are actually named
12702 something starting with __ and the normal name is an alias. */
12703#if defined __stub_$ac_func || defined __stub___$ac_func
12704choke me
12705#endif
12706
12707int
12708main ()
12709{
12710return $ac_func ();
12711 ;
12712 return 0;
12713}
12714_ACEOF
12715rm -f conftest.$ac_objext conftest$ac_exeext
12716if { (ac_try="$ac_link"
12717case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12720esac
12721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_link") 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12730 { (case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12733esac
12734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_try") 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 eval "$as_ac_var=yes"
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 eval "$as_ac_var=no"
12755fi
12756
12757rm -f core conftest.err conftest.$ac_objext \
12758 conftest$ac_exeext conftest.$ac_ext
12759fi
12760ac_res=`eval echo '${'$as_ac_var'}'`
12761 { echo "$as_me:$LINENO: result: $ac_res" >&5
12762echo "${ECHO_T}$ac_res" >&6; }
12763if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012764 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012766_ACEOF
12767
12768fi
12769done
12770
12771
Douglas Gregor01746742009-05-11 18:05:52 +000012772
Reid Spencer7931a782004-12-27 06:15:02 +000012773if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012774 LLVMGCC="llvm-gcc${EXEEXT}"
12775 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012776 LLVMGCCCOMMAND="$LLVMGCC"
12777 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012778 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12779
12780 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12781
Reid Spencerc84492c2005-06-02 22:34:49 +000012782 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12783set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12786if test "${ac_cv_path_LLVMGCC+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012788else
12789 case $LLVMGCC in
12790 [\\/]* | ?:[\\/]*)
12791 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12792 ;;
12793 *)
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795for as_dir in $PATH
12796do
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 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 +000012801 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012803 break 2
12804 fi
12805done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012806done
Reid Spencera773bd52006-08-04 18:18:08 +000012807IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012808
Reid Spencer59473af2004-12-25 07:31:29 +000012809 ;;
12810esac
12811fi
12812LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012813if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012814 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12815echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012817 { echo "$as_me:$LINENO: result: no" >&5
12818echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012819fi
12820
Reid Spencera773bd52006-08-04 18:18:08 +000012821
Reid Spencerc84492c2005-06-02 22:34:49 +000012822 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12823set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12826if test "${ac_cv_path_LLVMGXX+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012828else
12829 case $LLVMGXX in
12830 [\\/]* | ?:[\\/]*)
12831 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12832 ;;
12833 *)
12834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835for as_dir in $PATH
12836do
12837 IFS=$as_save_IFS
12838 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012839 for ac_exec_ext in '' $ac_executable_extensions; do
12840 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 +000012841 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012843 break 2
12844 fi
12845done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012846done
Reid Spencera773bd52006-08-04 18:18:08 +000012847IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012848
Reid Spencer59473af2004-12-25 07:31:29 +000012849 ;;
12850esac
12851fi
12852LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012853if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012854 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12855echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012857 { echo "$as_me:$LINENO: result: no" >&5
12858echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012859fi
12860
Reid Spencera773bd52006-08-04 18:18:08 +000012861
Reid Spencer59473af2004-12-25 07:31:29 +000012862else
Devang Patel5d28b882007-12-04 22:54:47 +000012863 if test -z "$LLVMGCC"; then
12864 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012865 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012866 fi
12867 if test -z "$LLVMGXX"; then
12868 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012869 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012870 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012871
Reid Spencer59473af2004-12-25 07:31:29 +000012872 LLVMGCC=$LLVMGCC
12873
12874 LLVMGXX=$LLVMGXX
12875
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012876 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12877
12878 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12879
Reid Spencer59473af2004-12-25 07:31:29 +000012880fi
12881
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012882
Daniel Dunbar98515672010-02-23 10:00:49 +000012883# Check whether --with-llvmcc was given.
12884if test "${with_llvmcc+set}" = set; then
12885 withval=$with_llvmcc;
12886else
12887 with_llvmcc=check
12888fi
12889
12890{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12891echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12892if test "$with_llvmcc" != "check"; then
12893 if (test "$with_llvmcc" != "llvm-gcc" &&
12894 test "$with_llvmcc" != "clang" &&
12895 test "$with_llvmcc" != "none"); then
12896 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12897echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12898 { (exit 1); exit 1; }; }
12899 fi
12900 WITH_LLVMCC="$with_llvmcc"
12901elif test -n "$LLVMGCC"; then
12902 WITH_LLVMCC=llvm-gcc
12903elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12904 WITH_LLVMCC=clang
12905else
12906 WITH_LLVMCC=none
12907fi
12908{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12909echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12910LLVMCC_OPTION=$WITH_LLVMCC
12911
12912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012913{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12914echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012915
Reid Spencer86901802004-12-08 23:07:27 +000012916ICC=no
12917IXX=no
12918case $CC in
12919 icc*|icpc*)
12920 ICC=yes
12921 IXX=yes
12922 ;;
12923 *)
12924 ;;
12925esac
12926
Duraid Madina937c60a2006-02-15 07:57:42 +000012927if test "$GCC" != "yes" && test "$ICC" != "yes"
12928then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012929 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12930echo "$as_me: error: gcc|icc required but not found" >&2;}
12931 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012932fi
12933
12934if test "$GXX" != "yes" && test "$IXX" != "yes"
12935then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012936 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12937echo "$as_me: error: g++|icc required but not found" >&2;}
12938 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012939fi
12940
Reid Spencer86901802004-12-08 23:07:27 +000012941if test "$GCC" = "yes"
12942then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012943 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012944#if !defined(__GNUC__) || __GNUC__ < 3
12945#error Unsupported GCC version
12946#endif
12947
12948_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012949rm -f conftest.$ac_objext
12950if { (ac_try="$ac_compile"
12951case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954esac
12955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_compile") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest.$ac_objext'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012985 echo "$as_me: failed program was:" >&5
12986sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12989echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12990 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012992
Chris Lattner399c7c72008-02-05 19:43:53 +000012993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012994fi
12995
12996if test -z "$llvm_cv_gnu_make_command"
12997then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012998 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12999echo "$as_me: error: GNU Make required but not found" >&2;}
13000 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013001fi
13002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013003{ echo "$as_me:$LINENO: result: ok" >&5
13004echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013006{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13007echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013008NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13009
13010NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013012{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13013echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013014
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013016
13017{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13018echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13019if test "${ac_cv_lib_m_sin+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013021else
13022 ac_check_lib_save_LIBS=$LIBS
13023LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013024cat >conftest.$ac_ext <<_ACEOF
13025/* confdefs.h. */
13026_ACEOF
13027cat confdefs.h >>conftest.$ac_ext
13028cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013029/* end confdefs.h. */
13030
Reid Spencera773bd52006-08-04 18:18:08 +000013031/* Override any GCC internal prototype to avoid an error.
13032 Use char because int might match the return type of a GCC
13033 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013034#ifdef __cplusplus
13035extern "C"
13036#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013037char sin ();
13038int
13039main ()
13040{
Reid Spencera773bd52006-08-04 18:18:08 +000013041return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013042 ;
13043 return 0;
13044}
13045_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013046rm -f conftest.$ac_objext conftest$ac_exeext
13047if { (ac_try="$ac_link"
13048case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_link") 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064esac
13065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest$ac_exeext'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074esac
13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013080 ac_cv_lib_m_sin=yes
13081else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013082 echo "$as_me: failed program was:" >&5
13083sed 's/^/| /' conftest.$ac_ext >&5
13084
13085 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013087
Bill Wendlingebcceee2009-04-18 11:20:33 +000013088rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013089 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013090LIBS=$ac_check_lib_save_LIBS
13091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13093echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13094if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013095 cat >>confdefs.h <<_ACEOF
13096#define HAVE_LIBM 1
13097_ACEOF
13098
13099 LIBS="-lm $LIBS"
13100
13101fi
13102
Jeff Cohen28783c32007-01-12 18:22:38 +000013103if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104
13105{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13106echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13107if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013109else
13110 ac_check_lib_save_LIBS=$LIBS
13111LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013112cat >conftest.$ac_ext <<_ACEOF
13113/* confdefs.h. */
13114_ACEOF
13115cat confdefs.h >>conftest.$ac_ext
13116cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013117/* end confdefs.h. */
13118
Reid Spencer48fdf912006-06-01 19:03:21 +000013119
Reid Spencer484fc8e2006-06-01 16:55:59 +000013120int
13121main ()
13122{
Reid Spencera773bd52006-08-04 18:18:08 +000013123return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013124 ;
13125 return 0;
13126}
13127_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128rm -f conftest.$ac_objext conftest$ac_exeext
13129if { (ac_try="$ac_link"
13130case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146esac
13147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156esac
13157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013162 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013163else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013164 echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013169
Bill Wendlingebcceee2009-04-18 11:20:33 +000013170rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013171 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013172LIBS=$ac_check_lib_save_LIBS
13173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013174{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13175echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13176if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013177 cat >>confdefs.h <<_ACEOF
13178#define HAVE_LIBIMAGEHLP 1
13179_ACEOF
13180
13181 LIBS="-limagehlp $LIBS"
13182
13183fi
13184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013185
13186{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13187echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13188if test "${ac_cv_lib_psapi_main+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013190else
13191 ac_check_lib_save_LIBS=$LIBS
13192LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013193cat >conftest.$ac_ext <<_ACEOF
13194/* confdefs.h. */
13195_ACEOF
13196cat confdefs.h >>conftest.$ac_ext
13197cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013198/* end confdefs.h. */
13199
Reid Spencer48fdf912006-06-01 19:03:21 +000013200
Reid Spencer484fc8e2006-06-01 16:55:59 +000013201int
13202main ()
13203{
Reid Spencera773bd52006-08-04 18:18:08 +000013204return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013205 ;
13206 return 0;
13207}
13208_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013209rm -f conftest.$ac_objext conftest$ac_exeext
13210if { (ac_try="$ac_link"
13211case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214esac
13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_link") 2>conftest.er1
13217 ac_status=$?
13218 grep -v '^ *+' conftest.er1 >conftest.err
13219 rm -f conftest.er1
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } &&
13223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13224 { (case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227esac
13228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest$ac_exeext'
13234 { (case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237esac
13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_try") 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013243 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013244else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013245 echo "$as_me: failed program was:" >&5
13246sed 's/^/| /' conftest.$ac_ext >&5
13247
13248 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013250
Bill Wendlingebcceee2009-04-18 11:20:33 +000013251rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013252 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013253LIBS=$ac_check_lib_save_LIBS
13254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013255{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13256echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13257if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013258 cat >>confdefs.h <<_ACEOF
13259#define HAVE_LIBPSAPI 1
13260_ACEOF
13261
13262 LIBS="-lpsapi $LIBS"
13263
13264fi
13265
13266fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13269echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13270if test "${ac_cv_search_dlopen+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013272else
13273 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274cat >conftest.$ac_ext <<_ACEOF
13275/* confdefs.h. */
13276_ACEOF
13277cat confdefs.h >>conftest.$ac_ext
13278cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013280
Reid Spencera773bd52006-08-04 18:18:08 +000013281/* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013284#ifdef __cplusplus
13285extern "C"
13286#endif
John Criswell7a73b802003-06-30 21:59:07 +000013287char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013288int
13289main ()
13290{
Reid Spencera773bd52006-08-04 18:18:08 +000013291return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013292 ;
13293 return 0;
13294}
13295_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013296for ac_lib in '' dl; do
13297 if test -z "$ac_lib"; then
13298 ac_res="none required"
13299 else
13300 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013302 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303 rm -f conftest.$ac_objext conftest$ac_exeext
13304if { (ac_try="$ac_link"
13305case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308esac
13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_link") 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13321esac
13322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; } &&
13327 { ac_try='test -s conftest$ac_exeext'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013337 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013338else
13339 echo "$as_me: failed program was:" >&5
13340sed 's/^/| /' conftest.$ac_ext >&5
13341
13342
John Criswell7a73b802003-06-30 21:59:07 +000013343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344
Bill Wendlingebcceee2009-04-18 11:20:33 +000013345rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013346 conftest$ac_exeext
13347 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013348 break
John Criswell7a73b802003-06-30 21:59:07 +000013349fi
Reid Spencera773bd52006-08-04 18:18:08 +000013350done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013351if test "${ac_cv_search_dlopen+set}" = set; then
13352 :
Reid Spencera773bd52006-08-04 18:18:08 +000013353else
13354 ac_cv_search_dlopen=no
13355fi
13356rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013357LIBS=$ac_func_search_save_LIBS
13358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013359{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13360echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013361ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013362if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365cat >>confdefs.h <<\_ACEOF
13366#define HAVE_DLOPEN 1
13367_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013368
13369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013370 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13371echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013372fi
13373
13374
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013375if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013376 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13377echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13378if test "${ac_cv_search_ffi_call+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013380else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013381 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013382cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013387/* end confdefs.h. */
13388
13389/* Override any GCC internal prototype to avoid an error.
13390 Use char because int might match the return type of a GCC
13391 builtin and then its argument prototype would still apply. */
13392#ifdef __cplusplus
13393extern "C"
13394#endif
13395char ffi_call ();
13396int
13397main ()
13398{
13399return ffi_call ();
13400 ;
13401 return 0;
13402}
13403_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013404for ac_lib in '' ffi; do
13405 if test -z "$ac_lib"; then
13406 ac_res="none required"
13407 else
13408 ac_res=-l$ac_lib
13409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13410 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013411 rm -f conftest.$ac_objext conftest$ac_exeext
13412if { (ac_try="$ac_link"
13413case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_link") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429esac
13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest$ac_exeext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439esac
13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013445 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013446else
13447 echo "$as_me: failed program was:" >&5
13448sed 's/^/| /' conftest.$ac_ext >&5
13449
13450
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013451fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013452
Bill Wendlingebcceee2009-04-18 11:20:33 +000013453rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013454 conftest$ac_exeext
13455 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013456 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013457fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013458done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013459if test "${ac_cv_search_ffi_call+set}" = set; then
13460 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013461else
13462 ac_cv_search_ffi_call=no
13463fi
13464rm conftest.$ac_ext
13465LIBS=$ac_func_search_save_LIBS
13466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013467{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13468echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013469ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013470if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013473cat >>confdefs.h <<\_ACEOF
13474#define HAVE_FFI_CALL 1
13475_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013476
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013477else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013478 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13479echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13480 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013481fi
13482
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013483fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013485{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13486echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13487if test "${ac_cv_search_mallinfo+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013489else
13490 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013491cat >conftest.$ac_ext <<_ACEOF
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013496/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013497
Reid Spencera773bd52006-08-04 18:18:08 +000013498/* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013501#ifdef __cplusplus
13502extern "C"
13503#endif
John Criswell7a73b802003-06-30 21:59:07 +000013504char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013505int
13506main ()
13507{
Reid Spencera773bd52006-08-04 18:18:08 +000013508return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013509 ;
13510 return 0;
13511}
13512_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013513for ac_lib in '' malloc; do
13514 if test -z "$ac_lib"; then
13515 ac_res="none required"
13516 else
13517 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013519 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013520 rm -f conftest.$ac_objext conftest$ac_exeext
13521if { (ac_try="$ac_link"
13522case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525esac
13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_link") 2>conftest.er1
13528 ac_status=$?
13529 grep -v '^ *+' conftest.er1 >conftest.err
13530 rm -f conftest.er1
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
13534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13535 { (case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13538esac
13539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13540 (eval "$ac_try") 2>&5
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; } &&
13544 { ac_try='test -s conftest$ac_exeext'
13545 { (case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13548esac
13549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_try") 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013554 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555else
13556 echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
13559
John Criswell7a73b802003-06-30 21:59:07 +000013560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013561
Bill Wendlingebcceee2009-04-18 11:20:33 +000013562rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013563 conftest$ac_exeext
13564 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013565 break
John Criswell7a73b802003-06-30 21:59:07 +000013566fi
Reid Spencera773bd52006-08-04 18:18:08 +000013567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013568if test "${ac_cv_search_mallinfo+set}" = set; then
13569 :
Reid Spencera773bd52006-08-04 18:18:08 +000013570else
13571 ac_cv_search_mallinfo=no
13572fi
13573rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013574LIBS=$ac_func_search_save_LIBS
13575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013576{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13577echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013578ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013579if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013582cat >>confdefs.h <<\_ACEOF
13583#define HAVE_MALLINFO 1
13584_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013585
13586fi
13587
13588
Reid Spencer0a262ba2005-08-24 10:07:20 +000013589if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013590
13591{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13592echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13593if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013595else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013596 ac_check_lib_save_LIBS=$LIBS
13597LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013598cat >conftest.$ac_ext <<_ACEOF
13599/* confdefs.h. */
13600_ACEOF
13601cat confdefs.h >>conftest.$ac_ext
13602cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013603/* end confdefs.h. */
13604
Reid Spencera773bd52006-08-04 18:18:08 +000013605/* Override any GCC internal prototype to avoid an error.
13606 Use char because int might match the return type of a GCC
13607 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013608#ifdef __cplusplus
13609extern "C"
13610#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013611char pthread_mutex_init ();
13612int
13613main ()
13614{
Reid Spencera773bd52006-08-04 18:18:08 +000013615return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013616 ;
13617 return 0;
13618}
13619_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620rm -f conftest.$ac_objext conftest$ac_exeext
13621if { (ac_try="$ac_link"
13622case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625esac
13626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_link") 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638esac
13639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013654 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013655else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013656 echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013661
Bill Wendlingebcceee2009-04-18 11:20:33 +000013662rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013663 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013664LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013666{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13667echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13668if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013669 cat >>confdefs.h <<_ACEOF
13670#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013671_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013672
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013673 LIBS="-lpthread $LIBS"
13674
Reid Spencer22177fe2005-07-12 15:24:20 +000013675fi
13676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013677 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13678echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13679if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013681else
13682 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013683cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013688/* end confdefs.h. */
13689
Reid Spencera773bd52006-08-04 18:18:08 +000013690/* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013693#ifdef __cplusplus
13694extern "C"
13695#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013696char pthread_mutex_lock ();
13697int
13698main ()
13699{
Reid Spencera773bd52006-08-04 18:18:08 +000013700return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013701 ;
13702 return 0;
13703}
13704_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013705for ac_lib in '' pthread; do
13706 if test -z "$ac_lib"; then
13707 ac_res="none required"
13708 else
13709 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013711 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013712 rm -f conftest.$ac_objext conftest$ac_exeext
13713if { (ac_try="$ac_link"
13714case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717esac
13718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_link") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730esac
13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013746 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013747else
13748 echo "$as_me: failed program was:" >&5
13749sed 's/^/| /' conftest.$ac_ext >&5
13750
13751
Brian Gaeke5f268f72003-12-05 19:29:01 +000013752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753
Bill Wendlingebcceee2009-04-18 11:20:33 +000013754rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013755 conftest$ac_exeext
13756 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013757 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013758fi
Reid Spencera773bd52006-08-04 18:18:08 +000013759done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013760if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13761 :
Reid Spencera773bd52006-08-04 18:18:08 +000013762else
13763 ac_cv_search_pthread_mutex_lock=no
13764fi
13765rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013766LIBS=$ac_func_search_save_LIBS
13767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013768{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13769echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013770ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013771if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013774cat >>confdefs.h <<\_ACEOF
13775#define HAVE_PTHREAD_MUTEX_LOCK 1
13776_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013777
13778fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013780 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13781echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13782if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013784else
13785 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013786cat >conftest.$ac_ext <<_ACEOF
13787/* confdefs.h. */
13788_ACEOF
13789cat confdefs.h >>conftest.$ac_ext
13790cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013791/* end confdefs.h. */
13792
13793/* Override any GCC internal prototype to avoid an error.
13794 Use char because int might match the return type of a GCC
13795 builtin and then its argument prototype would still apply. */
13796#ifdef __cplusplus
13797extern "C"
13798#endif
13799char pthread_rwlock_init ();
13800int
13801main ()
13802{
13803return pthread_rwlock_init ();
13804 ;
13805 return 0;
13806}
13807_ACEOF
13808for ac_lib in '' pthread; do
13809 if test -z "$ac_lib"; then
13810 ac_res="none required"
13811 else
13812 ac_res=-l$ac_lib
13813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13814 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013815 rm -f conftest.$ac_objext conftest$ac_exeext
13816if { (ac_try="$ac_link"
13817case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820esac
13821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_link") 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833esac
13834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; } &&
13839 { ac_try='test -s conftest$ac_exeext'
13840 { (case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843esac
13844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_try") 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013849 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013850else
13851 echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854
Owen Andersonde8aed22009-06-16 18:20:20 +000013855fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013856
Owen Andersonde8aed22009-06-16 18:20:20 +000013857rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013858 conftest$ac_exeext
13859 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013860 break
13861fi
13862done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013863if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13864 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013865else
13866 ac_cv_search_pthread_rwlock_init=no
13867fi
13868rm conftest.$ac_ext
13869LIBS=$ac_func_search_save_LIBS
13870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013871{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13872echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013873ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013874if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013877cat >>confdefs.h <<\_ACEOF
13878#define HAVE_PTHREAD_RWLOCK_INIT 1
13879_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013880
13881fi
13882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013883 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13884echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13885if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013887else
13888 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013889cat >conftest.$ac_ext <<_ACEOF
13890/* confdefs.h. */
13891_ACEOF
13892cat confdefs.h >>conftest.$ac_ext
13893cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013894/* end confdefs.h. */
13895
13896/* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13899#ifdef __cplusplus
13900extern "C"
13901#endif
13902char pthread_getspecific ();
13903int
13904main ()
13905{
13906return pthread_getspecific ();
13907 ;
13908 return 0;
13909}
13910_ACEOF
13911for ac_lib in '' pthread; do
13912 if test -z "$ac_lib"; then
13913 ac_res="none required"
13914 else
13915 ac_res=-l$ac_lib
13916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13917 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013918 rm -f conftest.$ac_objext conftest$ac_exeext
13919if { (ac_try="$ac_link"
13920case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13923esac
13924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_link") 2>conftest.er1
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13933 { (case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936esac
13937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_try") 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
13943 { (case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946esac
13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_try") 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013952 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013953else
13954 echo "$as_me: failed program was:" >&5
13955sed 's/^/| /' conftest.$ac_ext >&5
13956
13957
Owen Anderson27fcfe12009-06-25 23:10:26 +000013958fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013959
Owen Anderson27fcfe12009-06-25 23:10:26 +000013960rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013961 conftest$ac_exeext
13962 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013963 break
13964fi
13965done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013966if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13967 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013968else
13969 ac_cv_search_pthread_getspecific=no
13970fi
13971rm conftest.$ac_ext
13972LIBS=$ac_func_search_save_LIBS
13973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013974{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13975echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013976ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013977if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013980cat >>confdefs.h <<\_ACEOF
13981#define HAVE_PTHREAD_GETSPECIFIC 1
13982_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013983
13984fi
13985
Reid Spencer0a262ba2005-08-24 10:07:20 +000013986fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013987
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013988
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013989# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013990if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013991 withval=$with_udis86;
13992 USE_UDIS86=1
13993
13994 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013995 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013996 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13997 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013998
13999{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14000echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14001if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014003else
14004 ac_check_lib_save_LIBS=$LIBS
14005LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006cat >conftest.$ac_ext <<_ACEOF
14007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014011/* end confdefs.h. */
14012
14013/* Override any GCC internal prototype to avoid an error.
14014 Use char because int might match the return type of a GCC
14015 builtin and then its argument prototype would still apply. */
14016#ifdef __cplusplus
14017extern "C"
14018#endif
14019char ud_init ();
14020int
14021main ()
14022{
14023return ud_init ();
14024 ;
14025 return 0;
14026}
14027_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028rm -f conftest.$ac_objext conftest$ac_exeext
14029if { (ac_try="$ac_link"
14030case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14033esac
14034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_link") 2>conftest.er1
14036 ac_status=$?
14037 grep -v '^ *+' conftest.er1 >conftest.err
14038 rm -f conftest.er1
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; } &&
14052 { ac_try='test -s conftest$ac_exeext'
14053 { (case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056esac
14057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_try") 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014062 ac_cv_lib_udis86_ud_init=yes
14063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014064 echo "$as_me: failed program was:" >&5
14065sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069
Bill Wendlingebcceee2009-04-18 11:20:33 +000014070rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014072LIBS=$ac_check_lib_save_LIBS
14073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014074{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14075echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14076if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014077 cat >>confdefs.h <<_ACEOF
14078#define HAVE_LIBUDIS86 1
14079_ACEOF
14080
14081 LIBS="-ludis86 $LIBS"
14082
14083else
14084
14085 echo "Error! You need to have libudis86 around."
14086 exit -1
14087
14088fi
14089
14090
14091else
14092 USE_UDIS86=0
14093
14094fi
14095
14096
14097cat >>confdefs.h <<_ACEOF
14098#define USE_UDIS86 $USE_UDIS86
14099_ACEOF
14100
14101
14102
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014103# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014104if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014105 withval=$with_oprofile;
14106 USE_OPROFILE=1
14107
14108 case "$withval" in
14109 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014110 no) llvm_cv_oppath=
14111 USE_OPROFILE=0
14112 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014113 *) llvm_cv_oppath="${withval}/lib/oprofile"
14114 CPPFLAGS="-I${withval}/include";;
14115 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014116 if test -n "$llvm_cv_oppath" ; then
14117 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14119echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14120if test "${ac_cv_search_bfd_init+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014122else
14123 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124cat >conftest.$ac_ext <<_ACEOF
14125/* confdefs.h. */
14126_ACEOF
14127cat confdefs.h >>conftest.$ac_ext
14128cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014129/* end confdefs.h. */
14130
14131/* Override any GCC internal prototype to avoid an error.
14132 Use char because int might match the return type of a GCC
14133 builtin and then its argument prototype would still apply. */
14134#ifdef __cplusplus
14135extern "C"
14136#endif
14137char bfd_init ();
14138int
14139main ()
14140{
14141return bfd_init ();
14142 ;
14143 return 0;
14144}
14145_ACEOF
14146for ac_lib in '' bfd; do
14147 if test -z "$ac_lib"; then
14148 ac_res="none required"
14149 else
14150 ac_res=-l$ac_lib
14151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14152 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014153 rm -f conftest.$ac_objext conftest$ac_exeext
14154if { (ac_try="$ac_link"
14155case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158esac
14159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171esac
14172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181esac
14182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014187 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014188else
14189 echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5
14191
14192
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014194
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014195rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014196 conftest$ac_exeext
14197 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014198 break
14199fi
14200done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014201if test "${ac_cv_search_bfd_init+set}" = set; then
14202 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014203else
14204 ac_cv_search_bfd_init=no
14205fi
14206rm conftest.$ac_ext
14207LIBS=$ac_func_search_save_LIBS
14208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014209{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14210echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014211ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014212if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14214
14215fi
14216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14218echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14219if test "${ac_cv_search_op_open_agent+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014221else
14222 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h. */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014228/* end confdefs.h. */
14229
14230/* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14233#ifdef __cplusplus
14234extern "C"
14235#endif
14236char op_open_agent ();
14237int
14238main ()
14239{
14240return op_open_agent ();
14241 ;
14242 return 0;
14243}
14244_ACEOF
14245for ac_lib in '' opagent; do
14246 if test -z "$ac_lib"; then
14247 ac_res="none required"
14248 else
14249 ac_res=-l$ac_lib
14250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14251 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014252 rm -f conftest.$ac_objext conftest$ac_exeext
14253if { (ac_try="$ac_link"
14254case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14257esac
14258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14260 ac_status=$?
14261 grep -v '^ *+' conftest.er1 >conftest.err
14262 rm -f conftest.er1
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14267 { (case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14270esac
14271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_try") 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest$ac_exeext'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014286 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287else
14288 echo "$as_me: failed program was:" >&5
14289sed 's/^/| /' conftest.$ac_ext >&5
14290
14291
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014293
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014294rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014295 conftest$ac_exeext
14296 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014297 break
14298fi
14299done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300if test "${ac_cv_search_op_open_agent+set}" = set; then
14301 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014302else
14303 ac_cv_search_op_open_agent=no
14304fi
14305rm conftest.$ac_ext
14306LIBS=$ac_func_search_save_LIBS
14307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014308{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14309echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014310ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014311if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14313
14314else
14315
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014316 echo "Error! You need to have libopagent around."
14317 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014318
14319fi
14320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014321 if test "${ac_cv_header_opagent_h+set}" = set; then
14322 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14323echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14324if test "${ac_cv_header_opagent_h+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326fi
14327{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14328echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14329else
14330 # Is the header compilable?
14331{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14332echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14333cat >conftest.$ac_ext <<_ACEOF
14334/* confdefs.h. */
14335_ACEOF
14336cat confdefs.h >>conftest.$ac_ext
14337cat >>conftest.$ac_ext <<_ACEOF
14338/* end confdefs.h. */
14339$ac_includes_default
14340#include <opagent.h>
14341_ACEOF
14342rm -f conftest.$ac_objext
14343if { (ac_try="$ac_compile"
14344case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14347esac
14348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_compile") 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14357 { (case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14360esac
14361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_try") 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; } &&
14366 { ac_try='test -s conftest.$ac_objext'
14367 { (case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370esac
14371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_try") 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_header_compiler=yes
14377else
14378 echo "$as_me: failed program was:" >&5
14379sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014381 ac_header_compiler=no
14382fi
14383
14384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386echo "${ECHO_T}$ac_header_compiler" >&6; }
14387
14388# Is the header present?
14389{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14390echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397#include <opagent.h>
14398_ACEOF
14399if { (ac_try="$ac_cpp conftest.$ac_ext"
14400case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403esac
14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } >/dev/null; then
14412 if test -s conftest.err; then
14413 ac_cpp_err=$ac_c_preproc_warn_flag
14414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14415 else
14416 ac_cpp_err=
14417 fi
14418else
14419 ac_cpp_err=yes
14420fi
14421if test -z "$ac_cpp_err"; then
14422 ac_header_preproc=yes
14423else
14424 echo "$as_me: failed program was:" >&5
14425sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 ac_header_preproc=no
14428fi
14429
14430rm -f conftest.err conftest.$ac_ext
14431{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14432echo "${ECHO_T}$ac_header_preproc" >&6; }
14433
14434# So? What about this header?
14435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14436 yes:no: )
14437 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14438echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14440echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14441 ac_header_preproc=yes
14442 ;;
14443 no:yes:* )
14444 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14445echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14447echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14449echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14451echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14453echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14455echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14456 ( cat <<\_ASBOX
14457## ----------------------------------- ##
14458## Report this to llvmbugs@cs.uiuc.edu ##
14459## ----------------------------------- ##
14460_ASBOX
14461 ) | sed "s/^/$as_me: WARNING: /" >&2
14462 ;;
14463esac
14464{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14465echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14466if test "${ac_cv_header_opagent_h+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468else
14469 ac_cv_header_opagent_h=$ac_header_preproc
14470fi
14471{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14472echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14473
14474fi
14475if test $ac_cv_header_opagent_h = yes; then
14476 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014477else
14478
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014479 echo "Error! You need to have opagent.h around."
14480 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014481
14482fi
14483
14484
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014485 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014486
14487else
14488
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014489 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014490
14491
14492fi
14493
14494
14495cat >>confdefs.h <<_ACEOF
14496#define USE_OPROFILE $USE_OPROFILE
14497_ACEOF
14498
14499
14500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014501
14502
14503
14504
14505
Reid Spencer59473af2004-12-25 07:31:29 +000014506ac_header_dirent=no
14507for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014508 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14509{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14510echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014514 cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014519/* end confdefs.h. */
14520#include <sys/types.h>
14521#include <$ac_hdr>
14522
14523int
14524main ()
14525{
14526if ((DIR *) 0)
14527return 0;
14528 ;
14529 return 0;
14530}
14531_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014532rm -f conftest.$ac_objext
14533if { (ac_try="$ac_compile"
14534case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_compile") 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560esac
14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014566 eval "$as_ac_Header=yes"
14567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014568 echo "$as_me: failed program was:" >&5
14569sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014573
Reid Spencera773bd52006-08-04 18:18:08 +000014574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014576ac_res=`eval echo '${'$as_ac_Header'}'`
14577 { echo "$as_me:$LINENO: result: $ac_res" >&5
14578echo "${ECHO_T}$ac_res" >&6; }
14579if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014580 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014581#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014582_ACEOF
14583
14584ac_header_dirent=$ac_hdr; break
14585fi
14586
14587done
14588# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14589if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014590 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14591echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14592if test "${ac_cv_search_opendir+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014594else
14595 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014596cat >conftest.$ac_ext <<_ACEOF
14597/* confdefs.h. */
14598_ACEOF
14599cat confdefs.h >>conftest.$ac_ext
14600cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014601/* end confdefs.h. */
14602
Reid Spencera773bd52006-08-04 18:18:08 +000014603/* Override any GCC internal prototype to avoid an error.
14604 Use char because int might match the return type of a GCC
14605 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014606#ifdef __cplusplus
14607extern "C"
14608#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014609char opendir ();
14610int
14611main ()
14612{
Reid Spencera773bd52006-08-04 18:18:08 +000014613return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014614 ;
14615 return 0;
14616}
14617_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014618for ac_lib in '' dir; do
14619 if test -z "$ac_lib"; then
14620 ac_res="none required"
14621 else
14622 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014624 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014625 rm -f conftest.$ac_objext conftest$ac_exeext
14626if { (ac_try="$ac_link"
14627case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14630esac
14631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_link") 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14640 { (case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643esac
14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_try") 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; } &&
14649 { ac_try='test -s conftest$ac_exeext'
14650 { (case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14653esac
14654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_try") 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014659 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014660else
14661 echo "$as_me: failed program was:" >&5
14662sed 's/^/| /' conftest.$ac_ext >&5
14663
14664
Reid Spencer59473af2004-12-25 07:31:29 +000014665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014666
Bill Wendlingebcceee2009-04-18 11:20:33 +000014667rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014668 conftest$ac_exeext
14669 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014670 break
Reid Spencer59473af2004-12-25 07:31:29 +000014671fi
Reid Spencera773bd52006-08-04 18:18:08 +000014672done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014673if test "${ac_cv_search_opendir+set}" = set; then
14674 :
Reid Spencera773bd52006-08-04 18:18:08 +000014675else
14676 ac_cv_search_opendir=no
14677fi
14678rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014679LIBS=$ac_func_search_save_LIBS
14680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014681{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14682echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014683ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014684if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014686
14687fi
14688
14689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014690 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14691echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14692if test "${ac_cv_search_opendir+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014694else
14695 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014696cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014701/* end confdefs.h. */
14702
Reid Spencera773bd52006-08-04 18:18:08 +000014703/* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014706#ifdef __cplusplus
14707extern "C"
14708#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014709char opendir ();
14710int
14711main ()
14712{
Reid Spencera773bd52006-08-04 18:18:08 +000014713return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014714 ;
14715 return 0;
14716}
14717_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014718for ac_lib in '' x; do
14719 if test -z "$ac_lib"; then
14720 ac_res="none required"
14721 else
14722 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014724 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014725 rm -f conftest.$ac_objext conftest$ac_exeext
14726if { (ac_try="$ac_link"
14727case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730esac
14731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_link") 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14740 { (case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743esac
14744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_try") 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try='test -s conftest$ac_exeext'
14750 { (case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14753esac
14754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_try") 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014759 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014760else
14761 echo "$as_me: failed program was:" >&5
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
14764
Reid Spencer59473af2004-12-25 07:31:29 +000014765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014766
Bill Wendlingebcceee2009-04-18 11:20:33 +000014767rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014768 conftest$ac_exeext
14769 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014770 break
Reid Spencer59473af2004-12-25 07:31:29 +000014771fi
Reid Spencera773bd52006-08-04 18:18:08 +000014772done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014773if test "${ac_cv_search_opendir+set}" = set; then
14774 :
Reid Spencera773bd52006-08-04 18:18:08 +000014775else
14776 ac_cv_search_opendir=no
14777fi
14778rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014779LIBS=$ac_func_search_save_LIBS
14780fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014781{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14782echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014783ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014784if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014786
14787fi
14788
14789fi
14790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014791{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14792echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14793if test "${ac_cv_header_mmap_anon+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014795else
14796 ac_ext=c
14797ac_cpp='$CPP $CPPFLAGS'
14798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14800ac_compiler_gnu=$ac_cv_c_compiler_gnu
14801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014802 cat >conftest.$ac_ext <<_ACEOF
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014807/* end confdefs.h. */
14808#include <sys/mman.h>
14809#include <unistd.h>
14810#include <fcntl.h>
14811int
14812main ()
14813{
14814mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14815 ;
14816 return 0;
14817}
14818_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014819rm -f conftest.$ac_objext
14820if { (ac_try="$ac_compile"
14821case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14824esac
14825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_compile") 2>conftest.er1
14827 ac_status=$?
14828 grep -v '^ *+' conftest.er1 >conftest.err
14829 rm -f conftest.er1
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14834 { (case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837esac
14838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_try") 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest.$ac_objext'
14844 { (case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14847esac
14848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_try") 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014853 ac_cv_header_mmap_anon=yes
14854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014855 echo "$as_me: failed program was:" >&5
14856sed 's/^/| /' conftest.$ac_ext >&5
14857
14858 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014860
Reid Spencera773bd52006-08-04 18:18:08 +000014861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014862 ac_ext=c
14863ac_cpp='$CPP $CPPFLAGS'
14864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866ac_compiler_gnu=$ac_cv_c_compiler_gnu
14867
14868
14869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014870{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14871echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014872if test "$ac_cv_header_mmap_anon" = yes; then
14873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014874cat >>confdefs.h <<\_ACEOF
14875#define HAVE_MMAP_ANONYMOUS 1
14876_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014877
14878fi
14879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014880{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14881echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14882if test "${ac_cv_header_stat_broken+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014885 cat >conftest.$ac_ext <<_ACEOF
14886/* confdefs.h. */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014890/* end confdefs.h. */
14891#include <sys/types.h>
14892#include <sys/stat.h>
14893
Reid Spencera773bd52006-08-04 18:18:08 +000014894#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014895# if S_ISBLK (S_IFDIR)
14896You lose.
14897# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014898#endif
14899
Reid Spencera773bd52006-08-04 18:18:08 +000014900#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014901# if S_ISBLK (S_IFCHR)
14902You lose.
14903# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014904#endif
14905
Reid Spencera773bd52006-08-04 18:18:08 +000014906#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014907# if S_ISLNK (S_IFREG)
14908You lose.
14909# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014910#endif
14911
Reid Spencera773bd52006-08-04 18:18:08 +000014912#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014913# if S_ISSOCK (S_IFREG)
14914You lose.
14915# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014916#endif
14917
14918_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14920 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014921 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014922else
14923 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014925rm -f conftest*
14926
Reid Spencer59473af2004-12-25 07:31:29 +000014927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014928{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14929echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014930if test $ac_cv_header_stat_broken = yes; then
14931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014932cat >>confdefs.h <<\_ACEOF
14933#define STAT_MACROS_BROKEN 1
14934_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014935
14936fi
14937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014938{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14939echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14940if test "${ac_cv_header_stdc+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014942else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014943 cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014949#include <stdlib.h>
14950#include <stdarg.h>
14951#include <string.h>
14952#include <float.h>
14953
John Criswell0c38eaf2003-09-10 15:17:25 +000014954int
14955main ()
14956{
14957
14958 ;
14959 return 0;
14960}
John Criswell7a73b802003-06-30 21:59:07 +000014961_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014962rm -f conftest.$ac_objext
14963if { (ac_try="$ac_compile"
14964case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14967esac
14968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14977 { (case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14980esac
14981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_try") 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest.$ac_objext'
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014996 ac_cv_header_stdc=yes
14997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014998 echo "$as_me: failed program was:" >&5
14999sed 's/^/| /' conftest.$ac_ext >&5
15000
15001 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015003
Reid Spencera773bd52006-08-04 18:18:08 +000015004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015005
15006if test $ac_cv_header_stdc = yes; then
15007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015008 cat >conftest.$ac_ext <<_ACEOF
15009/* confdefs.h. */
15010_ACEOF
15011cat confdefs.h >>conftest.$ac_ext
15012cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015013/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015014#include <string.h>
15015
15016_ACEOF
15017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015018 $EGREP "memchr" >/dev/null 2>&1; then
15019 :
John Criswell7a73b802003-06-30 21:59:07 +000015020else
15021 ac_cv_header_stdc=no
15022fi
15023rm -f conftest*
15024
15025fi
15026
15027if test $ac_cv_header_stdc = yes; then
15028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015029 cat >conftest.$ac_ext <<_ACEOF
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015034/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015035#include <stdlib.h>
15036
15037_ACEOF
15038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015039 $EGREP "free" >/dev/null 2>&1; then
15040 :
John Criswell7a73b802003-06-30 21:59:07 +000015041else
15042 ac_cv_header_stdc=no
15043fi
15044rm -f conftest*
15045
15046fi
15047
15048if test $ac_cv_header_stdc = yes; then
15049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015050 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015051 :
15052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015053 cat >conftest.$ac_ext <<_ACEOF
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015059#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015060#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015061#if ((' ' & 0x0FF) == 0x020)
15062# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15063# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15064#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015065# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015066 (('a' <= (c) && (c) <= 'i') \
15067 || ('j' <= (c) && (c) <= 'r') \
15068 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015069# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15070#endif
15071
15072#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15073int
15074main ()
15075{
15076 int i;
15077 for (i = 0; i < 256; i++)
15078 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015079 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015080 return 2;
15081 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015082}
15083_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015084rm -f conftest$ac_exeext
15085if { (ac_try="$ac_link"
15086case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089esac
15090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_link") 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15095 { (case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098esac
15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 :
John Criswell7a73b802003-06-30 21:59:07 +000015105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015106 echo "$as_me: program exited with status $ac_status" >&5
15107echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110( exit $ac_status )
15111ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015113rm -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 +000015114fi
15115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015116
John Criswell7a73b802003-06-30 21:59:07 +000015117fi
15118fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015119{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15120echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015121if test $ac_cv_header_stdc = yes; then
15122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015123cat >>confdefs.h <<\_ACEOF
15124#define STDC_HEADERS 1
15125_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015126
15127fi
15128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015129{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15130echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15131if test "${ac_cv_header_sys_wait_h+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015134 cat >conftest.$ac_ext <<_ACEOF
15135/* confdefs.h. */
15136_ACEOF
15137cat confdefs.h >>conftest.$ac_ext
15138cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015139/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015140#include <sys/types.h>
15141#include <sys/wait.h>
15142#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015143# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015144#endif
15145#ifndef WIFEXITED
15146# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15147#endif
15148
John Criswell7a73b802003-06-30 21:59:07 +000015149int
15150main ()
15151{
15152 int s;
15153 wait (&s);
15154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15155 ;
15156 return 0;
15157}
15158_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015159rm -f conftest.$ac_objext
15160if { (ac_try="$ac_compile"
15161case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164esac
15165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_compile") 2>conftest.er1
15167 ac_status=$?
15168 grep -v '^ *+' conftest.er1 >conftest.err
15169 rm -f conftest.er1
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15174 { (case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15177esac
15178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179 (eval "$ac_try") 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15187esac
15188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_try") 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015193 ac_cv_header_sys_wait_h=yes
15194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015195 echo "$as_me: failed program was:" >&5
15196sed 's/^/| /' conftest.$ac_ext >&5
15197
15198 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015200
Reid Spencera773bd52006-08-04 18:18:08 +000015201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015203{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15204echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015205if test $ac_cv_header_sys_wait_h = yes; then
15206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015207cat >>confdefs.h <<\_ACEOF
15208#define HAVE_SYS_WAIT_H 1
15209_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015210
15211fi
15212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015213{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15214echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15215if test "${ac_cv_header_time+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015217else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015218 cat >conftest.$ac_ext <<_ACEOF
15219/* confdefs.h. */
15220_ACEOF
15221cat confdefs.h >>conftest.$ac_ext
15222cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015223/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015224#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015225#include <sys/time.h>
15226#include <time.h>
15227
15228int
15229main ()
15230{
15231if ((struct tm *) 0)
15232return 0;
15233 ;
15234 return 0;
15235}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015236_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015237rm -f conftest.$ac_objext
15238if { (ac_try="$ac_compile"
15239case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15242esac
15243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_compile") 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252 { (case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255esac
15256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_try") 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest.$ac_objext'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015271 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015273 echo "$as_me: failed program was:" >&5
15274sed 's/^/| /' conftest.$ac_ext >&5
15275
15276 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015278
Reid Spencera773bd52006-08-04 18:18:08 +000015279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015281{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15282echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015283if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015285cat >>confdefs.h <<\_ACEOF
15286#define TIME_WITH_SYS_TIME 1
15287_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015288
15289fi
15290
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015292
15293
15294
15295
15296
15297
Reid Spencer59473af2004-12-25 07:31:29 +000015298for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015299do
15300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15306fi
15307ac_res=`eval echo '${'$as_ac_Header'}'`
15308 { echo "$as_me:$LINENO: result: $ac_res" >&5
15309echo "${ECHO_T}$ac_res" >&6; }
15310else
15311 # Is the header compilable?
15312{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15314cat >conftest.$ac_ext <<_ACEOF
15315/* confdefs.h. */
15316_ACEOF
15317cat confdefs.h >>conftest.$ac_ext
15318cat >>conftest.$ac_ext <<_ACEOF
15319/* end confdefs.h. */
15320$ac_includes_default
15321#include <$ac_header>
15322_ACEOF
15323rm -f conftest.$ac_objext
15324if { (ac_try="$ac_compile"
15325case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328esac
15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_compile") 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15341esac
15342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_header_compiler=yes
15358else
15359 echo "$as_me: failed program was:" >&5
15360sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 ac_header_compiler=no
15363fi
15364
15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15367echo "${ECHO_T}$ac_header_compiler" >&6; }
15368
15369# Is the header present?
15370{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15372cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378#include <$ac_header>
15379_ACEOF
15380if { (ac_try="$ac_cpp conftest.$ac_ext"
15381case "(($ac_try" in
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15384esac
15385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } >/dev/null; then
15393 if test -s conftest.err; then
15394 ac_cpp_err=$ac_c_preproc_warn_flag
15395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15396 else
15397 ac_cpp_err=
15398 fi
15399else
15400 ac_cpp_err=yes
15401fi
15402if test -z "$ac_cpp_err"; then
15403 ac_header_preproc=yes
15404else
15405 echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ac_header_preproc=no
15409fi
15410
15411rm -f conftest.err conftest.$ac_ext
15412{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15413echo "${ECHO_T}$ac_header_preproc" >&6; }
15414
15415# So? What about this header?
15416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15417 yes:no: )
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15422 ac_header_preproc=yes
15423 ;;
15424 no:yes:* )
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15432echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15437 ( cat <<\_ASBOX
15438## ----------------------------------- ##
15439## Report this to llvmbugs@cs.uiuc.edu ##
15440## ----------------------------------- ##
15441_ASBOX
15442 ) | sed "s/^/$as_me: WARNING: /" >&2
15443 ;;
15444esac
15445{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449else
15450 eval "$as_ac_Header=\$ac_header_preproc"
15451fi
15452ac_res=`eval echo '${'$as_ac_Header'}'`
15453 { echo "$as_me:$LINENO: result: $ac_res" >&5
15454echo "${ECHO_T}$ac_res" >&6; }
15455
15456fi
15457if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015458 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015460_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015461
15462fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015463
Reid Spencer59473af2004-12-25 07:31:29 +000015464done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015466
15467
15468
15469
15470
15471
Douglas Gregor071d73d2009-05-18 17:21:34 +000015472for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015473do
15474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480fi
15481ac_res=`eval echo '${'$as_ac_Header'}'`
15482 { echo "$as_me:$LINENO: result: $ac_res" >&5
15483echo "${ECHO_T}$ac_res" >&6; }
15484else
15485 # Is the header compilable?
15486{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488cat >conftest.$ac_ext <<_ACEOF
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
15494$ac_includes_default
15495#include <$ac_header>
15496_ACEOF
15497rm -f conftest.$ac_objext
15498if { (ac_try="$ac_compile"
15499case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15502esac
15503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_compile") 2>conftest.er1
15505 ac_status=$?
15506 grep -v '^ *+' conftest.er1 >conftest.err
15507 rm -f conftest.er1
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515esac
15516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
15522 { (case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15525esac
15526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_try") 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_header_compiler=yes
15532else
15533 echo "$as_me: failed program was:" >&5
15534sed 's/^/| /' conftest.$ac_ext >&5
15535
15536 ac_header_compiler=no
15537fi
15538
15539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541echo "${ECHO_T}$ac_header_compiler" >&6; }
15542
15543# Is the header present?
15544{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
15552#include <$ac_header>
15553_ACEOF
15554if { (ac_try="$ac_cpp conftest.$ac_ext"
15555case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558esac
15559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15561 ac_status=$?
15562 grep -v '^ *+' conftest.er1 >conftest.err
15563 rm -f conftest.er1
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null; then
15567 if test -s conftest.err; then
15568 ac_cpp_err=$ac_c_preproc_warn_flag
15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15570 else
15571 ac_cpp_err=
15572 fi
15573else
15574 ac_cpp_err=yes
15575fi
15576if test -z "$ac_cpp_err"; then
15577 ac_header_preproc=yes
15578else
15579 echo "$as_me: failed program was:" >&5
15580sed 's/^/| /' conftest.$ac_ext >&5
15581
15582 ac_header_preproc=no
15583fi
15584
15585rm -f conftest.err conftest.$ac_ext
15586{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587echo "${ECHO_T}$ac_header_preproc" >&6; }
15588
15589# So? What about this header?
15590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591 yes:no: )
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596 ac_header_preproc=yes
15597 ;;
15598 no:yes:* )
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15611 ( cat <<\_ASBOX
15612## ----------------------------------- ##
15613## Report this to llvmbugs@cs.uiuc.edu ##
15614## ----------------------------------- ##
15615_ASBOX
15616 ) | sed "s/^/$as_me: WARNING: /" >&2
15617 ;;
15618esac
15619{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623else
15624 eval "$as_ac_Header=\$ac_header_preproc"
15625fi
15626ac_res=`eval echo '${'$as_ac_Header'}'`
15627 { echo "$as_me:$LINENO: result: $ac_res" >&5
15628echo "${ECHO_T}$ac_res" >&6; }
15629
15630fi
15631if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015632 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015634_ACEOF
15635
15636fi
15637
15638done
15639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015640
15641
Douglas Gregor071d73d2009-05-18 17:21:34 +000015642for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015643do
15644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650fi
15651ac_res=`eval echo '${'$as_ac_Header'}'`
15652 { echo "$as_me:$LINENO: result: $ac_res" >&5
15653echo "${ECHO_T}$ac_res" >&6; }
15654else
15655 # Is the header compilable?
15656{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15658cat >conftest.$ac_ext <<_ACEOF
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
15664$ac_includes_default
15665#include <$ac_header>
15666_ACEOF
15667rm -f conftest.$ac_objext
15668if { (ac_try="$ac_compile"
15669case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15672esac
15673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_compile") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682 { (case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685esac
15686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_try") 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15695esac
15696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_try") 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_header_compiler=yes
15702else
15703 echo "$as_me: failed program was:" >&5
15704sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 ac_header_compiler=no
15707fi
15708
15709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15711echo "${ECHO_T}$ac_header_compiler" >&6; }
15712
15713# Is the header present?
15714{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15716cat >conftest.$ac_ext <<_ACEOF
15717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
15722#include <$ac_header>
15723_ACEOF
15724if { (ac_try="$ac_cpp conftest.$ac_ext"
15725case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15728esac
15729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } >/dev/null; then
15737 if test -s conftest.err; then
15738 ac_cpp_err=$ac_c_preproc_warn_flag
15739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15740 else
15741 ac_cpp_err=
15742 fi
15743else
15744 ac_cpp_err=yes
15745fi
15746if test -z "$ac_cpp_err"; then
15747 ac_header_preproc=yes
15748else
15749 echo "$as_me: failed program was:" >&5
15750sed 's/^/| /' conftest.$ac_ext >&5
15751
15752 ac_header_preproc=no
15753fi
15754
15755rm -f conftest.err conftest.$ac_ext
15756{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15757echo "${ECHO_T}$ac_header_preproc" >&6; }
15758
15759# So? What about this header?
15760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15761 yes:no: )
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15766 ac_header_preproc=yes
15767 ;;
15768 no:yes:* )
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15781 ( cat <<\_ASBOX
15782## ----------------------------------- ##
15783## Report this to llvmbugs@cs.uiuc.edu ##
15784## ----------------------------------- ##
15785_ASBOX
15786 ) | sed "s/^/$as_me: WARNING: /" >&2
15787 ;;
15788esac
15789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15793else
15794 eval "$as_ac_Header=\$ac_header_preproc"
15795fi
15796ac_res=`eval echo '${'$as_ac_Header'}'`
15797 { echo "$as_me:$LINENO: result: $ac_res" >&5
15798echo "${ECHO_T}$ac_res" >&6; }
15799
15800fi
15801if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015802 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015804_ACEOF
15805
15806fi
15807
15808done
Reid Spencer59473af2004-12-25 07:31:29 +000015809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015810
15811
15812
15813
Reid Spencerbe3e4192007-08-17 05:45:26 +000015814for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015815do
15816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822fi
15823ac_res=`eval echo '${'$as_ac_Header'}'`
15824 { echo "$as_me:$LINENO: result: $ac_res" >&5
15825echo "${ECHO_T}$ac_res" >&6; }
15826else
15827 # Is the header compilable?
15828{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15830cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836$ac_includes_default
15837#include <$ac_header>
15838_ACEOF
15839rm -f conftest.$ac_objext
15840if { (ac_try="$ac_compile"
15841case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15844esac
15845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_compile") 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15854 { (case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857esac
15858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_try") 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15867esac
15868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_try") 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 ac_header_compiler=yes
15874else
15875 echo "$as_me: failed program was:" >&5
15876sed 's/^/| /' conftest.$ac_ext >&5
15877
15878 ac_header_compiler=no
15879fi
15880
15881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15883echo "${ECHO_T}$ac_header_compiler" >&6; }
15884
15885# Is the header present?
15886{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15887echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15888cat >conftest.$ac_ext <<_ACEOF
15889/* confdefs.h. */
15890_ACEOF
15891cat confdefs.h >>conftest.$ac_ext
15892cat >>conftest.$ac_ext <<_ACEOF
15893/* end confdefs.h. */
15894#include <$ac_header>
15895_ACEOF
15896if { (ac_try="$ac_cpp conftest.$ac_ext"
15897case "(($ac_try" in
15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15900esac
15901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15903 ac_status=$?
15904 grep -v '^ *+' conftest.er1 >conftest.err
15905 rm -f conftest.er1
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } >/dev/null; then
15909 if test -s conftest.err; then
15910 ac_cpp_err=$ac_c_preproc_warn_flag
15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15912 else
15913 ac_cpp_err=
15914 fi
15915else
15916 ac_cpp_err=yes
15917fi
15918if test -z "$ac_cpp_err"; then
15919 ac_header_preproc=yes
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_header_preproc=no
15925fi
15926
15927rm -f conftest.err conftest.$ac_ext
15928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15929echo "${ECHO_T}$ac_header_preproc" >&6; }
15930
15931# So? What about this header?
15932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15933 yes:no: )
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15938 ac_header_preproc=yes
15939 ;;
15940 no:yes:* )
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15944echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15948echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15953 ( cat <<\_ASBOX
15954## ----------------------------------- ##
15955## Report this to llvmbugs@cs.uiuc.edu ##
15956## ----------------------------------- ##
15957_ASBOX
15958 ) | sed "s/^/$as_me: WARNING: /" >&2
15959 ;;
15960esac
15961{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15965else
15966 eval "$as_ac_Header=\$ac_header_preproc"
15967fi
15968ac_res=`eval echo '${'$as_ac_Header'}'`
15969 { echo "$as_me:$LINENO: result: $ac_res" >&5
15970echo "${ECHO_T}$ac_res" >&6; }
15971
15972fi
15973if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015974 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015976_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015977
15978fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015979
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015980done
15981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015982
15983
15984
15985
Douglas Gregor01746742009-05-11 18:05:52 +000015986for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015987do
15988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15994fi
15995ac_res=`eval echo '${'$as_ac_Header'}'`
15996 { echo "$as_me:$LINENO: result: $ac_res" >&5
15997echo "${ECHO_T}$ac_res" >&6; }
15998else
15999 # Is the header compilable?
16000{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16002cat >conftest.$ac_ext <<_ACEOF
16003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
16008$ac_includes_default
16009#include <$ac_header>
16010_ACEOF
16011rm -f conftest.$ac_objext
16012if { (ac_try="$ac_compile"
16013case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016esac
16017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_compile") 2>conftest.er1
16019 ac_status=$?
16020 grep -v '^ *+' conftest.er1 >conftest.err
16021 rm -f conftest.er1
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029esac
16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; } &&
16035 { ac_try='test -s conftest.$ac_objext'
16036 { (case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16039esac
16040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_try") 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 ac_header_compiler=yes
16046else
16047 echo "$as_me: failed program was:" >&5
16048sed 's/^/| /' conftest.$ac_ext >&5
16049
16050 ac_header_compiler=no
16051fi
16052
16053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16055echo "${ECHO_T}$ac_header_compiler" >&6; }
16056
16057# Is the header present?
16058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16060cat >conftest.$ac_ext <<_ACEOF
16061/* confdefs.h. */
16062_ACEOF
16063cat confdefs.h >>conftest.$ac_ext
16064cat >>conftest.$ac_ext <<_ACEOF
16065/* end confdefs.h. */
16066#include <$ac_header>
16067_ACEOF
16068if { (ac_try="$ac_cpp conftest.$ac_ext"
16069case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16072esac
16073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16075 ac_status=$?
16076 grep -v '^ *+' conftest.er1 >conftest.err
16077 rm -f conftest.er1
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } >/dev/null; then
16081 if test -s conftest.err; then
16082 ac_cpp_err=$ac_c_preproc_warn_flag
16083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16084 else
16085 ac_cpp_err=
16086 fi
16087else
16088 ac_cpp_err=yes
16089fi
16090if test -z "$ac_cpp_err"; then
16091 ac_header_preproc=yes
16092else
16093 echo "$as_me: failed program was:" >&5
16094sed 's/^/| /' conftest.$ac_ext >&5
16095
16096 ac_header_preproc=no
16097fi
16098
16099rm -f conftest.err conftest.$ac_ext
16100{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16101echo "${ECHO_T}$ac_header_preproc" >&6; }
16102
16103# So? What about this header?
16104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16105 yes:no: )
16106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16110 ac_header_preproc=yes
16111 ;;
16112 no:yes:* )
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16125 ( cat <<\_ASBOX
16126## ----------------------------------- ##
16127## Report this to llvmbugs@cs.uiuc.edu ##
16128## ----------------------------------- ##
16129_ASBOX
16130 ) | sed "s/^/$as_me: WARNING: /" >&2
16131 ;;
16132esac
16133{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16137else
16138 eval "$as_ac_Header=\$ac_header_preproc"
16139fi
16140ac_res=`eval echo '${'$as_ac_Header'}'`
16141 { echo "$as_me:$LINENO: result: $ac_res" >&5
16142echo "${ECHO_T}$ac_res" >&6; }
16143
16144fi
16145if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016146 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016148_ACEOF
16149
16150fi
16151
16152done
16153
Reid Spencer0a262ba2005-08-24 10:07:20 +000016154if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016155
16156for ac_header in pthread.h
16157do
16158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164fi
16165ac_res=`eval echo '${'$as_ac_Header'}'`
16166 { echo "$as_me:$LINENO: result: $ac_res" >&5
16167echo "${ECHO_T}$ac_res" >&6; }
16168else
16169 # Is the header compilable?
16170{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16172cat >conftest.$ac_ext <<_ACEOF
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
16177/* end confdefs.h. */
16178$ac_includes_default
16179#include <$ac_header>
16180_ACEOF
16181rm -f conftest.$ac_objext
16182if { (ac_try="$ac_compile"
16183case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16186esac
16187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_compile") 2>conftest.er1
16189 ac_status=$?
16190 grep -v '^ *+' conftest.er1 >conftest.err
16191 rm -f conftest.er1
16192 cat conftest.err >&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16199esac
16200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209esac
16210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_try") 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 ac_header_compiler=yes
16216else
16217 echo "$as_me: failed program was:" >&5
16218sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 ac_header_compiler=no
16221fi
16222
16223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16225echo "${ECHO_T}$ac_header_compiler" >&6; }
16226
16227# Is the header present?
16228{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16230cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236#include <$ac_header>
16237_ACEOF
16238if { (ac_try="$ac_cpp conftest.$ac_ext"
16239case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16242esac
16243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16245 ac_status=$?
16246 grep -v '^ *+' conftest.er1 >conftest.err
16247 rm -f conftest.er1
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } >/dev/null; then
16251 if test -s conftest.err; then
16252 ac_cpp_err=$ac_c_preproc_warn_flag
16253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16254 else
16255 ac_cpp_err=
16256 fi
16257else
16258 ac_cpp_err=yes
16259fi
16260if test -z "$ac_cpp_err"; then
16261 ac_header_preproc=yes
16262else
16263 echo "$as_me: failed program was:" >&5
16264sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 ac_header_preproc=no
16267fi
16268
16269rm -f conftest.err conftest.$ac_ext
16270{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16271echo "${ECHO_T}$ac_header_preproc" >&6; }
16272
16273# So? What about this header?
16274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16275 yes:no: )
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16280 ac_header_preproc=yes
16281 ;;
16282 no:yes:* )
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16295 ( cat <<\_ASBOX
16296## ----------------------------------- ##
16297## Report this to llvmbugs@cs.uiuc.edu ##
16298## ----------------------------------- ##
16299_ASBOX
16300 ) | sed "s/^/$as_me: WARNING: /" >&2
16301 ;;
16302esac
16303{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16307else
16308 eval "$as_ac_Header=\$ac_header_preproc"
16309fi
16310ac_res=`eval echo '${'$as_ac_Header'}'`
16311 { echo "$as_me:$LINENO: result: $ac_res" >&5
16312echo "${ECHO_T}$ac_res" >&6; }
16313
16314fi
16315if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016316 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016318_ACEOF
16319 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016320
16321else
16322 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016323
16324fi
16325
Reid Spencerbe3e4192007-08-17 05:45:26 +000016326done
Reid Spencer1000b732006-12-01 00:37:14 +000016327
16328else
16329 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016330
16331fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016332
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016333if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016334
16335
16336for ac_header in ffi.h ffi/ffi.h
16337do
16338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16344fi
16345ac_res=`eval echo '${'$as_ac_Header'}'`
16346 { echo "$as_me:$LINENO: result: $ac_res" >&5
16347echo "${ECHO_T}$ac_res" >&6; }
16348else
16349 # Is the header compilable?
16350{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16352cat >conftest.$ac_ext <<_ACEOF
16353/* confdefs.h. */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h. */
16358$ac_includes_default
16359#include <$ac_header>
16360_ACEOF
16361rm -f conftest.$ac_objext
16362if { (ac_try="$ac_compile"
16363case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366esac
16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_compile") 2>conftest.er1
16369 ac_status=$?
16370 grep -v '^ *+' conftest.er1 >conftest.err
16371 rm -f conftest.er1
16372 cat conftest.err >&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16376 { (case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16379esac
16380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_try") 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest.$ac_objext'
16386 { (case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16389esac
16390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_try") 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_header_compiler=yes
16396else
16397 echo "$as_me: failed program was:" >&5
16398sed 's/^/| /' conftest.$ac_ext >&5
16399
16400 ac_header_compiler=no
16401fi
16402
16403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16405echo "${ECHO_T}$ac_header_compiler" >&6; }
16406
16407# Is the header present?
16408{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16410cat >conftest.$ac_ext <<_ACEOF
16411/* confdefs.h. */
16412_ACEOF
16413cat confdefs.h >>conftest.$ac_ext
16414cat >>conftest.$ac_ext <<_ACEOF
16415/* end confdefs.h. */
16416#include <$ac_header>
16417_ACEOF
16418if { (ac_try="$ac_cpp conftest.$ac_ext"
16419case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16422esac
16423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } >/dev/null; then
16431 if test -s conftest.err; then
16432 ac_cpp_err=$ac_c_preproc_warn_flag
16433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16434 else
16435 ac_cpp_err=
16436 fi
16437else
16438 ac_cpp_err=yes
16439fi
16440if test -z "$ac_cpp_err"; then
16441 ac_header_preproc=yes
16442else
16443 echo "$as_me: failed program was:" >&5
16444sed 's/^/| /' conftest.$ac_ext >&5
16445
16446 ac_header_preproc=no
16447fi
16448
16449rm -f conftest.err conftest.$ac_ext
16450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16451echo "${ECHO_T}$ac_header_preproc" >&6; }
16452
16453# So? What about this header?
16454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16455 yes:no: )
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16460 ac_header_preproc=yes
16461 ;;
16462 no:yes:* )
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16475 ( cat <<\_ASBOX
16476## ----------------------------------- ##
16477## Report this to llvmbugs@cs.uiuc.edu ##
16478## ----------------------------------- ##
16479_ASBOX
16480 ) | sed "s/^/$as_me: WARNING: /" >&2
16481 ;;
16482esac
16483{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487else
16488 eval "$as_ac_Header=\$ac_header_preproc"
16489fi
16490ac_res=`eval echo '${'$as_ac_Header'}'`
16491 { echo "$as_me:$LINENO: result: $ac_res" >&5
16492echo "${ECHO_T}$ac_res" >&6; }
16493
16494fi
16495if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016496 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016498_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016499
16500fi
16501
16502done
16503
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016504fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016505
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016506
Reid Spencer8085cff2005-01-16 02:58:39 +000016507
Torok Edwin871384f2010-01-26 08:50:50 +000016508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016509 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16510echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16511if test "${ac_cv_huge_val_sanity+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016513else
16514
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016515 ac_ext=cpp
16516ac_cpp='$CXXCPP $CPPFLAGS'
16517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016520
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016521 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016522 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016523 ac_cv_huge_val_sanity=yes
16524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016525 cat >conftest.$ac_ext <<_ACEOF
16526/* confdefs.h. */
16527_ACEOF
16528cat confdefs.h >>conftest.$ac_ext
16529cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016530/* end confdefs.h. */
16531#include <math.h>
16532int
16533main ()
16534{
16535double x = HUGE_VAL; return x != x;
16536 ;
16537 return 0;
16538}
16539_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016540rm -f conftest$ac_exeext
16541if { (ac_try="$ac_link"
16542case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545esac
16546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_link") 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554esac
16555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016560 ac_cv_huge_val_sanity=yes
16561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016562 echo "$as_me: program exited with status $ac_status" >&5
16563echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566( exit $ac_status )
16567ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016568fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016569rm -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 +000016570fi
16571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016572
Reid Spencerb2ed05262006-11-03 18:04:08 +000016573 ac_ext=c
16574ac_cpp='$CPP $CPPFLAGS'
16575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16577ac_compiler_gnu=$ac_cv_c_compiler_gnu
16578
16579
16580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016581{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16582echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016583 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16584
16585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016586{ echo "$as_me:$LINENO: checking for pid_t" >&5
16587echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16588if test "${ac_cv_type_pid_t+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16590else
16591 cat >conftest.$ac_ext <<_ACEOF
16592/* confdefs.h. */
16593_ACEOF
16594cat confdefs.h >>conftest.$ac_ext
16595cat >>conftest.$ac_ext <<_ACEOF
16596/* end confdefs.h. */
16597$ac_includes_default
16598typedef pid_t ac__type_new_;
16599int
16600main ()
16601{
16602if ((ac__type_new_ *) 0)
16603 return 0;
16604if (sizeof (ac__type_new_))
16605 return 0;
16606 ;
16607 return 0;
16608}
16609_ACEOF
16610rm -f conftest.$ac_objext
16611if { (ac_try="$ac_compile"
16612case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16615esac
16616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_compile") 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16625 { (case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16628esac
16629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_try") 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest.$ac_objext'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_type_pid_t=yes
16645else
16646 echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016649 ac_cv_type_pid_t=no
16650fi
16651
16652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653fi
16654{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16655echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16656if test $ac_cv_type_pid_t = yes; then
16657 :
John Criswell7a73b802003-06-30 21:59:07 +000016658else
16659
16660cat >>confdefs.h <<_ACEOF
16661#define pid_t int
16662_ACEOF
16663
16664fi
16665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016666{ echo "$as_me:$LINENO: checking for size_t" >&5
16667echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16668if test "${ac_cv_type_size_t+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16670else
16671 cat >conftest.$ac_ext <<_ACEOF
16672/* confdefs.h. */
16673_ACEOF
16674cat confdefs.h >>conftest.$ac_ext
16675cat >>conftest.$ac_ext <<_ACEOF
16676/* end confdefs.h. */
16677$ac_includes_default
16678typedef size_t ac__type_new_;
16679int
16680main ()
16681{
16682if ((ac__type_new_ *) 0)
16683 return 0;
16684if (sizeof (ac__type_new_))
16685 return 0;
16686 ;
16687 return 0;
16688}
16689_ACEOF
16690rm -f conftest.$ac_objext
16691if { (ac_try="$ac_compile"
16692case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695esac
16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708esac
16709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_type_size_t=yes
16725else
16726 echo "$as_me: failed program was:" >&5
16727sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016729 ac_cv_type_size_t=no
16730fi
16731
16732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733fi
16734{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16735echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16736if test $ac_cv_type_size_t = yes; then
16737 :
John Criswell7a73b802003-06-30 21:59:07 +000016738else
16739
16740cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016741#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016742_ACEOF
16743
16744fi
16745
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016746
16747cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016748#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016749_ACEOF
16750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016751{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16752echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16753if test "${ac_cv_struct_tm+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016756 cat >conftest.$ac_ext <<_ACEOF
16757/* confdefs.h. */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016761/* end confdefs.h. */
16762#include <sys/types.h>
16763#include <time.h>
16764
16765int
16766main ()
16767{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016768struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016769 ;
16770 return 0;
16771}
16772_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016773rm -f conftest.$ac_objext
16774if { (ac_try="$ac_compile"
16775case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16778esac
16779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_compile") 2>conftest.er1
16781 ac_status=$?
16782 grep -v '^ *+' conftest.er1 >conftest.err
16783 rm -f conftest.er1
16784 cat conftest.err >&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
16787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16788 { (case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16791esac
16792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_try") 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
16798 { (case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801esac
16802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_try") 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016807 ac_cv_struct_tm=time.h
16808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016809 echo "$as_me: failed program was:" >&5
16810sed 's/^/| /' conftest.$ac_ext >&5
16811
16812 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016813fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016814
Reid Spencera773bd52006-08-04 18:18:08 +000016815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016817{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16818echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016819if test $ac_cv_struct_tm = sys/time.h; then
16820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016821cat >>confdefs.h <<\_ACEOF
16822#define TM_IN_SYS_TIME 1
16823_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016824
16825fi
16826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016827{ echo "$as_me:$LINENO: checking for int64_t" >&5
16828echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16829if test "${ac_cv_type_int64_t+set}" = set; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16831else
16832 cat >conftest.$ac_ext <<_ACEOF
16833/* confdefs.h. */
16834_ACEOF
16835cat confdefs.h >>conftest.$ac_ext
16836cat >>conftest.$ac_ext <<_ACEOF
16837/* end confdefs.h. */
16838$ac_includes_default
16839typedef int64_t ac__type_new_;
16840int
16841main ()
16842{
16843if ((ac__type_new_ *) 0)
16844 return 0;
16845if (sizeof (ac__type_new_))
16846 return 0;
16847 ;
16848 return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext
16852if { (ac_try="$ac_compile"
16853case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_compile") 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869esac
16870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest.$ac_objext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_type_int64_t=yes
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 ac_cv_type_int64_t=no
16891fi
16892
16893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894fi
16895{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16896echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16897if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016898
16899cat >>confdefs.h <<_ACEOF
16900#define HAVE_INT64_T 1
16901_ACEOF
16902
16903
16904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016905 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16906echo "$as_me: error: Type int64_t required but not found" >&2;}
16907 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016908fi
16909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016910{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16911echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16912if test "${ac_cv_type_uint64_t+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914else
16915 cat >conftest.$ac_ext <<_ACEOF
16916/* confdefs.h. */
16917_ACEOF
16918cat confdefs.h >>conftest.$ac_ext
16919cat >>conftest.$ac_ext <<_ACEOF
16920/* end confdefs.h. */
16921$ac_includes_default
16922typedef uint64_t ac__type_new_;
16923int
16924main ()
16925{
16926if ((ac__type_new_ *) 0)
16927 return 0;
16928if (sizeof (ac__type_new_))
16929 return 0;
16930 ;
16931 return 0;
16932}
16933_ACEOF
16934rm -f conftest.$ac_objext
16935if { (ac_try="$ac_compile"
16936case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16939esac
16940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_compile") 2>conftest.er1
16942 ac_status=$?
16943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16949 { (case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16952esac
16953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_try") 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; } &&
16958 { ac_try='test -s conftest.$ac_objext'
16959 { (case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962esac
16963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_try") 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_type_uint64_t=yes
16969else
16970 echo "$as_me: failed program was:" >&5
16971sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 ac_cv_type_uint64_t=no
16974fi
16975
16976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16977fi
16978{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16979echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16980if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016981
16982cat >>confdefs.h <<_ACEOF
16983#define HAVE_UINT64_T 1
16984_ACEOF
16985
16986
16987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016988 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16989echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16990if test "${ac_cv_type_u_int64_t+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992else
16993 cat >conftest.$ac_ext <<_ACEOF
16994/* confdefs.h. */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h. */
16999$ac_includes_default
17000typedef u_int64_t ac__type_new_;
17001int
17002main ()
17003{
17004if ((ac__type_new_ *) 0)
17005 return 0;
17006if (sizeof (ac__type_new_))
17007 return 0;
17008 ;
17009 return 0;
17010}
17011_ACEOF
17012rm -f conftest.$ac_objext
17013if { (ac_try="$ac_compile"
17014case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017esac
17018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_compile") 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17027 { (case "(($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_try") 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest.$ac_objext'
17037 { (case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040esac
17041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_try") 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_cv_type_u_int64_t=yes
17047else
17048 echo "$as_me: failed program was:" >&5
17049sed 's/^/| /' conftest.$ac_ext >&5
17050
17051 ac_cv_type_u_int64_t=no
17052fi
17053
17054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055fi
17056{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17057echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17058if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017059
17060cat >>confdefs.h <<_ACEOF
17061#define HAVE_U_INT64_T 1
17062_ACEOF
17063
17064
Misha Brukmanceca9042004-09-02 23:02:30 +000017065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017066 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17067echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17068 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017069fi
17070
John Criswell679ff312004-09-02 18:44:44 +000017071fi
17072
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017073
17074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017075
17076
17077
17078
17079
17080
17081
Reid Spencerdf3be822006-01-23 08:15:53 +000017082for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017083do
17084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17085{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17087if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17089else
17090 cat >conftest.$ac_ext <<_ACEOF
17091/* confdefs.h. */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h. */
17096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17098#define $ac_func innocuous_$ac_func
17099
17100/* System header to define __stub macros and hopefully few prototypes,
17101 which can conflict with char $ac_func (); below.
17102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17103 <limits.h> exists even on freestanding compilers. */
17104
17105#ifdef __STDC__
17106# include <limits.h>
17107#else
17108# include <assert.h>
17109#endif
17110
17111#undef $ac_func
17112
17113/* Override any GCC internal prototype to avoid an error.
17114 Use char because int might match the return type of a GCC
17115 builtin and then its argument prototype would still apply. */
17116#ifdef __cplusplus
17117extern "C"
17118#endif
17119char $ac_func ();
17120/* The GNU C library defines this for functions which it implements
17121 to always fail with ENOSYS. Some functions are actually named
17122 something starting with __ and the normal name is an alias. */
17123#if defined __stub_$ac_func || defined __stub___$ac_func
17124choke me
17125#endif
17126
17127int
17128main ()
17129{
17130return $ac_func ();
17131 ;
17132 return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext conftest$ac_exeext
17136if { (ac_try="$ac_link"
17137case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140esac
17141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($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_try") 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 eval "$as_ac_var=yes"
17170else
17171 echo "$as_me: failed program was:" >&5
17172sed 's/^/| /' conftest.$ac_ext >&5
17173
17174 eval "$as_ac_var=no"
17175fi
17176
17177rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179fi
17180ac_res=`eval echo '${'$as_ac_var'}'`
17181 { echo "$as_me:$LINENO: result: $ac_res" >&5
17182echo "${ECHO_T}$ac_res" >&6; }
17183if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017184 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017186_ACEOF
17187
17188fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017189done
John Criswell7a73b802003-06-30 21:59:07 +000017190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017191
17192
17193
17194
Reid Spencer96cf5872007-07-13 10:05:30 +000017195for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017196do
17197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202else
17203 cat >conftest.$ac_ext <<_ACEOF
17204/* confdefs.h. */
17205_ACEOF
17206cat confdefs.h >>conftest.$ac_ext
17207cat >>conftest.$ac_ext <<_ACEOF
17208/* end confdefs.h. */
17209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17211#define $ac_func innocuous_$ac_func
17212
17213/* System header to define __stub macros and hopefully few prototypes,
17214 which can conflict with char $ac_func (); below.
17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216 <limits.h> exists even on freestanding compilers. */
17217
17218#ifdef __STDC__
17219# include <limits.h>
17220#else
17221# include <assert.h>
17222#endif
17223
17224#undef $ac_func
17225
17226/* Override any GCC internal prototype to avoid an error.
17227 Use char because int might match the return type of a GCC
17228 builtin and then its argument prototype would still apply. */
17229#ifdef __cplusplus
17230extern "C"
17231#endif
17232char $ac_func ();
17233/* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236#if defined __stub_$ac_func || defined __stub___$ac_func
17237choke me
17238#endif
17239
17240int
17241main ()
17242{
17243return $ac_func ();
17244 ;
17245 return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext conftest$ac_exeext
17249if { (ac_try="$ac_link"
17250case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253esac
17254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_link") 2>conftest.er1
17256 ac_status=$?
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266esac
17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest$ac_exeext'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 eval "$as_ac_var=yes"
17283else
17284 echo "$as_me: failed program was:" >&5
17285sed 's/^/| /' conftest.$ac_ext >&5
17286
17287 eval "$as_ac_var=no"
17288fi
17289
17290rm -f core conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17292fi
17293ac_res=`eval echo '${'$as_ac_var'}'`
17294 { echo "$as_me:$LINENO: result: $ac_res" >&5
17295echo "${ECHO_T}$ac_res" >&6; }
17296if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017297 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017299_ACEOF
17300
17301fi
17302done
17303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017304
17305
17306
17307
17308
Reid Spencerb90645c2007-02-16 19:17:20 +000017309for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017310do
17311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17312{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17314if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17316else
17317 cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17325#define $ac_func innocuous_$ac_func
17326
17327/* System header to define __stub macros and hopefully few prototypes,
17328 which can conflict with char $ac_func (); below.
17329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17330 <limits.h> exists even on freestanding compilers. */
17331
17332#ifdef __STDC__
17333# include <limits.h>
17334#else
17335# include <assert.h>
17336#endif
17337
17338#undef $ac_func
17339
17340/* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343#ifdef __cplusplus
17344extern "C"
17345#endif
17346char $ac_func ();
17347/* The GNU C library defines this for functions which it implements
17348 to always fail with ENOSYS. Some functions are actually named
17349 something starting with __ and the normal name is an alias. */
17350#if defined __stub_$ac_func || defined __stub___$ac_func
17351choke me
17352#endif
17353
17354int
17355main ()
17356{
17357return $ac_func ();
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext conftest$ac_exeext
17363if { (ac_try="$ac_link"
17364case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367esac
17368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_link") 2>conftest.er1
17370 ac_status=$?
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest$ac_exeext'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 eval "$as_ac_var=yes"
17397else
17398 echo "$as_me: failed program was:" >&5
17399sed 's/^/| /' conftest.$ac_ext >&5
17400
17401 eval "$as_ac_var=no"
17402fi
17403
17404rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17406fi
17407ac_res=`eval echo '${'$as_ac_var'}'`
17408 { echo "$as_me:$LINENO: result: $ac_res" >&5
17409echo "${ECHO_T}$ac_res" >&6; }
17410if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017411 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017412#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017413_ACEOF
17414
17415fi
17416done
17417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017418
17419
17420
Reid Spencerb90645c2007-02-16 19:17:20 +000017421for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017422do
17423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17426if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17428else
17429 cat >conftest.$ac_ext <<_ACEOF
17430/* confdefs.h. */
17431_ACEOF
17432cat confdefs.h >>conftest.$ac_ext
17433cat >>conftest.$ac_ext <<_ACEOF
17434/* end confdefs.h. */
17435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437#define $ac_func innocuous_$ac_func
17438
17439/* System header to define __stub macros and hopefully few prototypes,
17440 which can conflict with char $ac_func (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
17443
17444#ifdef __STDC__
17445# include <limits.h>
17446#else
17447# include <assert.h>
17448#endif
17449
17450#undef $ac_func
17451
17452/* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17455#ifdef __cplusplus
17456extern "C"
17457#endif
17458char $ac_func ();
17459/* The GNU C library defines this for functions which it implements
17460 to always fail with ENOSYS. Some functions are actually named
17461 something starting with __ and the normal name is an alias. */
17462#if defined __stub_$ac_func || defined __stub___$ac_func
17463choke me
17464#endif
17465
17466int
17467main ()
17468{
17469return $ac_func ();
17470 ;
17471 return 0;
17472}
17473_ACEOF
17474rm -f conftest.$ac_objext conftest$ac_exeext
17475if { (ac_try="$ac_link"
17476case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479esac
17480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
17482 ac_status=$?
17483 grep -v '^ *+' conftest.er1 >conftest.err
17484 rm -f conftest.er1
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492esac
17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502esac
17503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 eval "$as_ac_var=yes"
17509else
17510 echo "$as_me: failed program was:" >&5
17511sed 's/^/| /' conftest.$ac_ext >&5
17512
17513 eval "$as_ac_var=no"
17514fi
17515
17516rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17518fi
17519ac_res=`eval echo '${'$as_ac_var'}'`
17520 { echo "$as_me:$LINENO: result: $ac_res" >&5
17521echo "${ECHO_T}$ac_res" >&6; }
17522if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017523 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017525_ACEOF
17526
17527fi
17528done
17529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017530
17531
17532
17533
17534
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017535for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017536do
17537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17538{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17540if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17542else
17543 cat >conftest.$ac_ext <<_ACEOF
17544/* confdefs.h. */
17545_ACEOF
17546cat confdefs.h >>conftest.$ac_ext
17547cat >>conftest.$ac_ext <<_ACEOF
17548/* end confdefs.h. */
17549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17551#define $ac_func innocuous_$ac_func
17552
17553/* System header to define __stub macros and hopefully few prototypes,
17554 which can conflict with char $ac_func (); below.
17555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17556 <limits.h> exists even on freestanding compilers. */
17557
17558#ifdef __STDC__
17559# include <limits.h>
17560#else
17561# include <assert.h>
17562#endif
17563
17564#undef $ac_func
17565
17566/* Override any GCC internal prototype to avoid an error.
17567 Use char because int might match the return type of a GCC
17568 builtin and then its argument prototype would still apply. */
17569#ifdef __cplusplus
17570extern "C"
17571#endif
17572char $ac_func ();
17573/* The GNU C library defines this for functions which it implements
17574 to always fail with ENOSYS. Some functions are actually named
17575 something starting with __ and the normal name is an alias. */
17576#if defined __stub_$ac_func || defined __stub___$ac_func
17577choke me
17578#endif
17579
17580int
17581main ()
17582{
17583return $ac_func ();
17584 ;
17585 return 0;
17586}
17587_ACEOF
17588rm -f conftest.$ac_objext conftest$ac_exeext
17589if { (ac_try="$ac_link"
17590case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17593esac
17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_link") 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17603 { (case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17606esac
17607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_try") 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest$ac_exeext'
17613 { (case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616esac
17617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_try") 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 eval "$as_ac_var=yes"
17623else
17624 echo "$as_me: failed program was:" >&5
17625sed 's/^/| /' conftest.$ac_ext >&5
17626
17627 eval "$as_ac_var=no"
17628fi
17629
17630rm -f core conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
17632fi
17633ac_res=`eval echo '${'$as_ac_var'}'`
17634 { echo "$as_me:$LINENO: result: $ac_res" >&5
17635echo "${ECHO_T}$ac_res" >&6; }
17636if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017637 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017639_ACEOF
17640
17641fi
17642done
Reid Spencerdf3be822006-01-23 08:15:53 +000017643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017644
17645
17646
17647
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017648for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017649do
17650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17651{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17655else
17656 cat >conftest.$ac_ext <<_ACEOF
17657/* confdefs.h. */
17658_ACEOF
17659cat confdefs.h >>conftest.$ac_ext
17660cat >>conftest.$ac_ext <<_ACEOF
17661/* end confdefs.h. */
17662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17664#define $ac_func innocuous_$ac_func
17665
17666/* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char $ac_func (); below.
17668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669 <limits.h> exists even on freestanding compilers. */
17670
17671#ifdef __STDC__
17672# include <limits.h>
17673#else
17674# include <assert.h>
17675#endif
17676
17677#undef $ac_func
17678
17679/* Override any GCC internal prototype to avoid an error.
17680 Use char because int might match the return type of a GCC
17681 builtin and then its argument prototype would still apply. */
17682#ifdef __cplusplus
17683extern "C"
17684#endif
17685char $ac_func ();
17686/* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689#if defined __stub_$ac_func || defined __stub___$ac_func
17690choke me
17691#endif
17692
17693int
17694main ()
17695{
17696return $ac_func ();
17697 ;
17698 return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext conftest$ac_exeext
17702if { (ac_try="$ac_link"
17703case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706esac
17707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_link") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest$ac_exeext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 eval "$as_ac_var=yes"
17736else
17737 echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
17739
17740 eval "$as_ac_var=no"
17741fi
17742
17743rm -f core conftest.err conftest.$ac_objext \
17744 conftest$ac_exeext conftest.$ac_ext
17745fi
17746ac_res=`eval echo '${'$as_ac_var'}'`
17747 { echo "$as_me:$LINENO: result: $ac_res" >&5
17748echo "${ECHO_T}$ac_res" >&6; }
17749if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017750 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017752_ACEOF
17753
17754fi
17755done
17756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017757
17758
17759
17760
Chris Lattner511f11d2005-11-14 07:25:50 +000017761for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017762do
17763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768else
17769 cat >conftest.$ac_ext <<_ACEOF
17770/* confdefs.h. */
17771_ACEOF
17772cat confdefs.h >>conftest.$ac_ext
17773cat >>conftest.$ac_ext <<_ACEOF
17774/* end confdefs.h. */
17775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17777#define $ac_func innocuous_$ac_func
17778
17779/* System header to define __stub macros and hopefully few prototypes,
17780 which can conflict with char $ac_func (); below.
17781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782 <limits.h> exists even on freestanding compilers. */
17783
17784#ifdef __STDC__
17785# include <limits.h>
17786#else
17787# include <assert.h>
17788#endif
17789
17790#undef $ac_func
17791
17792/* Override any GCC internal prototype to avoid an error.
17793 Use char because int might match the return type of a GCC
17794 builtin and then its argument prototype would still apply. */
17795#ifdef __cplusplus
17796extern "C"
17797#endif
17798char $ac_func ();
17799/* The GNU C library defines this for functions which it implements
17800 to always fail with ENOSYS. Some functions are actually named
17801 something starting with __ and the normal name is an alias. */
17802#if defined __stub_$ac_func || defined __stub___$ac_func
17803choke me
17804#endif
17805
17806int
17807main ()
17808{
17809return $ac_func ();
17810 ;
17811 return 0;
17812}
17813_ACEOF
17814rm -f conftest.$ac_objext conftest$ac_exeext
17815if { (ac_try="$ac_link"
17816case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819esac
17820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_link") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832esac
17833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842esac
17843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 eval "$as_ac_var=yes"
17849else
17850 echo "$as_me: failed program was:" >&5
17851sed 's/^/| /' conftest.$ac_ext >&5
17852
17853 eval "$as_ac_var=no"
17854fi
17855
17856rm -f core conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17858fi
17859ac_res=`eval echo '${'$as_ac_var'}'`
17860 { echo "$as_me:$LINENO: result: $ac_res" >&5
17861echo "${ECHO_T}$ac_res" >&6; }
17862if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017863 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017865_ACEOF
17866
17867fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017868done
John Criswell7a73b802003-06-30 21:59:07 +000017869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017870
17871
17872
17873
Reid Spencerafa22e22006-12-10 23:29:19 +000017874for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017875do
17876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17877{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881else
17882 cat >conftest.$ac_ext <<_ACEOF
17883/* confdefs.h. */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h. */
17888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17890#define $ac_func innocuous_$ac_func
17891
17892/* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char $ac_func (); below.
17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895 <limits.h> exists even on freestanding compilers. */
17896
17897#ifdef __STDC__
17898# include <limits.h>
17899#else
17900# include <assert.h>
17901#endif
17902
17903#undef $ac_func
17904
17905/* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17908#ifdef __cplusplus
17909extern "C"
17910#endif
17911char $ac_func ();
17912/* The GNU C library defines this for functions which it implements
17913 to always fail with ENOSYS. Some functions are actually named
17914 something starting with __ and the normal name is an alias. */
17915#if defined __stub_$ac_func || defined __stub___$ac_func
17916choke me
17917#endif
17918
17919int
17920main ()
17921{
17922return $ac_func ();
17923 ;
17924 return 0;
17925}
17926_ACEOF
17927rm -f conftest.$ac_objext conftest$ac_exeext
17928if { (ac_try="$ac_link"
17929case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17932esac
17933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_link") 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945esac
17946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest$ac_exeext'
17952 { (case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955esac
17956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_try") 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 eval "$as_ac_var=yes"
17962else
17963 echo "$as_me: failed program was:" >&5
17964sed 's/^/| /' conftest.$ac_ext >&5
17965
17966 eval "$as_ac_var=no"
17967fi
17968
17969rm -f core conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17971fi
17972ac_res=`eval echo '${'$as_ac_var'}'`
17973 { echo "$as_me:$LINENO: result: $ac_res" >&5
17974echo "${ECHO_T}$ac_res" >&6; }
17975if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017976 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017978_ACEOF
17979
17980fi
17981done
17982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017983{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17984echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17985if test "${llvm_cv_c_printf_a+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017987else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017988 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017989ac_cpp='$CPP $CPPFLAGS'
17990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17992ac_compiler_gnu=$ac_cv_c_compiler_gnu
17993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017994 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017995 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017997 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017999 /* confdefs.h. */
18000_ACEOF
18001cat confdefs.h >>conftest.$ac_ext
18002cat >>conftest.$ac_ext <<_ACEOF
18003/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018004
John Criswella0137d32003-10-13 16:22:01 +000018005#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018006#include <stdlib.h>
18007
John Criswella0137d32003-10-13 16:22:01 +000018008int
18009main ()
18010{
18011
Reid Spencer2706f8c2004-09-19 23:53:36 +000018012volatile double A, B;
18013char Buffer[100];
18014A = 1;
18015A /= 10.0;
18016sprintf(Buffer, "%a", A);
18017B = atof(Buffer);
18018if (A != B)
18019 return (1);
18020if (A != 0x1.999999999999ap-4)
18021 return (1);
18022return (0);
John Criswella0137d32003-10-13 16:22:01 +000018023 ;
18024 return 0;
18025}
18026_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018027rm -f conftest$ac_exeext
18028if { (ac_try="$ac_link"
18029case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18032esac
18033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034 (eval "$ac_link") 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18038 { (case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041esac
18042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_try") 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018047 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018049 echo "$as_me: program exited with status $ac_status" >&5
18050echo "$as_me: failed program was:" >&5
18051sed 's/^/| /' conftest.$ac_ext >&5
18052
18053( exit $ac_status )
18054llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018056rm -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 +000018057fi
Reid Spencera773bd52006-08-04 18:18:08 +000018058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018059
Reid Spencer2706f8c2004-09-19 23:53:36 +000018060 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018061ac_cpp='$CPP $CPPFLAGS'
18062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18064ac_compiler_gnu=$ac_cv_c_compiler_gnu
18065
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018067{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18068echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018069 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018071cat >>confdefs.h <<\_ACEOF
18072#define HAVE_PRINTF_A 1
18073_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018074
Reid Spencer2706f8c2004-09-19 23:53:36 +000018075 fi
John Criswella0137d32003-10-13 16:22:01 +000018076
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018078{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18079echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18080if test "${ac_cv_func_rand48+set}" = set; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018082else
Reid Spencera773bd52006-08-04 18:18:08 +000018083 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018084ac_cpp='$CXXCPP $CPPFLAGS'
18085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018089 cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h. */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018094/* end confdefs.h. */
18095#include <stdlib.h>
18096int
18097main ()
18098{
18099srand48(0);lrand48();drand48();
18100 ;
18101 return 0;
18102}
18103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018104rm -f conftest.$ac_objext
18105if { (ac_try="$ac_compile"
18106case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18109esac
18110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_compile") 2>conftest.er1
18112 ac_status=$?
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest.$ac_objext'
18129 { (case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18132esac
18133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_try") 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018138 ac_cv_func_rand48=yes
18139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018140 echo "$as_me: failed program was:" >&5
18141sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018145
Reid Spencera773bd52006-08-04 18:18:08 +000018146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018147 ac_ext=c
18148ac_cpp='$CPP $CPPFLAGS'
18149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151ac_compiler_gnu=$ac_cv_c_compiler_gnu
18152
18153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018154{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18155echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018156
18157if test "$ac_cv_func_rand48" = "yes" ; then
18158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018159cat >>confdefs.h <<\_ACEOF
18160#define HAVE_RAND48 1
18161_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018162
18163fi
John Criswell0021c312004-02-13 21:57:29 +000018164
18165
Torok Edwin871384f2010-01-26 08:50:50 +000018166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018167{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18168echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18169if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018171else
Reid Spencera773bd52006-08-04 18:18:08 +000018172 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018173ac_cpp='$CXXCPP $CPPFLAGS'
18174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018178 cat >conftest.$ac_ext <<_ACEOF
18179/* confdefs.h. */
18180_ACEOF
18181cat confdefs.h >>conftest.$ac_ext
18182cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018183/* end confdefs.h. */
18184#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018185int
18186main ()
18187{
18188float f; isnan(f);
18189 ;
18190 return 0;
18191}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018192_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018193rm -f conftest.$ac_objext
18194if { (ac_try="$ac_compile"
18195case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198esac
18199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_compile") 2>conftest.er1
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18208 { (case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211esac
18212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_try") 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try='test -s conftest.$ac_objext'
18218 { (case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18221esac
18222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_try") 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018227 ac_cv_func_isnan_in_math_h=yes
18228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018229 echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018234
Reid Spencera773bd52006-08-04 18:18:08 +000018235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018236 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018237ac_cpp='$CPP $CPPFLAGS'
18238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18240ac_compiler_gnu=$ac_cv_c_compiler_gnu
18241
18242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018243{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18244echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018245
18246
18247if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018249cat >>confdefs.h <<\_ACEOF
18250#define HAVE_ISNAN_IN_MATH_H 1
18251_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018252
Reid Spencerabec8f92004-10-27 23:03:44 +000018253fi
18254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018255{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18256echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18257if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018259else
Reid Spencera773bd52006-08-04 18:18:08 +000018260 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018261ac_cpp='$CXXCPP $CPPFLAGS'
18262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018266 cat >conftest.$ac_ext <<_ACEOF
18267/* confdefs.h. */
18268_ACEOF
18269cat confdefs.h >>conftest.$ac_ext
18270cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018271/* end confdefs.h. */
18272#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018273int
18274main ()
18275{
18276float f; isnan(f);
18277 ;
18278 return 0;
18279}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018280_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018281rm -f conftest.$ac_objext
18282if { (ac_try="$ac_compile"
18283case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286esac
18287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_compile") 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18296 { (case "(($ac_try" in
18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298 *) ac_try_echo=$ac_try;;
18299esac
18300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_try") 2>&5
18302 ac_status=$?
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try='test -s conftest.$ac_objext'
18306 { (case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18309esac
18310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_try") 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018315 ac_cv_func_isnan_in_cmath=yes
18316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018317 echo "$as_me: failed program was:" >&5
18318sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018322
Reid Spencera773bd52006-08-04 18:18:08 +000018323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018324 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018325ac_cpp='$CPP $CPPFLAGS'
18326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328ac_compiler_gnu=$ac_cv_c_compiler_gnu
18329
18330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018331{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18332echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018333
18334if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018336cat >>confdefs.h <<\_ACEOF
18337#define HAVE_ISNAN_IN_CMATH 1
18338_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018339
Reid Spencerabec8f92004-10-27 23:03:44 +000018340fi
18341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018342{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18343echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18344if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018346else
Reid Spencera773bd52006-08-04 18:18:08 +000018347 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018348ac_cpp='$CXXCPP $CPPFLAGS'
18349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018353 cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018358/* end confdefs.h. */
18359#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018360int
18361main ()
18362{
18363float f; std::isnan(f);
18364 ;
18365 return 0;
18366}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018367_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018368rm -f conftest.$ac_objext
18369if { (ac_try="$ac_compile"
18370case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373esac
18374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_compile") 2>conftest.er1
18376 ac_status=$?
18377 grep -v '^ *+' conftest.er1 >conftest.err
18378 rm -f conftest.er1
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
18382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18383 { (case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18386esac
18387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_try") 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest.$ac_objext'
18393 { (case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396esac
18397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_try") 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018402 ac_cv_func_std_isnan_in_cmath=yes
18403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018404 echo "$as_me: failed program was:" >&5
18405sed 's/^/| /' conftest.$ac_ext >&5
18406
18407 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018409
Reid Spencera773bd52006-08-04 18:18:08 +000018410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018411 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018412ac_cpp='$CPP $CPPFLAGS'
18413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415ac_compiler_gnu=$ac_cv_c_compiler_gnu
18416
18417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018418{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18419echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018420
18421if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018423cat >>confdefs.h <<\_ACEOF
18424#define HAVE_STD_ISNAN_IN_CMATH 1
18425_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018426
Reid Spencerabec8f92004-10-27 23:03:44 +000018427fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018428
18429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018430{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18431echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18432if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018434else
Reid Spencera773bd52006-08-04 18:18:08 +000018435 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018436ac_cpp='$CXXCPP $CPPFLAGS'
18437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018441 cat >conftest.$ac_ext <<_ACEOF
18442/* confdefs.h. */
18443_ACEOF
18444cat confdefs.h >>conftest.$ac_ext
18445cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018446/* end confdefs.h. */
18447#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018448int
18449main ()
18450{
18451float f; isinf(f);
18452 ;
18453 return 0;
18454}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018456rm -f conftest.$ac_objext
18457if { (ac_try="$ac_compile"
18458case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18461esac
18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_compile") 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474esac
18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_try") 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } &&
18480 { ac_try='test -s conftest.$ac_objext'
18481 { (case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18484esac
18485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_try") 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018490 ac_cv_func_isinf_in_math_h=yes
18491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018492 echo "$as_me: failed program was:" >&5
18493sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018497
Reid Spencera773bd52006-08-04 18:18:08 +000018498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018499 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018500ac_cpp='$CPP $CPPFLAGS'
18501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503ac_compiler_gnu=$ac_cv_c_compiler_gnu
18504
18505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018506{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18507echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018508
18509if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018511cat >>confdefs.h <<\_ACEOF
18512#define HAVE_ISINF_IN_MATH_H 1
18513_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018514
Reid Spencerabec8f92004-10-27 23:03:44 +000018515fi
18516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018517{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18518echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18519if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18520 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018521else
Reid Spencera773bd52006-08-04 18:18:08 +000018522 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018523ac_cpp='$CXXCPP $CPPFLAGS'
18524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018528 cat >conftest.$ac_ext <<_ACEOF
18529/* confdefs.h. */
18530_ACEOF
18531cat confdefs.h >>conftest.$ac_ext
18532cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018533/* end confdefs.h. */
18534#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018535int
18536main ()
18537{
18538float f; isinf(f);
18539 ;
18540 return 0;
18541}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018543rm -f conftest.$ac_objext
18544if { (ac_try="$ac_compile"
18545case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548esac
18549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_compile") 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18558 { (case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561esac
18562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_try") 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest.$ac_objext'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571esac
18572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018577 ac_cv_func_isinf_in_cmath=yes
18578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018579 echo "$as_me: failed program was:" >&5
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018584
Reid Spencera773bd52006-08-04 18:18:08 +000018585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018586 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018587ac_cpp='$CPP $CPPFLAGS'
18588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18590ac_compiler_gnu=$ac_cv_c_compiler_gnu
18591
18592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018593{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18594echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018595
18596if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018598cat >>confdefs.h <<\_ACEOF
18599#define HAVE_ISINF_IN_CMATH 1
18600_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018601
Reid Spencerabec8f92004-10-27 23:03:44 +000018602fi
18603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018604{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18605echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18606if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018608else
Reid Spencera773bd52006-08-04 18:18:08 +000018609 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018610ac_cpp='$CXXCPP $CPPFLAGS'
18611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018615 cat >conftest.$ac_ext <<_ACEOF
18616/* confdefs.h. */
18617_ACEOF
18618cat confdefs.h >>conftest.$ac_ext
18619cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018620/* end confdefs.h. */
18621#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018622int
18623main ()
18624{
18625float f; std::isinf(f)}
18626 ;
18627 return 0;
18628}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018629_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018630rm -f conftest.$ac_objext
18631if { (ac_try="$ac_compile"
18632case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635esac
18636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_compile") 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18645 { (case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648esac
18649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_try") 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try='test -s conftest.$ac_objext'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658esac
18659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018664 ac_cv_func_std_isinf_in_cmath=yes
18665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018666 echo "$as_me: failed program was:" >&5
18667sed 's/^/| /' conftest.$ac_ext >&5
18668
18669 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018671
Reid Spencera773bd52006-08-04 18:18:08 +000018672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018673 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018674ac_cpp='$CPP $CPPFLAGS'
18675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18677ac_compiler_gnu=$ac_cv_c_compiler_gnu
18678
18679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018680{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18681echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018682
18683if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018685cat >>confdefs.h <<\_ACEOF
18686#define HAVE_STD_ISINF_IN_CMATH 1
18687_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018688
Reid Spencerabec8f92004-10-27 23:03:44 +000018689fi
18690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018691{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18692echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18693if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018695else
Reid Spencera773bd52006-08-04 18:18:08 +000018696 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000018697ac_cpp='$CXXCPP $CPPFLAGS'
18698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018702 cat >conftest.$ac_ext <<_ACEOF
18703/* confdefs.h. */
18704_ACEOF
18705cat confdefs.h >>conftest.$ac_ext
18706cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018707/* end confdefs.h. */
18708#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018709int
18710main ()
18711{
18712float f; finite(f);
18713 ;
18714 return 0;
18715}
Brian Gaeked59a6472004-07-21 03:33:58 +000018716_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018717rm -f conftest.$ac_objext
18718if { (ac_try="$ac_compile"
18719case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722esac
18723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_compile") 2>conftest.er1
18725 ac_status=$?
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18732 { (case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735esac
18736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_try") 2>&5
18738 ac_status=$?
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; } &&
18741 { ac_try='test -s conftest.$ac_objext'
18742 { (case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745esac
18746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_try") 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018751 ac_cv_func_finite_in_ieeefp_h=yes
18752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018753 echo "$as_me: failed program was:" >&5
18754sed 's/^/| /' conftest.$ac_ext >&5
18755
18756 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000018757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018758
Reid Spencera773bd52006-08-04 18:18:08 +000018759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018760 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000018761ac_cpp='$CPP $CPPFLAGS'
18762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18764ac_compiler_gnu=$ac_cv_c_compiler_gnu
18765
18766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018767{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18768echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018769
Brian Gaeke6802b552004-10-28 05:06:45 +000018770if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018772cat >>confdefs.h <<\_ACEOF
18773#define HAVE_FINITE_IN_IEEEFP_H 1
18774_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018775
Reid Spencerabec8f92004-10-27 23:03:44 +000018776fi
18777
18778
18779
Reid Spencer30fe5262007-01-20 07:48:49 +000018780if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000018781
18782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018783for ac_header in stdlib.h unistd.h
18784do
18785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18791fi
18792ac_res=`eval echo '${'$as_ac_Header'}'`
18793 { echo "$as_me:$LINENO: result: $ac_res" >&5
18794echo "${ECHO_T}$ac_res" >&6; }
18795else
18796 # Is the header compilable?
18797{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18799cat >conftest.$ac_ext <<_ACEOF
18800/* confdefs.h. */
18801_ACEOF
18802cat confdefs.h >>conftest.$ac_ext
18803cat >>conftest.$ac_ext <<_ACEOF
18804/* end confdefs.h. */
18805$ac_includes_default
18806#include <$ac_header>
18807_ACEOF
18808rm -f conftest.$ac_objext
18809if { (ac_try="$ac_compile"
18810case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18813esac
18814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_compile") 2>conftest.er1
18816 ac_status=$?
18817 grep -v '^ *+' conftest.er1 >conftest.err
18818 rm -f conftest.er1
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } &&
18822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18823 { (case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826esac
18827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_try") 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest.$ac_objext'
18833 { (case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18836esac
18837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_try") 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_header_compiler=yes
18843else
18844 echo "$as_me: failed program was:" >&5
18845sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018847 ac_header_compiler=no
18848fi
18849
18850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18852echo "${ECHO_T}$ac_header_compiler" >&6; }
18853
18854# Is the header present?
18855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18857cat >conftest.$ac_ext <<_ACEOF
18858/* confdefs.h. */
18859_ACEOF
18860cat confdefs.h >>conftest.$ac_ext
18861cat >>conftest.$ac_ext <<_ACEOF
18862/* end confdefs.h. */
18863#include <$ac_header>
18864_ACEOF
18865if { (ac_try="$ac_cpp conftest.$ac_ext"
18866case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } >/dev/null; then
18878 if test -s conftest.err; then
18879 ac_cpp_err=$ac_c_preproc_warn_flag
18880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18881 else
18882 ac_cpp_err=
18883 fi
18884else
18885 ac_cpp_err=yes
18886fi
18887if test -z "$ac_cpp_err"; then
18888 ac_header_preproc=yes
18889else
18890 echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
18893 ac_header_preproc=no
18894fi
18895
18896rm -f conftest.err conftest.$ac_ext
18897{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18898echo "${ECHO_T}$ac_header_preproc" >&6; }
18899
18900# So? What about this header?
18901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18902 yes:no: )
18903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18907 ac_header_preproc=yes
18908 ;;
18909 no:yes:* )
18910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18922 ( cat <<\_ASBOX
18923## ----------------------------------- ##
18924## Report this to llvmbugs@cs.uiuc.edu ##
18925## ----------------------------------- ##
18926_ASBOX
18927 ) | sed "s/^/$as_me: WARNING: /" >&2
18928 ;;
18929esac
18930{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18934else
18935 eval "$as_ac_Header=\$ac_header_preproc"
18936fi
18937ac_res=`eval echo '${'$as_ac_Header'}'`
18938 { echo "$as_me:$LINENO: result: $ac_res" >&5
18939echo "${ECHO_T}$ac_res" >&6; }
18940
18941fi
18942if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018943 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018945_ACEOF
18946
18947fi
18948
18949done
18950
18951
18952for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018953do
18954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18959else
18960 cat >conftest.$ac_ext <<_ACEOF
18961/* confdefs.h. */
18962_ACEOF
18963cat confdefs.h >>conftest.$ac_ext
18964cat >>conftest.$ac_ext <<_ACEOF
18965/* end confdefs.h. */
18966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18968#define $ac_func innocuous_$ac_func
18969
18970/* System header to define __stub macros and hopefully few prototypes,
18971 which can conflict with char $ac_func (); below.
18972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18973 <limits.h> exists even on freestanding compilers. */
18974
18975#ifdef __STDC__
18976# include <limits.h>
18977#else
18978# include <assert.h>
18979#endif
18980
18981#undef $ac_func
18982
18983/* Override any GCC internal prototype to avoid an error.
18984 Use char because int might match the return type of a GCC
18985 builtin and then its argument prototype would still apply. */
18986#ifdef __cplusplus
18987extern "C"
18988#endif
18989char $ac_func ();
18990/* The GNU C library defines this for functions which it implements
18991 to always fail with ENOSYS. Some functions are actually named
18992 something starting with __ and the normal name is an alias. */
18993#if defined __stub_$ac_func || defined __stub___$ac_func
18994choke me
18995#endif
18996
18997int
18998main ()
18999{
19000return $ac_func ();
19001 ;
19002 return 0;
19003}
19004_ACEOF
19005rm -f conftest.$ac_objext conftest$ac_exeext
19006if { (ac_try="$ac_link"
19007case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19010esac
19011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_link") 2>conftest.er1
19013 ac_status=$?
19014 grep -v '^ *+' conftest.er1 >conftest.err
19015 rm -f conftest.er1
19016 cat conftest.err >&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } &&
19019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19020 { (case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19023esac
19024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_try") 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest$ac_exeext'
19030 { (case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033esac
19034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_try") 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 eval "$as_ac_var=yes"
19040else
19041 echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044 eval "$as_ac_var=no"
19045fi
19046
19047rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19049fi
19050ac_res=`eval echo '${'$as_ac_var'}'`
19051 { echo "$as_me:$LINENO: result: $ac_res" >&5
19052echo "${ECHO_T}$ac_res" >&6; }
19053if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019054 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019056_ACEOF
19057
19058fi
19059done
19060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019061{ echo "$as_me:$LINENO: checking for working mmap" >&5
19062echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19063if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019066 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019067 ac_cv_func_mmap_fixed_mapped=no
19068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019069 cat >conftest.$ac_ext <<_ACEOF
19070/* confdefs.h. */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019074/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019075$ac_includes_default
19076/* malloc might have been renamed as rpl_malloc. */
19077#undef malloc
19078
19079/* Thanks to Mike Haertel and Jim Avera for this test.
19080 Here is a matrix of mmap possibilities:
19081 mmap private not fixed
19082 mmap private fixed at somewhere currently unmapped
19083 mmap private fixed at somewhere already mapped
19084 mmap shared not fixed
19085 mmap shared fixed at somewhere currently unmapped
19086 mmap shared fixed at somewhere already mapped
19087 For private mappings, we should verify that changes cannot be read()
19088 back from the file, nor mmap's back from the file at a different
19089 address. (There have been systems where private was not correctly
19090 implemented like the infamous i386 svr4.0, and systems where the
19091 VM page cache was not coherent with the file system buffer cache
19092 like early versions of FreeBSD and possibly contemporary NetBSD.)
19093 For shared mappings, we should conversely verify that changes get
19094 propagated back to all the places they're supposed to be.
19095
19096 Grep wants private fixed already mapped.
19097 The main things grep needs to know about mmap are:
19098 * does it exist and is it safe to write into the mmap'd area
19099 * how to use it (BSD variants) */
19100
19101#include <fcntl.h>
19102#include <sys/mman.h>
19103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019104#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019105char *malloc ();
19106#endif
19107
19108/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019109#if !HAVE_GETPAGESIZE
19110/* Assume that all systems that can run configure have sys/param.h. */
19111# if !HAVE_SYS_PARAM_H
19112# define HAVE_SYS_PARAM_H 1
19113# endif
19114
John Criswell7a73b802003-06-30 21:59:07 +000019115# ifdef _SC_PAGESIZE
19116# define getpagesize() sysconf(_SC_PAGESIZE)
19117# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019118# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019119# include <sys/param.h>
19120# ifdef EXEC_PAGESIZE
19121# define getpagesize() EXEC_PAGESIZE
19122# else /* no EXEC_PAGESIZE */
19123# ifdef NBPG
19124# define getpagesize() NBPG * CLSIZE
19125# ifndef CLSIZE
19126# define CLSIZE 1
19127# endif /* no CLSIZE */
19128# else /* no NBPG */
19129# ifdef NBPC
19130# define getpagesize() NBPC
19131# else /* no NBPC */
19132# ifdef PAGESIZE
19133# define getpagesize() PAGESIZE
19134# endif /* PAGESIZE */
19135# endif /* no NBPC */
19136# endif /* no NBPG */
19137# endif /* no EXEC_PAGESIZE */
19138# else /* no HAVE_SYS_PARAM_H */
19139# define getpagesize() 8192 /* punt totally */
19140# endif /* no HAVE_SYS_PARAM_H */
19141# endif /* no _SC_PAGESIZE */
19142
19143#endif /* no HAVE_GETPAGESIZE */
19144
19145int
19146main ()
19147{
19148 char *data, *data2, *data3;
19149 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019150 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019151
19152 pagesize = getpagesize ();
19153
19154 /* First, make a file with some known garbage in it. */
19155 data = (char *) malloc (pagesize);
19156 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019157 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019158 for (i = 0; i < pagesize; ++i)
19159 *(data + i) = rand ();
19160 umask (0);
19161 fd = creat ("conftest.mmap", 0600);
19162 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019163 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019164 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019165 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019166 close (fd);
19167
19168 /* Next, try to mmap the file at a fixed address which already has
19169 something else allocated at it. If we can, also make sure that
19170 we see the same garbage. */
19171 fd = open ("conftest.mmap", O_RDWR);
19172 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019173 return 1;
19174 data2 = (char *) malloc (2 * pagesize);
19175 if (!data2)
19176 return 1;
19177 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019180 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019181 for (i = 0; i < pagesize; ++i)
19182 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019183 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019184
19185 /* Finally, make sure that changes to the mapped area do not
19186 percolate back to the file as seen by read(). (This is a bug on
19187 some variants of i386 svr4.0.) */
19188 for (i = 0; i < pagesize; ++i)
19189 *(data2 + i) = *(data2 + i) + 1;
19190 data3 = (char *) malloc (pagesize);
19191 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019192 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019193 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019194 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019195 for (i = 0; i < pagesize; ++i)
19196 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019197 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019198 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019199 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019200}
19201_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019202rm -f conftest$ac_exeext
19203if { (ac_try="$ac_link"
19204case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19207esac
19208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_link") 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19213 { (case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216esac
19217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_try") 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019222 ac_cv_func_mmap_fixed_mapped=yes
19223else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019224 echo "$as_me: program exited with status $ac_status" >&5
19225echo "$as_me: failed program was:" >&5
19226sed 's/^/| /' conftest.$ac_ext >&5
19227
19228( exit $ac_status )
19229ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019231rm -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 +000019232fi
Reid Spencera773bd52006-08-04 18:18:08 +000019233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019234
John Criswell7a73b802003-06-30 21:59:07 +000019235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019236{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19237echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019238if test $ac_cv_func_mmap_fixed_mapped = yes; then
19239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019240cat >>confdefs.h <<\_ACEOF
19241#define HAVE_MMAP 1
19242_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019243
19244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019245rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019247 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19248echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19249if test "${ac_cv_func_mmap_file+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019251else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019252 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019253ac_cpp='$CPP $CPPFLAGS'
19254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19256ac_compiler_gnu=$ac_cv_c_compiler_gnu
19257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019258 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019259 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019261 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019263 /* confdefs.h. */
19264_ACEOF
19265cat confdefs.h >>conftest.$ac_ext
19266cat >>conftest.$ac_ext <<_ACEOF
19267/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019268
John Criswell7a73b802003-06-30 21:59:07 +000019269#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019270#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019271#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019272
19273int
19274main ()
19275{
John Criswell7a73b802003-06-30 21:59:07 +000019276
19277 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019278 fd = creat ("foo",0777);
19279 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19280 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019281 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019282 ;
19283 return 0;
19284}
John Criswell7a73b802003-06-30 21:59:07 +000019285_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019286rm -f conftest$ac_exeext
19287if { (ac_try="$ac_link"
19288case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19291esac
19292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_link") 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19297 { (case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19300esac
19301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_try") 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019306 ac_cv_func_mmap_file=yes
19307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019308 echo "$as_me: program exited with status $ac_status" >&5
19309echo "$as_me: failed program was:" >&5
19310sed 's/^/| /' conftest.$ac_ext >&5
19311
19312( exit $ac_status )
19313ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019315rm -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 +000019316fi
Reid Spencera773bd52006-08-04 18:18:08 +000019317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019318
John Criswell7a73b802003-06-30 21:59:07 +000019319 ac_ext=c
19320ac_cpp='$CPP $CPPFLAGS'
19321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323ac_compiler_gnu=$ac_cv_c_compiler_gnu
19324
19325
19326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019327{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19328echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019329if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019331cat >>confdefs.h <<\_ACEOF
19332#define HAVE_MMAP_FILE
19333_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019334
19335 MMAP_FILE=yes
19336
19337fi
19338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019339 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19340echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19341if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019343else
Reid Spencer582a23c2004-12-29 07:07:57 +000019344 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019345 ac_cv_need_dev_zero_for_mmap=yes
19346 else
19347 ac_cv_need_dev_zero_for_mmap=no
19348 fi
19349
19350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019351{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19352echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019353if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019355cat >>confdefs.h <<\_ACEOF
19356#define NEED_DEV_ZERO_FOR_MMAP 1
19357_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019358
19359fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019360
Reid Spencer30fe5262007-01-20 07:48:49 +000019361 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19362 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019363 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19364echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019365 fi
19366 if test "$ac_cv_func_mmap_file" = "no"
19367 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019368 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19369echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019370 fi
John Criswellb13092b2003-07-22 21:00:24 +000019371fi
John Criswell7a73b802003-06-30 21:59:07 +000019372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019373{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19374echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19375cat >conftest.$ac_ext <<_ACEOF
19376/* confdefs.h. */
19377_ACEOF
19378cat confdefs.h >>conftest.$ac_ext
19379cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019380/* end confdefs.h. */
19381int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019382 volatile unsigned long val = 1;
19383 __sync_synchronize();
19384 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019385 __sync_add_and_fetch(&val, 1);
19386 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019387 return 0;
19388 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019389
19390_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019391rm -f conftest.$ac_objext conftest$ac_exeext
19392if { (ac_try="$ac_link"
19393case "(($ac_try" in
19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19396esac
19397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_link") 2>conftest.er1
19399 ac_status=$?
19400 grep -v '^ *+' conftest.er1 >conftest.err
19401 rm -f conftest.er1
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } &&
19405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19406 { (case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19409esac
19410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_try") 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; } &&
19415 { ac_try='test -s conftest$ac_exeext'
19416 { (case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419esac
19420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_try") 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 { echo "$as_me:$LINENO: result: yes" >&5
19426echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019428cat >>confdefs.h <<\_ACEOF
19429#define LLVM_MULTITHREADED 1
19430_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019431
Owen Andersond4b272b2009-05-18 23:58:51 +000019432else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019433 echo "$as_me: failed program was:" >&5
19434sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019436 { echo "$as_me:$LINENO: result: no" >&5
19437echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019439cat >>confdefs.h <<\_ACEOF
19440#define LLVM_MULTITHREADED 0
19441_ACEOF
19442
19443 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19444echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019446
Owen Andersond4b272b2009-05-18 23:58:51 +000019447rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019448 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019449
19450
John Criswell7a73b802003-06-30 21:59:07 +000019451
Nick Lewycky4372e692009-09-29 06:18:23 +000019452if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019453 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19454echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19455if test "${llvm_cv_linux_mixed+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019457else
19458 ac_ext=c
19459ac_cpp='$CPP $CPPFLAGS'
19460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19462ac_compiler_gnu=$ac_cv_c_compiler_gnu
19463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019464 cat >conftest.$ac_ext <<_ACEOF
19465/* confdefs.h. */
19466_ACEOF
19467cat confdefs.h >>conftest.$ac_ext
19468cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019469/* end confdefs.h. */
19470#ifndef __x86_64__
19471 error: Not x86-64 even if uname says so!
19472 #endif
19473
19474int
19475main ()
19476{
19477
19478 ;
19479 return 0;
19480}
19481_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019482rm -f conftest.$ac_objext
19483if { (ac_try="$ac_compile"
19484case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487esac
19488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_compile") 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19497 { (case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500esac
19501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_try") 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510esac
19511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019516 llvm_cv_linux_mixed=no
19517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019518 echo "$as_me: failed program was:" >&5
19519sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019523
Nick Lewycky4372e692009-09-29 06:18:23 +000019524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 ac_ext=c
19526ac_cpp='$CPP $CPPFLAGS'
19527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529ac_compiler_gnu=$ac_cv_c_compiler_gnu
19530
19531
19532fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019533{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19534echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019535
19536 if test "$llvm_cv_linux_mixed" = "yes"; then
19537 llvm_cv_target_arch="x86"
19538 ARCH="x86"
19539 fi
19540fi
19541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019542
Reid Spencer9372f152007-07-30 20:13:24 +000019543for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019544do
19545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19546{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19548if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19550else
19551 cat >conftest.$ac_ext <<_ACEOF
19552/* confdefs.h. */
19553_ACEOF
19554cat confdefs.h >>conftest.$ac_ext
19555cat >>conftest.$ac_ext <<_ACEOF
19556/* end confdefs.h. */
19557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19559#define $ac_func innocuous_$ac_func
19560
19561/* System header to define __stub macros and hopefully few prototypes,
19562 which can conflict with char $ac_func (); below.
19563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19564 <limits.h> exists even on freestanding compilers. */
19565
19566#ifdef __STDC__
19567# include <limits.h>
19568#else
19569# include <assert.h>
19570#endif
19571
19572#undef $ac_func
19573
19574/* Override any GCC internal prototype to avoid an error.
19575 Use char because int might match the return type of a GCC
19576 builtin and then its argument prototype would still apply. */
19577#ifdef __cplusplus
19578extern "C"
19579#endif
19580char $ac_func ();
19581/* The GNU C library defines this for functions which it implements
19582 to always fail with ENOSYS. Some functions are actually named
19583 something starting with __ and the normal name is an alias. */
19584#if defined __stub_$ac_func || defined __stub___$ac_func
19585choke me
19586#endif
19587
19588int
19589main ()
19590{
19591return $ac_func ();
19592 ;
19593 return 0;
19594}
19595_ACEOF
19596rm -f conftest.$ac_objext conftest$ac_exeext
19597if { (ac_try="$ac_link"
19598case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601esac
19602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_link") 2>conftest.er1
19604 ac_status=$?
19605 grep -v '^ *+' conftest.er1 >conftest.err
19606 rm -f conftest.er1
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19611 { (case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19614esac
19615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_try") 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; } &&
19620 { ac_try='test -s conftest$ac_exeext'
19621 { (case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19624esac
19625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_try") 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; }; then
19630 eval "$as_ac_var=yes"
19631else
19632 echo "$as_me: failed program was:" >&5
19633sed 's/^/| /' conftest.$ac_ext >&5
19634
19635 eval "$as_ac_var=no"
19636fi
19637
19638rm -f core conftest.err conftest.$ac_objext \
19639 conftest$ac_exeext conftest.$ac_ext
19640fi
19641ac_res=`eval echo '${'$as_ac_var'}'`
19642 { echo "$as_me:$LINENO: result: $ac_res" >&5
19643echo "${ECHO_T}$ac_res" >&6; }
19644if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019645 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019647_ACEOF
19648
19649fi
19650done
19651
19652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019653{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19654echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19655if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019657else
19658 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019659if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019660 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019661 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19662 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019663 if test $? -eq 0 ; then
19664 llvm_cv_llvmgcc_sanity="yes"
19665 fi
19666 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019667fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019668fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19670echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019671
19672if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019673 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19674echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019675 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019676 LLVMCC1=$llvmcc1path
19677
Reid Spencer502935f2004-12-22 05:56:56 +000019678 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019679 LLVMCC1PLUS=$llvmcc1pluspath
19680
Reid Spencer502935f2004-12-22 05:56:56 +000019681 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19682 LLVMGCCDIR=$llvmgccdir
19683
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019684 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019685 LLVMGCC_LANGS=$llvmgcclangs
19686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019687 { echo "$as_me:$LINENO: result: ok" >&5
19688echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019689fi
19690
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019691SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019692
19693
Reid Spencere9de0912004-08-20 09:03:57 +000019694# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019695# information into substitutions that will end up in Makefile.config.in
19696# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019697if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019698 prefix="/usr/local"
19699fi
Reid Spencere9de0912004-08-20 09:03:57 +000019700eval LLVM_PREFIX="${prefix}";
19701eval LLVM_BINDIR="${prefix}/bin";
19702eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019703eval LLVM_DATADIR="${prefix}/share/llvm";
19704eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19705eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019706eval LLVM_INCLUDEDIR="${prefix}/include";
19707eval LLVM_INFODIR="${prefix}/info";
19708eval LLVM_MANDIR="${prefix}/man";
19709LLVM_CONFIGTIME=`date`
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019721# Place the various directores into the config.h file as #defines so that we
19722# can know about the installation paths within LLVM.
19723
Reid Spencere9de0912004-08-20 09:03:57 +000019724cat >>confdefs.h <<_ACEOF
19725#define LLVM_PREFIX "$LLVM_PREFIX"
19726_ACEOF
19727
19728
19729cat >>confdefs.h <<_ACEOF
19730#define LLVM_BINDIR "$LLVM_BINDIR"
19731_ACEOF
19732
19733
19734cat >>confdefs.h <<_ACEOF
19735#define LLVM_LIBDIR "$LLVM_LIBDIR"
19736_ACEOF
19737
19738
19739cat >>confdefs.h <<_ACEOF
19740#define LLVM_DATADIR "$LLVM_DATADIR"
19741_ACEOF
19742
19743
19744cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019745#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019746_ACEOF
19747
19748
19749cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019750#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019751_ACEOF
19752
19753
19754cat >>confdefs.h <<_ACEOF
19755#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19756_ACEOF
19757
19758
19759cat >>confdefs.h <<_ACEOF
19760#define LLVM_INFODIR "$LLVM_INFODIR"
19761_ACEOF
19762
19763
19764cat >>confdefs.h <<_ACEOF
19765#define LLVM_MANDIR "$LLVM_MANDIR"
19766_ACEOF
19767
19768
19769cat >>confdefs.h <<_ACEOF
19770#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19771_ACEOF
19772
19773
Eric Christopher790e11c2007-12-01 00:34:39 +000019774cat >>confdefs.h <<_ACEOF
19775#define LLVM_HOSTTRIPLE "$host"
19776_ACEOF
19777
19778
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019779# Determine which bindings to build.
19780if test "$BINDINGS_TO_BUILD" = auto ; then
19781 BINDINGS_TO_BUILD=""
19782 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19783 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19784 fi
19785fi
19786BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19787
19788
19789# This isn't really configurey, but it avoids having to repeat the list in
19790# other files.
19791ALL_BINDINGS=ocaml
19792
19793
Gordon Henriksenf0915682007-10-02 16:42:22 +000019794# Do any work necessary to ensure that bindings have what they need.
19795binding_prereqs_failed=0
19796for a_binding in $BINDINGS_TO_BUILD ; do
19797 case "$a_binding" in
19798 ocaml)
19799 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019800 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19801echo "$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 +000019802 binding_prereqs_failed=1
19803 fi
19804 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019805 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19806echo "$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 +000019807 binding_prereqs_failed=1
19808 fi
19809 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019810 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19811echo "$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 +000019812 fi
19813 if test "x$with_ocaml_libdir" != xauto ; then
19814 OCAML_LIBDIR=$with_ocaml_libdir
19815
19816 else
19817 ocaml_stdlib="`"$OCAMLC" -where`"
19818 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19819 then
19820 # ocaml stdlib is beneath our prefix; use stdlib
19821 OCAML_LIBDIR=$ocaml_stdlib
19822
19823 else
19824 # ocaml stdlib is outside our prefix; use libdir/ocaml
19825 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19826
19827 fi
19828 fi
19829 ;;
19830 esac
19831done
19832if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019833 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19834echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19835 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000019836fi
19837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019838{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19839echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19840if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019842else
19843 ac_ext=cpp
19844ac_cpp='$CXXCPP $CPPFLAGS'
19845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19848
19849 oldcxxflags="$CXXFLAGS"
19850 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019851 cat >conftest.$ac_ext <<_ACEOF
19852/* confdefs.h. */
19853_ACEOF
19854cat confdefs.h >>conftest.$ac_ext
19855cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019856/* end confdefs.h. */
19857
19858int
19859main ()
19860{
19861
19862 ;
19863 return 0;
19864}
19865_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019866rm -f conftest.$ac_objext
19867if { (ac_try="$ac_compile"
19868case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871esac
19872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_compile") 2>conftest.er1
19874 ac_status=$?
19875 grep -v '^ *+' conftest.er1 >conftest.err
19876 rm -f conftest.er1
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } &&
19880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884esac
19885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; } &&
19890 { ac_try='test -s conftest.$ac_objext'
19891 { (case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894esac
19895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_try") 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019900 llvm_cv_cxx_visibility_inlines_hidden=yes
19901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019902 echo "$as_me: failed program was:" >&5
19903sed 's/^/| /' conftest.$ac_ext >&5
19904
19905 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019907
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909 CXXFLAGS="$oldcxxflags"
19910 ac_ext=c
19911ac_cpp='$CPP $CPPFLAGS'
19912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19914ac_compiler_gnu=$ac_cv_c_compiler_gnu
19915
19916
19917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019918{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19919echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019920if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19921 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19922
19923else
19924 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19925
19926fi
19927
Gordon Henriksenf0915682007-10-02 16:42:22 +000019928
Nick Lewycky731c6ab2009-03-05 08:20:44 +000019929if test "$llvm_cv_link_use_r" = "yes" ; then
19930 RPATH="-Wl,-R"
19931else
19932 RPATH="-Wl,-rpath"
19933fi
19934
19935
19936if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19937 RDYNAMIC="-Wl,-export-dynamic"
19938else
19939 RDYNAMIC=""
19940fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019941
19942
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019943
Reid Spencera773bd52006-08-04 18:18:08 +000019944ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019945
Douglas Gregor1555a232009-06-16 20:12:29 +000019946ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19947
19948ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19949
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000019950ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19951
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000019952ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19953
Chandler Carruth8b67f772009-10-26 01:35:46 +000019954ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019955
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019956
Reid Spencera773bd52006-08-04 18:18:08 +000019957ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019958
19959
Reid Spencerea949cf2006-08-16 00:45:38 +000019960ac_config_files="$ac_config_files llvm.spec"
19961
19962
Reid Spencera773bd52006-08-04 18:18:08 +000019963ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000019964
19965
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000019966ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19967
19968
Reid Spencera773bd52006-08-04 18:18:08 +000019969ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000019970
19971
Reid Spencera773bd52006-08-04 18:18:08 +000019972ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000019973
Reid Spencera773bd52006-08-04 18:18:08 +000019974ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019975
19976
Reid Spencera773bd52006-08-04 18:18:08 +000019977ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019978
19979
Reid Spencera773bd52006-08-04 18:18:08 +000019980ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019981
19982
Reid Spencera773bd52006-08-04 18:18:08 +000019983ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019984
19985
Reid Spencer8b2e1412006-11-17 03:32:33 +000019986ac_config_commands="$ac_config_commands runtime/Makefile"
19987
19988
Reid Spencera773bd52006-08-04 18:18:08 +000019989ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019990
19991
Reid Spencera773bd52006-08-04 18:18:08 +000019992ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019993
19994
Bill Wendlingf24eb392009-01-04 23:12:30 +000019995ac_config_commands="$ac_config_commands unittests/Makefile"
19996
19997
Reid Spencera773bd52006-08-04 18:18:08 +000019998ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019999
20000
Reid Spencera773bd52006-08-04 18:18:08 +000020001ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020002
20003
Reid Spencera773bd52006-08-04 18:18:08 +000020004ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020005
20006
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020007ac_config_commands="$ac_config_commands bindings/Makefile"
20008
20009
20010ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20011
20012
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020013
John Criswell7a73b802003-06-30 21:59:07 +000020014cat >confcache <<\_ACEOF
20015# This file is a shell script that caches the results of configure
20016# tests run on this system so they can be shared between configure
20017# scripts and configure runs, see configure's option --config-cache.
20018# It is not useful on other systems. If it contains results you don't
20019# want to keep, you may remove or edit it.
20020#
20021# config.status only pays attention to the cache file if you give it
20022# the --recheck option to rerun configure.
20023#
John Criswell0c38eaf2003-09-10 15:17:25 +000020024# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020025# loading this file, other *unset* `ac_cv_foo' will be assigned the
20026# following values.
20027
20028_ACEOF
20029
20030# The following way of writing the cache mishandles newlines in values,
20031# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020032# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020033# Ultrix sh set writes to stderr and can't be redirected directly,
20034# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020035(
20036 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20037 eval ac_val=\$$ac_var
20038 case $ac_val in #(
20039 *${as_nl}*)
20040 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020041 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20042echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020043 esac
20044 case $ac_var in #(
20045 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020046 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020047 esac ;;
20048 esac
20049 done
20050
John Criswell7a73b802003-06-30 21:59:07 +000020051 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20053 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020054 # `set' does not quote correctly, so add quotes (double-quote
20055 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020056 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020057 "s/'/'\\\\''/g;
20058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020059 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020060 *)
20061 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020063 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020064 esac |
20065 sort
20066) |
John Criswell7a73b802003-06-30 21:59:07 +000020067 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020068 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020069 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020070 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20072 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20074 :end' >>confcache
20075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20076 if test -w "$cache_file"; then
20077 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020078 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20079echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020080 cat confcache >$cache_file
20081 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020082 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20083echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020084 fi
20085fi
20086rm -f confcache
20087
20088test "x$prefix" = xNONE && prefix=$ac_default_prefix
20089# Let make expand exec_prefix.
20090test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20091
John Criswell7a73b802003-06-30 21:59:07 +000020092DEFS=-DHAVE_CONFIG_H
20093
John Criswell0c38eaf2003-09-10 15:17:25 +000020094ac_libobjs=
20095ac_ltlibobjs=
20096for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20097 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020099 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20101 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020102 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20103 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020104done
20105LIBOBJS=$ac_libobjs
20106
20107LTLIBOBJS=$ac_ltlibobjs
20108
20109
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020110if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020111 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20112Usually this means the macro was only invoked conditionally." >&5
20113echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20114Usually this means the macro was only invoked conditionally." >&2;}
20115 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020116fi
20117if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020118 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20119Usually this means the macro was only invoked conditionally." >&5
20120echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20121Usually this means the macro was only invoked conditionally." >&2;}
20122 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020123fi
John Criswell7a73b802003-06-30 21:59:07 +000020124
20125: ${CONFIG_STATUS=./config.status}
20126ac_clean_files_save=$ac_clean_files
20127ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020128{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20129echo "$as_me: creating $CONFIG_STATUS" >&6;}
20130cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020131#! $SHELL
20132# Generated by $as_me.
20133# Run this file to recreate the current configuration.
20134# Compiler output produced by configure, useful for debugging
20135# configure, is in config.log if it exists.
20136
20137debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020138ac_cs_recheck=false
20139ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020140SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020141_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020143cat >>$CONFIG_STATUS <<\_ACEOF
20144## --------------------- ##
20145## M4sh Initialization. ##
20146## --------------------- ##
20147
20148# Be Bourne compatible
20149if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020150 emulate sh
20151 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020152 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020153 # is contrary to our usage. Disable this feature.
20154 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020155 setopt NO_GLOB_SUBST
20156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020157 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020159BIN_SH=xpg4; export BIN_SH # for Tru64
20160DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020161
John Criswell7a73b802003-06-30 21:59:07 +000020162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020163# PATH needs CR
20164# Avoid depending upon Character Ranges.
20165as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20166as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20167as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20168as_cr_digits='0123456789'
20169as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020170
20171# The user is always right.
20172if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020173 echo "#! /bin/sh" >conf$$.sh
20174 echo "exit 0" >>conf$$.sh
20175 chmod +x conf$$.sh
20176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20177 PATH_SEPARATOR=';'
20178 else
20179 PATH_SEPARATOR=:
20180 fi
20181 rm -f conf$$.sh
20182fi
20183
20184# Support unset when possible.
20185if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20186 as_unset=unset
20187else
20188 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020189fi
John Criswell7a73b802003-06-30 21:59:07 +000020190
Reid Spencera773bd52006-08-04 18:18:08 +000020191
20192# IFS
20193# We need space, tab and new line, in precisely that order. Quoting is
20194# there to prevent editors from complaining about space-tab.
20195# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20196# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020197as_nl='
20198'
Reid Spencera773bd52006-08-04 18:18:08 +000020199IFS=" "" $as_nl"
20200
20201# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020202case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020203 *[\\/]* ) as_myself=$0 ;;
20204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020205for as_dir in $PATH
20206do
20207 IFS=$as_save_IFS
20208 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20210done
Reid Spencera773bd52006-08-04 18:18:08 +000020211IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020212
Reid Spencera773bd52006-08-04 18:18:08 +000020213 ;;
20214esac
20215# We did not find ourselves, most probably we were run as `sh COMMAND'
20216# in which case we are not to be found in the path.
20217if test "x$as_myself" = x; then
20218 as_myself=$0
20219fi
20220if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020221 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20222 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020223fi
20224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020225# Work around bugs in pre-3.0 UWIN ksh.
20226for as_var in ENV MAIL MAILPATH
20227do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020228done
20229PS1='$ '
20230PS2='> '
20231PS4='+ '
20232
20233# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020234for as_var in \
20235 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20236 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20237 LC_TELEPHONE LC_TIME
20238do
20239 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20240 eval $as_var=C; export $as_var
20241 else
20242 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020243 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020244done
Torok Edwin871384f2010-01-26 08:50:50 +000020245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020246# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020247if expr a : '\(a\)' >/dev/null 2>&1 &&
20248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20249 as_expr=expr
20250else
20251 as_expr=false
20252fi
20253
20254if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20255 as_basename=basename
20256else
20257 as_basename=false
20258fi
20259
20260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020261# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020262as_me=`$as_basename -- "$0" ||
20263$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20264 X"$0" : 'X\(//\)$' \| \
20265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020266echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020267 sed '/^.*\/\([^/][^/]*\)\/*$/{
20268 s//\1/
20269 q
20270 }
20271 /^X\/\(\/\/\)$/{
20272 s//\1/
20273 q
20274 }
20275 /^X\/\(\/\).*/{
20276 s//\1/
20277 q
20278 }
20279 s/.*/./; q'`
20280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020281# CDPATH.
20282$as_unset CDPATH
20283
20284
20285
20286 as_lineno_1=$LINENO
20287 as_lineno_2=$LINENO
20288 test "x$as_lineno_1" != "x$as_lineno_2" &&
20289 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20290
20291 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20292 # uniformly replaced by the line number. The first 'sed' inserts a
20293 # line-number line after each line using $LINENO; the second 'sed'
20294 # does the real work. The second script uses 'N' to pair each
20295 # line-number line with the line containing $LINENO, and appends
20296 # trailing '-' during substitution so that $LINENO is not a special
20297 # case at line end.
20298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20299 # scripts with optimization help from Paolo Bonzini. Blame Lee
20300 # E. McMahon (1931-1989) for sed's syntax. :-)
20301 sed -n '
20302 p
20303 /[$]LINENO/=
20304 ' <$as_myself |
20305 sed '
20306 s/[$]LINENO.*/&-/
20307 t lineno
20308 b
20309 :lineno
20310 N
20311 :loop
20312 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20313 t loop
20314 s/-\n.*//
20315 ' >$as_me.lineno &&
20316 chmod +x "$as_me.lineno" ||
20317 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20318 { (exit 1); exit 1; }; }
20319
20320 # Don't try to exec as it changes $[0], causing all sort of problems
20321 # (the dirname of $[0] is not the place where we might find the
20322 # original and so on. Autoconf is especially sensitive to this).
20323 . "./$as_me.lineno"
20324 # Exit status is that of the last command.
20325 exit
20326}
20327
20328
20329if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20330 as_dirname=dirname
20331else
20332 as_dirname=false
20333fi
Reid Spencera773bd52006-08-04 18:18:08 +000020334
20335ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020336case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020337-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020338 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020340 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020341 esac;;
20342*)
20343 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020344esac
20345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020346if expr a : '\(a\)' >/dev/null 2>&1 &&
20347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20348 as_expr=expr
20349else
20350 as_expr=false
20351fi
20352
John Criswell7a73b802003-06-30 21:59:07 +000020353rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020354if test -d conf$$.dir; then
20355 rm -f conf$$.dir/conf$$.file
20356else
20357 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020358 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360echo >conf$$.file
20361if ln -s conf$$.file conf$$ 2>/dev/null; then
20362 as_ln_s='ln -s'
20363 # ... but there are two gotchas:
20364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20366 # In both cases, we have to default to `cp -p'.
20367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020368 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020369elif ln conf$$.file conf$$ 2>/dev/null; then
20370 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020371else
20372 as_ln_s='cp -p'
20373fi
Reid Spencera773bd52006-08-04 18:18:08 +000020374rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20375rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020376
John Criswell0c38eaf2003-09-10 15:17:25 +000020377if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020378 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020379else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020380 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020381 as_mkdir_p=false
20382fi
20383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20385# systems may use methods other than mode bits to determine executability.
20386cat >conf$$.file <<_ASEOF
20387#! /bin/sh
20388exit 0
20389_ASEOF
20390chmod +x conf$$.file
20391if test -x conf$$.file >/dev/null 2>&1; then
20392 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020397
20398# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020399as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020400
20401# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020402as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020403
20404
John Criswell7a73b802003-06-30 21:59:07 +000020405exec 6>&1
20406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020407# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020408# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020409# values after options handling.
20410ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000020411This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020412generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020413
20414 CONFIG_FILES = $CONFIG_FILES
20415 CONFIG_HEADERS = $CONFIG_HEADERS
20416 CONFIG_LINKS = $CONFIG_LINKS
20417 CONFIG_COMMANDS = $CONFIG_COMMANDS
20418 $ $0 $@
20419
Reid Spencera773bd52006-08-04 18:18:08 +000020420on `(hostname || uname -n) 2>/dev/null | sed 1q`
20421"
20422
John Criswell7a73b802003-06-30 21:59:07 +000020423_ACEOF
20424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020425cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020426# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020427config_files="$ac_config_files"
20428config_headers="$ac_config_headers"
20429config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020430
Reid Spencera773bd52006-08-04 18:18:08 +000020431_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020433cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020434ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020435\`$as_me' instantiates files from templates according to the
20436current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020438Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020439
20440 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020441 -V, --version print version number, then exit
20442 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020443 -d, --debug don't remove temporary files
20444 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020445 --file=FILE[:TEMPLATE]
20446 instantiate the configuration file FILE
20447 --header=FILE[:TEMPLATE]
20448 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020449
20450Configuration files:
20451$config_files
20452
20453Configuration headers:
20454$config_headers
20455
John Criswellc764fbc2003-09-06 15:17:13 +000020456Configuration commands:
20457$config_commands
20458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020459Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020460
Reid Spencera773bd52006-08-04 18:18:08 +000020461_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020462cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020463ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000020464llvm config.status 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020465configured by $0, generated by GNU Autoconf 2.60,
20466 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020468Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020469This config.status script is free software; the Free Software Foundation
20470gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020471
20472ac_pwd='$ac_pwd'
20473srcdir='$srcdir'
20474INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020475_ACEOF
20476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020477cat >>$CONFIG_STATUS <<\_ACEOF
20478# If no file are specified by the user, then we need to provide default
20479# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020480ac_need_defaults=:
20481while test $# != 0
20482do
20483 case $1 in
20484 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020487 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020488 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020489 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020490 ac_option=$1
20491 ac_optarg=$2
20492 ac_shift=shift
20493 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020494 esac
20495
John Criswell0c38eaf2003-09-10 15:17:25 +000020496 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020497 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20499 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020501 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020502 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020503 debug=: ;;
20504 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020505 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020506 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020507 ac_need_defaults=false;;
20508 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020509 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020510 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020511 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020512 --he | --h)
20513 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020514 { echo "$as_me: error: ambiguous option: $1
20515Try \`$0 --help' for more information." >&2
20516 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020517 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020518 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20521 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020522
20523 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020524 -*) { echo "$as_me: error: unrecognized option: $1
20525Try \`$0 --help' for more information." >&2
20526 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020528 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020529 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020530
20531 esac
20532 shift
20533done
20534
John Criswell0c38eaf2003-09-10 15:17:25 +000020535ac_configure_extra_args=
20536
20537if $ac_cs_silent; then
20538 exec 6>/dev/null
20539 ac_configure_extra_args="$ac_configure_extra_args --silent"
20540fi
20541
20542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020543cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020544if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020545 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20546 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020547 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020548 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020549fi
20550
John Criswell7a73b802003-06-30 21:59:07 +000020551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020552cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020553exec 5>>config.log
20554{
20555 echo
20556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20557## Running $as_me. ##
20558_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020559 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020560} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020561
Reid Spencera773bd52006-08-04 18:18:08 +000020562_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020563cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020564#
Reid Spencera773bd52006-08-04 18:18:08 +000020565# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020566#
Reid Spencerc0682832005-02-24 19:05:19 +000020567llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020568
20569_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020572
20573# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020574for ac_config_target in $ac_config_targets
20575do
Reid Spencera773bd52006-08-04 18:18:08 +000020576 case $ac_config_target in
20577 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020578 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20579 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020580 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020581 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020582 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020583 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020584 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020585 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020586 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020587 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20588 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20589 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20590 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20591 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20592 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020593 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020594 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20595 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020596 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020597 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20598 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20599 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020600 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20601 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020603 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20604echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20605 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020606 esac
20607done
20608
Reid Spencera773bd52006-08-04 18:18:08 +000020609
John Criswell7a73b802003-06-30 21:59:07 +000020610# If the user did not use the arguments to specify the items to instantiate,
20611# then the envvar interface is used. Set only those that are not.
20612# We use the long form for the default assignment because of an extremely
20613# bizarre bug on SunOS 4.1.3.
20614if $ac_need_defaults; then
20615 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20616 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020617 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020618fi
20619
John Criswell0c38eaf2003-09-10 15:17:25 +000020620# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020621# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020622# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020623# Hook for its removal unless debugging.
20624# Note that there is a small window in which the directory will not be cleaned:
20625# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020626$debug ||
20627{
Reid Spencera773bd52006-08-04 18:18:08 +000020628 tmp=
20629 trap 'exit_status=$?
20630 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20631' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020632 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020633}
John Criswell7a73b802003-06-30 21:59:07 +000020634# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020635
John Criswell7a73b802003-06-30 21:59:07 +000020636{
Reid Spencera773bd52006-08-04 18:18:08 +000020637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020638 test -n "$tmp" && test -d "$tmp"
20639} ||
20640{
Reid Spencera773bd52006-08-04 18:18:08 +000020641 tmp=./conf$$-$RANDOM
20642 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020643} ||
20644{
20645 echo "$me: cannot create a temporary directory in ." >&2
20646 { (exit 1); exit 1; }
20647}
John Criswell7a73b802003-06-30 21:59:07 +000020648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020649#
20650# Set up the sed scripts for CONFIG_FILES section.
20651#
20652
20653# No need to generate the scripts if there are no CONFIG_FILES.
20654# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020655if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020656
20657_ACEOF
20658
Reid Spencera773bd52006-08-04 18:18:08 +000020659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020660
Reid Spencera773bd52006-08-04 18:18:08 +000020661ac_delim='%!_!# '
20662for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020663 cat >conf$$subs.sed <<_ACEOF
20664SHELL!$SHELL$ac_delim
20665PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20666PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20667PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20668PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20669PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20670PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20671exec_prefix!$exec_prefix$ac_delim
20672prefix!$prefix$ac_delim
20673program_transform_name!$program_transform_name$ac_delim
20674bindir!$bindir$ac_delim
20675sbindir!$sbindir$ac_delim
20676libexecdir!$libexecdir$ac_delim
20677datarootdir!$datarootdir$ac_delim
20678datadir!$datadir$ac_delim
20679sysconfdir!$sysconfdir$ac_delim
20680sharedstatedir!$sharedstatedir$ac_delim
20681localstatedir!$localstatedir$ac_delim
20682includedir!$includedir$ac_delim
20683oldincludedir!$oldincludedir$ac_delim
20684docdir!$docdir$ac_delim
20685infodir!$infodir$ac_delim
20686htmldir!$htmldir$ac_delim
20687dvidir!$dvidir$ac_delim
20688pdfdir!$pdfdir$ac_delim
20689psdir!$psdir$ac_delim
20690libdir!$libdir$ac_delim
20691localedir!$localedir$ac_delim
20692mandir!$mandir$ac_delim
20693DEFS!$DEFS$ac_delim
20694ECHO_C!$ECHO_C$ac_delim
20695ECHO_N!$ECHO_N$ac_delim
20696ECHO_T!$ECHO_T$ac_delim
20697LIBS!$LIBS$ac_delim
20698build_alias!$build_alias$ac_delim
20699host_alias!$host_alias$ac_delim
20700target_alias!$target_alias$ac_delim
20701LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20702subdirs!$subdirs$ac_delim
20703build!$build$ac_delim
20704build_cpu!$build_cpu$ac_delim
20705build_vendor!$build_vendor$ac_delim
20706build_os!$build_os$ac_delim
20707host!$host$ac_delim
20708host_cpu!$host_cpu$ac_delim
20709host_vendor!$host_vendor$ac_delim
20710host_os!$host_os$ac_delim
20711target!$target$ac_delim
20712target_cpu!$target_cpu$ac_delim
20713target_vendor!$target_vendor$ac_delim
20714target_os!$target_os$ac_delim
20715OS!$OS$ac_delim
20716HOST_OS!$HOST_OS$ac_delim
20717TARGET_OS!$TARGET_OS$ac_delim
20718LINKALL!$LINKALL$ac_delim
20719NOLINKALL!$NOLINKALL$ac_delim
20720LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20721LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20722ARCH!$ARCH$ac_delim
20723ENDIAN!$ENDIAN$ac_delim
20724CC!$CC$ac_delim
20725CFLAGS!$CFLAGS$ac_delim
20726LDFLAGS!$LDFLAGS$ac_delim
20727CPPFLAGS!$CPPFLAGS$ac_delim
20728ac_ct_CC!$ac_ct_CC$ac_delim
20729EXEEXT!$EXEEXT$ac_delim
20730OBJEXT!$OBJEXT$ac_delim
20731CPP!$CPP$ac_delim
20732GREP!$GREP$ac_delim
20733EGREP!$EGREP$ac_delim
20734LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20735BUILD_CC!$BUILD_CC$ac_delim
20736BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20737BUILD_CXX!$BUILD_CXX$ac_delim
20738CVSBUILD!$CVSBUILD$ac_delim
20739ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20740ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20741DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20742ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20743EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20744DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20745DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20746JIT!$JIT$ac_delim
20747TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20748ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20749ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20750ENABLE_PIC!$ENABLE_PIC$ac_delim
20751TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20752LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20753LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20754LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20755LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20756ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020757CLANGPATH!$CLANGPATH$ac_delim
20758CLANGXXPATH!$CLANGXXPATH$ac_delim
20759ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin407fbdd2010-02-23 20:53:37 +000020760OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020761_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020763 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020764 break
20765 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020766 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20767echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20768 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020769 else
20770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020771 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020772done
20773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20775if test -n "$ac_eof"; then
20776 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20777 ac_eof=`expr $ac_eof + 1`
20778fi
20779
20780cat >>$CONFIG_STATUS <<_ACEOF
20781cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20782/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000020783_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020784sed '
20785s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20786s/^/s,@/; s/!/@,|#_!!_#|/
20787:n
20788t n
20789s/'"$ac_delim"'$/,g/; t
20790s/$/\\/; p
20791N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20792' >>$CONFIG_STATUS <conf$$subs.sed
20793rm -f conf$$subs.sed
20794cat >>$CONFIG_STATUS <<_ACEOF
20795CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000020796_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020797
20798
20799ac_delim='%!_!# '
20800for ac_last_try in false false false false false :; do
20801 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar98515672010-02-23 10:00:49 +000020802EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20803BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20804ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020805ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20806CXX!$CXX$ac_delim
20807CXXFLAGS!$CXXFLAGS$ac_delim
20808ac_ct_CXX!$ac_ct_CXX$ac_delim
20809NM!$NM$ac_delim
20810ifGNUmake!$ifGNUmake$ac_delim
20811LN_S!$LN_S$ac_delim
20812CMP!$CMP$ac_delim
20813CP!$CP$ac_delim
20814DATE!$DATE$ac_delim
20815FIND!$FIND$ac_delim
20816MKDIR!$MKDIR$ac_delim
20817MV!$MV$ac_delim
20818RANLIB!$RANLIB$ac_delim
20819AR!$AR$ac_delim
20820RM!$RM$ac_delim
20821SED!$SED$ac_delim
20822TAR!$TAR$ac_delim
20823BINPWD!$BINPWD$ac_delim
20824GRAPHVIZ!$GRAPHVIZ$ac_delim
20825DOT!$DOT$ac_delim
20826FDP!$FDP$ac_delim
20827NEATO!$NEATO$ac_delim
20828TWOPI!$TWOPI$ac_delim
20829CIRCO!$CIRCO$ac_delim
20830GV!$GV$ac_delim
20831DOTTY!$DOTTY$ac_delim
20832PERL!$PERL$ac_delim
20833HAVE_PERL!$HAVE_PERL$ac_delim
20834INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20835INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20836INSTALL_DATA!$INSTALL_DATA$ac_delim
20837BZIP2!$BZIP2$ac_delim
20838DOXYGEN!$DOXYGEN$ac_delim
20839GROFF!$GROFF$ac_delim
20840GZIP!$GZIP$ac_delim
20841POD2HTML!$POD2HTML$ac_delim
20842POD2MAN!$POD2MAN$ac_delim
20843RUNTEST!$RUNTEST$ac_delim
20844TCLSH!$TCLSH$ac_delim
20845ZIP!$ZIP$ac_delim
20846OCAMLC!$OCAMLC$ac_delim
20847OCAMLOPT!$OCAMLOPT$ac_delim
20848OCAMLDEP!$OCAMLDEP$ac_delim
20849OCAMLDOC!$OCAMLDOC$ac_delim
20850GAS!$GAS$ac_delim
20851INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20852INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20853CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20854CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20855LIBADD_DL!$LIBADD_DL$ac_delim
20856LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20857LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20858LLVMGCC!$LLVMGCC$ac_delim
20859LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020860LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020861NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20862NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20863USE_UDIS86!$USE_UDIS86$ac_delim
20864USE_OPROFILE!$USE_OPROFILE$ac_delim
20865HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20866HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20867MMAP_FILE!$MMAP_FILE$ac_delim
20868LLVMCC1!$LLVMCC1$ac_delim
20869LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20870LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020871LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20872SHLIBEXT!$SHLIBEXT$ac_delim
20873LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20874LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20875LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20876LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20877LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20878LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20879LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20880LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20881LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20882LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20883BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20884ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20885OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20886ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20887RPATH!$RPATH$ac_delim
20888RDYNAMIC!$RDYNAMIC$ac_delim
20889LIBOBJS!$LIBOBJS$ac_delim
20890LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000020891_ACEOF
20892
Jeffrey Yasskin407fbdd2010-02-23 20:53:37 +000020893 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020894 break
20895 elif $ac_last_try; then
20896 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20897echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20898 { (exit 1); exit 1; }; }
20899 else
20900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20901 fi
20902done
20903
20904ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20905if test -n "$ac_eof"; then
20906 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20907 ac_eof=`expr $ac_eof + 1`
20908fi
20909
20910cat >>$CONFIG_STATUS <<_ACEOF
20911cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20912/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20913_ACEOF
20914sed '
20915s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20916s/^/s,@/; s/!/@,|#_!!_#|/
20917:n
20918t n
20919s/'"$ac_delim"'$/,g/; t
20920s/$/\\/; p
20921N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20922' >>$CONFIG_STATUS <conf$$subs.sed
20923rm -f conf$$subs.sed
20924cat >>$CONFIG_STATUS <<_ACEOF
20925:end
20926s/|#_!!_#|//g
20927CEOF$ac_eof
20928_ACEOF
20929
20930
Reid Spencera773bd52006-08-04 18:18:08 +000020931# VPATH may cause trouble with some makes, so we remove $(srcdir),
20932# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20933# trailing colons and then remove the whole line if VPATH becomes empty
20934# (actually we leave an empty line to preserve line numbers).
20935if test "x$srcdir" = x.; then
20936 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20937s/:*\$(srcdir):*/:/
20938s/:*\${srcdir}:*/:/
20939s/:*@srcdir@:*/:/
20940s/^\([^=]*=[ ]*\):*/\1/
20941s/:*$//
20942s/^[^=]*=[ ]*$//
20943}'
20944fi
20945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020946cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020947fi # test -n "$CONFIG_FILES"
20948
Reid Spencera773bd52006-08-04 18:18:08 +000020949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020950for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000020951do
20952 case $ac_tag in
20953 :[FHLC]) ac_mode=$ac_tag; continue;;
20954 esac
20955 case $ac_mode$ac_tag in
20956 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020957 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20958echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20959 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020960 :[FH]-) ac_tag=-:-;;
20961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20962 esac
20963 ac_save_IFS=$IFS
20964 IFS=:
20965 set x $ac_tag
20966 IFS=$ac_save_IFS
20967 shift
20968 ac_file=$1
20969 shift
20970
20971 case $ac_mode in
20972 :L) ac_source=$1;;
20973 :[FH])
20974 ac_file_inputs=
20975 for ac_f
20976 do
20977 case $ac_f in
20978 -) ac_f="$tmp/stdin";;
20979 *) # Look for the file first in the build tree, then in the source tree
20980 # (if the path is not absolute). The absolute path cannot be DOS-style,
20981 # because $ac_f cannot contain `:'.
20982 test -f "$ac_f" ||
20983 case $ac_f in
20984 [\\/$]*) false;;
20985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20986 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020987 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20988echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20989 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020990 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020991 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000020992 done
20993
20994 # Let's still pretend it is `configure' which instantiates (i.e., don't
20995 # use $as_me), people would be surprised to read:
20996 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020997 configure_input="Generated from "`IFS=:
20998 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000020999 if test x"$ac_file" != x-; then
21000 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021001 { echo "$as_me:$LINENO: creating $ac_file" >&5
21002echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021003 fi
21004
21005 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021006 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021007 esac
21008 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021009 esac
21010
Reid Spencera773bd52006-08-04 18:18:08 +000021011 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021012$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021013 X"$ac_file" : 'X\(//\)[^/]' \| \
21014 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021015 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021016echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21018 s//\1/
21019 q
21020 }
21021 /^X\(\/\/\)[^/].*/{
21022 s//\1/
21023 q
21024 }
21025 /^X\(\/\/\)$/{
21026 s//\1/
21027 q
21028 }
21029 /^X\(\/\).*/{
21030 s//\1/
21031 q
21032 }
21033 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021034 { as_dir="$ac_dir"
21035 case $as_dir in #(
21036 -*) as_dir=./$as_dir;;
21037 esac
21038 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21039 as_dirs=
21040 while :; do
21041 case $as_dir in #(
21042 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21043 *) as_qdir=$as_dir;;
21044 esac
21045 as_dirs="'$as_qdir' $as_dirs"
21046 as_dir=`$as_dirname -- "$as_dir" ||
21047$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21048 X"$as_dir" : 'X\(//\)[^/]' \| \
21049 X"$as_dir" : 'X\(//\)$' \| \
21050 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21051echo X"$as_dir" |
21052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21053 s//\1/
21054 q
21055 }
21056 /^X\(\/\/\)[^/].*/{
21057 s//\1/
21058 q
21059 }
21060 /^X\(\/\/\)$/{
21061 s//\1/
21062 q
21063 }
21064 /^X\(\/\).*/{
21065 s//\1/
21066 q
21067 }
21068 s/.*/./; q'`
21069 test -d "$as_dir" && break
21070 done
21071 test -z "$as_dirs" || eval "mkdir $as_dirs"
21072 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21073echo "$as_me: error: cannot create directory $as_dir" >&2;}
21074 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021075 ac_builddir=.
21076
Reid Spencera773bd52006-08-04 18:18:08 +000021077case "$ac_dir" in
21078.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21079*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021081 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021082 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021083 case $ac_top_builddir_sub in
21084 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21085 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21086 esac ;;
21087esac
21088ac_abs_top_builddir=$ac_pwd
21089ac_abs_builddir=$ac_pwd$ac_dir_suffix
21090# for backward compatibility:
21091ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021092
21093case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021094 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021095 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021096 ac_top_srcdir=$ac_top_builddir_sub
21097 ac_abs_top_srcdir=$ac_pwd ;;
21098 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021099 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021100 ac_top_srcdir=$srcdir
21101 ac_abs_top_srcdir=$srcdir ;;
21102 *) # Relative name.
21103 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21104 ac_top_srcdir=$ac_top_build_prefix$srcdir
21105 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021106esac
Reid Spencera773bd52006-08-04 18:18:08 +000021107ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021108
John Criswell7a73b802003-06-30 21:59:07 +000021109
Reid Spencera773bd52006-08-04 18:18:08 +000021110 case $ac_mode in
21111 :F)
21112 #
21113 # CONFIG_FILE
21114 #
John Criswell7a73b802003-06-30 21:59:07 +000021115
21116 case $INSTALL in
21117 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021118 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021119 esac
John Criswell7a73b802003-06-30 21:59:07 +000021120_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021122cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021123# If the template does not know about datarootdir, expand it.
21124# FIXME: This hack should be removed a few years after 2.60.
21125ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021126
21127case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021128 p
21129 q
21130}
21131/@datadir@/p
21132/@docdir@/p
21133/@infodir@/p
21134/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021135/@mandir@/p
21136' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021137*datarootdir*) ac_datarootdir_seen=yes;;
21138*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021139 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21140echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021141_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021142cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021143 ac_datarootdir_hack='
21144 s&@datadir@&$datadir&g
21145 s&@docdir@&$docdir&g
21146 s&@infodir@&$infodir&g
21147 s&@localedir@&$localedir&g
21148 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021149 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021150esac
21151_ACEOF
21152
21153# Neutralize VPATH when `$srcdir' = `.'.
21154# Shell code in configure.ac might set extrasub.
21155# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021156cat >>$CONFIG_STATUS <<_ACEOF
21157 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021158$extrasub
21159_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021160cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021161:t
21162/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021163s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021164s&@top_builddir@&$ac_top_builddir_sub&;t t
21165s&@srcdir@&$ac_srcdir&;t t
21166s&@abs_srcdir@&$ac_abs_srcdir&;t t
21167s&@top_srcdir@&$ac_top_srcdir&;t t
21168s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21169s&@builddir@&$ac_builddir&;t t
21170s&@abs_builddir@&$ac_abs_builddir&;t t
21171s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21172s&@INSTALL@&$ac_INSTALL&;t t
21173$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021174" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021175
Reid Spencera773bd52006-08-04 18:18:08 +000021176test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21177 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21178 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021179 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021180which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021181echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021182which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021183
Reid Spencera773bd52006-08-04 18:18:08 +000021184 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021185 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021186 -) cat "$tmp/out"; rm -f "$tmp/out";;
21187 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21188 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021189 ;;
21190 :H)
21191 #
21192 # CONFIG_HEADER
21193 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021194_ACEOF
21195
21196# Transform confdefs.h into a sed script `conftest.defines', that
21197# substitutes the proper values into config.h.in to produce config.h.
21198rm -f conftest.defines conftest.tail
21199# First, append a space to every undef/define line, to ease matching.
21200echo 's/$/ /' >conftest.defines
21201# Then, protect against being on the right side of a sed subst, or in
21202# an unquoted here document, in config.status. If some macros were
21203# called several times there might be several #defines for the same
21204# symbol, which is useless. But do not sort them, since the last
21205# AC_DEFINE must be honored.
21206ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21207# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21208# NAME is the cpp macro being defined, VALUE is the value it is being given.
21209# PARAMS is the parameter list in the macro definition--in most cases, it's
21210# just an empty string.
21211ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21212ac_dB='\\)[ (].*,\\1define\\2'
21213ac_dC=' '
21214ac_dD=' ,'
21215
21216uniq confdefs.h |
21217 sed -n '
21218 t rset
21219 :rset
21220 s/^[ ]*#[ ]*define[ ][ ]*//
21221 t ok
21222 d
21223 :ok
21224 s/[\\&,]/\\&/g
21225 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21226 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21227 ' >>conftest.defines
21228
21229# Remove the space that was appended to ease matching.
21230# Then replace #undef with comments. This is necessary, for
21231# example, in the case of _POSIX_SOURCE, which is predefined and required
21232# on some systems where configure will not decide to define it.
21233# (The regexp can be short, since the line contains either #define or #undef.)
21234echo 's/ $//
21235s,^[ #]*u.*,/* & */,' >>conftest.defines
21236
21237# Break up conftest.defines:
21238ac_max_sed_lines=50
21239
21240# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21241# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21242# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21243# et cetera.
21244ac_in='$ac_file_inputs'
21245ac_out='"$tmp/out1"'
21246ac_nxt='"$tmp/out2"'
21247
21248while :
21249do
21250 # Write a here document:
21251 cat >>$CONFIG_STATUS <<_ACEOF
21252 # First, check the format of the line:
21253 cat >"\$tmp/defines.sed" <<\\CEOF
21254/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21255/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21256b
21257:def
21258_ACEOF
21259 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21260 echo 'CEOF
21261 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21262 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21263 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21264 grep . conftest.tail >/dev/null || break
21265 rm -f conftest.defines
21266 mv conftest.tail conftest.defines
21267done
21268rm -f conftest.defines conftest.tail
21269
21270echo "ac_result=$ac_in" >>$CONFIG_STATUS
21271cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021272 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021273 echo "/* $configure_input */" >"$tmp/config.h"
21274 cat "$ac_result" >>"$tmp/config.h"
21275 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21276 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21277echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021278 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021279 rm -f $ac_file
21280 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021281 fi
21282 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283 echo "/* $configure_input */"
21284 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021285 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021287 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021289 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21290echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021291 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021292 esac
John Criswell7a73b802003-06-30 21:59:07 +000021293
Reid Spencera773bd52006-08-04 18:18:08 +000021294
21295 case $ac_file$ac_mode in
21296 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021297 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021298 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021299 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021300 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021301 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021302 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021303 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021304 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021305 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021306 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021307 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021308 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021309 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021310 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021311 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021312 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021313 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021314 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021315 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021316 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021317 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021318 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021319 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021320 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021321 ${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 +000021322
21323 esac
21324done # for ac_tag
21325
John Criswell7a73b802003-06-30 21:59:07 +000021326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021327{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021328_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021329chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021330ac_clean_files=$ac_clean_files_save
21331
21332
21333# configure is writing to config.log, and then calls config.status.
21334# config.status does its own redirection, appending to config.log.
21335# Unfortunately, on DOS this fails, as config.log is still kept open
21336# by configure, so config.status won't be able to write to it; its
21337# output is simply discarded. So we exec the FD to /dev/null,
21338# effectively closing config.log, so it can be properly (re)opened and
21339# appended to by config.status. When coming back to configure, we
21340# need to make the FD available again.
21341if test "$no_create" != yes; then
21342 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021343 ac_config_status_args=
21344 test "$silent" = yes &&
21345 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021346 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021348 exec 5>>config.log
21349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21350 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021351 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021352fi
21353
John Criswell12399a12003-09-30 15:55:44 +000021354#
21355# CONFIG_SUBDIRS section.
21356#
21357if test "$no_recursion" != yes; then
21358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021359 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021360 ac_sub_configure_args=
21361 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021362 eval "set x $ac_configure_args"
21363 shift
21364 for ac_arg
21365 do
John Criswell12399a12003-09-30 15:55:44 +000021366 if test -n "$ac_prev"; then
21367 ac_prev=
21368 continue
21369 fi
21370 case $ac_arg in
21371 -cache-file | --cache-file | --cache-fil | --cache-fi \
21372 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21373 ac_prev=cache_file ;;
21374 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21375 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21376 | --c=*)
21377 ;;
21378 --config-cache | -C)
21379 ;;
21380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21381 ac_prev=srcdir ;;
21382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21383 ;;
21384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21385 ac_prev=prefix ;;
21386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21387 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021388 *)
21389 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021391 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021392 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021393 esac
21394 done
21395
21396 # Always prepend --prefix to ensure using the same prefix
21397 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021398 ac_arg="--prefix=$prefix"
21399 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021400 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021401 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021402 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021403
21404 ac_popdir=`pwd`
21405 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21406
21407 # Do not complain, so a configure script can configure whichever
21408 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021409 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021410
Reid Spencera773bd52006-08-04 18:18:08 +000021411 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412 echo "$as_me:$LINENO: $ac_msg" >&5
21413 echo "$ac_msg" >&6
21414 { as_dir="$ac_dir"
21415 case $as_dir in #(
21416 -*) as_dir=./$as_dir;;
21417 esac
21418 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21419 as_dirs=
21420 while :; do
21421 case $as_dir in #(
21422 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21423 *) as_qdir=$as_dir;;
21424 esac
21425 as_dirs="'$as_qdir' $as_dirs"
21426 as_dir=`$as_dirname -- "$as_dir" ||
21427$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21428 X"$as_dir" : 'X\(//\)[^/]' \| \
21429 X"$as_dir" : 'X\(//\)$' \| \
21430 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21431echo X"$as_dir" |
21432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21433 s//\1/
21434 q
21435 }
21436 /^X\(\/\/\)[^/].*/{
21437 s//\1/
21438 q
21439 }
21440 /^X\(\/\/\)$/{
21441 s//\1/
21442 q
21443 }
21444 /^X\(\/\).*/{
21445 s//\1/
21446 q
21447 }
21448 s/.*/./; q'`
21449 test -d "$as_dir" && break
21450 done
21451 test -z "$as_dirs" || eval "mkdir $as_dirs"
21452 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21453echo "$as_me: error: cannot create directory $as_dir" >&2;}
21454 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021455 ac_builddir=.
21456
Reid Spencera773bd52006-08-04 18:18:08 +000021457case "$ac_dir" in
21458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21459*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021461 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021462 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021463 case $ac_top_builddir_sub in
21464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21466 esac ;;
21467esac
21468ac_abs_top_builddir=$ac_pwd
21469ac_abs_builddir=$ac_pwd$ac_dir_suffix
21470# for backward compatibility:
21471ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021472
21473case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021474 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021475 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021476 ac_top_srcdir=$ac_top_builddir_sub
21477 ac_abs_top_srcdir=$ac_pwd ;;
21478 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021479 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021480 ac_top_srcdir=$srcdir
21481 ac_abs_top_srcdir=$srcdir ;;
21482 *) # Relative name.
21483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21484 ac_top_srcdir=$ac_top_build_prefix$srcdir
21485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021486esac
Reid Spencera773bd52006-08-04 18:18:08 +000021487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021488
21489
Reid Spencera773bd52006-08-04 18:18:08 +000021490 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021491
21492 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021493 if test -f "$ac_srcdir/configure.gnu"; then
21494 ac_sub_configure=$ac_srcdir/configure.gnu
21495 elif test -f "$ac_srcdir/configure"; then
21496 ac_sub_configure=$ac_srcdir/configure
21497 elif test -f "$ac_srcdir/configure.in"; then
21498 # This should be Cygnus configure.
21499 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021500 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21502echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021503 ac_sub_configure=
21504 fi
21505
21506 # The recursion is here.
21507 if test -n "$ac_sub_configure"; then
21508 # Make the cache file name correct relative to the subdirectory.
21509 case $cache_file in
21510 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021511 *) # Relative name.
21512 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021513 esac
21514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021515 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21516echo "$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 +000021517 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021518 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21519 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021520 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21521echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21522 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021523 fi
21524
Reid Spencera773bd52006-08-04 18:18:08 +000021525 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021526 done
21527fi
21528