blob: 918752d1179e9632657764be7dd39ff994d3346f [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Tanya Lattnerdc29dff2010-03-19 21:22:13 +0000564PACKAGE_VERSION='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706CXX
707CXXFLAGS
708ac_ct_CXX
709NM
710ifGNUmake
711LN_S
712CMP
713CP
714DATE
715FIND
716MKDIR
717MV
718RANLIB
719AR
720RM
721SED
722TAR
723BINPWD
724GRAPHVIZ
725DOT
726FDP
727NEATO
728TWOPI
729CIRCO
730GV
731DOTTY
732PERL
733HAVE_PERL
734INSTALL_PROGRAM
735INSTALL_SCRIPT
736INSTALL_DATA
737BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000738CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000744PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745RUNTEST
746TCLSH
747ZIP
748OCAMLC
749OCAMLOPT
750OCAMLDEP
751OCAMLDOC
752GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000753HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000754INSTALL_LTDL_TRUE
755INSTALL_LTDL_FALSE
756CONVENIENCE_LTDL_TRUE
757CONVENIENCE_LTDL_FALSE
758LIBADD_DL
759LLVMGCCCOMMAND
760LLVMGXXCOMMAND
761LLVMGCC
762LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000763LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
771LLVMCC1
772LLVMCC1PLUS
773LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVMGCC_LANGS
775SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000776SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777LLVM_PREFIX
778LLVM_BINDIR
779LLVM_LIBDIR
780LLVM_DATADIR
781LLVM_DOCSDIR
782LLVM_ETCDIR
783LLVM_INCLUDEDIR
784LLVM_INFODIR
785LLVM_MANDIR
786LLVM_CONFIGTIME
787BINDINGS_TO_BUILD
788ALL_BINDINGS
789OCAML_LIBDIR
790ENABLE_VISIBILITY_INLINES_HIDDEN
791RPATH
792RDYNAMIC
793LIBOBJS
794LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000795ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000796 ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802CPPFLAGS
803CPP
804CXX
805CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000806CCC'
John Criswell0157f502010-03-19 21:31:39 +0000807ac_subdirs_all='projects/llvm-gcc
808projects/test-suite
809projects/llvm-test
810projects/poolalloc
811projects/llvm-poolalloc
812projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000814projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-java
817projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000818projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000819projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000846# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000855includedir='${prefix}/include'
856oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000866
867ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000868ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000869for ac_option
870do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000873 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000874 ac_prev=
875 continue
876 fi
877
Reid Spencera773bd52006-08-04 18:18:08 +0000878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
John Criswell7a73b802003-06-30 21:59:07 +0000882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
Reid Spencera773bd52006-08-04 18:18:08 +0000885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000910 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000912 datadir=$ac_optarg ;;
913
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
John Criswell7a73b802003-06-30 21:59:07 +0000921 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000923 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000939
940 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000942 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
Reid Spencera773bd52006-08-04 18:18:08 +0000974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
John Criswell7a73b802003-06-30 21:59:07 +0000980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
John Criswell7a73b802003-06-30 21:59:07 +00001009 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
Reid Spencera773bd52006-08-04 18:18:08 +00001078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
John Criswell7a73b802003-06-30 21:59:07 +00001088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001139 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001148 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001184 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001202fi
1203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001209do
Reid Spencera773bd52006-08-04 18:18:08 +00001210 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001211 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001214 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
Reid Spencera773bd52006-08-04 18:18:08 +00001243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251
1252
John Criswell7a73b802003-06-30 21:59:07 +00001253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001256 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 ac_confdir=`$as_dirname -- "$0" ||
1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001281 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
Reid Spencera773bd52006-08-04 18:18:08 +00001287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001291fi
Reid Spencera773bd52006-08-04 18:18:08 +00001292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001321\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
John Criswell7a73b802003-06-30 21:59:07 +00001341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001387 short | recursive ) echo "Configuration of llvm 2.8svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
David Greenea696d242007-06-28 19:36:08 +00001398 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001405 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001406 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001407 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001408 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001409 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001412 --enable-timestamps Enable embedding timestamp information in build
1413 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1418 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1420 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001423 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001424 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001431 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 searches PATH)
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001435 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang)
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001441 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001454 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001468 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <llvmbugs@cs.uiuc.edu>.
1476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001536llvm configure 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
John Criswell5a129712010-03-19 21:04:16 +00001544Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001552It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
John Criswell5a129712010-03-19 21:04:16 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
John Criswell0157f502010-03-19 21:31:39 +00001954
1955
1956if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1958
1959fi
1960
1961if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1963
1964fi
1965
1966if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1968
1969fi
1970
1971if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1973
1974fi
1975
1976if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1978
1979fi
1980
John Criswell33a911a2003-11-25 20:36:46 +00001981for i in `ls ${srcdir}/projects`
1982do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001986 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001987 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001988 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001989 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001990 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001991 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001992;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001993 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001994 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001995 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001996 ;;
John Criswell7def2932010-02-25 22:57:19 +00001997 safecode) subdirs="$subdirs projects/safecode"
1998 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001999 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002000 ;;
John Criswell52c02862010-03-25 13:59:09 +00002001 llvm-gcc) ;;
2002 test-suite) ;;
2003 llvm-test) ;;
2004 poolalloc) ;;
2005 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002006 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002009 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 esac
John Criswell33a911a2003-11-25 20:36:46 +00002011 fi
2012done
John Criswell559a6c12003-09-30 16:31:48 +00002013
John Criswell7a73b802003-06-30 21:59:07 +00002014
2015# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002016$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021{ echo "$as_me:$LINENO: checking build system type" >&5
2022echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002025else
Reid Spencera773bd52006-08-04 18:18:08 +00002026 ac_build_alias=$build_alias
2027test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002033ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002037
2038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002041case $ac_cv_build in
2042*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002046esac
John Criswell7a73b802003-06-30 21:59:07 +00002047build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002048ac_save_IFS=$IFS; IFS='-'
2049set x $ac_cv_build
2050shift
2051build_cpu=$1
2052build_vendor=$2
2053shift; shift
2054# Remember, the first character of IFS is used to create $*,
2055# except with old shells:
2056build_os=$*
2057IFS=$ac_save_IFS
2058case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002059
2060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061{ echo "$as_me:$LINENO: checking host system type" >&5
2062echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002065else
Reid Spencera773bd52006-08-04 18:18:08 +00002066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2068else
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002073fi
John Criswell7a73b802003-06-30 21:59:07 +00002074
2075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002078case $ac_cv_host in
2079*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002080*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002083esac
John Criswell7a73b802003-06-30 21:59:07 +00002084host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002085ac_save_IFS=$IFS; IFS='-'
2086set x $ac_cv_host
2087shift
2088host_cpu=$1
2089host_vendor=$2
2090shift; shift
2091# Remember, the first character of IFS is used to create $*,
2092# except with old shells:
2093host_os=$*
2094IFS=$ac_save_IFS
2095case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002096
2097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098{ echo "$as_me:$LINENO: checking target system type" >&5
2099echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002102else
Reid Spencera773bd52006-08-04 18:18:08 +00002103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2105else
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002110fi
John Criswell7a73b802003-06-30 21:59:07 +00002111
2112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002113{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002115case $ac_cv_target in
2116*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002120esac
John Criswell7a73b802003-06-30 21:59:07 +00002121target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002122ac_save_IFS=$IFS; IFS='-'
2123set x $ac_cv_target
2124shift
2125target_cpu=$1
2126target_vendor=$2
2127shift; shift
2128# Remember, the first character of IFS is used to create $*,
2129# except with old shells:
2130target_os=$*
2131IFS=$ac_save_IFS
2132case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002133
2134
2135# The aliases save the names the user supplied, while $host etc.
2136# will get canonicalized.
2137test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2139 NONENONEs,x,x, &&
2140 program_prefix=${target_alias}-
2141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002142{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002146else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002147 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002148 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002151 llvm_cv_os_type="AIX"
2152 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002153 *-*-irix*)
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="IRIX"
2157 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002158 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002161 llvm_cv_os_type="Cygwin"
2162 llvm_cv_platform_type="Unix" ;;
2163 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002164 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002165 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002166 llvm_cv_os_type="Darwin"
2167 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002168 *-*-minix*)
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002173 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002174 llvm_cv_link_all_option="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002176 llvm_cv_os_type="FreeBSD"
2177 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002178 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002181 llvm_cv_os_type="OpenBSD"
2182 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002183 *-*-netbsd*)
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="NetBSD"
2187 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002188 *-*-dragonfly*)
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="DragonFly"
2192 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002193 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002196 llvm_cv_os_type="HP-UX"
2197 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002201 llvm_cv_os_type="Interix"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002206 llvm_cv_os_type="Linux"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002209 llvm_cv_link_all_option="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002211 llvm_cv_os_type="SunOS"
2212 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002213 *-*-auroraux*)
2214 llvm_cv_link_all_option="-Wl,-z,allextract"
2215 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216 llvm_cv_os_type="AuroraUX"
2217 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221 llvm_cv_os_type="Win32"
2222 llvm_cv_platform_type="Win32" ;;
2223 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002226 llvm_cv_os_type="MingW"
2227 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002228 *-*-haiku*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Haiku"
2232 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002233 *-unknown-eabi*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Freestanding"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-unknown-elf*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Freestanding"
2242 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002243 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option=""
2245 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Unknown"
2247 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002248esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002250{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002253{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002257else
2258 case $target in
2259 *-*-aix*)
2260 llvm_cv_target_os_type="AIX" ;;
2261 *-*-irix*)
2262 llvm_cv_target_os_type="IRIX" ;;
2263 *-*-cygwin*)
2264 llvm_cv_target_os_type="Cygwin" ;;
2265 *-*-darwin*)
2266 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002267 *-*-minix*)
2268 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002269 *-*-freebsd*)
2270 llvm_cv_target_os_type="FreeBSD" ;;
2271 *-*-openbsd*)
2272 llvm_cv_target_os_type="OpenBSD" ;;
2273 *-*-netbsd*)
2274 llvm_cv_target_os_type="NetBSD" ;;
2275 *-*-dragonfly*)
2276 llvm_cv_target_os_type="DragonFly" ;;
2277 *-*-hpux*)
2278 llvm_cv_target_os_type="HP-UX" ;;
2279 *-*-interix*)
2280 llvm_cv_target_os_type="Interix" ;;
2281 *-*-linux*)
2282 llvm_cv_target_os_type="Linux" ;;
2283 *-*-solaris*)
2284 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002285 *-*-auroraux*)
2286 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002287 *-*-win32*)
2288 llvm_cv_target_os_type="Win32" ;;
2289 *-*-mingw*)
2290 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002291 *-*-haiku*)
2292 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002293 *-unknown-eabi*)
2294 llvm_cv_target_os_type="Freestanding" ;;
2295 *)
2296 llvm_cv_target_os_type="Unknown" ;;
2297esac
2298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002301
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002306fi
2307
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002309
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002310HOST_OS=$llvm_cv_os_type
2311
2312TARGET_OS=$llvm_cv_target_os_type
2313
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002314
Reid Spencera773bd52006-08-04 18:18:08 +00002315LINKALL=$llvm_cv_link_all_option
2316
2317NOLINKALL=$llvm_cv_no_link_all_option
2318
2319
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320case $llvm_cv_platform_type in
2321 Unix)
2322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323cat >>confdefs.h <<\_ACEOF
2324#define LLVM_ON_UNIX 1
2325_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002327 LLVM_ON_UNIX=1
2328
2329 LLVM_ON_WIN32=0
2330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 ;;
2332 Win32)
2333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334cat >>confdefs.h <<\_ACEOF
2335#define LLVM_ON_WIN32 1
2336_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002338 LLVM_ON_UNIX=0
2339
2340 LLVM_ON_WIN32=1
2341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342 ;;
2343esac
2344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345{ echo "$as_me:$LINENO: checking target architecture" >&5
2346echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349else
2350 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002351 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002352 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002353 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2354 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002355 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002356 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002357 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002358 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002359 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002360 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002364 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002365esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002367{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002369
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002373fi
John Criswell76595452003-07-01 22:07:39 +00002374
Nick Lewycky83fc4472009-09-29 05:48:51 +00002375# Determine the LLVM native architecture for the target
2376case "$llvm_cv_target_arch" in
2377 x86) LLVM_NATIVE_ARCH="X86" ;;
2378 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2379 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2380esac
2381
2382ARCH=$llvm_cv_target_arch
2383
2384
2385ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002390if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397else
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2400else
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410 break 2
2411 fi
2412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413done
Reid Spencera773bd52006-08-04 18:18:08 +00002414IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415
2416fi
2417fi
2418CC=$ac_cv_prog_CC
2419if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420 { echo "$as_me:$LINENO: result: $CC" >&5
2421echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423 { echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425fi
2426
Reid Spencera773bd52006-08-04 18:18:08 +00002427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428fi
2429if test -z "$ac_cv_prog_CC"; then
2430 ac_ct_CC=$CC
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450 break 2
2451 fi
2452done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453done
Reid Spencera773bd52006-08-04 18:18:08 +00002454IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455
2456fi
2457fi
2458ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002463 { echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465fi
2466
Reid Spencera773bd52006-08-04 18:18:08 +00002467 if test "x$ac_ct_CC" = x; then
2468 CC=""
2469 else
2470 case $cross_compiling:$ac_tool_warned in
2471yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473whose name does not start with the host triplet. If you think this
2474configuration is useful to you, please write to autoconf@gnu.org." >&5
2475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476whose name does not start with the host triplet. If you think this
2477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002478ac_tool_warned=yes ;;
2479esac
2480 CC=$ac_ct_CC
2481 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482else
2483 CC="$ac_cv_prog_CC"
2484fi
2485
2486if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002489set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507 break 2
2508 fi
2509done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510done
Reid Spencera773bd52006-08-04 18:18:08 +00002511IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512
2513fi
2514fi
2515CC=$ac_cv_prog_CC
2516if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002517 { echo "$as_me:$LINENO: result: $CC" >&5
2518echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002520 { echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002522fi
2523
Reid Spencera773bd52006-08-04 18:18:08 +00002524
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526fi
2527if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537else
2538 ac_prog_rejected=no
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2548 continue
2549 fi
2550 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552 break 2
2553 fi
2554done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555done
Reid Spencera773bd52006-08-04 18:18:08 +00002556IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557
2558if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2561 shift
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2566 shift
2567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2568 fi
2569fi
2570fi
2571fi
2572CC=$ac_cv_prog_CC
2573if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002574 { echo "$as_me:$LINENO: result: $CC" >&5
2575echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002577 { echo "$as_me:$LINENO: result: no" >&5
2578echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579fi
2580
Reid Spencera773bd52006-08-04 18:18:08 +00002581
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582fi
2583if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002585 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002586 do
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002593else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 break 2
2607 fi
2608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609done
Reid Spencera773bd52006-08-04 18:18:08 +00002610IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002611
2612fi
2613fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614CC=$ac_cv_prog_CC
2615if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616 { echo "$as_me:$LINENO: result: $CC" >&5
2617echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 { echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002621fi
2622
Reid Spencera773bd52006-08-04 18:18:08 +00002623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002625 done
2626fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627if test -z "$CC"; then
2628 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002629 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002630do
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002637else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002650 break 2
2651 fi
2652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653done
Reid Spencera773bd52006-08-04 18:18:08 +00002654IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002655
2656fi
2657fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002663 { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002665fi
2666
Reid Spencera773bd52006-08-04 18:18:08 +00002667
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002669done
John Criswell7a73b802003-06-30 21:59:07 +00002670
Reid Spencera773bd52006-08-04 18:18:08 +00002671 if test "x$ac_ct_CC" = x; then
2672 CC=""
2673 else
2674 case $cross_compiling:$ac_tool_warned in
2675yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002676{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677whose name does not start with the host triplet. If you think this
2678configuration is useful to you, please write to autoconf@gnu.org." >&5
2679echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680whose name does not start with the host triplet. If you think this
2681configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002682ac_tool_warned=yes ;;
2683esac
2684 CC=$ac_ct_CC
2685 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686fi
2687
John Criswell7a73b802003-06-30 21:59:07 +00002688fi
2689
2690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002691test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692See \`config.log' for more details." >&5
2693echo "$as_me: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696
John Criswell7a73b802003-06-30 21:59:07 +00002697# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698echo "$as_me:$LINENO: checking for C compiler version" >&5
2699ac_compiler=`set X $ac_compile; echo $2`
2700{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002701case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002707 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710{ (ac_try="$ac_compiler -v >&5"
2711case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720{ (ac_try="$ac_compiler -V >&5"
2721case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002731cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002737
John Criswell7a73b802003-06-30 21:59:07 +00002738int
2739main ()
2740{
2741
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002748# Try to create an executable without -o first, disregard a.out.
2749# It will help us diagnose broken compilers, and finding out an intuition
2750# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754#
2755# List of possible output files, starting from the most likely.
2756# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757# only as a last resort. b.out is created by i960 compilers.
2758ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2759#
2760# The IRIX 6 linker writes into existing files which may not be
2761# executable, retaining their permissions. Remove them first so a
2762# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002763ac_rmfiles=
2764for ac_file in $ac_files
2765do
2766 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2769 esac
2770done
2771rm -f $ac_rmfiles
2772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002773if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002779 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002780 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785# in a Makefile. We should not override ac_cv_exeext if it was cached,
2786# so that the user can short-circuit this test for compilers unknown to
2787# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002788for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002789do
2790 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002791 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002793 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002794 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 # We found the default executable, but exeext='' is most
2796 # certainly right.
2797 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002798 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002800 then :; else
2801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2802 fi
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2807 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002808 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002809 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002810 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002811 esac
2812done
Reid Spencera773bd52006-08-04 18:18:08 +00002813test "$ac_cv_exeext" = no && ac_cv_exeext=
2814
John Criswell7a73b802003-06-30 21:59:07 +00002815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002817sed 's/^/| /' conftest.$ac_ext >&5
2818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002819{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820See \`config.log' for more details." >&5
2821echo "$as_me: error: C compiler cannot create executables
2822See \`config.log' for more details." >&2;}
2823 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002824fi
John Criswell7a73b802003-06-30 21:59:07 +00002825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826ac_exeext=$ac_cv_exeext
2827{ echo "$as_me:$LINENO: result: $ac_file" >&5
2828echo "${ECHO_T}$ac_file" >&6; }
2829
2830# Check that the compiler produces executables we can run. If not, either
2831# the compiler is broken, or we cross compile.
2832{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2834# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835# If not cross compiling, check that we can run a simple program.
2836if test "$cross_compiling" != yes; then
2837 if { ac_try='./$ac_file'
2838 { (case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841esac
2842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_try") 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 cross_compiling=no
2848 else
2849 if test "$cross_compiling" = maybe; then
2850 cross_compiling=yes
2851 else
2852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2853If you meant to cross compile, use \`--host'.
2854See \`config.log' for more details." >&5
2855echo "$as_me: error: cannot run C compiled programs.
2856If you meant to cross compile, use \`--host'.
2857See \`config.log' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2859 fi
2860 fi
2861fi
2862{ echo "$as_me:$LINENO: result: yes" >&5
2863echo "${ECHO_T}yes" >&6; }
2864
2865rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002866ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002867# Check that the compiler produces executables we can run. If not, either
2868# the compiler is broken, or we cross compile.
2869{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2870echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2871{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2872echo "${ECHO_T}$cross_compiling" >&6; }
2873
2874{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2875echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2876if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002882 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002883 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2888# work properly (i.e., refer to `conftest.exe'), while it won't with
2889# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002890for ac_file in conftest.exe conftest conftest.*; do
2891 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002892 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002895 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002896 * ) break;;
2897 esac
2898done
2899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2901See \`config.log' for more details." >&5
2902echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002906
2907rm -f conftest$ac_cv_exeext
2908{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002910
2911rm -f conftest.$ac_ext
2912EXEEXT=$ac_cv_exeext
2913ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002914{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2916if test "${ac_cv_objext+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002925
John Criswell7a73b802003-06-30 21:59:07 +00002926int
2927main ()
2928{
2929
2930 ;
2931 return 0;
2932}
2933_ACEOF
2934rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002935if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002941 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002942 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002947 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2950 break;;
2951 esac
2952done
2953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002955sed 's/^/| /' conftest.$ac_ext >&5
2956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002957{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2958See \`config.log' for more details." >&5
2959echo "$as_me: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002963
John Criswell7a73b802003-06-30 21:59:07 +00002964rm -f conftest.$ac_cv_objext conftest.$ac_ext
2965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002966{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2967echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002968OBJEXT=$ac_cv_objext
2969ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2972if test "${ac_cv_c_compiler_gnu+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002975 cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002981
John Criswell7a73b802003-06-30 21:59:07 +00002982int
2983main ()
2984{
2985#ifndef __GNUC__
2986 choke me
2987#endif
2988
2989 ;
2990 return 0;
2991}
2992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002993rm -f conftest.$ac_objext
2994if { (ac_try="$ac_compile"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003027 ac_compiler_gnu=yes
3028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003029 echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003034
Reid Spencera773bd52006-08-04 18:18:08 +00003035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003036ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003037
3038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003039{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3040echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042ac_test_CFLAGS=${CFLAGS+set}
3043ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003044{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3046if test "${ac_cv_prog_cc_g+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003048else
Reid Spencera773bd52006-08-04 18:18:08 +00003049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3051 ac_cv_prog_cc_g=no
3052 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003053 cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003059
John Criswell7a73b802003-06-30 21:59:07 +00003060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003102 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 CFLAGS=""
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003123rm -f conftest.$ac_objext
3124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 :
Torok Edwin871384f2010-01-26 08:50:50 +00003158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003163 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003164 cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003179rm -f conftest.$ac_objext
3180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003213 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218
John Criswell7a73b802003-06-30 21:59:07 +00003219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003220
Reid Spencera773bd52006-08-04 18:18:08 +00003221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003223
Reid Spencera773bd52006-08-04 18:18:08 +00003224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003226
Reid Spencera773bd52006-08-04 18:18:08 +00003227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003232if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3236 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003237 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003239 fi
3240else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003241 if test "$GCC" = yes; then
3242 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003243 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003245 fi
3246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003247{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3249if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003251else
Reid Spencera773bd52006-08-04 18:18:08 +00003252 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003254cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259/* end confdefs.h. */
3260#include <stdarg.h>
3261#include <stdio.h>
3262#include <sys/types.h>
3263#include <sys/stat.h>
3264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265struct buf { int x; };
3266FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267static char *e (p, i)
3268 char **p;
3269 int i;
3270{
3271 return p[i];
3272}
3273static char *f (char * (*g) (char **, int), char **p, ...)
3274{
3275 char *s;
3276 va_list v;
3277 va_start (v,p);
3278 s = g (p, va_arg (v,int));
3279 va_end (v);
3280 return s;
3281}
3282
3283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003286 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003289 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291
Reid Spencera773bd52006-08-04 18:18:08 +00003292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3294#define FOO(x) 'x'
3295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297int test (int i, double x);
3298struct s1 {int (*f) (int a);};
3299struct s2 {int (*f) (double a);};
3300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301int argc;
3302char **argv;
3303int
3304main ()
3305{
3306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307 ;
3308 return 0;
3309}
3310_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313do
3314 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315 rm -f conftest.$ac_objext
3316if { (ac_try="$ac_compile"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003349 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003350else
3351 echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356
Reid Spencera773bd52006-08-04 18:18:08 +00003357rm -f core conftest.err conftest.$ac_objext
3358 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359done
Reid Spencera773bd52006-08-04 18:18:08 +00003360rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361CC=$ac_save_CC
3362
3363fi
Reid Spencera773bd52006-08-04 18:18:08 +00003364# AC_CACHE_VAL
3365case "x$ac_cv_prog_cc_c89" in
3366 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003367 { echo "$as_me:$LINENO: result: none needed" >&5
3368echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003369 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003370 { echo "$as_me:$LINENO: result: unsupported" >&5
3371echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003373 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3375echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376esac
3377
John Criswell0c38eaf2003-09-10 15:17:25 +00003378
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384
3385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393# On Suns, sometimes $CPP names a directory.
3394if test -n "$CPP" && test -d "$CPP"; then
3395 CPP=
3396fi
3397if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400else
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403 do
3404 ac_preproc_ok=false
3405for ac_c_preproc_warn_flag in '' yes
3406do
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418/* end confdefs.h. */
3419#ifdef __STDC__
3420# include <limits.h>
3421#else
3422# include <assert.h>
3423#endif
3424 Syntax error
3425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426if { (ac_try="$ac_cpp conftest.$ac_ext"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 else
3443 ac_cpp_err=
3444 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003446 ac_cpp_err=yes
3447fi
3448if test -z "$ac_cpp_err"; then
3449 :
3450else
3451 echo "$as_me: failed program was:" >&5
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454 # Broken: fails on valid input.
3455continue
3456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003457
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458rm -f conftest.err conftest.$ac_ext
3459
Reid Spencera773bd52006-08-04 18:18:08 +00003460 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462 cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467/* end confdefs.h. */
3468#include <ac_nonexistent.h>
3469_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003470if { (ac_try="$ac_cpp conftest.$ac_ext"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474esac
3475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493 # Broken: success on invalid input.
3494continue
3495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003503
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504rm -f conftest.err conftest.$ac_ext
3505
3506done
3507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003509if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510 break
3511fi
3512
3513 done
3514 ac_cv_prog_CPP=$CPP
3515
3516fi
3517 CPP=$ac_cv_prog_CPP
3518else
3519 ac_cv_prog_CPP=$CPP
3520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003521{ echo "$as_me:$LINENO: result: $CPP" >&5
3522echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003523ac_preproc_ok=false
3524for ac_c_preproc_warn_flag in '' yes
3525do
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003532 cat >conftest.$ac_ext <<_ACEOF
3533/* confdefs.h. */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537/* end confdefs.h. */
3538#ifdef __STDC__
3539# include <limits.h>
3540#else
3541# include <assert.h>
3542#endif
3543 Syntax error
3544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003545if { (ac_try="$ac_cpp conftest.$ac_ext"
3546case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549esac
3550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 else
3562 ac_cpp_err=
3563 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003565 ac_cpp_err=yes
3566fi
3567if test -z "$ac_cpp_err"; then
3568 :
3569else
3570 echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003573 # Broken: fails on valid input.
3574continue
3575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003576
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577rm -f conftest.err conftest.$ac_ext
3578
Reid Spencera773bd52006-08-04 18:18:08 +00003579 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003581 cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586/* end confdefs.h. */
3587#include <ac_nonexistent.h>
3588_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003589if { (ac_try="$ac_cpp conftest.$ac_ext"
3590case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593esac
3594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 else
3606 ac_cpp_err=
3607 fi
3608else
3609 ac_cpp_err=yes
3610fi
3611if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612 # Broken: success on invalid input.
3613continue
3614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003615 echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Passes both tests.
3619ac_preproc_ok=:
3620break
3621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003622
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003623rm -f conftest.err conftest.$ac_ext
3624
3625done
3626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003628if $ac_preproc_ok; then
3629 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003631 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3632See \`config.log' for more details." >&5
3633echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&2;}
3635 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003636fi
3637
John Criswell7a73b802003-06-30 21:59:07 +00003638ac_ext=c
3639ac_cpp='$CPP $CPPFLAGS'
3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003645{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3646echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3647if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003650 # Extract the first word of "grep ggrep" to use in msg output
3651if test -z "$GREP"; then
3652set dummy grep ggrep; ac_prog_name=$2
3653if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
Reid Spencera773bd52006-08-04 18:18:08 +00003656 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657# Loop through the user's path and test for each of PROGNAME-LIST
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003659for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003663 for ac_prog in grep ggrep; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3666 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3667 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003668 # Check for GNU $ac_path_GREP
3669case `"$ac_path_GREP" --version 2>&1` in
3670*GNU*)
3671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3672*)
3673 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003674 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003675 while :
3676 do
3677 cat "conftest.in" "conftest.in" >"conftest.tmp"
3678 mv "conftest.tmp" "conftest.in"
3679 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003683 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685 # Best one so far, save it but keep looking for a better one
3686 ac_cv_path_GREP="$ac_path_GREP"
3687 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003688 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003689 # 10*(2^10) chars as input seems more than enough
3690 test $ac_count -gt 10 && break
3691 done
3692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3693esac
3694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003695
3696 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003697 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003698done
3699
3700done
Reid Spencera773bd52006-08-04 18:18:08 +00003701IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702
3703
3704fi
3705
3706GREP="$ac_cv_path_GREP"
3707if test -z "$GREP"; then
3708 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710 { (exit 1); exit 1; }; }
3711fi
3712
Reid Spencera773bd52006-08-04 18:18:08 +00003713else
3714 ac_cv_path_GREP=$GREP
3715fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003717
Reid Spencera773bd52006-08-04 18:18:08 +00003718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3720echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003721 GREP="$ac_cv_path_GREP"
3722
3723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003724{ echo "$as_me:$LINENO: checking for egrep" >&5
3725echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3726if test "${ac_cv_path_EGREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003728else
3729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3730 then ac_cv_path_EGREP="$GREP -E"
3731 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003732 # Extract the first word of "egrep" to use in msg output
3733if test -z "$EGREP"; then
3734set dummy egrep; ac_prog_name=$2
3735if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
Reid Spencera773bd52006-08-04 18:18:08 +00003738 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003739# Loop through the user's path and test for each of PROGNAME-LIST
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3742do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003745 for ac_prog in egrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3749 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003750 # Check for GNU $ac_path_EGREP
3751case `"$ac_path_EGREP" --version 2>&1` in
3752*GNU*)
3753 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3754*)
3755 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003757 while :
3758 do
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003762 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003765 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_EGREP="$ac_path_EGREP"
3769 ac_path_EGREP_max=$ac_count
3770 fi
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3773 done
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775esac
3776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003777
3778 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003779 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003780done
3781
3782done
Reid Spencera773bd52006-08-04 18:18:08 +00003783IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003784
3785
3786fi
3787
3788EGREP="$ac_cv_path_EGREP"
3789if test -z "$EGREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3793fi
3794
Reid Spencera773bd52006-08-04 18:18:08 +00003795else
3796 ac_cv_path_EGREP=$EGREP
3797fi
3798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003799
Reid Spencera773bd52006-08-04 18:18:08 +00003800 fi
3801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003802{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3803echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003804 EGREP="$ac_cv_path_EGREP"
3805
3806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003807{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3808echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3809if test "${ac_cv_header_stdc+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003812 cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h. */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003818#include <stdlib.h>
3819#include <stdarg.h>
3820#include <string.h>
3821#include <float.h>
3822
John Criswell0c38eaf2003-09-10 15:17:25 +00003823int
3824main ()
3825{
3826
3827 ;
3828 return 0;
3829}
John Criswell7a73b802003-06-30 21:59:07 +00003830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003831rm -f conftest.$ac_objext
3832if { (ac_try="$ac_compile"
3833case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836esac
3837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_try") 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859esac
3860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003865 ac_cv_header_stdc=yes
3866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003867 echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003872
Reid Spencera773bd52006-08-04 18:18:08 +00003873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003874
3875if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003877 cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003883#include <string.h>
3884
3885_ACEOF
3886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003887 $EGREP "memchr" >/dev/null 2>&1; then
3888 :
John Criswell7a73b802003-06-30 21:59:07 +00003889else
3890 ac_cv_header_stdc=no
3891fi
3892rm -f conftest*
3893
3894fi
3895
3896if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003898 cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003904#include <stdlib.h>
3905
3906_ACEOF
3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908 $EGREP "free" >/dev/null 2>&1; then
3909 :
John Criswell7a73b802003-06-30 21:59:07 +00003910else
3911 ac_cv_header_stdc=no
3912fi
3913rm -f conftest*
3914
3915fi
3916
3917if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003919 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003920 :
3921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922 cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003928#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003929#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003930#if ((' ' & 0x0FF) == 0x020)
3931# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003934# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003935 (('a' <= (c) && (c) <= 'i') \
3936 || ('j' <= (c) && (c) <= 'r') \
3937 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003938# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3939#endif
3940
3941#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3942int
3943main ()
3944{
3945 int i;
3946 for (i = 0; i < 256; i++)
3947 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003948 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003949 return 2;
3950 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003951}
3952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953rm -f conftest$ac_exeext
3954if { (ac_try="$ac_link"
3955case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958esac
3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 :
John Criswell7a73b802003-06-30 21:59:07 +00003974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975 echo "$as_me: program exited with status $ac_status" >&5
3976echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979( exit $ac_status )
3980ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00003983fi
3984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985
John Criswell7a73b802003-06-30 21:59:07 +00003986fi
3987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003990if test $ac_cv_header_stdc = yes; then
3991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992cat >>confdefs.h <<\_ACEOF
3993#define STDC_HEADERS 1
3994_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003995
3996fi
3997
Reid Spencera773bd52006-08-04 18:18:08 +00003998# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999
4000
4001
4002
4003
4004
4005
4006
4007
Reid Spencera773bd52006-08-04 18:18:08 +00004008for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010do
4011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023$ac_includes_default
4024
4025#include <$ac_header>
4026_ACEOF
4027rm -f conftest.$ac_objext
4028if { (ac_try="$ac_compile"
4029case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032esac
4033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_try") 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055esac
4056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_try") 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_Header=yes"
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 eval "$as_ac_Header=no"
4067fi
4068
4069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070fi
4071ac_res=`eval echo '${'$as_ac_Header'}'`
4072 { echo "$as_me:$LINENO: result: $ac_res" >&5
4073echo "${ECHO_T}$ac_res" >&6; }
4074if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004075 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004077_ACEOF
4078
4079fi
4080
4081done
4082
4083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4085echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4086if test "${ac_cv_c_bigendian+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089 # See if sys/param.h defines the BYTE_ORDER macro.
4090cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004092_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004095/* end confdefs.h. */
4096#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004098
4099int
4100main ()
4101{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004102#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4103 bogus endian macros
4104#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004105
4106 ;
4107 return 0;
4108}
4109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004110rm -f conftest.$ac_objext
4111if { (ac_try="$ac_compile"
4112case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115esac
4116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_try") 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004144 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h. */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004150/* end confdefs.h. */
4151#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004153
4154int
4155main ()
4156{
4157#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004158 not big endian
4159#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004160
4161 ;
4162 return 0;
4163}
4164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004165rm -f conftest.$ac_objext
4166if { (ac_try="$ac_compile"
4167case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170esac
4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004199 ac_cv_c_bigendian=yes
4200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 echo "$as_me: failed program was:" >&5
4202sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004204 ac_cv_c_bigendian=no
4205fi
4206
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208else
4209 echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 # It does not; compile a test program.
4213if test "$cross_compiling" = yes; then
4214 # try to guess the endianness by grepping values into an object file
4215 ac_cv_c_bigendian=unknown
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
4222short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4223short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4224void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4225short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4226short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4227void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004228int
4229main ()
4230{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004232 ;
4233 return 0;
4234}
4235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236rm -f conftest.$ac_objext
4237if { (ac_try="$ac_compile"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_try") 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004271 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272fi
4273if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4276 else
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4279 fi
4280fi
Reid Spencera773bd52006-08-04 18:18:08 +00004281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282 echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004285
Torok Edwin871384f2010-01-26 08:50:50 +00004286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287
Reid Spencera773bd52006-08-04 18:18:08 +00004288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004290 cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004295/* end confdefs.h. */
4296$ac_includes_default
4297int
4298main ()
4299{
4300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301 /* Are we little or big endian? From Harbison&Steele. */
4302 union
4303 {
4304 long int l;
4305 char c[sizeof (long int)];
4306 } u;
4307 u.l = 1;
4308 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004309
4310 ;
4311 return 0;
4312}
4313_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004314rm -f conftest$ac_exeext
4315if { (ac_try="$ac_link"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004334 ac_cv_c_bigendian=no
4335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336 echo "$as_me: program exited with status $ac_status" >&5
4337echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340( exit $ac_status )
4341ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004344fi
4345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004346
Reid Spencera773bd52006-08-04 18:18:08 +00004347fi
4348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350fi
4351{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4352echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4353case $ac_cv_c_bigendian in
4354 yes)
4355 ENDIAN=big
4356 ;;
4357 no)
4358 ENDIAN=little
4359 ;;
4360 *)
4361 { { echo "$as_me:$LINENO: error: unknown endianness
4362presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363echo "$as_me: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4366esac
Reid Spencera773bd52006-08-04 18:18:08 +00004367
4368
4369if test "$cross_compiling" = yes; then
4370 LLVM_CROSS_COMPILING=1
4371
4372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4374echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4375if test "${ac_cv_build_exeext+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004377else
4378 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4379 ac_cv_build_exeext=.exe
4380else
4381 ac_build_prefix=${build_alias}-
4382
4383 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4384set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004389else
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004400 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004402 break 2
4403 fi
4404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405done
Reid Spencera773bd52006-08-04 18:18:08 +00004406IFS=$as_save_IFS
4407
4408fi
4409fi
4410BUILD_CC=$ac_cv_prog_BUILD_CC
4411if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415 { echo "$as_me:$LINENO: result: no" >&5
4416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004417fi
4418
4419
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "gcc", so it can be a program name with args.
4422set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004427else
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004438 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004440 break 2
4441 fi
4442done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443done
Reid Spencera773bd52006-08-04 18:18:08 +00004444IFS=$as_save_IFS
4445
4446fi
4447fi
4448BUILD_CC=$ac_cv_prog_BUILD_CC
4449if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004453 { echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004455fi
4456
4457
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004465else
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468else
4469 ac_prog_rejected=no
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4479 continue
4480 fi
4481 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004483 break 2
4484 fi
4485done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486done
Reid Spencera773bd52006-08-04 18:18:08 +00004487IFS=$as_save_IFS
4488
4489if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_BUILD_CC
4492 shift
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set BUILD_CC to just the basename; use the full file name.
4497 shift
4498 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4499 fi
4500fi
4501fi
4502fi
4503BUILD_CC=$ac_cv_prog_BUILD_CC
4504if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004505 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4506echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508 { echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004510fi
4511
4512
4513 fi
4514 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4516echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4517 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004518 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4519 rm -f conftest*
4520 echo 'int main () { return 0; }' > conftest.$ac_ext
4521 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004522 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004523 (eval $ac_build_link) 2>&5
4524 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004527 for file in conftest.*; do
4528 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004529 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004530 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4531 esac
4532 done
4533 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004534 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4535echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4536 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004537 fi
4538 rm -f conftest*
4539 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4540fi
4541fi
4542
4543BUILD_EXEEXT=""
4544test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4546echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004547ac_build_exeext=$BUILD_EXEEXT
4548
Jim Grosbach673612e2008-10-02 22:56:44 +00004549 ac_build_prefix=${build_alias}-
4550 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4551set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004556else
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004567 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004569 break 2
4570 fi
4571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572done
Jim Grosbach673612e2008-10-02 22:56:44 +00004573IFS=$as_save_IFS
4574
4575fi
4576fi
4577BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004582 { echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004584fi
4585
4586
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "g++", so it can be a program name with args.
4589set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004594else
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004605 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004607 break 2
4608 fi
4609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610done
Jim Grosbach673612e2008-10-02 22:56:44 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620 { echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004622fi
4623
4624
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "c++", so it can be a program name with args.
4627set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004632else
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635else
4636 ac_prog_rejected=no
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4645 ac_prog_rejected=yes
4646 continue
4647 fi
4648 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004650 break 2
4651 fi
4652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653done
Jim Grosbach673612e2008-10-02 22:56:44 +00004654IFS=$as_save_IFS
4655
4656if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_BUILD_CXX
4659 shift
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set BUILD_CXX to just the basename; use the full file name.
4664 shift
4665 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4666 fi
4667fi
4668fi
4669fi
4670BUILD_CXX=$ac_cv_prog_BUILD_CXX
4671if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004672 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4673echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 { echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004677fi
4678
4679
4680 fi
4681 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004682else
4683 LLVM_CROSS_COMPILING=0
4684
4685fi
4686
Dan Gohman56fb5f92010-08-04 16:25:01 +00004687if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004688 cvsbuild="yes"
4689 optimize="no"
4690 CVSBUILD=CVSBUILD=1
4691
4692else
4693 cvsbuild="no"
4694 optimize="yes"
4695fi
4696
4697
4698# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004700 enableval=$enable_optimized;
4701else
4702 enableval=$optimize
4703fi
4704
4705if test ${enableval} = "no" ; then
4706 ENABLE_OPTIMIZED=
4707
4708else
4709 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4710
4711fi
4712
David Greene2a5a12c2009-04-17 14:50:39 +00004713# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004715 enableval=$enable_profiling;
4716else
4717 enableval="no"
4718fi
4719
4720if test ${enableval} = "no" ; then
4721 ENABLE_PROFILING=
4722
4723else
4724 ENABLE_PROFILING=ENABLE_PROFILING=1
4725
4726fi
4727
Reid Spencera773bd52006-08-04 18:18:08 +00004728# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004730 enableval=$enable_assertions;
4731else
4732 enableval="yes"
4733fi
4734
4735if test ${enableval} = "yes" ; then
4736 DISABLE_ASSERTIONS=
4737
4738else
4739 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4740
4741fi
4742
David Greenea696d242007-06-28 19:36:08 +00004743# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004744if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004745 enableval=$enable_expensive_checks;
4746else
4747 enableval="no"
4748fi
4749
4750if test ${enableval} = "yes" ; then
4751 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4752
4753 EXPENSIVE_CHECKS=yes
4754
4755else
4756 ENABLE_EXPENSIVE_CHECKS=
4757
4758 EXPENSIVE_CHECKS=no
4759
4760fi
4761
Reid Spencer8b2e1412006-11-17 03:32:33 +00004762# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004764 enableval=$enable_debug_runtime;
4765else
4766 enableval=no
4767fi
4768
4769if test ${enableval} = "no" ; then
4770 DEBUG_RUNTIME=
4771
4772else
4773 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4774
4775fi
4776
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004777# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004779 enableval=$enable_debug_symbols;
4780else
4781 enableval=no
4782fi
4783
4784if test ${enableval} = "no" ; then
4785 DEBUG_SYMBOLS=
4786
4787else
4788 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4789
4790fi
4791
Reid Spencera773bd52006-08-04 18:18:08 +00004792# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004794 enableval=$enable_jit;
4795else
4796 enableval=default
4797fi
4798
4799if test ${enableval} = "no"
4800then
4801 JIT=
4802
4803else
4804 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004805 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004806 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004807 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004809 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004815 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004816 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004817 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004818 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004819 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 Blackfin) TARGET_HAS_JIT=0
4828 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004829 MBlaze) TARGET_HAS_JIT=0
4830 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004831 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004832 ;;
4833 esac
4834fi
4835
4836# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004838 enableval=$enable_doxygen;
4839else
4840 enableval=default
4841fi
4842
4843case "$enableval" in
4844 yes) ENABLE_DOXYGEN=1
4845 ;;
4846 no) ENABLE_DOXYGEN=0
4847 ;;
4848 default) ENABLE_DOXYGEN=0
4849 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4851echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004853esac
4854
4855# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004857 enableval=$enable_threads;
4858else
Reid Spencer65c5d752006-11-05 17:08:18 +00004859 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004860fi
4861
4862case "$enableval" in
4863 yes) ENABLE_THREADS=1
4864 ;;
4865 no) ENABLE_THREADS=0
4866 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004867 default) ENABLE_THREADS=1
4868 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4870echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004872esac
4873
Owen Andersona8603702009-05-19 22:18:56 +00004874cat >>confdefs.h <<_ACEOF
4875#define ENABLE_THREADS $ENABLE_THREADS
4876_ACEOF
4877
4878
Reid Spencer89b0d992006-12-16 22:07:52 +00004879# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004881 enableval=$enable_pic;
4882else
4883 enableval=default
4884fi
4885
4886case "$enableval" in
4887 yes) ENABLE_PIC=1
4888 ;;
4889 no) ENABLE_PIC=0
4890 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004891 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004892 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4894echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4895 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004896esac
4897
4898cat >>confdefs.h <<_ACEOF
4899#define ENABLE_PIC $ENABLE_PIC
4900_ACEOF
4901
4902
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004903# Check whether --enable-shared was given.
4904if test "${enable_shared+set}" = set; then
4905 enableval=$enable_shared;
4906else
4907 enableval=default
4908fi
4909
4910case "$enableval" in
4911 yes) ENABLE_SHARED=1
4912 ;;
4913 no) ENABLE_SHARED=0
4914 ;;
4915 default) ENABLE_SHARED=0
4916 ;;
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4918echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4920esac
4921
Daniel Dunbardd464df2010-05-10 20:11:56 +00004922# Check whether --enable-timestamps was given.
4923if test "${enable_timestamps+set}" = set; then
4924 enableval=$enable_timestamps;
4925else
4926 enableval=default
4927fi
4928
4929case "$enableval" in
4930 yes) ENABLE_TIMESTAMPS=1
4931 ;;
4932 no) ENABLE_TIMESTAMPS=0
4933 ;;
4934 default) ENABLE_TIMESTAMPS=1
4935 ;;
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4937echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939esac
4940
4941cat >>confdefs.h <<_ACEOF
4942#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4943_ACEOF
4944
4945
Reid Spencera773bd52006-08-04 18:18:08 +00004946TARGETS_TO_BUILD=""
4947# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004948if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004949 enableval=$enable_targets;
4950else
4951 enableval=all
4952fi
4953
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004954if test "$enableval" = host-only ; then
4955 enableval=host
4956fi
Reid Spencera773bd52006-08-04 18:18:08 +00004957case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004958 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004959 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4960 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004961 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4964 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4965 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4966 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4967 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4968 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4969 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4976 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004977 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004978 host) case "$llvm_cv_target_arch" in
4979 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4982 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4983 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4984 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4985 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004986 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004987 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4989 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4990 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004991 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004992 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004993 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994echo "$as_me: error: Can not set target to build" >&2;}
4995 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004996 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004997 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4998echo "$as_me: error: Unrecognized target $a_target" >&2;}
4999 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005000 esac
5001 done
5002 ;;
5003esac
Reid Spencera773bd52006-08-04 18:18:08 +00005004TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5005
5006
Douglas Gregor0711c302009-06-17 00:43:20 +00005007# Determine whether we are building LLVM support for the native architecture.
5008# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5009for a_target in $TARGETS_TO_BUILD; do
5010 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005011 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005012
5013cat >>confdefs.h <<_ACEOF
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005014#define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5015_ACEOF
5016
5017
5018cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005019#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005020_ACEOF
5021
5022 fi
5023done
5024
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005025# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5026# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005027LLVM_ENUM_TARGETS=""
5028LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005029LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005030LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005031for target_to_build in $TARGETS_TO_BUILD; do
5032 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5033 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5034 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5035 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005036 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5037 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5038 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005039 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5040 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5041 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005042done
5043
5044
5045
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005046
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005047
Reid Spencer65c5d752006-11-05 17:08:18 +00005048# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005049if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005050 enableval=$enable_cbe_printf_a;
5051else
5052 enableval=default
5053fi
5054
5055case "$enableval" in
5056 yes) ENABLE_CBE_PRINTF_A=1
5057 ;;
5058 no) ENABLE_CBE_PRINTF_A=0
5059 ;;
5060 default) ENABLE_CBE_PRINTF_A=1
5061 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005062 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5063echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5064 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005065esac
5066
5067cat >>confdefs.h <<_ACEOF
5068#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5069_ACEOF
5070
5071
Reid Spencera773bd52006-08-04 18:18:08 +00005072
5073# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005074if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005075 withval=$with_llvmgccdir;
5076else
5077 withval=default
5078fi
5079
5080case "$withval" in
5081 default) WITH_LLVMGCCDIR=default ;;
5082 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005083 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5084echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5085 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005086esac
5087
5088
Devang Patel5d28b882007-12-04 22:54:47 +00005089# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005090if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005091 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5092 WITH_LLVMGCCDIR=""
5093fi
5094
5095
5096
5097# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005098if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005099 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5100 WITH_LLVMGCCDIR=""
5101fi
5102
Douglas Gregor01746742009-05-11 18:05:52 +00005103
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005104if test -n "$LLVMGCC"; then
5105 LLVMGCCCOMMAND="$LLVMGCC"
5106fi
5107
5108if test -n "$LLVMGXX"; then
5109 LLVMGXXCOMMAND="$LLVMGXX"
5110fi
Devang Patel5d28b882007-12-04 22:54:47 +00005111
5112if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005113 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5114echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5115 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005116fi
5117
5118if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005119 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5120echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5121 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005122fi
5123
5124
Daniel Dunbar98515672010-02-23 10:00:49 +00005125# Check whether --with-clang was given.
5126if test "${with_clang+set}" = set; then
5127 withval=$with_clang;
5128else
5129 with_clang=default
5130fi
5131
5132
5133
5134# Check whether --with-built-clang was given.
5135if test "${with_built_clang+set}" = set; then
5136 withval=$with_built_clang;
5137else
5138 with_built_clang=check
5139fi
5140
5141
5142{ echo "$as_me:$LINENO: checking clang compiler" >&5
5143echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5144WITH_CLANGPATH=""
5145WITH_BUILT_CLANG=0
5146if test "$with_clang" != "default"; then
5147 WITH_CLANGPATH="$with_clang"
5148 if ! test -x "$WITH_CLANGPATH"; then
5149 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5150echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5151 { (exit 1); exit 1; }; }
5152 fi
5153elif test "$with_built_clang" = "yes"; then
5154 WITH_BUILT_CLANG=1
5155elif test "$with_built_clang" = "no"; then
5156 WITH_BUILT_CLANG=0
5157else
5158 if test "$with_built_clang" != "check"; then
5159 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5160echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5161 { (exit 1); exit 1; }; }
5162 fi
5163
5164 if test -f ${srcdir}/tools/clang/README.txt; then
5165 WITH_BUILT_CLANG=1
5166 fi
5167fi
5168
5169if ! test -z "$WITH_CLANGPATH"; then
5170 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5171echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5172 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5173elif test "$WITH_BUILT_CLANG" = "1"; then
5174 { echo "$as_me:$LINENO: result: built" >&5
5175echo "${ECHO_T}built" >&6; }
5176else
5177 { echo "$as_me:$LINENO: result: none" >&5
5178echo "${ECHO_T}none" >&6; }
5179fi
5180CLANGPATH=$WITH_CLANGPATH
5181
5182CLANGXXPATH=$WITH_CLANGXXPATH
5183
5184ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5185
5186
5187
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005188# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005189if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005190 withval=$with_optimize_option;
5191else
5192 withval=default
5193fi
5194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005195{ echo "$as_me:$LINENO: checking optimization flags" >&5
5196echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005197case "$withval" in
5198 default)
5199 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005200 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005201 MingW) optimize_option=-O2 ;;
5202 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005203 esac ;;
5204 *) optimize_option="$withval" ;;
5205esac
5206OPTIMIZE_OPTION=$optimize_option
5207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005208{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5209echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005210
5211
Reid Spencera773bd52006-08-04 18:18:08 +00005212# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005214 withval=$with_extra_options;
5215else
5216 withval=default
5217fi
5218
5219case "$withval" in
5220 default) EXTRA_OPTIONS= ;;
5221 *) EXTRA_OPTIONS=$withval ;;
5222esac
5223EXTRA_OPTIONS=$EXTRA_OPTIONS
5224
5225
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005226# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005227if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005228 enableval=$enable_bindings;
5229else
5230 enableval=default
5231fi
5232
5233BINDINGS_TO_BUILD=""
5234case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005235 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005236 all ) BINDINGS_TO_BUILD="ocaml" ;;
5237 none | no) BINDINGS_TO_BUILD="" ;;
5238 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5239 case "$a_binding" in
5240 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005241 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5242echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5243 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005244 esac
5245 done
5246 ;;
5247esac
5248
Reid Spencera773bd52006-08-04 18:18:08 +00005249
Gordon Henriksenf0915682007-10-02 16:42:22 +00005250# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005251if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005252 withval=$with_ocaml_libdir;
5253else
5254 withval=auto
5255fi
5256
5257case "$withval" in
5258 auto) with_ocaml_libdir="$withval" ;;
5259 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005260 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5261echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5262 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005263esac
5264
5265
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005266# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005267if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005268 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005269else
5270 withval=""
5271fi
5272
5273
5274cat >>confdefs.h <<_ACEOF
5275#define C_INCLUDE_DIRS "$withval"
5276_ACEOF
5277
5278
5279
Rafael Espindola420d23c2009-11-16 19:46:55 +00005280# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005281if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005282 withval=$with_cxx_include_root;
5283else
5284 withval=""
5285fi
5286
5287
5288cat >>confdefs.h <<_ACEOF
5289#define CXX_INCLUDE_ROOT "$withval"
5290_ACEOF
5291
5292
5293
5294# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005295if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005296 withval=$with_cxx_include_arch;
5297else
5298 withval=""
5299fi
5300
5301
5302cat >>confdefs.h <<_ACEOF
5303#define CXX_INCLUDE_ARCH "$withval"
5304_ACEOF
5305
5306
5307
5308# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005309if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005310 withval=$with_cxx_include_32bit_dir;
5311else
5312 withval=""
5313fi
5314
5315
5316cat >>confdefs.h <<_ACEOF
5317#define CXX_INCLUDE_32BIT_DIR "$withval"
5318_ACEOF
5319
5320
5321
5322# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005323if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005324 withval=$with_cxx_include_64bit_dir;
5325else
5326 withval=""
5327fi
5328
5329
5330cat >>confdefs.h <<_ACEOF
5331#define CXX_INCLUDE_64BIT_DIR "$withval"
5332_ACEOF
5333
5334
5335
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005336# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005337if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005338 withval=$with_binutils_include;
5339else
5340 withval=default
5341fi
5342
5343case "$withval" in
5344 default) WITH_BINUTILS_INCDIR=default ;;
5345 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005346 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5347echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5348 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005349esac
5350if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5351 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5352
5353 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5354 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005355 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5356echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5357 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005358 fi
5359fi
5360
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005361# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005362if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005363 enableval=$enable_libffi; case "$enableval" in
5364 yes) llvm_cv_enable_libffi="yes" ;;
5365 no) llvm_cv_enable_libffi="no" ;;
5366 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005367echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5368 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005369 esac
5370else
5371 llvm_cv_enable_libffi=no
5372fi
5373
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005374
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005375
Reid Spencera773bd52006-08-04 18:18:08 +00005376ac_ext=c
5377ac_cpp='$CPP $CPPFLAGS'
5378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005381{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5382echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005383# On Suns, sometimes $CPP names a directory.
5384if test -n "$CPP" && test -d "$CPP"; then
5385 CPP=
5386fi
5387if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005388 if test "${ac_cv_prog_CPP+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005390else
5391 # Double quotes because CPP needs to be expanded
5392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5393 do
5394 ac_preproc_ok=false
5395for ac_c_preproc_warn_flag in '' yes
5396do
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005403 cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005408/* end confdefs.h. */
5409#ifdef __STDC__
5410# include <limits.h>
5411#else
5412# include <assert.h>
5413#endif
5414 Syntax error
5415_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005416if { (ac_try="$ac_cpp conftest.$ac_ext"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null; then
5429 if test -s conftest.err; then
5430 ac_cpp_err=$ac_c_preproc_warn_flag
5431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5432 else
5433 ac_cpp_err=
5434 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436 ac_cpp_err=yes
5437fi
5438if test -z "$ac_cpp_err"; then
5439 :
5440else
5441 echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
Reid Spencera773bd52006-08-04 18:18:08 +00005444 # Broken: fails on valid input.
5445continue
5446fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447
Reid Spencera773bd52006-08-04 18:18:08 +00005448rm -f conftest.err conftest.$ac_ext
5449
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005452 cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005457/* end confdefs.h. */
5458#include <ac_nonexistent.h>
5459_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460if { (ac_try="$ac_cpp conftest.$ac_ext"
5461case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464esac
5465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null; then
5473 if test -s conftest.err; then
5474 ac_cpp_err=$ac_c_preproc_warn_flag
5475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5476 else
5477 ac_cpp_err=
5478 fi
5479else
5480 ac_cpp_err=yes
5481fi
5482if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005483 # Broken: success on invalid input.
5484continue
5485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005486 echo "$as_me: failed program was:" >&5
5487sed 's/^/| /' conftest.$ac_ext >&5
5488
Reid Spencera773bd52006-08-04 18:18:08 +00005489 # Passes both tests.
5490ac_preproc_ok=:
5491break
5492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493
Reid Spencera773bd52006-08-04 18:18:08 +00005494rm -f conftest.err conftest.$ac_ext
5495
5496done
5497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005499if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005500 break
5501fi
5502
5503 done
5504 ac_cv_prog_CPP=$CPP
5505
5506fi
5507 CPP=$ac_cv_prog_CPP
5508else
5509 ac_cv_prog_CPP=$CPP
5510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005511{ echo "$as_me:$LINENO: result: $CPP" >&5
5512echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005513ac_preproc_ok=false
5514for ac_c_preproc_warn_flag in '' yes
5515do
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005522 cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005527/* end confdefs.h. */
5528#ifdef __STDC__
5529# include <limits.h>
5530#else
5531# include <assert.h>
5532#endif
5533 Syntax error
5534_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535if { (ac_try="$ac_cpp conftest.$ac_ext"
5536case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } >/dev/null; then
5548 if test -s conftest.err; then
5549 ac_cpp_err=$ac_c_preproc_warn_flag
5550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5551 else
5552 ac_cpp_err=
5553 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005555 ac_cpp_err=yes
5556fi
5557if test -z "$ac_cpp_err"; then
5558 :
5559else
5560 echo "$as_me: failed program was:" >&5
5561sed 's/^/| /' conftest.$ac_ext >&5
5562
Reid Spencera773bd52006-08-04 18:18:08 +00005563 # Broken: fails on valid input.
5564continue
5565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566
Reid Spencera773bd52006-08-04 18:18:08 +00005567rm -f conftest.err conftest.$ac_ext
5568
5569 # OK, works on sane cases. Now check whether nonexistent headers
5570 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005571 cat >conftest.$ac_ext <<_ACEOF
5572/* confdefs.h. */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005576/* end confdefs.h. */
5577#include <ac_nonexistent.h>
5578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579if { (ac_try="$ac_cpp conftest.$ac_ext"
5580case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev/null; then
5592 if test -s conftest.err; then
5593 ac_cpp_err=$ac_c_preproc_warn_flag
5594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5595 else
5596 ac_cpp_err=
5597 fi
5598else
5599 ac_cpp_err=yes
5600fi
5601if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005602 # Broken: success on invalid input.
5603continue
5604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005605 echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
Reid Spencera773bd52006-08-04 18:18:08 +00005608 # Passes both tests.
5609ac_preproc_ok=:
5610break
5611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005612
Reid Spencera773bd52006-08-04 18:18:08 +00005613rm -f conftest.err conftest.$ac_ext
5614
5615done
5616# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005618if $ac_preproc_ok; then
5619 :
Reid Spencera773bd52006-08-04 18:18:08 +00005620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5622See \`config.log' for more details." >&5
5623echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5624See \`config.log' for more details." >&2;}
5625 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005626fi
5627
5628ac_ext=c
5629ac_cpp='$CPP $CPPFLAGS'
5630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634ac_ext=c
5635ac_cpp='$CPP $CPPFLAGS'
5636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639if test -n "$ac_tool_prefix"; then
5640 for ac_prog in gcc
5641 do
5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5646if test "${ac_cv_prog_CC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005648else
5649 if test -n "$CC"; then
5650 ac_cv_prog_CC="$CC" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005661 break 2
5662 fi
5663done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005664done
Reid Spencera773bd52006-08-04 18:18:08 +00005665IFS=$as_save_IFS
5666
5667fi
5668fi
5669CC=$ac_cv_prog_CC
5670if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005671 { echo "$as_me:$LINENO: result: $CC" >&5
5672echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005674 { echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005676fi
5677
5678
5679 test -n "$CC" && break
5680 done
5681fi
5682if test -z "$CC"; then
5683 ac_ct_CC=$CC
5684 for ac_prog in gcc
5685do
5686 # Extract the first word of "$ac_prog", so it can be a program name with args.
5687set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5690if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005692else
5693 if test -n "$ac_ct_CC"; then
5694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005703 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005705 break 2
5706 fi
5707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708done
Reid Spencera773bd52006-08-04 18:18:08 +00005709IFS=$as_save_IFS
5710
5711fi
5712fi
5713ac_ct_CC=$ac_cv_prog_ac_ct_CC
5714if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5716echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005718 { echo "$as_me:$LINENO: result: no" >&5
5719echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005720fi
5721
5722
5723 test -n "$ac_ct_CC" && break
5724done
5725
5726 if test "x$ac_ct_CC" = x; then
5727 CC=""
5728 else
5729 case $cross_compiling:$ac_tool_warned in
5730yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005731{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732whose name does not start with the host triplet. If you think this
5733configuration is useful to you, please write to autoconf@gnu.org." >&5
5734echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735whose name does not start with the host triplet. If you think this
5736configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005737ac_tool_warned=yes ;;
5738esac
5739 CC=$ac_ct_CC
5740 fi
5741fi
5742
5743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5745See \`config.log' for more details." >&5
5746echo "$as_me: error: no acceptable C compiler found in \$PATH
5747See \`config.log' for more details." >&2;}
5748 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005749
5750# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005751echo "$as_me:$LINENO: checking for C compiler version" >&5
5752ac_compiler=`set X $ac_compile; echo $2`
5753{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005754case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005760 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }
5763{ (ac_try="$ac_compiler -v >&5"
5764case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767esac
5768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_compiler -v >&5") 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }
5773{ (ac_try="$ac_compiler -V >&5"
5774case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compiler -V >&5") 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5785echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5786if test "${ac_cv_c_compiler_gnu+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789 cat >conftest.$ac_ext <<_ACEOF
5790/* confdefs.h. */
5791_ACEOF
5792cat confdefs.h >>conftest.$ac_ext
5793cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005794/* end confdefs.h. */
5795
5796int
5797main ()
5798{
5799#ifndef __GNUC__
5800 choke me
5801#endif
5802
5803 ;
5804 return 0;
5805}
5806_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005807rm -f conftest.$ac_objext
5808if { (ac_try="$ac_compile"
5809case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825esac
5826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835esac
5836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_try") 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005841 ac_compiler_gnu=yes
5842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843 echo "$as_me: failed program was:" >&5
5844sed 's/^/| /' conftest.$ac_ext >&5
5845
5846 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848
Reid Spencera773bd52006-08-04 18:18:08 +00005849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850ac_cv_c_compiler_gnu=$ac_compiler_gnu
5851
5852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5854echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5855GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005856ac_test_CFLAGS=${CFLAGS+set}
5857ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5859echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5860if test "${ac_cv_prog_cc_g+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005862else
5863 ac_save_c_werror_flag=$ac_c_werror_flag
5864 ac_c_werror_flag=yes
5865 ac_cv_prog_cc_g=no
5866 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005867 cat >conftest.$ac_ext <<_ACEOF
5868/* confdefs.h. */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005872/* end confdefs.h. */
5873
5874int
5875main ()
5876{
5877
5878 ;
5879 return 0;
5880}
5881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005882rm -f conftest.$ac_objext
5883if { (ac_try="$ac_compile"
5884case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_compile") 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5897 { (case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_try") 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try='test -s conftest.$ac_objext'
5907 { (case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_try") 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005916 ac_cv_prog_cc_g=yes
5917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918 echo "$as_me: failed program was:" >&5
5919sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 CFLAGS=""
5922 cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005927/* end confdefs.h. */
5928
5929int
5930main ()
5931{
5932
5933 ;
5934 return 0;
5935}
5936_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937rm -f conftest.$ac_objext
5938if { (ac_try="$ac_compile"
5939case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
5943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 :
Torok Edwin871384f2010-01-26 08:50:50 +00005972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973 echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005977 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005978 cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h. */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005983/* end confdefs.h. */
5984
5985int
5986main ()
5987{
5988
5989 ;
5990 return 0;
5991}
5992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005993rm -f conftest.$ac_objext
5994if { (ac_try="$ac_compile"
5995case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6008 { (case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011esac
6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_try") 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021esac
6022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_try") 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006027 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028else
6029 echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032
Reid Spencera773bd52006-08-04 18:18:08 +00006033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006034
Reid Spencera773bd52006-08-04 18:18:08 +00006035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037
Reid Spencera773bd52006-08-04 18:18:08 +00006038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040
Reid Spencera773bd52006-08-04 18:18:08 +00006041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 ac_c_werror_flag=$ac_save_c_werror_flag
6043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6045echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006046if test "$ac_test_CFLAGS" = set; then
6047 CFLAGS=$ac_save_CFLAGS
6048elif test $ac_cv_prog_cc_g = yes; then
6049 if test "$GCC" = yes; then
6050 CFLAGS="-g -O2"
6051 else
6052 CFLAGS="-g"
6053 fi
6054else
6055 if test "$GCC" = yes; then
6056 CFLAGS="-O2"
6057 else
6058 CFLAGS=
6059 fi
6060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6062echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6063if test "${ac_cv_prog_cc_c89+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006065else
6066 ac_cv_prog_cc_c89=no
6067ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h. */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006073/* end confdefs.h. */
6074#include <stdarg.h>
6075#include <stdio.h>
6076#include <sys/types.h>
6077#include <sys/stat.h>
6078/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6079struct buf { int x; };
6080FILE * (*rcsopen) (struct buf *, struct stat *, int);
6081static char *e (p, i)
6082 char **p;
6083 int i;
6084{
6085 return p[i];
6086}
6087static char *f (char * (*g) (char **, int), char **p, ...)
6088{
6089 char *s;
6090 va_list v;
6091 va_start (v,p);
6092 s = g (p, va_arg (v,int));
6093 va_end (v);
6094 return s;
6095}
6096
6097/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6098 function prototypes and stuff, but not '\xHH' hex character constants.
6099 These don't provoke an error unfortunately, instead are silently treated
6100 as 'x'. The following induces an error, until -std is added to get
6101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6102 array size at least. It's necessary to write '\x00'==0 to get something
6103 that's true only with -std. */
6104int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6105
6106/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6107 inside strings and character constants. */
6108#define FOO(x) 'x'
6109int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6110
6111int test (int i, double x);
6112struct s1 {int (*f) (int a);};
6113struct s2 {int (*f) (double a);};
6114int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6115int argc;
6116char **argv;
6117int
6118main ()
6119{
6120return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6121 ;
6122 return 0;
6123}
6124_ACEOF
6125for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6127do
6128 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129 rm -f conftest.$ac_objext
6130if { (ac_try="$ac_compile"
6131case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147esac
6148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006163 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164else
6165 echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168
Reid Spencera773bd52006-08-04 18:18:08 +00006169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006170
Reid Spencera773bd52006-08-04 18:18:08 +00006171rm -f core conftest.err conftest.$ac_objext
6172 test "x$ac_cv_prog_cc_c89" != "xno" && break
6173done
6174rm -f conftest.$ac_ext
6175CC=$ac_save_CC
6176
6177fi
6178# AC_CACHE_VAL
6179case "x$ac_cv_prog_cc_c89" in
6180 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006181 { echo "$as_me:$LINENO: result: none needed" >&5
6182echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006183 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184 { echo "$as_me:$LINENO: result: unsupported" >&5
6185echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006186 *)
6187 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6189echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006190esac
6191
6192
6193ac_ext=c
6194ac_cpp='$CPP $CPPFLAGS'
6195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198
6199ac_ext=cpp
6200ac_cpp='$CXXCPP $CPPFLAGS'
6201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6204if test -z "$CXX"; then
6205 if test -n "$CCC"; then
6206 CXX=$CCC
6207 else
6208 if test -n "$ac_tool_prefix"; then
6209 for ac_prog in g++
6210 do
6211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215if test "${ac_cv_prog_CXX+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006217else
6218 if test -n "$CXX"; then
6219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006230 break 2
6231 fi
6232done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233done
Reid Spencera773bd52006-08-04 18:18:08 +00006234IFS=$as_save_IFS
6235
6236fi
6237fi
6238CXX=$ac_cv_prog_CXX
6239if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240 { echo "$as_me:$LINENO: result: $CXX" >&5
6241echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 { echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006245fi
6246
6247
6248 test -n "$CXX" && break
6249 done
6250fi
6251if test -z "$CXX"; then
6252 ac_ct_CXX=$CXX
6253 for ac_prog in g++
6254do
6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
6256set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006261else
6262 if test -n "$ac_ct_CXX"; then
6263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6264else
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006272 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006274 break 2
6275 fi
6276done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006277done
Reid Spencera773bd52006-08-04 18:18:08 +00006278IFS=$as_save_IFS
6279
6280fi
6281fi
6282ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6283if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006284 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6285echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287 { echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006289fi
6290
6291
6292 test -n "$ac_ct_CXX" && break
6293done
6294
6295 if test "x$ac_ct_CXX" = x; then
6296 CXX="g++"
6297 else
6298 case $cross_compiling:$ac_tool_warned in
6299yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6301whose name does not start with the host triplet. If you think this
6302configuration is useful to you, please write to autoconf@gnu.org." >&5
6303echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6304whose name does not start with the host triplet. If you think this
6305configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006306ac_tool_warned=yes ;;
6307esac
6308 CXX=$ac_ct_CXX
6309 fi
6310fi
6311
6312 fi
6313fi
6314# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6316ac_compiler=`set X $ac_compile; echo $2`
6317{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006318case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006324 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }
6327{ (ac_try="$ac_compiler -v >&5"
6328case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_compiler -v >&5") 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }
6337{ (ac_try="$ac_compiler -V >&5"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compiler -V >&5") 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6349echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6350if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353 cat >conftest.$ac_ext <<_ACEOF
6354/* confdefs.h. */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006358/* end confdefs.h. */
6359
6360int
6361main ()
6362{
6363#ifndef __GNUC__
6364 choke me
6365#endif
6366
6367 ;
6368 return 0;
6369}
6370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371rm -f conftest.$ac_objext
6372if { (ac_try="$ac_compile"
6373case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376esac
6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_compile") 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6386 { (case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389esac
6390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_try") 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_try") 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006405 ac_compiler_gnu=yes
6406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407 echo "$as_me: failed program was:" >&5
6408sed 's/^/| /' conftest.$ac_ext >&5
6409
6410 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412
Reid Spencera773bd52006-08-04 18:18:08 +00006413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6415
6416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6418echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6419GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006420ac_test_CXXFLAGS=${CXXFLAGS+set}
6421ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6423echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6424if test "${ac_cv_prog_cxx_g+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006426else
6427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6428 ac_cxx_werror_flag=yes
6429 ac_cv_prog_cxx_g=no
6430 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431 cat >conftest.$ac_ext <<_ACEOF
6432/* confdefs.h. */
6433_ACEOF
6434cat confdefs.h >>conftest.$ac_ext
6435cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006436/* end confdefs.h. */
6437
6438int
6439main ()
6440{
6441
6442 ;
6443 return 0;
6444}
6445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006446rm -f conftest.$ac_objext
6447if { (ac_try="$ac_compile"
6448case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451esac
6452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6461 { (case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464esac
6465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_try") 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; } &&
6470 { ac_try='test -s conftest.$ac_objext'
6471 { (case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474esac
6475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_try") 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006480 ac_cv_prog_cxx_g=yes
6481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006482 echo "$as_me: failed program was:" >&5
6483sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 CXXFLAGS=""
6486 cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h. */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006491/* end confdefs.h. */
6492
6493int
6494main ()
6495{
6496
6497 ;
6498 return 0;
6499}
6500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006501rm -f conftest.$ac_objext
6502if { (ac_try="$ac_compile"
6503case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_compile") 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6516 { (case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519esac
6520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529esac
6530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_try") 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 :
Torok Edwin871384f2010-01-26 08:50:50 +00006536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537 echo "$as_me: failed program was:" >&5
6538sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006541 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006542 cat >conftest.$ac_ext <<_ACEOF
6543/* confdefs.h. */
6544_ACEOF
6545cat confdefs.h >>conftest.$ac_ext
6546cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006547/* end confdefs.h. */
6548
6549int
6550main ()
6551{
6552
6553 ;
6554 return 0;
6555}
6556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006557rm -f conftest.$ac_objext
6558if { (ac_try="$ac_compile"
6559case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562esac
6563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6572 { (case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575esac
6576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_try") 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585esac
6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_try") 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006591 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592else
6593 echo "$as_me: failed program was:" >&5
6594sed 's/^/| /' conftest.$ac_ext >&5
6595
6596
Reid Spencera773bd52006-08-04 18:18:08 +00006597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598
Reid Spencera773bd52006-08-04 18:18:08 +00006599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601
Reid Spencera773bd52006-08-04 18:18:08 +00006602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006604
Reid Spencera773bd52006-08-04 18:18:08 +00006605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6609echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006610if test "$ac_test_CXXFLAGS" = set; then
6611 CXXFLAGS=$ac_save_CXXFLAGS
6612elif test $ac_cv_prog_cxx_g = yes; then
6613 if test "$GXX" = yes; then
6614 CXXFLAGS="-g -O2"
6615 else
6616 CXXFLAGS="-g"
6617 fi
6618else
6619 if test "$GXX" = yes; then
6620 CXXFLAGS="-O2"
6621 else
6622 CXXFLAGS=
6623 fi
6624fi
6625ac_ext=c
6626ac_cpp='$CPP $CPPFLAGS'
6627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629ac_compiler_gnu=$ac_cv_c_compiler_gnu
6630
Reid Spencera773bd52006-08-04 18:18:08 +00006631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006632{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6633echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6634if test "${lt_cv_path_NM+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006636else
6637 if test -n "$NM"; then
6638 # Let the user override the test.
6639 lt_cv_path_NM="$NM"
6640else
6641 lt_nm_to_check="${ac_tool_prefix}nm"
6642 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6643 lt_nm_to_check="$lt_nm_to_check nm"
6644 fi
6645 for lt_tmp_nm in $lt_nm_to_check; do
6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6648 IFS="$lt_save_ifs"
6649 test -z "$ac_dir" && ac_dir=.
6650 tmp_nm="$ac_dir/$lt_tmp_nm"
6651 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6652 # Check to see if the nm accepts a BSD-compat flag.
6653 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6654 # nm: unknown option "B" ignored
6655 # Tru64's nm complains that /dev/null is an invalid object file
6656 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6657 */dev/null* | *'Invalid file or object type'*)
6658 lt_cv_path_NM="$tmp_nm -B"
6659 break
6660 ;;
6661 *)
6662 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6663 */dev/null*)
6664 lt_cv_path_NM="$tmp_nm -p"
6665 break
6666 ;;
6667 *)
6668 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6669 continue # so that we can try to find one that supports BSD flags
6670 ;;
6671 esac
6672 ;;
6673 esac
6674 fi
6675 done
6676 IFS="$lt_save_ifs"
6677 done
6678 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6679fi
6680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006681{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6682echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006683NM="$lt_cv_path_NM"
6684
6685
6686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687{ echo "$as_me:$LINENO: checking for GNU make" >&5
6688echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6689if test "${llvm_cv_gnu_make_command+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006691else
6692 llvm_cv_gnu_make_command=''
6693 for a in "$MAKE" make gmake gnumake ; do
6694 if test -z "$a" ; then continue ; fi ;
6695 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6696 then
6697 llvm_cv_gnu_make_command=$a ;
6698 break;
6699 fi
6700 done
6701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6703echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006704 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6705 ifGNUmake='' ;
6706 else
6707 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006708 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6709echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006710 fi
6711
6712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6714echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006715LN_S=$as_ln_s
6716if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717 { echo "$as_me:$LINENO: result: yes" >&5
6718echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6721echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006722fi
6723
6724# Extract the first word of "cmp", so it can be a program name with args.
6725set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728if test "${ac_cv_path_CMP+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006730else
6731 case $CMP in
6732 [\\/]* | ?:[\\/]*)
6733 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6734 ;;
6735 *)
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006743 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006745 break 2
6746 fi
6747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748done
Reid Spencera773bd52006-08-04 18:18:08 +00006749IFS=$as_save_IFS
6750
6751 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6752 ;;
6753esac
6754fi
6755CMP=$ac_cv_path_CMP
6756if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757 { echo "$as_me:$LINENO: result: $CMP" >&5
6758echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 { echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006762fi
6763
6764
6765# Extract the first word of "cp", so it can be a program name with args.
6766set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769if test "${ac_cv_path_CP+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006771else
6772 case $CP in
6773 [\\/]* | ?:[\\/]*)
6774 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6775 ;;
6776 *)
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006784 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006786 break 2
6787 fi
6788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789done
Reid Spencera773bd52006-08-04 18:18:08 +00006790IFS=$as_save_IFS
6791
6792 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6793 ;;
6794esac
6795fi
6796CP=$ac_cv_path_CP
6797if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006798 { echo "$as_me:$LINENO: result: $CP" >&5
6799echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801 { echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006803fi
6804
6805
6806# Extract the first word of "date", so it can be a program name with args.
6807set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810if test "${ac_cv_path_DATE+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006812else
6813 case $DATE in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006825 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006827 break 2
6828 fi
6829done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830done
Reid Spencera773bd52006-08-04 18:18:08 +00006831IFS=$as_save_IFS
6832
6833 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6834 ;;
6835esac
6836fi
6837DATE=$ac_cv_path_DATE
6838if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 { echo "$as_me:$LINENO: result: $DATE" >&5
6840echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006842 { echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006844fi
6845
6846
6847# Extract the first word of "find", so it can be a program name with args.
6848set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851if test "${ac_cv_path_FIND+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006853else
6854 case $FIND in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006866 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006868 break 2
6869 fi
6870done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871done
Reid Spencera773bd52006-08-04 18:18:08 +00006872IFS=$as_save_IFS
6873
6874 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6875 ;;
6876esac
6877fi
6878FIND=$ac_cv_path_FIND
6879if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880 { echo "$as_me:$LINENO: result: $FIND" >&5
6881echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006885fi
6886
6887
6888# Extract the first word of "grep", so it can be a program name with args.
6889set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_path_GREP+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006894else
6895 case $GREP in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6898 ;;
6899 *)
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006907 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006909 break 2
6910 fi
6911done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912done
Reid Spencera773bd52006-08-04 18:18:08 +00006913IFS=$as_save_IFS
6914
6915 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6916 ;;
6917esac
6918fi
6919GREP=$ac_cv_path_GREP
6920if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 { echo "$as_me:$LINENO: result: $GREP" >&5
6922echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924 { echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006926fi
6927
6928
6929# Extract the first word of "mkdir", so it can be a program name with args.
6930set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933if test "${ac_cv_path_MKDIR+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006935else
6936 case $MKDIR in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6939 ;;
6940 *)
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006948 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006950 break 2
6951 fi
6952done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953done
Reid Spencera773bd52006-08-04 18:18:08 +00006954IFS=$as_save_IFS
6955
6956 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6957 ;;
6958esac
6959fi
6960MKDIR=$ac_cv_path_MKDIR
6961if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6963echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965 { echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006967fi
6968
6969
6970# Extract the first word of "mv", so it can be a program name with args.
6971set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974if test "${ac_cv_path_MV+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006976else
6977 case $MV in
6978 [\\/]* | ?:[\\/]*)
6979 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6980 ;;
6981 *)
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006989 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006991 break 2
6992 fi
6993done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994done
Reid Spencera773bd52006-08-04 18:18:08 +00006995IFS=$as_save_IFS
6996
6997 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6998 ;;
6999esac
7000fi
7001MV=$ac_cv_path_MV
7002if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 { echo "$as_me:$LINENO: result: $MV" >&5
7004echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006 { echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007008fi
7009
7010
7011if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016if test "${ac_cv_prog_RANLIB+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007018else
7019 if test -n "$RANLIB"; then
7020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007031 break 2
7032 fi
7033done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034done
Reid Spencera773bd52006-08-04 18:18:08 +00007035IFS=$as_save_IFS
7036
7037fi
7038fi
7039RANLIB=$ac_cv_prog_RANLIB
7040if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7042echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044 { echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007046fi
7047
7048
7049fi
7050if test -z "$ac_cv_prog_RANLIB"; then
7051 ac_ct_RANLIB=$RANLIB
7052 # Extract the first word of "ranlib", so it can be a program name with args.
7053set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007058else
7059 if test -n "$ac_ct_RANLIB"; then
7060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007069 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007071 break 2
7072 fi
7073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074done
Reid Spencera773bd52006-08-04 18:18:08 +00007075IFS=$as_save_IFS
7076
7077fi
7078fi
7079ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7082echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084 { echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007086fi
7087
7088 if test "x$ac_ct_RANLIB" = x; then
7089 RANLIB=":"
7090 else
7091 case $cross_compiling:$ac_tool_warned in
7092yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007093{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7094whose name does not start with the host triplet. If you think this
7095configuration is useful to you, please write to autoconf@gnu.org." >&5
7096echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7097whose name does not start with the host triplet. If you think this
7098configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007099ac_tool_warned=yes ;;
7100esac
7101 RANLIB=$ac_ct_RANLIB
7102 fi
7103else
7104 RANLIB="$ac_cv_prog_RANLIB"
7105fi
7106
Torok Edwin871384f2010-01-26 08:50:50 +00007107if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7109set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7112if test "${ac_cv_prog_AR+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007114else
7115 if test -n "$AR"; then
7116 ac_cv_prog_AR="$AR" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00007125 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007127 break 2
7128 fi
7129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130done
Torok Edwin871384f2010-01-26 08:50:50 +00007131IFS=$as_save_IFS
7132
7133fi
7134fi
7135AR=$ac_cv_prog_AR
7136if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 { echo "$as_me:$LINENO: result: $AR" >&5
7138echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 { echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007142fi
7143
7144
7145fi
7146if test -z "$ac_cv_prog_AR"; then
7147 ac_ct_AR=$AR
7148 # Extract the first word of "ar", so it can be a program name with args.
7149set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007154else
7155 if test -n "$ac_ct_AR"; then
7156 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00007165 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007167 break 2
7168 fi
7169done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007170done
Torok Edwin871384f2010-01-26 08:50:50 +00007171IFS=$as_save_IFS
7172
7173fi
7174fi
7175ac_ct_AR=$ac_cv_prog_ac_ct_AR
7176if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7178echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007179else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007180 { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007182fi
7183
7184 if test "x$ac_ct_AR" = x; then
7185 AR="false"
7186 else
7187 case $cross_compiling:$ac_tool_warned in
7188yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007189{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7190whose name does not start with the host triplet. If you think this
7191configuration is useful to you, please write to autoconf@gnu.org." >&5
7192echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7193whose name does not start with the host triplet. If you think this
7194configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007195ac_tool_warned=yes ;;
7196esac
7197 AR=$ac_ct_AR
7198 fi
7199else
7200 AR="$ac_cv_prog_AR"
7201fi
7202
Reid Spencera773bd52006-08-04 18:18:08 +00007203# Extract the first word of "rm", so it can be a program name with args.
7204set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207if test "${ac_cv_path_RM+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007209else
7210 case $RM in
7211 [\\/]* | ?:[\\/]*)
7212 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7213 ;;
7214 *)
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007222 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007224 break 2
7225 fi
7226done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227done
Reid Spencera773bd52006-08-04 18:18:08 +00007228IFS=$as_save_IFS
7229
7230 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7231 ;;
7232esac
7233fi
7234RM=$ac_cv_path_RM
7235if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 { echo "$as_me:$LINENO: result: $RM" >&5
7237echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007239 { echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007241fi
7242
7243
7244# Extract the first word of "sed", so it can be a program name with args.
7245set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248if test "${ac_cv_path_SED+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007250else
7251 case $SED in
7252 [\\/]* | ?:[\\/]*)
7253 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7254 ;;
7255 *)
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007263 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007265 break 2
7266 fi
7267done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268done
Reid Spencera773bd52006-08-04 18:18:08 +00007269IFS=$as_save_IFS
7270
7271 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7272 ;;
7273esac
7274fi
7275SED=$ac_cv_path_SED
7276if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 { echo "$as_me:$LINENO: result: $SED" >&5
7278echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 { echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007282fi
7283
7284
7285# Extract the first word of "tar", so it can be a program name with args.
7286set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289if test "${ac_cv_path_TAR+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007291else
7292 case $TAR in
7293 [\\/]* | ?:[\\/]*)
7294 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7295 ;;
7296 *)
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007304 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007306 break 2
7307 fi
7308done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007309done
Reid Spencera773bd52006-08-04 18:18:08 +00007310IFS=$as_save_IFS
7311
7312 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7313 ;;
7314esac
7315fi
7316TAR=$ac_cv_path_TAR
7317if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 { echo "$as_me:$LINENO: result: $TAR" >&5
7319echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 { echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007323fi
7324
7325
7326# Extract the first word of "pwd", so it can be a program name with args.
7327set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330if test "${ac_cv_path_BINPWD+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007332else
7333 case $BINPWD in
7334 [\\/]* | ?:[\\/]*)
7335 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7336 ;;
7337 *)
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007345 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007347 break 2
7348 fi
7349done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350done
Reid Spencera773bd52006-08-04 18:18:08 +00007351IFS=$as_save_IFS
7352
7353 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7354 ;;
7355esac
7356fi
7357BINPWD=$ac_cv_path_BINPWD
7358if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007359 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7360echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362 { echo "$as_me:$LINENO: result: no" >&5
7363echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007364fi
7365
7366
7367
7368# Extract the first word of "Graphviz", so it can be a program name with args.
7369set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007374else
7375 case $GRAPHVIZ in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7378 ;;
7379 *)
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007387 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007389 break 2
7390 fi
7391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392done
Reid Spencera773bd52006-08-04 18:18:08 +00007393IFS=$as_save_IFS
7394
7395 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7396 ;;
7397esac
7398fi
7399GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7400if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7402echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 { echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007406fi
7407
7408
7409if test "$GRAPHVIZ" != "echo Graphviz" ; then
7410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411cat >>confdefs.h <<\_ACEOF
7412#define HAVE_GRAPHVIZ 1
7413_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007414
Jeff Cohen28783c32007-01-12 18:22:38 +00007415 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007416 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7417 fi
7418
7419cat >>confdefs.h <<_ACEOF
7420#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7421_ACEOF
7422
7423fi
7424# Extract the first word of "dot", so it can be a program name with args.
7425set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428if test "${ac_cv_path_DOT+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007430else
7431 case $DOT in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7434 ;;
7435 *)
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007443 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007445 break 2
7446 fi
7447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448done
Reid Spencera773bd52006-08-04 18:18:08 +00007449IFS=$as_save_IFS
7450
7451 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7452 ;;
7453esac
7454fi
7455DOT=$ac_cv_path_DOT
7456if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 { echo "$as_me:$LINENO: result: $DOT" >&5
7458echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007460 { echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007462fi
7463
7464
7465if test "$DOT" != "echo dot" ; then
7466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467cat >>confdefs.h <<\_ACEOF
7468#define HAVE_DOT 1
7469_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007470
Jeff Cohen28783c32007-01-12 18:22:38 +00007471 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007472 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7473 fi
7474
7475cat >>confdefs.h <<_ACEOF
7476#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7477_ACEOF
7478
7479fi
David Greenef0b9eff2009-07-09 17:16:26 +00007480# Extract the first word of "fdp", so it can be a program name with args.
7481set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484if test "${ac_cv_path_FDP+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007486else
7487 case $FDP in
7488 [\\/]* | ?:[\\/]*)
7489 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7490 ;;
7491 *)
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007499 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007501 break 2
7502 fi
7503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504done
David Greenef0b9eff2009-07-09 17:16:26 +00007505IFS=$as_save_IFS
7506
7507 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7508 ;;
7509esac
7510fi
7511FDP=$ac_cv_path_FDP
7512if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 { echo "$as_me:$LINENO: result: $FDP" >&5
7514echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 { echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007518fi
7519
7520
7521if test "$FDP" != "echo fdp" ; then
7522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523cat >>confdefs.h <<\_ACEOF
7524#define HAVE_FDP 1
7525_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007526
7527 if test "$llvm_cv_os_type" = "MingW" ; then
7528 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7529 fi
7530
7531cat >>confdefs.h <<_ACEOF
7532#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7533_ACEOF
7534
7535fi
7536# Extract the first word of "neato", so it can be a program name with args.
7537set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540if test "${ac_cv_path_NEATO+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007542else
7543 case $NEATO in
7544 [\\/]* | ?:[\\/]*)
7545 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7546 ;;
7547 *)
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007555 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007557 break 2
7558 fi
7559done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560done
David Greenef0b9eff2009-07-09 17:16:26 +00007561IFS=$as_save_IFS
7562
7563 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7564 ;;
7565esac
7566fi
7567NEATO=$ac_cv_path_NEATO
7568if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 { echo "$as_me:$LINENO: result: $NEATO" >&5
7570echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 { echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007574fi
7575
7576
7577if test "$NEATO" != "echo neato" ; then
7578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579cat >>confdefs.h <<\_ACEOF
7580#define HAVE_NEATO 1
7581_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007582
7583 if test "$llvm_cv_os_type" = "MingW" ; then
7584 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7585 fi
7586
7587cat >>confdefs.h <<_ACEOF
7588#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7589_ACEOF
7590
7591fi
7592# Extract the first word of "twopi", so it can be a program name with args.
7593set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596if test "${ac_cv_path_TWOPI+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007598else
7599 case $TWOPI in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007611 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007613 break 2
7614 fi
7615done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616done
David Greenef0b9eff2009-07-09 17:16:26 +00007617IFS=$as_save_IFS
7618
7619 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7620 ;;
7621esac
7622fi
7623TWOPI=$ac_cv_path_TWOPI
7624if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7626echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628 { echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007630fi
7631
7632
7633if test "$TWOPI" != "echo twopi" ; then
7634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635cat >>confdefs.h <<\_ACEOF
7636#define HAVE_TWOPI 1
7637_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007638
7639 if test "$llvm_cv_os_type" = "MingW" ; then
7640 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7641 fi
7642
7643cat >>confdefs.h <<_ACEOF
7644#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7645_ACEOF
7646
7647fi
7648# Extract the first word of "circo", so it can be a program name with args.
7649set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652if test "${ac_cv_path_CIRCO+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007654else
7655 case $CIRCO in
7656 [\\/]* | ?:[\\/]*)
7657 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7658 ;;
7659 *)
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007667 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007669 break 2
7670 fi
7671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007672done
David Greenef0b9eff2009-07-09 17:16:26 +00007673IFS=$as_save_IFS
7674
7675 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7676 ;;
7677esac
7678fi
7679CIRCO=$ac_cv_path_CIRCO
7680if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7682echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684 { echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007686fi
7687
7688
7689if test "$CIRCO" != "echo circo" ; then
7690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691cat >>confdefs.h <<\_ACEOF
7692#define HAVE_CIRCO 1
7693_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007694
7695 if test "$llvm_cv_os_type" = "MingW" ; then
7696 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7697 fi
7698
7699cat >>confdefs.h <<_ACEOF
7700#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7701_ACEOF
7702
7703fi
Reid Spencera773bd52006-08-04 18:18:08 +00007704for ac_prog in gv gsview32
7705do
7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
7707set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710if test "${ac_cv_path_GV+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007712else
7713 case $GV in
7714 [\\/]* | ?:[\\/]*)
7715 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7716 ;;
7717 *)
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007725 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007727 break 2
7728 fi
7729done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730done
Reid Spencera773bd52006-08-04 18:18:08 +00007731IFS=$as_save_IFS
7732
7733 ;;
7734esac
7735fi
7736GV=$ac_cv_path_GV
7737if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738 { echo "$as_me:$LINENO: result: $GV" >&5
7739echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741 { echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007743fi
7744
7745
7746 test -n "$GV" && break
7747done
7748test -n "$GV" || GV="echo gv"
7749
7750if test "$GV" != "echo gv" ; then
7751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752cat >>confdefs.h <<\_ACEOF
7753#define HAVE_GV 1
7754_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007755
Jeff Cohen28783c32007-01-12 18:22:38 +00007756 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007757 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7758 fi
7759
7760cat >>confdefs.h <<_ACEOF
7761#define LLVM_PATH_GV "$GV${EXEEXT}"
7762_ACEOF
7763
7764fi
7765# Extract the first word of "dotty", so it can be a program name with args.
7766set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769if test "${ac_cv_path_DOTTY+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007771else
7772 case $DOTTY in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7775 ;;
7776 *)
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007784 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007786 break 2
7787 fi
7788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789done
Reid Spencera773bd52006-08-04 18:18:08 +00007790IFS=$as_save_IFS
7791
7792 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7793 ;;
7794esac
7795fi
7796DOTTY=$ac_cv_path_DOTTY
7797if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7799echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801 { echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007803fi
7804
7805
7806if test "$DOTTY" != "echo dotty" ; then
7807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808cat >>confdefs.h <<\_ACEOF
7809#define HAVE_DOTTY 1
7810_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007811
Jeff Cohen28783c32007-01-12 18:22:38 +00007812 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007813 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7814 fi
7815
7816cat >>confdefs.h <<_ACEOF
7817#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7818_ACEOF
7819
7820fi
7821
7822
7823# Extract the first word of "perl", so it can be a program name with args.
7824set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827if test "${ac_cv_path_PERL+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007829else
7830 case $PERL in
7831 [\\/]* | ?:[\\/]*)
7832 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7833 ;;
7834 *)
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007842 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007844 break 2
7845 fi
7846done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007847done
Reid Spencera773bd52006-08-04 18:18:08 +00007848IFS=$as_save_IFS
7849
7850 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7851 ;;
7852esac
7853fi
7854PERL=$ac_cv_path_PERL
7855if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856 { echo "$as_me:$LINENO: result: $PERL" >&5
7857echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859 { echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007861fi
7862
7863
7864if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7866echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007867 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 { echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007870 else
7871 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872 { echo "$as_me:$LINENO: result: not found" >&5
7873echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007874 fi
7875fi
7876
7877
7878if test x"$PERL" = xnone; then
7879 HAVE_PERL=0
7880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7882echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7883 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007884else
7885 HAVE_PERL=1
7886
7887fi
7888
7889# Find a good install program. We prefer a C program (faster),
7890# so one script is as good as another. But avoid the broken or
7891# incompatible versions:
7892# SysV /etc/install, /usr/sbin/install
7893# SunOS /usr/etc/install
7894# IRIX /sbin/install
7895# AIX /bin/install
7896# AmigaOS /C/install, which installs bootblocks on floppy discs
7897# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7898# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7900# OS/2's system install, which has a completely different semantic
7901# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007902{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7903echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007904if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007905if test "${ac_cv_path_install+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007907else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913 # Account for people who put trailing slashes in PATH elements.
7914case $as_dir/ in
7915 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007918 /usr/ucb/* ) ;;
7919 *)
7920 # OSF1 and SCO ODT 3.0 have their own names for install.
7921 # Don't use installbsd from OSF since it installs stuff as root
7922 # by default.
7923 for ac_prog in ginstall scoinst install; do
7924 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007925 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007926 if test $ac_prog = install &&
7927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7928 # AIX install. It has an incompatible calling convention.
7929 :
7930 elif test $ac_prog = install &&
7931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7932 # program-specific install script used by HP pwplus--don't use.
7933 :
7934 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7936 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007937 fi
7938 fi
7939 done
7940 done
7941 ;;
7942esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007943done
Reid Spencera773bd52006-08-04 18:18:08 +00007944IFS=$as_save_IFS
7945
7946
7947fi
7948 if test "${ac_cv_path_install+set}" = set; then
7949 INSTALL=$ac_cv_path_install
7950 else
7951 # As a last resort, use the slow shell script. Don't cache a
7952 # value for INSTALL within a source directory, because that will
7953 # break other packages using the cache if that directory is
7954 # removed, or if the value is a relative name.
7955 INSTALL=$ac_install_sh
7956 fi
7957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007958{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7959echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007960
7961# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962# It thinks the first close brace ends the variable substitution.
7963test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7964
7965test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7966
7967test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7968
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007969case "$INSTALL" in
7970 [\\/$]* | ?:[\\/]* ) ;;
7971 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7972esac
Reid Spencera773bd52006-08-04 18:18:08 +00007973
7974# Extract the first word of "bzip2", so it can be a program name with args.
7975set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7978if test "${ac_cv_path_BZIP2+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007980else
7981 case $BZIP2 in
7982 [\\/]* | ?:[\\/]*)
7983 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7984 ;;
7985 *)
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007993 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007995 break 2
7996 fi
7997done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007998done
Reid Spencera773bd52006-08-04 18:18:08 +00007999IFS=$as_save_IFS
8000
Reid Spencera773bd52006-08-04 18:18:08 +00008001 ;;
8002esac
8003fi
8004BZIP2=$ac_cv_path_BZIP2
8005if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008006 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8007echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008008else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008009 { echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008011fi
8012
8013
mike-m68cb3192010-05-06 23:45:43 +00008014# Extract the first word of "cat", so it can be a program name with args.
8015set dummy cat; ac_word=$2
8016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8018if test "${ac_cv_path_CAT+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020else
8021 case $CAT in
8022 [\\/]* | ?:[\\/]*)
8023 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8024 ;;
8025 *)
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037done
8038done
8039IFS=$as_save_IFS
8040
8041 ;;
8042esac
8043fi
8044CAT=$ac_cv_path_CAT
8045if test -n "$CAT"; then
8046 { echo "$as_me:$LINENO: result: $CAT" >&5
8047echo "${ECHO_T}$CAT" >&6; }
8048else
8049 { echo "$as_me:$LINENO: result: no" >&5
8050echo "${ECHO_T}no" >&6; }
8051fi
8052
8053
Reid Spencera773bd52006-08-04 18:18:08 +00008054# Extract the first word of "doxygen", so it can be a program name with args.
8055set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058if test "${ac_cv_path_DOXYGEN+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008060else
8061 case $DOXYGEN in
8062 [\\/]* | ?:[\\/]*)
8063 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8064 ;;
8065 *)
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008073 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008075 break 2
8076 fi
8077done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078done
Reid Spencera773bd52006-08-04 18:18:08 +00008079IFS=$as_save_IFS
8080
Reid Spencera773bd52006-08-04 18:18:08 +00008081 ;;
8082esac
8083fi
8084DOXYGEN=$ac_cv_path_DOXYGEN
8085if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008086 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8087echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089 { echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008091fi
8092
8093
Reid Spencera773bd52006-08-04 18:18:08 +00008094# Extract the first word of "groff", so it can be a program name with args.
8095set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098if test "${ac_cv_path_GROFF+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008100else
8101 case $GROFF in
8102 [\\/]* | ?:[\\/]*)
8103 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8104 ;;
8105 *)
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008113 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008115 break 2
8116 fi
8117done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118done
Reid Spencera773bd52006-08-04 18:18:08 +00008119IFS=$as_save_IFS
8120
Reid Spencera773bd52006-08-04 18:18:08 +00008121 ;;
8122esac
8123fi
8124GROFF=$ac_cv_path_GROFF
8125if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126 { echo "$as_me:$LINENO: result: $GROFF" >&5
8127echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129 { echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008131fi
8132
8133
8134# Extract the first word of "gzip", so it can be a program name with args.
8135set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138if test "${ac_cv_path_GZIP+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008140else
8141 case $GZIP in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8144 ;;
8145 *)
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008153 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008155 break 2
8156 fi
8157done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158done
Reid Spencera773bd52006-08-04 18:18:08 +00008159IFS=$as_save_IFS
8160
Reid Spencera773bd52006-08-04 18:18:08 +00008161 ;;
8162esac
8163fi
8164GZIP=$ac_cv_path_GZIP
8165if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008166 { echo "$as_me:$LINENO: result: $GZIP" >&5
8167echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169 { echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008171fi
8172
8173
8174# Extract the first word of "pod2html", so it can be a program name with args.
8175set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178if test "${ac_cv_path_POD2HTML+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008180else
8181 case $POD2HTML in
8182 [\\/]* | ?:[\\/]*)
8183 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8184 ;;
8185 *)
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187for as_dir in $PATH
8188do
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008193 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008195 break 2
8196 fi
8197done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198done
Reid Spencera773bd52006-08-04 18:18:08 +00008199IFS=$as_save_IFS
8200
Reid Spencera773bd52006-08-04 18:18:08 +00008201 ;;
8202esac
8203fi
8204POD2HTML=$ac_cv_path_POD2HTML
8205if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008206 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8207echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209 { echo "$as_me:$LINENO: result: no" >&5
8210echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008211fi
8212
8213
8214# Extract the first word of "pod2man", so it can be a program name with args.
8215set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218if test "${ac_cv_path_POD2MAN+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008220else
8221 case $POD2MAN in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8224 ;;
8225 *)
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008233 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008235 break 2
8236 fi
8237done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238done
Reid Spencera773bd52006-08-04 18:18:08 +00008239IFS=$as_save_IFS
8240
Reid Spencera773bd52006-08-04 18:18:08 +00008241 ;;
8242esac
8243fi
8244POD2MAN=$ac_cv_path_POD2MAN
8245if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008246 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8247echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008248else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249 { echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008251fi
8252
8253
mike-m68cb3192010-05-06 23:45:43 +00008254# Extract the first word of "pdfroff", so it can be a program name with args.
8255set dummy pdfroff; ac_word=$2
8256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258if test "${ac_cv_path_PDFROFF+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261 case $PDFROFF in
8262 [\\/]* | ?:[\\/]*)
8263 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8264 ;;
8265 *)
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8276 fi
8277done
8278done
8279IFS=$as_save_IFS
8280
8281 ;;
8282esac
8283fi
8284PDFROFF=$ac_cv_path_PDFROFF
8285if test -n "$PDFROFF"; then
8286 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8287echo "${ECHO_T}$PDFROFF" >&6; }
8288else
8289 { echo "$as_me:$LINENO: result: no" >&5
8290echo "${ECHO_T}no" >&6; }
8291fi
8292
8293
Reid Spencera773bd52006-08-04 18:18:08 +00008294# Extract the first word of "runtest", so it can be a program name with args.
8295set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298if test "${ac_cv_path_RUNTEST+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008300else
8301 case $RUNTEST in
8302 [\\/]* | ?:[\\/]*)
8303 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8304 ;;
8305 *)
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008313 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008315 break 2
8316 fi
8317done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318done
Reid Spencera773bd52006-08-04 18:18:08 +00008319IFS=$as_save_IFS
8320
Reid Spencera773bd52006-08-04 18:18:08 +00008321 ;;
8322esac
8323fi
8324RUNTEST=$ac_cv_path_RUNTEST
8325if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8327echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 { echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008331fi
8332
8333
8334
8335no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8337echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008338
8339# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008341 withval=$with_tclinclude; with_tclinclude=${withval}
8342else
8343 with_tclinclude=''
8344fi
8345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008346if test "${ac_cv_path_tclsh+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008348else
8349
8350if test x"${with_tclinclude}" != x ; then
8351 if test -f ${with_tclinclude}/tclsh ; then
8352 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8353 elif test -f ${with_tclinclude}/src/tclsh ; then
8354 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8355 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8357echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8358 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008359 fi
8360fi
Torok Edwin871384f2010-01-26 08:50:50 +00008361fi
8362
Reid Spencera773bd52006-08-04 18:18:08 +00008363
8364if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008365 { echo "$as_me:$LINENO: result: none" >&5
8366echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008367 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
8368do
8369 # Extract the first word of "$ac_prog", so it can be a program name with args.
8370set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8373if test "${ac_cv_path_TCLSH+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008375else
8376 case $TCLSH in
8377 [\\/]* | ?:[\\/]*)
8378 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8379 ;;
8380 *)
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008388 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008390 break 2
8391 fi
8392done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008393done
Reid Spencera773bd52006-08-04 18:18:08 +00008394IFS=$as_save_IFS
8395
8396 ;;
8397esac
8398fi
8399TCLSH=$ac_cv_path_TCLSH
8400if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008401 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8402echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008404 { echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008406fi
8407
8408
8409 test -n "$TCLSH" && break
8410done
8411
8412 if test x"${TCLSH}" = x ; then
8413 ac_cv_path_tclsh='';
8414 else
8415 ac_cv_path_tclsh="${TCLSH}";
8416 fi
8417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8419echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008420 TCLSH="${ac_cv_path_tclsh}"
8421
8422fi
8423
Reid Spencera773bd52006-08-04 18:18:08 +00008424# Extract the first word of "zip", so it can be a program name with args.
8425set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8428if test "${ac_cv_path_ZIP+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008430else
8431 case $ZIP in
8432 [\\/]* | ?:[\\/]*)
8433 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8434 ;;
8435 *)
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437for as_dir in $PATH
8438do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008443 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008445 break 2
8446 fi
8447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008448done
Reid Spencera773bd52006-08-04 18:18:08 +00008449IFS=$as_save_IFS
8450
Reid Spencera773bd52006-08-04 18:18:08 +00008451 ;;
8452esac
8453fi
8454ZIP=$ac_cv_path_ZIP
8455if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456 { echo "$as_me:$LINENO: result: $ZIP" >&5
8457echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008459 { echo "$as_me:$LINENO: result: no" >&5
8460echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008461fi
8462
8463
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008464for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008465do
8466 # Extract the first word of "$ac_prog", so it can be a program name with args.
8467set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470if test "${ac_cv_path_OCAMLC+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008472else
8473 case $OCAMLC in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8476 ;;
8477 *)
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008485 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008487 break 2
8488 fi
8489done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008491IFS=$as_save_IFS
8492
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008493 ;;
8494esac
8495fi
8496OCAMLC=$ac_cv_path_OCAMLC
8497if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008498 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8499echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008500else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008501 { echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008503fi
8504
8505
Gordon Henriksene7072162008-03-07 18:20:01 +00008506 test -n "$OCAMLC" && break
8507done
8508
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008509for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008510do
8511 # Extract the first word of "$ac_prog", so it can be a program name with args.
8512set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8515if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008517else
8518 case $OCAMLOPT in
8519 [\\/]* | ?:[\\/]*)
8520 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8521 ;;
8522 *)
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524for as_dir in $PATH
8525do
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008530 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008532 break 2
8533 fi
8534done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008536IFS=$as_save_IFS
8537
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008538 ;;
8539esac
8540fi
8541OCAMLOPT=$ac_cv_path_OCAMLOPT
8542if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008543 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8544echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546 { echo "$as_me:$LINENO: result: no" >&5
8547echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008548fi
8549
8550
Gordon Henriksene7072162008-03-07 18:20:01 +00008551 test -n "$OCAMLOPT" && break
8552done
8553
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008554for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008555do
8556 # Extract the first word of "$ac_prog", so it can be a program name with args.
8557set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8560if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008562else
8563 case $OCAMLDEP in
8564 [\\/]* | ?:[\\/]*)
8565 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8566 ;;
8567 *)
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008575 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008577 break 2
8578 fi
8579done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008580done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008581IFS=$as_save_IFS
8582
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008583 ;;
8584esac
8585fi
8586OCAMLDEP=$ac_cv_path_OCAMLDEP
8587if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8589echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008591 { echo "$as_me:$LINENO: result: no" >&5
8592echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008593fi
8594
8595
Gordon Henriksene7072162008-03-07 18:20:01 +00008596 test -n "$OCAMLDEP" && break
8597done
8598
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008599for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008600do
8601 # Extract the first word of "$ac_prog", so it can be a program name with args.
8602set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8605if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008607else
8608 case $OCAMLDOC in
8609 [\\/]* | ?:[\\/]*)
8610 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8611 ;;
8612 *)
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008620 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008622 break 2
8623 fi
8624done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008625done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008626IFS=$as_save_IFS
8627
8628 ;;
8629esac
8630fi
8631OCAMLDOC=$ac_cv_path_OCAMLDOC
8632if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008633 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8634echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008636 { echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008638fi
8639
8640
8641 test -n "$OCAMLDOC" && break
8642done
8643
Torok Edwincc499a42008-10-22 09:56:27 +00008644for ac_prog in gas as
8645do
8646 # Extract the first word of "$ac_prog", so it can be a program name with args.
8647set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8650if test "${ac_cv_path_GAS+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008652else
8653 case $GAS in
8654 [\\/]* | ?:[\\/]*)
8655 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8656 ;;
8657 *)
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00008665 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008667 break 2
8668 fi
8669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008670done
Torok Edwincc499a42008-10-22 09:56:27 +00008671IFS=$as_save_IFS
8672
8673 ;;
8674esac
8675fi
8676GAS=$ac_cv_path_GAS
8677if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008678 { echo "$as_me:$LINENO: result: $GAS" >&5
8679echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008681 { echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008683fi
8684
8685
8686 test -n "$GAS" && break
8687done
8688
Reid Spencera773bd52006-08-04 18:18:08 +00008689
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008690{ echo "$as_me:$LINENO: checking for linker version" >&5
8691echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8692if test "${llvm_cv_link_version+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694else
8695
8696 version_string="$(ld -v 2>&1 | head -1)"
8697
8698 # Check for ld64.
8699 if (echo "$version_string" | grep -q "ld64"); then
8700 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8701 else
8702 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8703 fi
8704
8705fi
8706{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8707echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8708
8709cat >>confdefs.h <<_ACEOF
8710#define HOST_LINK_VERSION "$llvm_cv_link_version"
8711_ACEOF
8712
8713
8714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008715{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8716echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8717if test "${llvm_cv_link_use_r+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008719else
8720 ac_ext=c
8721ac_cpp='$CPP $CPPFLAGS'
8722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724ac_compiler_gnu=$ac_cv_c_compiler_gnu
8725
8726 oldcflags="$CFLAGS"
8727 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008728 cat >conftest.$ac_ext <<_ACEOF
8729/* confdefs.h. */
8730_ACEOF
8731cat confdefs.h >>conftest.$ac_ext
8732cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008733/* end confdefs.h. */
8734
8735int
8736main ()
8737{
Dan Gohman39ed6782010-04-25 00:12:20 +00008738
Reid Spencera773bd52006-08-04 18:18:08 +00008739 ;
8740 return 0;
8741}
8742_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008743rm -f conftest.$ac_objext conftest$ac_exeext
8744if { (ac_try="$ac_link"
8745case "(($ac_try" in
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8748esac
8749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_link") 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8758 { (case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761esac
8762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_try") 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771esac
8772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_try") 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008777 llvm_cv_link_use_r=yes
8778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008779 echo "$as_me: failed program was:" >&5
8780sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008784
Bill Wendlingebcceee2009-04-18 11:20:33 +00008785rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008787 CFLAGS="$oldcflags"
8788 ac_ext=c
8789ac_cpp='$CPP $CPPFLAGS'
8790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792ac_compiler_gnu=$ac_cv_c_compiler_gnu
8793
8794
8795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008796{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8797echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008798if test "$llvm_cv_link_use_r" = yes ; then
8799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008800cat >>confdefs.h <<\_ACEOF
8801#define HAVE_LINK_R 1
8802_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008803
8804 fi
8805
8806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008807{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8808echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8809if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008811else
8812 ac_ext=c
8813ac_cpp='$CPP $CPPFLAGS'
8814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816ac_compiler_gnu=$ac_cv_c_compiler_gnu
8817
8818 oldcflags="$CFLAGS"
8819 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008820 cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008825/* end confdefs.h. */
8826
8827int
8828main ()
8829{
Dan Gohman39ed6782010-04-25 00:12:20 +00008830
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008831 ;
8832 return 0;
8833}
8834_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008835rm -f conftest.$ac_objext conftest$ac_exeext
8836if { (ac_try="$ac_link"
8837case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840esac
8841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_link") 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853esac
8854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863esac
8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008869 llvm_cv_link_use_export_dynamic=yes
8870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008871 echo "$as_me: failed program was:" >&5
8872sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008876
Bill Wendlingebcceee2009-04-18 11:20:33 +00008877rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008878 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008879 CFLAGS="$oldcflags"
8880 ac_ext=c
8881ac_cpp='$CPP $CPPFLAGS'
8882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
8886
8887fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008888{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8889echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008890if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008892cat >>confdefs.h <<\_ACEOF
8893#define HAVE_LINK_EXPORT_DYNAMIC 1
8894_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008895
8896 fi
8897
8898
Dan Gohmanda612d62010-06-01 14:56:56 +00008899{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8900echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8901if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008902 echo $ECHO_N "(cached) $ECHO_C" >&6
8903else
8904 ac_ext=c
8905ac_cpp='$CPP $CPPFLAGS'
8906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908ac_compiler_gnu=$ac_cv_c_compiler_gnu
8909
8910 oldcflags="$CFLAGS"
8911
8912 # The following code is from the autoconf manual,
8913 # "11.13: Limitations of Usual Tools".
8914 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8915 # Use mktemp if possible; otherwise fall back on mkdir,
8916 # with $RANDOM to make collisions less likely.
8917 : ${TMPDIR=/tmp}
8918 {
8919 tmp=`
8920 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8921 ` &&
8922 test -n "$tmp" && test -d "$tmp"
8923 } || {
8924 tmp=$TMPDIR/foo$$-$RANDOM
8925 (umask 077 && mkdir "$tmp")
8926 } || exit $?
8927
Dan Gohmanda612d62010-06-01 14:56:56 +00008928 echo "{" > "$tmp/export.map"
8929 echo " global: main;" >> "$tmp/export.map"
8930 echo " local: *;" >> "$tmp/export.map"
8931 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008932
Dan Gohmanda612d62010-06-01 14:56:56 +00008933 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008934 cat >conftest.$ac_ext <<_ACEOF
8935/* confdefs.h. */
8936_ACEOF
8937cat confdefs.h >>conftest.$ac_ext
8938cat >>conftest.$ac_ext <<_ACEOF
8939/* end confdefs.h. */
8940
8941int
8942main ()
8943{
Dan Gohman39ed6782010-04-25 00:12:20 +00008944
Dan Gohman391569c2010-04-16 22:59:06 +00008945 ;
8946 return 0;
8947}
8948_ACEOF
8949rm -f conftest.$ac_objext conftest$ac_exeext
8950if { (ac_try="$ac_link"
8951case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954esac
8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_link") 2>conftest.er1
8957 ac_status=$?
8958 grep -v '^ *+' conftest.er1 >conftest.err
8959 rm -f conftest.er1
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8964 { (case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967esac
8968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_try") 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; } &&
8973 { ac_try='test -s conftest$ac_exeext'
8974 { (case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977esac
8978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_try") 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008983 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008984else
8985 echo "$as_me: failed program was:" >&5
8986sed 's/^/| /' conftest.$ac_ext >&5
8987
Dan Gohman943005e2010-06-01 16:22:27 +00008988 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008989fi
8990
8991rm -f core conftest.err conftest.$ac_objext \
8992 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008993 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008994 rmdir "$tmp"
8995 CFLAGS="$oldcflags"
8996 ac_ext=c
8997ac_cpp='$CPP $CPPFLAGS'
8998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000ac_compiler_gnu=$ac_cv_c_compiler_gnu
9001
9002
9003fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009004{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9005echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9006if test "$llvm_cv_link_use_version_script" = yes ; then
9007 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009008
9009 fi
9010
9011
Reid Spencera773bd52006-08-04 18:18:08 +00009012
9013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009014{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9015echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9016if test "${ac_cv_c_const+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009019 cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h. */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009024/* end confdefs.h. */
9025
9026int
9027main ()
9028{
9029/* FIXME: Include the comments suggested by Paul. */
9030#ifndef __cplusplus
9031 /* Ultrix mips cc rejects this. */
9032 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009033 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009034 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009035 char const *const *ccp;
9036 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009037 /* NEC SVR4.0.2 mips cc rejects this. */
9038 struct point {int x, y;};
9039 static struct point const zero = {0,0};
9040 /* AIX XL C 1.02.0.0 rejects this.
9041 It does not let you subtract one const X* pointer from another in
9042 an arm of an if-expression whose if-part is not a constant
9043 expression */
9044 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009045 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009046 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009047 ++ccp;
9048 p = (char**) ccp;
9049 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009050 { /* SCO 3.2v4 cc rejects this. */
9051 char *t;
9052 char const *s = 0 ? (char *) 0 : (char const *) 0;
9053
9054 *t++ = 0;
9055 if (s) return 0;
9056 }
9057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9058 int x[] = {25, 17};
9059 const int *foo = &x[0];
9060 ++foo;
9061 }
9062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9063 typedef const int *iptr;
9064 iptr p = 0;
9065 ++p;
9066 }
9067 { /* AIX XL C 1.02.0.0 rejects this saying
9068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9069 struct s { int j; const int *ap[3]; };
9070 struct s *b; b->j = 5;
9071 }
9072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9073 const int foo = 10;
9074 if (!foo) return 0;
9075 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009076 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009077#endif
9078
9079 ;
9080 return 0;
9081}
9082_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009083rm -f conftest.$ac_objext
9084if { (ac_try="$ac_compile"
9085case "(($ac_try" in
9086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087 *) ac_try_echo=$ac_try;;
9088esac
9089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9090 (eval "$ac_compile") 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9098 { (case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101esac
9102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_try") 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111esac
9112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009117 ac_cv_c_const=yes
9118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009119 echo "$as_me: failed program was:" >&5
9120sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009124
Reid Spencera773bd52006-08-04 18:18:08 +00009125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009127{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9128echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009129if test $ac_cv_c_const = no; then
9130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009131cat >>confdefs.h <<\_ACEOF
9132#define const
9133_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009134
9135fi
9136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009137
9138
9139
9140
9141
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009142ac_header_dirent=no
9143for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009144 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9145{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9146echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009150 cat >conftest.$ac_ext <<_ACEOF
9151/* confdefs.h. */
9152_ACEOF
9153cat confdefs.h >>conftest.$ac_ext
9154cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155/* end confdefs.h. */
9156#include <sys/types.h>
9157#include <$ac_hdr>
9158
9159int
9160main ()
9161{
9162if ((DIR *) 0)
9163return 0;
9164 ;
9165 return 0;
9166}
9167_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009168rm -f conftest.$ac_objext
9169if { (ac_try="$ac_compile"
9170case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9173esac
9174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9183 { (case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_try") 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (case "(($ac_try" in
9194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195 *) ac_try_echo=$ac_try;;
9196esac
9197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198 (eval "$ac_try") 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009202 eval "$as_ac_Header=yes"
9203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009204 echo "$as_me: failed program was:" >&5
9205sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009209
Reid Spencera773bd52006-08-04 18:18:08 +00009210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009212ac_res=`eval echo '${'$as_ac_Header'}'`
9213 { echo "$as_me:$LINENO: result: $ac_res" >&5
9214echo "${ECHO_T}$ac_res" >&6; }
9215if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009216 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009217#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009218_ACEOF
9219
9220ac_header_dirent=$ac_hdr; break
9221fi
9222
9223done
9224# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9225if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009226 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9227echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9228if test "${ac_cv_search_opendir+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230else
9231 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009232cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h. */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009237/* end confdefs.h. */
9238
Reid Spencera773bd52006-08-04 18:18:08 +00009239/* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009242#ifdef __cplusplus
9243extern "C"
9244#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009245char opendir ();
9246int
9247main ()
9248{
Reid Spencera773bd52006-08-04 18:18:08 +00009249return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009250 ;
9251 return 0;
9252}
9253_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009254for ac_lib in '' dir; do
9255 if test -z "$ac_lib"; then
9256 ac_res="none required"
9257 else
9258 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009260 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009261 rm -f conftest.$ac_objext conftest$ac_exeext
9262if { (ac_try="$ac_link"
9263case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9266esac
9267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_link") 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9276 { (case "(($ac_try" in
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9279esac
9280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_try") 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; } &&
9285 { ac_try='test -s conftest$ac_exeext'
9286 { (case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9289esac
9290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_try") 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009295 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009302
Bill Wendlingebcceee2009-04-18 11:20:33 +00009303rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009304 conftest$ac_exeext
9305 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009306 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307fi
John Criswell7a73b802003-06-30 21:59:07 +00009308done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009309if test "${ac_cv_search_opendir+set}" = set; then
9310 :
Reid Spencera773bd52006-08-04 18:18:08 +00009311else
9312 ac_cv_search_opendir=no
9313fi
9314rm conftest.$ac_ext
9315LIBS=$ac_func_search_save_LIBS
9316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009317{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9318echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009319ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009320if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009322
Reid Spencera773bd52006-08-04 18:18:08 +00009323fi
9324
9325else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009326 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9327echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9328if test "${ac_cv_search_opendir+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009330else
9331 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009332cat >conftest.$ac_ext <<_ACEOF
9333/* confdefs.h. */
9334_ACEOF
9335cat confdefs.h >>conftest.$ac_ext
9336cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009337/* end confdefs.h. */
9338
9339/* Override any GCC internal prototype to avoid an error.
9340 Use char because int might match the return type of a GCC
9341 builtin and then its argument prototype would still apply. */
9342#ifdef __cplusplus
9343extern "C"
9344#endif
9345char opendir ();
9346int
9347main ()
9348{
9349return opendir ();
9350 ;
9351 return 0;
9352}
9353_ACEOF
9354for ac_lib in '' x; do
9355 if test -z "$ac_lib"; then
9356 ac_res="none required"
9357 else
9358 ac_res=-l$ac_lib
9359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9360 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361 rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (ac_try="$ac_link"
9363case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366esac
9367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_link") 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379esac
9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest$ac_exeext'
9386 { (case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9389esac
9390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_try") 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009395 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009396else
9397 echo "$as_me: failed program was:" >&5
9398sed 's/^/| /' conftest.$ac_ext >&5
9399
9400
Reid Spencera773bd52006-08-04 18:18:08 +00009401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009402
Bill Wendlingebcceee2009-04-18 11:20:33 +00009403rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404 conftest$ac_exeext
9405 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009406 break
9407fi
9408done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009409if test "${ac_cv_search_opendir+set}" = set; then
9410 :
Reid Spencera773bd52006-08-04 18:18:08 +00009411else
9412 ac_cv_search_opendir=no
9413fi
9414rm conftest.$ac_ext
9415LIBS=$ac_func_search_save_LIBS
9416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009417{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9418echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009419ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009420if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9422
9423fi
9424
9425fi
John Criswell7a73b802003-06-30 21:59:07 +00009426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009427
John Criswell7a73b802003-06-30 21:59:07 +00009428for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009429do
9430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436fi
9437ac_res=`eval echo '${'$as_ac_Header'}'`
9438 { echo "$as_me:$LINENO: result: $ac_res" >&5
9439echo "${ECHO_T}$ac_res" >&6; }
9440else
9441 # Is the header compilable?
9442{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9444cat >conftest.$ac_ext <<_ACEOF
9445/* confdefs.h. */
9446_ACEOF
9447cat confdefs.h >>conftest.$ac_ext
9448cat >>conftest.$ac_ext <<_ACEOF
9449/* end confdefs.h. */
9450$ac_includes_default
9451#include <$ac_header>
9452_ACEOF
9453rm -f conftest.$ac_objext
9454if { (ac_try="$ac_compile"
9455case "(($ac_try" in
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9458esac
9459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_compile") 2>conftest.er1
9461 ac_status=$?
9462 grep -v '^ *+' conftest.er1 >conftest.err
9463 rm -f conftest.er1
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9468 { (case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9471esac
9472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_try") 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest.$ac_objext'
9478 { (case "(($ac_try" in
9479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480 *) ac_try_echo=$ac_try;;
9481esac
9482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483 (eval "$ac_try") 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_header_compiler=yes
9488else
9489 echo "$as_me: failed program was:" >&5
9490sed 's/^/| /' conftest.$ac_ext >&5
9491
9492 ac_header_compiler=no
9493fi
9494
9495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9497echo "${ECHO_T}$ac_header_compiler" >&6; }
9498
9499# Is the header present?
9500{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9502cat >conftest.$ac_ext <<_ACEOF
9503/* confdefs.h. */
9504_ACEOF
9505cat confdefs.h >>conftest.$ac_ext
9506cat >>conftest.$ac_ext <<_ACEOF
9507/* end confdefs.h. */
9508#include <$ac_header>
9509_ACEOF
9510if { (ac_try="$ac_cpp conftest.$ac_ext"
9511case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9514esac
9515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } >/dev/null; then
9523 if test -s conftest.err; then
9524 ac_cpp_err=$ac_c_preproc_warn_flag
9525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9526 else
9527 ac_cpp_err=
9528 fi
9529else
9530 ac_cpp_err=yes
9531fi
9532if test -z "$ac_cpp_err"; then
9533 ac_header_preproc=yes
9534else
9535 echo "$as_me: failed program was:" >&5
9536sed 's/^/| /' conftest.$ac_ext >&5
9537
9538 ac_header_preproc=no
9539fi
9540
9541rm -f conftest.err conftest.$ac_ext
9542{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543echo "${ECHO_T}$ac_header_preproc" >&6; }
9544
9545# So? What about this header?
9546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9547 yes:no: )
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9552 ac_header_preproc=yes
9553 ;;
9554 no:yes:* )
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9567 ( cat <<\_ASBOX
9568## ----------------------------------- ##
9569## Report this to llvmbugs@cs.uiuc.edu ##
9570## ----------------------------------- ##
9571_ASBOX
9572 ) | sed "s/^/$as_me: WARNING: /" >&2
9573 ;;
9574esac
9575{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580 eval "$as_ac_Header=\$ac_header_preproc"
9581fi
9582ac_res=`eval echo '${'$as_ac_Header'}'`
9583 { echo "$as_me:$LINENO: result: $ac_res" >&5
9584echo "${ECHO_T}$ac_res" >&6; }
9585
9586fi
9587if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009588 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009590_ACEOF
9591
9592fi
9593
9594done
9595
Reid Spencera773bd52006-08-04 18:18:08 +00009596# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009597if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009598 enableval=$enable_ltdl_install;
9599fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009600
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009602
9603
9604if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605 INSTALL_LTDL_TRUE=
9606 INSTALL_LTDL_FALSE='#'
9607else
9608 INSTALL_LTDL_TRUE='#'
9609 INSTALL_LTDL_FALSE=
9610fi
9611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009612
9613
9614if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009615 CONVENIENCE_LTDL_TRUE=
9616 CONVENIENCE_LTDL_FALSE='#'
9617else
9618 CONVENIENCE_LTDL_TRUE='#'
9619 CONVENIENCE_LTDL_FALSE=
9620fi
9621
9622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009623{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9624echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625library_names_spec=
9626libname_spec='lib$name'
9627soname_spec=
9628shrext_cmds=".so"
9629postinstall_cmds=
9630postuninstall_cmds=
9631finish_cmds=
9632finish_eval=
9633shlibpath_var=
9634shlibpath_overrides_runpath=unknown
9635version_type=none
9636dynamic_linker="$host_os ld.so"
9637sys_lib_dlsearch_path_spec="/lib /usr/lib"
9638if test "$GCC" = yes; then
9639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9641 # if the path contains ";" then we assume it to be the separator
9642 # otherwise default to the standard path separator (i.e. ":") - it is
9643 # assumed that no part of a normal pathname contains ";" but that should
9644 # okay in the real world where ";" in dirpaths is itself problematic.
9645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9646 else
9647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9648 fi
9649else
9650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9651fi
9652need_lib_prefix=unknown
9653hardcode_into_libs=no
9654
9655# when you set need_version to no, make sure it does not cause -set_version
9656# flags to be left without arguments
9657need_version=unknown
9658
9659case $host_os in
9660aix3*)
9661 version_type=linux
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9663 shlibpath_var=LIBPATH
9664
9665 # AIX 3 has no versioning support, so we append a major version to the name.
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 ;;
9668
9669aix4* | aix5*)
9670 version_type=linux
9671 need_lib_prefix=no
9672 need_version=no
9673 hardcode_into_libs=yes
9674 if test "$host_cpu" = ia64; then
9675 # AIX 5 supports IA64
9676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 else
9679 # With GCC up to 2.95.x, collect2 would create an import file
9680 # for dependence libraries. The import file would start with
9681 # the line `#! .'. This would cause the generated library to
9682 # depend on `.', always an invalid library. This was fixed in
9683 # development snapshots of GCC prior to 3.0.
9684 case $host_os in
9685 aix4 | aix4.[01] | aix4.[01].*)
9686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9687 echo ' yes '
9688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9689 :
9690 else
9691 can_build_shared=no
9692 fi
9693 ;;
9694 esac
9695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9696 # soname into executable. Probably we can add versioning support to
9697 # collect2, so additional links can be useful in future.
9698 if test "$aix_use_runtimelinking" = yes; then
9699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9700 # instead of lib<name>.a to let people know that these are not
9701 # typical AIX shared libraries.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 else
9704 # We preserve .a as extension for shared libraries through AIX4.2
9705 # and later when we are not doing run time linking.
9706 library_names_spec='${libname}${release}.a $libname.a'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 fi
9709 shlibpath_var=LIBPATH
9710 fi
9711 ;;
9712
9713amigaos*)
9714 library_names_spec='$libname.ixlibrary $libname.a'
9715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9716 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9717 ;;
9718
9719beos*)
9720 library_names_spec='${libname}${shared_ext}'
9721 dynamic_linker="$host_os ld.so"
9722 shlibpath_var=LIBRARY_PATH
9723 ;;
9724
9725bsdi[45]*)
9726 version_type=linux
9727 need_version=no
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9734 # the default ld.so.conf also contains /usr/contrib/lib and
9735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9736 # libtool to hard-code these into programs
9737 ;;
9738
9739cygwin* | mingw* | pw32*)
9740 version_type=windows
9741 shrext_cmds=".dll"
9742 need_version=no
9743 need_lib_prefix=no
9744
9745 case $GCC,$host_os in
9746 yes,cygwin* | yes,mingw* | yes,pw32*)
9747 library_names_spec='$libname.dll.a'
9748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9749 postinstall_cmds='base_file=`basename \${file}`~
9750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9751 dldir=$destdir/`dirname \$dlpath`~
9752 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009753 $install_prog $dir/$dlname \$dldir/$dlname~
9754 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9756 dlpath=$dir/\$dldll~
9757 $rm \$dlpath'
9758 shlibpath_overrides_runpath=yes
9759
9760 case $host_os in
9761 cygwin*)
9762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9765 ;;
9766 mingw*)
9767 # MinGW DLLs use traditional 'lib' prefix
9768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9771 # It is most probably a Windows format PATH printed by
9772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9773 # path with ; separators, and with drive letters. We can handle the
9774 # drive letters (cygwin fileutils understands them), so leave them,
9775 # especially as we might pass files found there to a mingw objdump,
9776 # which wouldn't understand a cygwinified path. Ahh.
9777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9778 else
9779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9780 fi
9781 ;;
9782 pw32*)
9783 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785 ;;
9786 esac
9787 ;;
9788
9789 *)
9790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9791 ;;
9792 esac
9793 dynamic_linker='Win32 ld.exe'
9794 # FIXME: first we should search . and the directory the executable is in
9795 shlibpath_var=PATH
9796 ;;
9797
9798darwin* | rhapsody*)
9799 dynamic_linker="$host_os dyld"
9800 version_type=darwin
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9804 soname_spec='${libname}${release}${major}$shared_ext'
9805 shlibpath_overrides_runpath=yes
9806 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009807 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9809 if test "$GCC" = yes; then
9810 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9811 else
9812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9813 fi
9814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9815 ;;
9816
9817dgux*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 ;;
9825
9826freebsd1*)
9827 dynamic_linker=no
9828 ;;
9829
9830kfreebsd*-gnu)
9831 version_type=linux
9832 need_lib_prefix=no
9833 need_version=no
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=no
9838 hardcode_into_libs=yes
9839 dynamic_linker='GNU ld.so'
9840 ;;
9841
Reid Spencera773bd52006-08-04 18:18:08 +00009842freebsd* | dragonfly*)
9843 # DragonFly does not have aout. When/if they implement a new
9844 # versioning mechanism, adjust this.
9845 if test -x /usr/bin/objformat; then
9846 objformat=`/usr/bin/objformat`
9847 else
9848 case $host_os in
9849 freebsd[123]*) objformat=aout ;;
9850 *) objformat=elf ;;
9851 esac
9852 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853 version_type=freebsd-$objformat
9854 case $version_type in
9855 freebsd-elf*)
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9857 need_version=no
9858 need_lib_prefix=no
9859 ;;
9860 freebsd-*)
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9862 need_version=yes
9863 ;;
9864 esac
9865 shlibpath_var=LD_LIBRARY_PATH
9866 case $host_os in
9867 freebsd2*)
9868 shlibpath_overrides_runpath=yes
9869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009870 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871 shlibpath_overrides_runpath=yes
9872 hardcode_into_libs=yes
9873 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876 shlibpath_overrides_runpath=no
9877 hardcode_into_libs=yes
9878 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009879 freebsd*) # from 4.6 on
9880 shlibpath_overrides_runpath=yes
9881 hardcode_into_libs=yes
9882 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883 esac
9884 ;;
9885
9886gnu*)
9887 version_type=linux
9888 need_lib_prefix=no
9889 need_version=no
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 hardcode_into_libs=yes
9894 ;;
9895
9896hpux9* | hpux10* | hpux11*)
9897 # Give a soname corresponding to the major version so that dld.sl refuses to
9898 # link against other versions.
9899 version_type=sunos
9900 need_lib_prefix=no
9901 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009902 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903 ia64*)
9904 shrext_cmds='.so'
9905 hardcode_into_libs=yes
9906 dynamic_linker="$host_os dld.so"
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 if test "X$HPUX_IA64_MODE" = X32; then
9912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9913 else
9914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9915 fi
9916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9917 ;;
9918 hppa*64*)
9919 shrext_cmds='.sl'
9920 hardcode_into_libs=yes
9921 dynamic_linker="$host_os dld.sl"
9922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9928 ;;
9929 *)
9930 shrext_cmds='.sl'
9931 dynamic_linker="$host_os dld.sl"
9932 shlibpath_var=SHLIB_PATH
9933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 ;;
9937 esac
9938 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9939 postinstall_cmds='chmod 555 $lib'
9940 ;;
9941
Reid Spencera773bd52006-08-04 18:18:08 +00009942interix3*)
9943 version_type=linux
9944 need_lib_prefix=no
9945 need_version=no
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=no
9951 hardcode_into_libs=yes
9952 ;;
9953
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954irix5* | irix6* | nonstopux*)
9955 case $host_os in
9956 nonstopux*) version_type=nonstopux ;;
9957 *)
9958 if test "$lt_cv_prog_gnu_ld" = yes; then
9959 version_type=linux
9960 else
9961 version_type=irix
9962 fi ;;
9963 esac
9964 need_lib_prefix=no
9965 need_version=no
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9968 case $host_os in
9969 irix5* | nonstopux*)
9970 libsuff= shlibsuff=
9971 ;;
9972 *)
9973 case $LD in # libtool.m4 will add one of these switches to LD
9974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9975 libsuff= shlibsuff= libmagic=32-bit;;
9976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9977 libsuff=32 shlibsuff=N32 libmagic=N32;;
9978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9980 *) libsuff= shlibsuff= libmagic=never-match;;
9981 esac
9982 ;;
9983 esac
9984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9985 shlibpath_overrides_runpath=no
9986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9988 hardcode_into_libs=yes
9989 ;;
9990
9991# No shared lib support for Linux oldld, aout, or coff.
9992linux*oldld* | linux*aout* | linux*coff*)
9993 dynamic_linker=no
9994 ;;
9995
9996# This must be Linux ELF.
9997linux*)
9998 version_type=linux
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10004 shlibpath_var=LD_LIBRARY_PATH
10005 shlibpath_overrides_runpath=no
10006 # This implies no fast_install, which is unacceptable.
10007 # Some rework will be needed to allow for fast_install
10008 # before this can be enabled.
10009 hardcode_into_libs=yes
10010
10011 # Append ld.so.conf contents to the search path
10012 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010013 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10015 fi
10016
10017 # We used to test for /lib/ld.so.1 and disable shared libraries on
10018 # powerpc, because MkLinux only supported shared libraries with the
10019 # GNU dynamic linker. Since this was broken with cross compilers,
10020 # most powerpc-linux boxes support dynamic linking these days and
10021 # people can always --disable-shared, the test was removed, and we
10022 # assume the GNU/Linux dynamic linker is in use.
10023 dynamic_linker='GNU/Linux ld.so'
10024 ;;
10025
10026knetbsd*-gnu)
10027 version_type=linux
10028 need_lib_prefix=no
10029 need_version=no
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=no
10034 hardcode_into_libs=yes
10035 dynamic_linker='GNU ld.so'
10036 ;;
10037
10038netbsd*)
10039 version_type=sunos
10040 need_lib_prefix=no
10041 need_version=no
10042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10045 dynamic_linker='NetBSD (a.out) ld.so'
10046 else
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 dynamic_linker='NetBSD ld.elf_so'
10050 fi
10051 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=yes
10053 hardcode_into_libs=yes
10054 ;;
10055
10056newsos6)
10057 version_type=linux
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=yes
10061 ;;
10062
10063nto-qnx*)
10064 version_type=linux
10065 need_lib_prefix=no
10066 need_version=no
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 shlibpath_var=LD_LIBRARY_PATH
10070 shlibpath_overrides_runpath=yes
10071 ;;
10072
10073openbsd*)
10074 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010075 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10078 case $host_os in
10079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10080 *) need_version=no ;;
10081 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10086 case $host_os in
10087 openbsd2.[89] | openbsd2.[89].*)
10088 shlibpath_overrides_runpath=no
10089 ;;
10090 *)
10091 shlibpath_overrides_runpath=yes
10092 ;;
10093 esac
10094 else
10095 shlibpath_overrides_runpath=yes
10096 fi
10097 ;;
10098
10099os2*)
10100 libname_spec='$name'
10101 shrext_cmds=".dll"
10102 need_lib_prefix=no
10103 library_names_spec='$libname${shared_ext} $libname.a'
10104 dynamic_linker='OS/2 ld.exe'
10105 shlibpath_var=LIBPATH
10106 ;;
10107
10108osf3* | osf4* | osf5*)
10109 version_type=osf
10110 need_lib_prefix=no
10111 need_version=no
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10117 ;;
10118
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119solaris*)
10120 version_type=linux
10121 need_lib_prefix=no
10122 need_version=no
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 shlibpath_overrides_runpath=yes
10127 hardcode_into_libs=yes
10128 # ldd complains unless libraries are executable
10129 postinstall_cmds='chmod +x $lib'
10130 ;;
10131
10132sunos4*)
10133 version_type=sunos
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes
10138 if test "$with_gnu_ld" = yes; then
10139 need_lib_prefix=no
10140 fi
10141 need_version=yes
10142 ;;
10143
Reid Spencera773bd52006-08-04 18:18:08 +000010144sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145 version_type=linux
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 case $host_vendor in
10150 sni)
10151 shlibpath_overrides_runpath=no
10152 need_lib_prefix=no
10153 export_dynamic_flag_spec='${wl}-Blargedynsym'
10154 runpath_var=LD_RUN_PATH
10155 ;;
10156 siemens)
10157 need_lib_prefix=no
10158 ;;
10159 motorola)
10160 need_lib_prefix=no
10161 need_version=no
10162 shlibpath_overrides_runpath=no
10163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10164 ;;
10165 esac
10166 ;;
10167
10168sysv4*MP*)
10169 if test -d /usr/nec ;then
10170 version_type=linux
10171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10172 soname_spec='$libname${shared_ext}.$major'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 fi
10175 ;;
10176
Reid Spencera773bd52006-08-04 18:18:08 +000010177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10178 version_type=freebsd-elf
10179 need_lib_prefix=no
10180 need_version=no
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 hardcode_into_libs=yes
10185 if test "$with_gnu_ld" = yes; then
10186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10187 shlibpath_overrides_runpath=no
10188 else
10189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10190 shlibpath_overrides_runpath=yes
10191 case $host_os in
10192 sco3.2v5*)
10193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10194 ;;
10195 esac
10196 fi
10197 sys_lib_dlsearch_path_spec='/usr/lib'
10198 ;;
10199
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200uts4*)
10201 version_type=linux
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 ;;
10206
10207*)
10208 dynamic_linker=no
10209 ;;
10210esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010211{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10212echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213test "$dynamic_linker" = no && can_build_shared=no
10214
Reid Spencera773bd52006-08-04 18:18:08 +000010215variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10216if test "$GCC" = yes; then
10217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10218fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219
Reid Spencera773bd52006-08-04 18:18:08 +000010220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010221{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10222echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10223if test "${libltdl_cv_shlibext+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225else
10226
10227module=yes
10228eval libltdl_cv_shlibext=$shrext_cmds
10229
10230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010231{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10232echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233if test -n "$libltdl_cv_shlibext"; then
10234
10235cat >>confdefs.h <<_ACEOF
10236#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10237_ACEOF
10238
10239fi
10240
10241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010242{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10243echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10244if test "${libltdl_cv_shlibpath_var+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010246else
10247 libltdl_cv_shlibpath_var="$shlibpath_var"
10248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010249{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10250echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251if test -n "$libltdl_cv_shlibpath_var"; then
10252
10253cat >>confdefs.h <<_ACEOF
10254#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10255_ACEOF
10256
10257fi
10258
10259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010260{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10261echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10262if test "${libltdl_cv_sys_search_path+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264else
10265 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010267{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10268echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269if test -n "$libltdl_cv_sys_search_path"; then
10270 sys_search_path=
10271 for dir in $libltdl_cv_sys_search_path; do
10272 if test -z "$sys_search_path"; then
10273 sys_search_path="$dir"
10274 else
10275 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10276 fi
10277 done
10278
10279cat >>confdefs.h <<_ACEOF
10280#define LTDL_SYSSEARCHPATH "$sys_search_path"
10281_ACEOF
10282
10283fi
10284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010285{ echo "$as_me:$LINENO: checking for objdir" >&5
10286echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10287if test "${libltdl_cv_objdir+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289else
10290 libltdl_cv_objdir="$objdir"
10291 if test -n "$objdir"; then
10292 :
10293 else
10294 rm -f .libs 2>/dev/null
10295 mkdir .libs 2>/dev/null
10296 if test -d .libs; then
10297 libltdl_cv_objdir=.libs
10298 else
10299 # MS-DOS does not allow filenames that begin with a dot.
10300 libltdl_cv_objdir=_libs
10301 fi
10302 rmdir .libs 2>/dev/null
10303 fi
10304
10305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010306{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10307echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308
10309cat >>confdefs.h <<_ACEOF
10310#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10311_ACEOF
10312
10313
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314
10315
10316
10317
10318# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010319{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10320echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10321if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323else
10324
10325# These are sane defaults that work on at least a few old systems.
10326# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10327
10328# Character class describing NM global symbol codes.
10329symcode='[BCDEGRST]'
10330
10331# Regexp to match symbols that can be accessed directly from C.
10332sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10333
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334# Transform an extracted symbol line into a proper C declaration
10335lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10336
10337# Transform an extracted symbol line into symbol name and symbol address
10338lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10339
10340# Define system-specific variables.
10341case $host_os in
10342aix*)
10343 symcode='[BCDT]'
10344 ;;
10345cygwin* | mingw* | pw32*)
10346 symcode='[ABCDGISTW]'
10347 ;;
10348hpux*) # Its linker distinguishes data from code symbols
10349 if test "$host_cpu" = ia64; then
10350 symcode='[ABCDEGRST]'
10351 fi
10352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10353 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10354 ;;
10355linux*)
10356 if test "$host_cpu" = ia64; then
10357 symcode='[ABCDGIRSTW]'
10358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10359 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10360 fi
10361 ;;
10362irix* | nonstopux*)
10363 symcode='[BCDEGRST]'
10364 ;;
10365osf*)
10366 symcode='[BCDEGQRST]'
10367 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010368solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369 symcode='[BDRT]'
10370 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010371sco3.2v5*)
10372 symcode='[DT]'
10373 ;;
10374sysv4.2uw2*)
10375 symcode='[DT]'
10376 ;;
10377sysv5* | sco5v6* | unixware* | OpenUNIX*)
10378 symcode='[ABDT]'
10379 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010380sysv4)
10381 symcode='[DFNSTU]'
10382 ;;
10383esac
10384
10385# Handle CRLF in mingw tool chain
10386opt_cr=
10387case $build_os in
10388mingw*)
10389 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10390 ;;
10391esac
10392
10393# If we're using GNU nm, then use its standard symbol codes.
10394case `$NM -V 2>&1` in
10395*GNU* | *'with BFD'*)
10396 symcode='[ABCDGIRSTW]' ;;
10397esac
10398
10399# Try without a prefix undercore, then with it.
10400for ac_symprfx in "" "_"; do
10401
Reid Spencera773bd52006-08-04 18:18:08 +000010402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10403 symxfrm="\\1 $ac_symprfx\\2 \\2"
10404
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010406 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407
10408 # Check to see that the pipe works correctly.
10409 pipe_works=no
10410
10411 rm -f conftest*
10412 cat > conftest.$ac_ext <<EOF
10413#ifdef __cplusplus
10414extern "C" {
10415#endif
10416char nm_test_var;
10417void nm_test_func(){}
10418#ifdef __cplusplus
10419}
10420#endif
10421int main(){nm_test_var='a';nm_test_func();return(0);}
10422EOF
10423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425 (eval $ac_compile) 2>&5
10426 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429 # Now try to grab the symbols.
10430 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010431 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010432 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10433 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010436 # Try sorting and uniquifying the output.
10437 if sort "$nlist" | uniq > "$nlist"T; then
10438 mv -f "$nlist"T "$nlist"
10439 else
10440 rm -f "$nlist"T
10441 fi
10442
10443 # Make sure that we snagged all the symbols we need.
10444 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10445 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10446 cat <<EOF > conftest.$ac_ext
10447#ifdef __cplusplus
10448extern "C" {
10449#endif
10450
10451EOF
10452 # Now generate the symbol file.
10453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10454
10455 cat <<EOF >> conftest.$ac_ext
10456#if defined (__STDC__) && __STDC__
10457# define lt_ptr_t void *
10458#else
10459# define lt_ptr_t char *
10460# define const
10461#endif
10462
10463/* The mapping between symbol names and symbols. */
10464const struct {
10465 const char *name;
10466 lt_ptr_t address;
10467}
10468lt_preloaded_symbols[] =
10469{
10470EOF
10471 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10472 cat <<\EOF >> conftest.$ac_ext
10473 {0, (lt_ptr_t) 0}
10474};
10475
10476#ifdef __cplusplus
10477}
10478#endif
10479EOF
10480 # Now try linking the two files.
10481 mv conftest.$ac_objext conftstm.$ac_objext
10482 lt_save_LIBS="$LIBS"
10483 lt_save_CFLAGS="$CFLAGS"
10484 LIBS="conftstm.$ac_objext"
10485 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487 (eval $ac_link) 2>&5
10488 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491 pipe_works=yes
10492 fi
10493 LIBS="$lt_save_LIBS"
10494 CFLAGS="$lt_save_CFLAGS"
10495 else
10496 echo "cannot find nm_test_func in $nlist" >&5
10497 fi
10498 else
10499 echo "cannot find nm_test_var in $nlist" >&5
10500 fi
10501 else
10502 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10503 fi
10504 else
10505 echo "$progname: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10507 fi
10508 rm -f conftest* conftst*
10509
10510 # Do not use the global_symbol_pipe unless it works.
10511 if test "$pipe_works" = yes; then
10512 break
10513 else
10514 lt_cv_sys_global_symbol_pipe=
10515 fi
10516done
10517
10518fi
10519
10520if test -z "$lt_cv_sys_global_symbol_pipe"; then
10521 lt_cv_sys_global_symbol_to_cdecl=
10522fi
10523if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010524 { echo "$as_me:$LINENO: result: failed" >&5
10525echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010527 { echo "$as_me:$LINENO: result: ok" >&5
10528echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529fi
10530
10531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010532{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10533echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10534if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536else
10537 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10538 libltdl_cv_preloaded_symbols=yes
10539 else
10540 libltdl_cv_preloaded_symbols=no
10541 fi
10542
10543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010544{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10545echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010548cat >>confdefs.h <<\_ACEOF
10549#define HAVE_PRELOADED_SYMBOLS 1
10550_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551
10552fi
10553
10554LIBADD_DL=
10555
10556ac_ext=c
10557ac_cpp='$CPP $CPPFLAGS'
10558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10560ac_compiler_gnu=$ac_cv_c_compiler_gnu
10561
10562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010563{ echo "$as_me:$LINENO: checking for shl_load" >&5
10564echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10565if test "${ac_cv_func_shl_load+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 cat >conftest.$ac_ext <<_ACEOF
10569/* confdefs.h. */
10570_ACEOF
10571cat confdefs.h >>conftest.$ac_ext
10572cat >>conftest.$ac_ext <<_ACEOF
10573/* end confdefs.h. */
10574/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10576#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010578/* System header to define __stub macros and hopefully few prototypes,
10579 which can conflict with char shl_load (); below.
10580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10581 <limits.h> exists even on freestanding compilers. */
10582
10583#ifdef __STDC__
10584# include <limits.h>
10585#else
10586# include <assert.h>
10587#endif
10588
10589#undef shl_load
10590
10591/* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597char shl_load ();
10598/* The GNU C library defines this for functions which it implements
10599 to always fail with ENOSYS. Some functions are actually named
10600 something starting with __ and the normal name is an alias. */
10601#if defined __stub_shl_load || defined __stub___shl_load
10602choke me
10603#endif
10604
10605int
10606main ()
10607{
10608return shl_load ();
10609 ;
10610 return 0;
10611}
10612_ACEOF
10613rm -f conftest.$ac_objext conftest$ac_exeext
10614if { (ac_try="$ac_link"
10615case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618esac
10619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628 { (case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631esac
10632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_try") 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10641esac
10642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_try") 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_func_shl_load=yes
10648else
10649 echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_cv_func_shl_load=no
10653fi
10654
10655rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10657fi
10658{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10659echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10660if test $ac_cv_func_shl_load = yes; then
10661
10662cat >>confdefs.h <<\_ACEOF
10663#define HAVE_SHL_LOAD 1
10664_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665
10666else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010667 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10668echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10669if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671else
10672 ac_check_lib_save_LIBS=$LIBS
10673LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679/* end confdefs.h. */
10680
Reid Spencera773bd52006-08-04 18:18:08 +000010681/* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684#ifdef __cplusplus
10685extern "C"
10686#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687char shl_load ();
10688int
10689main ()
10690{
Reid Spencera773bd52006-08-04 18:18:08 +000010691return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692 ;
10693 return 0;
10694}
10695_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010696rm -f conftest.$ac_objext conftest$ac_exeext
10697if { (ac_try="$ac_link"
10698case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701esac
10702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_link") 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714esac
10715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724esac
10725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730 ac_cv_lib_dld_shl_load=yes
10731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010732 echo "$as_me: failed program was:" >&5
10733sed 's/^/| /' conftest.$ac_ext >&5
10734
10735 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737
Bill Wendlingebcceee2009-04-18 11:20:33 +000010738rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010739 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740LIBS=$ac_check_lib_save_LIBS
10741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010742{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10743echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10744if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010746cat >>confdefs.h <<\_ACEOF
10747#define HAVE_SHL_LOAD 1
10748_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749
10750 LIBADD_DL="$LIBADD_DL -ldld"
10751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010752 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10753echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10754if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756else
10757 ac_check_lib_save_LIBS=$LIBS
10758LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010759cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764/* end confdefs.h. */
10765
Reid Spencera773bd52006-08-04 18:18:08 +000010766/* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769#ifdef __cplusplus
10770extern "C"
10771#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772char dlopen ();
10773int
10774main ()
10775{
Reid Spencera773bd52006-08-04 18:18:08 +000010776return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777 ;
10778 return 0;
10779}
10780_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010781rm -f conftest.$ac_objext conftest$ac_exeext
10782if { (ac_try="$ac_link"
10783case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786esac
10787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_link") 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10796 { (case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799esac
10800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_try") 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest$ac_exeext'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
10810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815 ac_cv_lib_dl_dlopen=yes
10816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010817 echo "$as_me: failed program was:" >&5
10818sed 's/^/| /' conftest.$ac_ext >&5
10819
10820 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010822
Bill Wendlingebcceee2009-04-18 11:20:33 +000010823rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010824 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010825LIBS=$ac_check_lib_save_LIBS
10826fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010827{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10828echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10829if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831cat >>confdefs.h <<\_ACEOF
10832#define HAVE_LIBDL 1
10833_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834
10835 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010837 cat >conftest.$ac_ext <<_ACEOF
10838/* confdefs.h. */
10839_ACEOF
10840cat confdefs.h >>conftest.$ac_ext
10841cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842/* end confdefs.h. */
10843#if HAVE_DLFCN_H
10844# include <dlfcn.h>
10845#endif
10846
10847int
10848main ()
10849{
10850dlopen(0, 0);
10851 ;
10852 return 0;
10853}
10854_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010855rm -f conftest.$ac_objext conftest$ac_exeext
10856if { (ac_try="$ac_link"
10857case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10860esac
10861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_link") 2>conftest.er1
10863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; } &&
10879 { ac_try='test -s conftest$ac_exeext'
10880 { (case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10883esac
10884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_try") 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010890cat >>confdefs.h <<\_ACEOF
10891#define HAVE_LIBDL 1
10892_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893 libltdl_cv_func_dlopen="yes"
10894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10899echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10900if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902else
10903 ac_check_lib_save_LIBS=$LIBS
10904LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010905cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910/* end confdefs.h. */
10911
Reid Spencera773bd52006-08-04 18:18:08 +000010912/* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915#ifdef __cplusplus
10916extern "C"
10917#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918char dlopen ();
10919int
10920main ()
10921{
Reid Spencera773bd52006-08-04 18:18:08 +000010922return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923 ;
10924 return 0;
10925}
10926_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010927rm -f conftest.$ac_objext conftest$ac_exeext
10928if { (ac_try="$ac_link"
10929case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932esac
10933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945esac
10946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest$ac_exeext'
10952 { (case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955esac
10956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_try") 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961 ac_cv_lib_svld_dlopen=yes
10962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010963 echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
10966 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010968
Bill Wendlingebcceee2009-04-18 11:20:33 +000010969rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010970 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010971LIBS=$ac_check_lib_save_LIBS
10972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010973{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10974echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10975if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010977cat >>confdefs.h <<\_ACEOF
10978#define HAVE_LIBDL 1
10979_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980
10981 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010983 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10984echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10985if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987else
10988 ac_check_lib_save_LIBS=$LIBS
10989LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010990cat >conftest.$ac_ext <<_ACEOF
10991/* confdefs.h. */
10992_ACEOF
10993cat confdefs.h >>conftest.$ac_ext
10994cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010995/* end confdefs.h. */
10996
Reid Spencera773bd52006-08-04 18:18:08 +000010997/* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011000#ifdef __cplusplus
11001extern "C"
11002#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003char dld_link ();
11004int
11005main ()
11006{
Reid Spencera773bd52006-08-04 18:18:08 +000011007return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008 ;
11009 return 0;
11010}
11011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011012rm -f conftest.$ac_objext conftest$ac_exeext
11013if { (ac_try="$ac_link"
11014case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_link") 2>conftest.er1
11020 ac_status=$?
11021 grep -v '^ *+' conftest.er1 >conftest.err
11022 rm -f conftest.er1
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest$ac_exeext'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040esac
11041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046 ac_cv_lib_dld_dld_link=yes
11047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011048 echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011053
Bill Wendlingebcceee2009-04-18 11:20:33 +000011054rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011055 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056LIBS=$ac_check_lib_save_LIBS
11057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011058{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11059echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11060if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011062cat >>confdefs.h <<\_ACEOF
11063#define HAVE_DLD 1
11064_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065
11066 LIBADD_DL="$LIBADD_DL -ldld"
11067else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011068 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11069echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11070if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
11073 cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h. */
11079/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11081#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011083/* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char _dyld_func_lookup (); below.
11085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11086 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011088#ifdef __STDC__
11089# include <limits.h>
11090#else
11091# include <assert.h>
11092#endif
11093
11094#undef _dyld_func_lookup
11095
11096/* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11099#ifdef __cplusplus
11100extern "C"
11101#endif
11102char _dyld_func_lookup ();
11103/* The GNU C library defines this for functions which it implements
11104 to always fail with ENOSYS. Some functions are actually named
11105 something starting with __ and the normal name is an alias. */
11106#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11107choke me
11108#endif
11109
11110int
11111main ()
11112{
11113return _dyld_func_lookup ();
11114 ;
11115 return 0;
11116}
11117_ACEOF
11118rm -f conftest.$ac_objext conftest$ac_exeext
11119if { (ac_try="$ac_link"
11120case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_link") 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest$ac_exeext'
11143 { (case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_try") 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_func__dyld_func_lookup=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011158fi
Reid Spencera773bd52006-08-04 18:18:08 +000011159
Bill Wendlingebcceee2009-04-18 11:20:33 +000011160rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011161 conftest$ac_exeext conftest.$ac_ext
11162fi
11163{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11164echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11165if test $ac_cv_func__dyld_func_lookup = yes; then
11166
11167cat >>confdefs.h <<\_ACEOF
11168#define HAVE_DYLD 1
11169_ACEOF
11170
11171fi
11172
11173
11174fi
11175
11176
11177fi
11178
11179
11180fi
11181
11182rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011184
11185fi
11186
11187
11188fi
11189
11190
11191fi
11192
11193
11194if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11195then
11196 lt_save_LIBS="$LIBS"
11197 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011198
11199for ac_func in dlerror
11200do
11201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11204if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206else
11207 cat >conftest.$ac_ext <<_ACEOF
11208/* confdefs.h. */
11209_ACEOF
11210cat confdefs.h >>conftest.$ac_ext
11211cat >>conftest.$ac_ext <<_ACEOF
11212/* end confdefs.h. */
11213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11215#define $ac_func innocuous_$ac_func
11216
11217/* System header to define __stub macros and hopefully few prototypes,
11218 which can conflict with char $ac_func (); below.
11219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11220 <limits.h> exists even on freestanding compilers. */
11221
11222#ifdef __STDC__
11223# include <limits.h>
11224#else
11225# include <assert.h>
11226#endif
11227
11228#undef $ac_func
11229
11230/* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233#ifdef __cplusplus
11234extern "C"
11235#endif
11236char $ac_func ();
11237/* The GNU C library defines this for functions which it implements
11238 to always fail with ENOSYS. Some functions are actually named
11239 something starting with __ and the normal name is an alias. */
11240#if defined __stub_$ac_func || defined __stub___$ac_func
11241choke me
11242#endif
11243
11244int
11245main ()
11246{
11247return $ac_func ();
11248 ;
11249 return 0;
11250}
11251_ACEOF
11252rm -f conftest.$ac_objext conftest$ac_exeext
11253if { (ac_try="$ac_link"
11254case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_link") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest$ac_exeext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 eval "$as_ac_var=yes"
11287else
11288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 eval "$as_ac_var=no"
11292fi
11293
11294rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296fi
11297ac_res=`eval echo '${'$as_ac_var'}'`
11298 { echo "$as_me:$LINENO: result: $ac_res" >&5
11299echo "${ECHO_T}$ac_res" >&6; }
11300if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011303_ACEOF
11304
11305fi
11306done
11307
11308 LIBS="$lt_save_LIBS"
11309fi
11310ac_ext=c
11311ac_cpp='$CPP $CPPFLAGS'
11312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11314ac_compiler_gnu=$ac_cv_c_compiler_gnu
11315
11316
11317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011318{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11319echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11320if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322else
11323 ac_cv_sys_symbol_underscore=no
11324 cat > conftest.$ac_ext <<EOF
11325void nm_test_func(){}
11326int main(){nm_test_func;return 0;}
11327EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011329 (eval $ac_compile) 2>&5
11330 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333 # Now try to grab the symbols.
11334 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011335 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011336 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11337 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340 # See whether the symbols have a leading underscore.
11341 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11342 ac_cv_sys_symbol_underscore=yes
11343 else
11344 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11345 :
11346 else
11347 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11348 fi
11349 fi
11350 else
11351 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11352 fi
11353 else
11354 echo "configure: failed program was:" >&5
11355 cat conftest.c >&5
11356 fi
11357 rm -rf conftest*
11358
11359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011360{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11361echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362
11363
11364if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11365 if test x"$libltdl_cv_func_dlopen" = xyes ||
11366 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011367 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11368echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11369if test "${libltdl_cv_need_uscore+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011371else
11372 libltdl_cv_need_uscore=unknown
11373 save_LIBS="$LIBS"
11374 LIBS="$LIBS $LIBADD_DL"
11375 if test "$cross_compiling" = yes; then :
11376 libltdl_cv_need_uscore=cross
11377else
11378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11379 lt_status=$lt_dlunknown
11380 cat > conftest.$ac_ext <<EOF
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000011381#line 11381 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382#include "confdefs.h"
11383
11384#if HAVE_DLFCN_H
11385#include <dlfcn.h>
11386#endif
11387
11388#include <stdio.h>
11389
11390#ifdef RTLD_GLOBAL
11391# define LT_DLGLOBAL RTLD_GLOBAL
11392#else
11393# ifdef DL_GLOBAL
11394# define LT_DLGLOBAL DL_GLOBAL
11395# else
11396# define LT_DLGLOBAL 0
11397# endif
11398#endif
11399
11400/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11401 find out it does not work in some platform. */
11402#ifndef LT_DLLAZY_OR_NOW
11403# ifdef RTLD_LAZY
11404# define LT_DLLAZY_OR_NOW RTLD_LAZY
11405# else
11406# ifdef DL_LAZY
11407# define LT_DLLAZY_OR_NOW DL_LAZY
11408# else
11409# ifdef RTLD_NOW
11410# define LT_DLLAZY_OR_NOW RTLD_NOW
11411# else
11412# ifdef DL_NOW
11413# define LT_DLLAZY_OR_NOW DL_NOW
11414# else
11415# define LT_DLLAZY_OR_NOW 0
11416# endif
11417# endif
11418# endif
11419# endif
11420#endif
11421
11422#ifdef __cplusplus
11423extern "C" void exit (int);
11424#endif
11425
11426void fnord() { int i=42;}
11427int main ()
11428{
11429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11430 int status = $lt_dlunknown;
11431
11432 if (self)
11433 {
11434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11436 /* dlclose (self); */
11437 }
Reid Spencera773bd52006-08-04 18:18:08 +000011438 else
11439 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440
11441 exit (status);
11442}
11443EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445 (eval $ac_link) 2>&5
11446 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011449 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011450 lt_status=$?
11451 case x$lt_status in
11452 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11453 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011454 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 esac
11456 else :
11457 # compilation failed
11458
11459 fi
11460fi
11461rm -fr conftest*
11462
11463 LIBS="$save_LIBS"
11464
11465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011466{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11467echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011468 fi
11469fi
11470
11471if test x"$libltdl_cv_need_uscore" = xyes; then
11472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011473cat >>confdefs.h <<\_ACEOF
11474#define NEED_USCORE 1
11475_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476
11477fi
11478
11479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011480{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11481echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11482if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484else
11485 # PORTME does your system automatically load deplibs for dlopen?
11486 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11487 # For now, we just catch OSes we know something about -- in the
11488 # future, we'll try test this programmatically.
11489 libltdl_cv_sys_dlopen_deplibs=unknown
11490 case "$host_os" in
11491 aix3*|aix4.1.*|aix4.2.*)
11492 # Unknown whether this is true for these versions of AIX, but
11493 # we want this `case' here to explicitly catch those versions.
11494 libltdl_cv_sys_dlopen_deplibs=unknown
11495 ;;
11496 aix[45]*)
11497 libltdl_cv_sys_dlopen_deplibs=yes
11498 ;;
11499 darwin*)
11500 # Assuming the user has installed a libdl from somewhere, this is true
11501 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11502 libltdl_cv_sys_dlopen_deplibs=yes
11503 ;;
11504 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11505 # GNU and its variants, using gnu ld.so (Glibc)
11506 libltdl_cv_sys_dlopen_deplibs=yes
11507 ;;
11508 hpux10*|hpux11*)
11509 libltdl_cv_sys_dlopen_deplibs=yes
11510 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011511 interix*)
11512 libltdl_cv_sys_dlopen_deplibs=yes
11513 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011514 irix[12345]*|irix6.[01]*)
11515 # Catch all versions of IRIX before 6.2, and indicate that we don't
11516 # know how it worked for any of those versions.
11517 libltdl_cv_sys_dlopen_deplibs=unknown
11518 ;;
11519 irix*)
11520 # The case above catches anything before 6.2, and it's known that
11521 # at 6.2 and later dlopen does load deplibs.
11522 libltdl_cv_sys_dlopen_deplibs=yes
11523 ;;
11524 netbsd*)
11525 libltdl_cv_sys_dlopen_deplibs=yes
11526 ;;
11527 openbsd*)
11528 libltdl_cv_sys_dlopen_deplibs=yes
11529 ;;
11530 osf[1234]*)
11531 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11532 # it did *not* use an RPATH in a shared library to find objects the
11533 # library depends on, so we explictly say `no'.
11534 libltdl_cv_sys_dlopen_deplibs=no
11535 ;;
11536 osf5.0|osf5.0a|osf5.1)
11537 # dlopen *does* load deplibs and with the right loader patch applied
11538 # it even uses RPATH in a shared library to search for shared objects
11539 # that the library depends on, but there's no easy way to know if that
11540 # patch is installed. Since this is the case, all we can really
11541 # say is unknown -- it depends on the patch being installed. If
11542 # it is, this changes to `yes'. Without it, it would be `no'.
11543 libltdl_cv_sys_dlopen_deplibs=unknown
11544 ;;
11545 osf*)
11546 # the two cases above should catch all versions of osf <= 5.1. Read
11547 # the comments above for what we know about them.
11548 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11549 # is used to find them so we can finally say `yes'.
11550 libltdl_cv_sys_dlopen_deplibs=yes
11551 ;;
11552 solaris*)
11553 libltdl_cv_sys_dlopen_deplibs=yes
11554 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11556 libltdl_cv_sys_dlopen_deplibs=yes
11557 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558 esac
11559
11560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011561{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11562echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011565cat >>confdefs.h <<\_ACEOF
11566#define LTDL_DLOPEN_DEPLIBS 1
11567_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011568
11569fi
11570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011571
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011573do
11574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580fi
11581ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583echo "${ECHO_T}$ac_res" >&6; }
11584else
11585 # Is the header compilable?
11586{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11588cat >conftest.$ac_ext <<_ACEOF
11589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
11594$ac_includes_default
11595#include <$ac_header>
11596_ACEOF
11597rm -f conftest.$ac_objext
11598if { (ac_try="$ac_compile"
11599case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11602esac
11603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_compile") 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_header_compiler=yes
11632else
11633 echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 ac_header_compiler=no
11637fi
11638
11639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641echo "${ECHO_T}$ac_header_compiler" >&6; }
11642
11643# Is the header present?
11644{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11646cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652#include <$ac_header>
11653_ACEOF
11654if { (ac_try="$ac_cpp conftest.$ac_ext"
11655case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } >/dev/null; then
11667 if test -s conftest.err; then
11668 ac_cpp_err=$ac_c_preproc_warn_flag
11669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670 else
11671 ac_cpp_err=
11672 fi
11673else
11674 ac_cpp_err=yes
11675fi
11676if test -z "$ac_cpp_err"; then
11677 ac_header_preproc=yes
11678else
11679 echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
11681
11682 ac_header_preproc=no
11683fi
11684
11685rm -f conftest.err conftest.$ac_ext
11686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687echo "${ECHO_T}$ac_header_preproc" >&6; }
11688
11689# So? What about this header?
11690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11691 yes:no: )
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696 ac_header_preproc=yes
11697 ;;
11698 no:yes:* )
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11706echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711 ( cat <<\_ASBOX
11712## ----------------------------------- ##
11713## Report this to llvmbugs@cs.uiuc.edu ##
11714## ----------------------------------- ##
11715_ASBOX
11716 ) | sed "s/^/$as_me: WARNING: /" >&2
11717 ;;
11718esac
11719{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 eval "$as_ac_Header=\$ac_header_preproc"
11725fi
11726ac_res=`eval echo '${'$as_ac_Header'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728echo "${ECHO_T}$ac_res" >&6; }
11729
11730fi
11731if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011734_ACEOF
11735
11736fi
11737
11738done
11739
11740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011741{ echo "$as_me:$LINENO: checking for error_t" >&5
11742echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11743if test "${ac_cv_type_error_t+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011753# include <argz.h>
11754#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011755
11756typedef error_t ac__type_new_;
11757int
11758main ()
11759{
11760if ((ac__type_new_ *) 0)
11761 return 0;
11762if (sizeof (ac__type_new_))
11763 return 0;
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext
11769if { (ac_try="$ac_compile"
11770case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773esac
11774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786esac
11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest.$ac_objext'
11793 { (case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796esac
11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_try") 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_type_error_t=yes
11803else
11804 echo "$as_me: failed program was:" >&5
11805sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 ac_cv_type_error_t=no
11808fi
11809
11810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811fi
11812{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11813echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11814if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815
11816cat >>confdefs.h <<_ACEOF
11817#define HAVE_ERROR_T 1
11818_ACEOF
11819
11820
11821else
11822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011823cat >>confdefs.h <<\_ACEOF
11824#define error_t int
11825_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826
11827fi
11828
11829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011830
11831
11832
11833
11834
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011836do
11837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11838{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11840if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842else
11843 cat >conftest.$ac_ext <<_ACEOF
11844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
11849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11851#define $ac_func innocuous_$ac_func
11852
11853/* System header to define __stub macros and hopefully few prototypes,
11854 which can conflict with char $ac_func (); below.
11855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11856 <limits.h> exists even on freestanding compilers. */
11857
11858#ifdef __STDC__
11859# include <limits.h>
11860#else
11861# include <assert.h>
11862#endif
11863
11864#undef $ac_func
11865
11866/* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11869#ifdef __cplusplus
11870extern "C"
11871#endif
11872char $ac_func ();
11873/* The GNU C library defines this for functions which it implements
11874 to always fail with ENOSYS. Some functions are actually named
11875 something starting with __ and the normal name is an alias. */
11876#if defined __stub_$ac_func || defined __stub___$ac_func
11877choke me
11878#endif
11879
11880int
11881main ()
11882{
11883return $ac_func ();
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext conftest$ac_exeext
11889if { (ac_try="$ac_link"
11890case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11893esac
11894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_link") 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903 { (case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906esac
11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_try") 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 eval "$as_ac_var=yes"
11923else
11924 echo "$as_me: failed program was:" >&5
11925sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 eval "$as_ac_var=no"
11928fi
11929
11930rm -f core conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11932fi
11933ac_res=`eval echo '${'$as_ac_var'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935echo "${ECHO_T}$ac_res" >&6; }
11936if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939_ACEOF
11940
11941fi
11942done
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011963
11964
11965
11966
11967
11968
11969
11970
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11972 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011973do
11974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980fi
11981ac_res=`eval echo '${'$as_ac_Header'}'`
11982 { echo "$as_me:$LINENO: result: $ac_res" >&5
11983echo "${ECHO_T}$ac_res" >&6; }
11984else
11985 # Is the header compilable?
11986{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11988cat >conftest.$ac_ext <<_ACEOF
11989/* confdefs.h. */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h. */
11994$ac_includes_default
11995#include <$ac_header>
11996_ACEOF
11997rm -f conftest.$ac_objext
11998if { (ac_try="$ac_compile"
11999case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002esac
12003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025esac
12026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_header_compiler=yes
12032else
12033 echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_header_compiler=no
12037fi
12038
12039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041echo "${ECHO_T}$ac_header_compiler" >&6; }
12042
12043# Is the header present?
12044{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12046cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052#include <$ac_header>
12053_ACEOF
12054if { (ac_try="$ac_cpp conftest.$ac_ext"
12055case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058esac
12059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
12069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12070 else
12071 ac_cpp_err=
12072 fi
12073else
12074 ac_cpp_err=yes
12075fi
12076if test -z "$ac_cpp_err"; then
12077 ac_header_preproc=yes
12078else
12079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_header_preproc=no
12083fi
12084
12085rm -f conftest.err conftest.$ac_ext
12086{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12087echo "${ECHO_T}$ac_header_preproc" >&6; }
12088
12089# So? What about this header?
12090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091 yes:no: )
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12096 ac_header_preproc=yes
12097 ;;
12098 no:yes:* )
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12102echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12106echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12111 ( cat <<\_ASBOX
12112## ----------------------------------- ##
12113## Report this to llvmbugs@cs.uiuc.edu ##
12114## ----------------------------------- ##
12115_ASBOX
12116 ) | sed "s/^/$as_me: WARNING: /" >&2
12117 ;;
12118esac
12119{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 eval "$as_ac_Header=\$ac_header_preproc"
12125fi
12126ac_res=`eval echo '${'$as_ac_Header'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128echo "${ECHO_T}$ac_res" >&6; }
12129
12130fi
12131if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012134_ACEOF
12135
12136fi
12137
12138done
12139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012140
12141
12142
12143
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012145do
12146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152fi
12153ac_res=`eval echo '${'$as_ac_Header'}'`
12154 { echo "$as_me:$LINENO: result: $ac_res" >&5
12155echo "${ECHO_T}$ac_res" >&6; }
12156else
12157 # Is the header compilable?
12158{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12160cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
12166$ac_includes_default
12167#include <$ac_header>
12168_ACEOF
12169rm -f conftest.$ac_objext
12170if { (ac_try="$ac_compile"
12171case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12174esac
12175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_compile") 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12184 { (case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187esac
12188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_try") 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest.$ac_objext'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197esac
12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_header_compiler=yes
12204else
12205 echo "$as_me: failed program was:" >&5
12206sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 ac_header_compiler=no
12209fi
12210
12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12213echo "${ECHO_T}$ac_header_compiler" >&6; }
12214
12215# Is the header present?
12216{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12218cat >conftest.$ac_ext <<_ACEOF
12219/* confdefs.h. */
12220_ACEOF
12221cat confdefs.h >>conftest.$ac_ext
12222cat >>conftest.$ac_ext <<_ACEOF
12223/* end confdefs.h. */
12224#include <$ac_header>
12225_ACEOF
12226if { (ac_try="$ac_cpp conftest.$ac_ext"
12227case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12230esac
12231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12233 ac_status=$?
12234 grep -v '^ *+' conftest.er1 >conftest.err
12235 rm -f conftest.er1
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } >/dev/null; then
12239 if test -s conftest.err; then
12240 ac_cpp_err=$ac_c_preproc_warn_flag
12241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12242 else
12243 ac_cpp_err=
12244 fi
12245else
12246 ac_cpp_err=yes
12247fi
12248if test -z "$ac_cpp_err"; then
12249 ac_header_preproc=yes
12250else
12251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 ac_header_preproc=no
12255fi
12256
12257rm -f conftest.err conftest.$ac_ext
12258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12259echo "${ECHO_T}$ac_header_preproc" >&6; }
12260
12261# So? What about this header?
12262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12263 yes:no: )
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12268 ac_header_preproc=yes
12269 ;;
12270 no:yes:* )
12271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12283 ( cat <<\_ASBOX
12284## ----------------------------------- ##
12285## Report this to llvmbugs@cs.uiuc.edu ##
12286## ----------------------------------- ##
12287_ASBOX
12288 ) | sed "s/^/$as_me: WARNING: /" >&2
12289 ;;
12290esac
12291{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295else
12296 eval "$as_ac_Header=\$ac_header_preproc"
12297fi
12298ac_res=`eval echo '${'$as_ac_Header'}'`
12299 { echo "$as_me:$LINENO: result: $ac_res" >&5
12300echo "${ECHO_T}$ac_res" >&6; }
12301
12302fi
12303if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012304 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012306_ACEOF
12307
12308fi
12309
12310done
12311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012312
12313
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012314for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012315do
12316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322fi
12323ac_res=`eval echo '${'$as_ac_Header'}'`
12324 { echo "$as_me:$LINENO: result: $ac_res" >&5
12325echo "${ECHO_T}$ac_res" >&6; }
12326else
12327 # Is the header compilable?
12328{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12330cat >conftest.$ac_ext <<_ACEOF
12331/* confdefs.h. */
12332_ACEOF
12333cat confdefs.h >>conftest.$ac_ext
12334cat >>conftest.$ac_ext <<_ACEOF
12335/* end confdefs.h. */
12336$ac_includes_default
12337#include <$ac_header>
12338_ACEOF
12339rm -f conftest.$ac_objext
12340if { (ac_try="$ac_compile"
12341case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344esac
12345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_compile") 2>conftest.er1
12347 ac_status=$?
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12354 { (case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357esac
12358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest.$ac_objext'
12364 { (case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367esac
12368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_try") 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_header_compiler=yes
12374else
12375 echo "$as_me: failed program was:" >&5
12376sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 ac_header_compiler=no
12379fi
12380
12381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383echo "${ECHO_T}$ac_header_compiler" >&6; }
12384
12385# Is the header present?
12386{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12388cat >conftest.$ac_ext <<_ACEOF
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
12394#include <$ac_header>
12395_ACEOF
12396if { (ac_try="$ac_cpp conftest.$ac_ext"
12397case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400esac
12401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } >/dev/null; then
12409 if test -s conftest.err; then
12410 ac_cpp_err=$ac_c_preproc_warn_flag
12411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12412 else
12413 ac_cpp_err=
12414 fi
12415else
12416 ac_cpp_err=yes
12417fi
12418if test -z "$ac_cpp_err"; then
12419 ac_header_preproc=yes
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_header_preproc=no
12425fi
12426
12427rm -f conftest.err conftest.$ac_ext
12428{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12429echo "${ECHO_T}$ac_header_preproc" >&6; }
12430
12431# So? What about this header?
12432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12433 yes:no: )
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12438 ac_header_preproc=yes
12439 ;;
12440 no:yes:* )
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12444echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12448echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12453 ( cat <<\_ASBOX
12454## ----------------------------------- ##
12455## Report this to llvmbugs@cs.uiuc.edu ##
12456## ----------------------------------- ##
12457_ASBOX
12458 ) | sed "s/^/$as_me: WARNING: /" >&2
12459 ;;
12460esac
12461{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465else
12466 eval "$as_ac_Header=\$ac_header_preproc"
12467fi
12468ac_res=`eval echo '${'$as_ac_Header'}'`
12469 { echo "$as_me:$LINENO: result: $ac_res" >&5
12470echo "${ECHO_T}$ac_res" >&6; }
12471
12472fi
12473if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012474 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012476_ACEOF
12477 break
12478fi
12479
12480done
12481
12482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012483
12484
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012486do
12487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12488{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12490if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492else
12493 cat >conftest.$ac_ext <<_ACEOF
12494/* confdefs.h. */
12495_ACEOF
12496cat confdefs.h >>conftest.$ac_ext
12497cat >>conftest.$ac_ext <<_ACEOF
12498/* end confdefs.h. */
12499/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12501#define $ac_func innocuous_$ac_func
12502
12503/* System header to define __stub macros and hopefully few prototypes,
12504 which can conflict with char $ac_func (); below.
12505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12506 <limits.h> exists even on freestanding compilers. */
12507
12508#ifdef __STDC__
12509# include <limits.h>
12510#else
12511# include <assert.h>
12512#endif
12513
12514#undef $ac_func
12515
12516/* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12519#ifdef __cplusplus
12520extern "C"
12521#endif
12522char $ac_func ();
12523/* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526#if defined __stub_$ac_func || defined __stub___$ac_func
12527choke me
12528#endif
12529
12530int
12531main ()
12532{
12533return $ac_func ();
12534 ;
12535 return 0;
12536}
12537_ACEOF
12538rm -f conftest.$ac_objext conftest$ac_exeext
12539if { (ac_try="$ac_link"
12540case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12543esac
12544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_link") 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556esac
12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12566esac
12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_try") 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 eval "$as_ac_var=yes"
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577 eval "$as_ac_var=no"
12578fi
12579
12580rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582fi
12583ac_res=`eval echo '${'$as_ac_var'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585echo "${ECHO_T}$ac_res" >&6; }
12586if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012587 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012589_ACEOF
12590 break
12591fi
12592done
12593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012594
12595
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012597do
12598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12599{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12601if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603else
12604 cat >conftest.$ac_ext <<_ACEOF
12605/* confdefs.h. */
12606_ACEOF
12607cat confdefs.h >>conftest.$ac_ext
12608cat >>conftest.$ac_ext <<_ACEOF
12609/* end confdefs.h. */
12610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12612#define $ac_func innocuous_$ac_func
12613
12614/* System header to define __stub macros and hopefully few prototypes,
12615 which can conflict with char $ac_func (); below.
12616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12617 <limits.h> exists even on freestanding compilers. */
12618
12619#ifdef __STDC__
12620# include <limits.h>
12621#else
12622# include <assert.h>
12623#endif
12624
12625#undef $ac_func
12626
12627/* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12630#ifdef __cplusplus
12631extern "C"
12632#endif
12633char $ac_func ();
12634/* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637#if defined __stub_$ac_func || defined __stub___$ac_func
12638choke me
12639#endif
12640
12641int
12642main ()
12643{
12644return $ac_func ();
12645 ;
12646 return 0;
12647}
12648_ACEOF
12649rm -f conftest.$ac_objext conftest$ac_exeext
12650if { (ac_try="$ac_link"
12651case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654esac
12655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_link") 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_try") 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677esac
12678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_try") 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 eval "$as_ac_var=no"
12689fi
12690
12691rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693fi
12694ac_res=`eval echo '${'$as_ac_var'}'`
12695 { echo "$as_me:$LINENO: result: $ac_res" >&5
12696echo "${ECHO_T}$ac_res" >&6; }
12697if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012700_ACEOF
12701 break
12702fi
12703done
12704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012705
12706
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012708do
12709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714else
12715 cat >conftest.$ac_ext <<_ACEOF
12716/* confdefs.h. */
12717_ACEOF
12718cat confdefs.h >>conftest.$ac_ext
12719cat >>conftest.$ac_ext <<_ACEOF
12720/* end confdefs.h. */
12721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12723#define $ac_func innocuous_$ac_func
12724
12725/* System header to define __stub macros and hopefully few prototypes,
12726 which can conflict with char $ac_func (); below.
12727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12728 <limits.h> exists even on freestanding compilers. */
12729
12730#ifdef __STDC__
12731# include <limits.h>
12732#else
12733# include <assert.h>
12734#endif
12735
12736#undef $ac_func
12737
12738/* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12741#ifdef __cplusplus
12742extern "C"
12743#endif
12744char $ac_func ();
12745/* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748#if defined __stub_$ac_func || defined __stub___$ac_func
12749choke me
12750#endif
12751
12752int
12753main ()
12754{
12755return $ac_func ();
12756 ;
12757 return 0;
12758}
12759_ACEOF
12760rm -f conftest.$ac_objext conftest$ac_exeext
12761if { (ac_try="$ac_link"
12762case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12765esac
12766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_link") 2>conftest.er1
12768 ac_status=$?
12769 grep -v '^ *+' conftest.er1 >conftest.err
12770 rm -f conftest.er1
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788esac
12789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_try") 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12794 eval "$as_ac_var=yes"
12795else
12796 echo "$as_me: failed program was:" >&5
12797sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 eval "$as_ac_var=no"
12800fi
12801
12802rm -f core conftest.err conftest.$ac_objext \
12803 conftest$ac_exeext conftest.$ac_ext
12804fi
12805ac_res=`eval echo '${'$as_ac_var'}'`
12806 { echo "$as_me:$LINENO: result: $ac_res" >&5
12807echo "${ECHO_T}$ac_res" >&6; }
12808if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012809 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012811_ACEOF
12812 break
12813fi
12814done
12815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012816
12817
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012818for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819do
12820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12825else
12826 cat >conftest.$ac_ext <<_ACEOF
12827/* confdefs.h. */
12828_ACEOF
12829cat confdefs.h >>conftest.$ac_ext
12830cat >>conftest.$ac_ext <<_ACEOF
12831/* end confdefs.h. */
12832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12834#define $ac_func innocuous_$ac_func
12835
12836/* System header to define __stub macros and hopefully few prototypes,
12837 which can conflict with char $ac_func (); below.
12838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12839 <limits.h> exists even on freestanding compilers. */
12840
12841#ifdef __STDC__
12842# include <limits.h>
12843#else
12844# include <assert.h>
12845#endif
12846
12847#undef $ac_func
12848
12849/* Override any GCC internal prototype to avoid an error.
12850 Use char because int might match the return type of a GCC
12851 builtin and then its argument prototype would still apply. */
12852#ifdef __cplusplus
12853extern "C"
12854#endif
12855char $ac_func ();
12856/* The GNU C library defines this for functions which it implements
12857 to always fail with ENOSYS. Some functions are actually named
12858 something starting with __ and the normal name is an alias. */
12859#if defined __stub_$ac_func || defined __stub___$ac_func
12860choke me
12861#endif
12862
12863int
12864main ()
12865{
12866return $ac_func ();
12867 ;
12868 return 0;
12869}
12870_ACEOF
12871rm -f conftest.$ac_objext conftest$ac_exeext
12872if { (ac_try="$ac_link"
12873case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12876esac
12877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_link") 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889esac
12890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_try") 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; } &&
12895 { ac_try='test -s conftest$ac_exeext'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899esac
12900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 eval "$as_ac_var=yes"
12906else
12907 echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 eval "$as_ac_var=no"
12911fi
12912
12913rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915fi
12916ac_res=`eval echo '${'$as_ac_var'}'`
12917 { echo "$as_me:$LINENO: result: $ac_res" >&5
12918echo "${ECHO_T}$ac_res" >&6; }
12919if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012920 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012922_ACEOF
12923
12924fi
12925done
12926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927
12928
12929
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012930for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012931do
12932as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12933{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12934echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12935if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937else
12938 cat >conftest.$ac_ext <<_ACEOF
12939/* confdefs.h. */
12940_ACEOF
12941cat confdefs.h >>conftest.$ac_ext
12942cat >>conftest.$ac_ext <<_ACEOF
12943/* end confdefs.h. */
12944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12946#define $ac_func innocuous_$ac_func
12947
12948/* System header to define __stub macros and hopefully few prototypes,
12949 which can conflict with char $ac_func (); below.
12950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12951 <limits.h> exists even on freestanding compilers. */
12952
12953#ifdef __STDC__
12954# include <limits.h>
12955#else
12956# include <assert.h>
12957#endif
12958
12959#undef $ac_func
12960
12961/* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12964#ifdef __cplusplus
12965extern "C"
12966#endif
12967char $ac_func ();
12968/* The GNU C library defines this for functions which it implements
12969 to always fail with ENOSYS. Some functions are actually named
12970 something starting with __ and the normal name is an alias. */
12971#if defined __stub_$ac_func || defined __stub___$ac_func
12972choke me
12973#endif
12974
12975int
12976main ()
12977{
12978return $ac_func ();
12979 ;
12980 return 0;
12981}
12982_ACEOF
12983rm -f conftest.$ac_objext conftest$ac_exeext
12984if { (ac_try="$ac_link"
12985case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_link") 2>conftest.er1
12991 ac_status=$?
12992 grep -v '^ *+' conftest.er1 >conftest.err
12993 rm -f conftest.er1
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998 { (case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_try") 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13011esac
13012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_try") 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 eval "$as_ac_var=yes"
13018else
13019 echo "$as_me: failed program was:" >&5
13020sed 's/^/| /' conftest.$ac_ext >&5
13021
13022 eval "$as_ac_var=no"
13023fi
13024
13025rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027fi
13028ac_res=`eval echo '${'$as_ac_var'}'`
13029 { echo "$as_me:$LINENO: result: $ac_res" >&5
13030echo "${ECHO_T}$ac_res" >&6; }
13031if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013032 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013034_ACEOF
13035
13036fi
13037done
13038
13039
Douglas Gregor01746742009-05-11 18:05:52 +000013040
Reid Spencer7931a782004-12-27 06:15:02 +000013041if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013042 LLVMGCC="llvm-gcc${EXEEXT}"
13043 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013044 LLVMGCCCOMMAND="$LLVMGCC"
13045 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013046 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13047
13048 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13049
Reid Spencerc84492c2005-06-02 22:34:49 +000013050 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13051set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13054if test "${ac_cv_path_LLVMGCC+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013056else
13057 case $LLVMGCC in
13058 [\\/]* | ?:[\\/]*)
13059 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13060 ;;
13061 *)
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063for as_dir in $PATH
13064do
13065 IFS=$as_save_IFS
13066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013069 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013071 break 2
13072 fi
13073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013074done
Reid Spencera773bd52006-08-04 18:18:08 +000013075IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013076
Reid Spencer59473af2004-12-25 07:31:29 +000013077 ;;
13078esac
13079fi
13080LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013081if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013082 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13083echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013085 { echo "$as_me:$LINENO: result: no" >&5
13086echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013087fi
13088
Reid Spencera773bd52006-08-04 18:18:08 +000013089
Reid Spencerc84492c2005-06-02 22:34:49 +000013090 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13091set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13094if test "${ac_cv_path_LLVMGXX+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013096else
13097 case $LLVMGXX in
13098 [\\/]* | ?:[\\/]*)
13099 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13100 ;;
13101 *)
13102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103for as_dir in $PATH
13104do
13105 IFS=$as_save_IFS
13106 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013107 for ac_exec_ext in '' $ac_executable_extensions; do
13108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013109 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013111 break 2
13112 fi
13113done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013114done
Reid Spencera773bd52006-08-04 18:18:08 +000013115IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013116
Reid Spencer59473af2004-12-25 07:31:29 +000013117 ;;
13118esac
13119fi
13120LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013121if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013122 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13123echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013125 { echo "$as_me:$LINENO: result: no" >&5
13126echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013127fi
13128
Reid Spencera773bd52006-08-04 18:18:08 +000013129
Reid Spencer59473af2004-12-25 07:31:29 +000013130else
Devang Patel5d28b882007-12-04 22:54:47 +000013131 if test -z "$LLVMGCC"; then
13132 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013133 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013134 fi
13135 if test -z "$LLVMGXX"; then
13136 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013137 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013138 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013139
Reid Spencer59473af2004-12-25 07:31:29 +000013140 LLVMGCC=$LLVMGCC
13141
13142 LLVMGXX=$LLVMGXX
13143
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013144 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13145
13146 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13147
Reid Spencer59473af2004-12-25 07:31:29 +000013148fi
13149
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013150
Daniel Dunbar98515672010-02-23 10:00:49 +000013151# Check whether --with-llvmcc was given.
13152if test "${with_llvmcc+set}" = set; then
13153 withval=$with_llvmcc;
13154else
13155 with_llvmcc=check
13156fi
13157
13158{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13159echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13160if test "$with_llvmcc" != "check"; then
13161 if (test "$with_llvmcc" != "llvm-gcc" &&
13162 test "$with_llvmcc" != "clang" &&
13163 test "$with_llvmcc" != "none"); then
13164 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13165echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13166 { (exit 1); exit 1; }; }
13167 fi
13168 WITH_LLVMCC="$with_llvmcc"
13169elif test -n "$LLVMGCC"; then
13170 WITH_LLVMCC=llvm-gcc
13171elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13172 WITH_LLVMCC=clang
13173else
13174 WITH_LLVMCC=none
13175fi
13176{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13177echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13178LLVMCC_OPTION=$WITH_LLVMCC
13179
13180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013181{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13182echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013183
Reid Spencer86901802004-12-08 23:07:27 +000013184ICC=no
13185IXX=no
13186case $CC in
13187 icc*|icpc*)
13188 ICC=yes
13189 IXX=yes
13190 ;;
13191 *)
13192 ;;
13193esac
13194
Duraid Madina937c60a2006-02-15 07:57:42 +000013195if test "$GCC" != "yes" && test "$ICC" != "yes"
13196then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13198echo "$as_me: error: gcc|icc required but not found" >&2;}
13199 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013200fi
13201
13202if test "$GXX" != "yes" && test "$IXX" != "yes"
13203then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013204 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13205echo "$as_me: error: g++|icc required but not found" >&2;}
13206 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013207fi
13208
Reid Spencer86901802004-12-08 23:07:27 +000013209if test "$GCC" = "yes"
13210then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013212#if !defined(__GNUC__) || __GNUC__ < 3
13213#error Unsupported GCC version
13214#endif
13215
13216_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013217rm -f conftest.$ac_objext
13218if { (ac_try="$ac_compile"
13219case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_compile") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235esac
13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest.$ac_objext'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245esac
13246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013252else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253 echo "$as_me: failed program was:" >&5
13254sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13257echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13258 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013260
Chris Lattner399c7c72008-02-05 19:43:53 +000013261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013262fi
13263
13264if test -z "$llvm_cv_gnu_make_command"
13265then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13267echo "$as_me: error: GNU Make required but not found" >&2;}
13268 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013269fi
13270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271{ echo "$as_me:$LINENO: result: ok" >&5
13272echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13275echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013276NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13277
13278NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13281echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013282
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284
13285{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13286echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13287if test "${ac_cv_lib_m_sin+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013289else
13290 ac_check_lib_save_LIBS=$LIBS
13291LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013292cat >conftest.$ac_ext <<_ACEOF
13293/* confdefs.h. */
13294_ACEOF
13295cat confdefs.h >>conftest.$ac_ext
13296cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013297/* end confdefs.h. */
13298
Reid Spencera773bd52006-08-04 18:18:08 +000013299/* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013302#ifdef __cplusplus
13303extern "C"
13304#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013305char sin ();
13306int
13307main ()
13308{
Reid Spencera773bd52006-08-04 18:18:08 +000013309return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013310 ;
13311 return 0;
13312}
13313_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314rm -f conftest.$ac_objext conftest$ac_exeext
13315if { (ac_try="$ac_link"
13316case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13319esac
13320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_link") 2>conftest.er1
13322 ac_status=$?
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332esac
13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342esac
13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_try") 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013348 ac_cv_lib_m_sin=yes
13349else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013350 echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013355
Bill Wendlingebcceee2009-04-18 11:20:33 +000013356rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013358LIBS=$ac_check_lib_save_LIBS
13359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013360{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13361echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13362if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013363 cat >>confdefs.h <<_ACEOF
13364#define HAVE_LIBM 1
13365_ACEOF
13366
13367 LIBS="-lm $LIBS"
13368
13369fi
13370
Jeff Cohen28783c32007-01-12 18:22:38 +000013371if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013372
13373{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13374echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13375if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013377else
13378 ac_check_lib_save_LIBS=$LIBS
13379LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013380cat >conftest.$ac_ext <<_ACEOF
13381/* confdefs.h. */
13382_ACEOF
13383cat confdefs.h >>conftest.$ac_ext
13384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013385/* end confdefs.h. */
13386
Reid Spencer48fdf912006-06-01 19:03:21 +000013387
Reid Spencer484fc8e2006-06-01 16:55:59 +000013388int
13389main ()
13390{
Reid Spencera773bd52006-08-04 18:18:08 +000013391return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013392 ;
13393 return 0;
13394}
13395_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013396rm -f conftest.$ac_objext conftest$ac_exeext
13397if { (ac_try="$ac_link"
13398case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401esac
13402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_link") 2>conftest.er1
13404 ac_status=$?
13405 grep -v '^ *+' conftest.er1 >conftest.err
13406 rm -f conftest.er1
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_try") 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try='test -s conftest$ac_exeext'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13424esac
13425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013430 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013437
Bill Wendlingebcceee2009-04-18 11:20:33 +000013438rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013439 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013440LIBS=$ac_check_lib_save_LIBS
13441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013442{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13443echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13444if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013445 cat >>confdefs.h <<_ACEOF
13446#define HAVE_LIBIMAGEHLP 1
13447_ACEOF
13448
13449 LIBS="-limagehlp $LIBS"
13450
13451fi
13452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453
13454{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13455echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13456if test "${ac_cv_lib_psapi_main+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013458else
13459 ac_check_lib_save_LIBS=$LIBS
13460LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013461cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013466/* end confdefs.h. */
13467
Reid Spencer48fdf912006-06-01 19:03:21 +000013468
Reid Spencer484fc8e2006-06-01 16:55:59 +000013469int
13470main ()
13471{
Reid Spencera773bd52006-08-04 18:18:08 +000013472return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013473 ;
13474 return 0;
13475}
13476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013477rm -f conftest.$ac_objext conftest$ac_exeext
13478if { (ac_try="$ac_link"
13479case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482esac
13483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_link") 2>conftest.er1
13485 ac_status=$?
13486 grep -v '^ *+' conftest.er1 >conftest.err
13487 rm -f conftest.er1
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; } &&
13501 { ac_try='test -s conftest$ac_exeext'
13502 { (case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505esac
13506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_try") 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013511 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013513 echo "$as_me: failed program was:" >&5
13514sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013518
Bill Wendlingebcceee2009-04-18 11:20:33 +000013519rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013520 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013521LIBS=$ac_check_lib_save_LIBS
13522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013523{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13524echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13525if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013526 cat >>confdefs.h <<_ACEOF
13527#define HAVE_LIBPSAPI 1
13528_ACEOF
13529
13530 LIBS="-lpsapi $LIBS"
13531
13532fi
13533
13534fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013536{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13537echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13538if test "${ac_cv_search_dlopen+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013540else
13541 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013542cat >conftest.$ac_ext <<_ACEOF
13543/* confdefs.h. */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013548
Reid Spencera773bd52006-08-04 18:18:08 +000013549/* Override any GCC internal prototype to avoid an error.
13550 Use char because int might match the return type of a GCC
13551 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013552#ifdef __cplusplus
13553extern "C"
13554#endif
John Criswell7a73b802003-06-30 21:59:07 +000013555char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013556int
13557main ()
13558{
Reid Spencera773bd52006-08-04 18:18:08 +000013559return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013560 ;
13561 return 0;
13562}
13563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013564for ac_lib in '' dl; do
13565 if test -z "$ac_lib"; then
13566 ac_res="none required"
13567 else
13568 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013570 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013571 rm -f conftest.$ac_objext conftest$ac_exeext
13572if { (ac_try="$ac_link"
13573case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_link") 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13586 { (case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589esac
13590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_try") 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; } &&
13595 { ac_try='test -s conftest$ac_exeext'
13596 { (case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13599esac
13600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_try") 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013605 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013606else
13607 echo "$as_me: failed program was:" >&5
13608sed 's/^/| /' conftest.$ac_ext >&5
13609
13610
John Criswell7a73b802003-06-30 21:59:07 +000013611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013612
Bill Wendlingebcceee2009-04-18 11:20:33 +000013613rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013614 conftest$ac_exeext
13615 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013616 break
John Criswell7a73b802003-06-30 21:59:07 +000013617fi
Reid Spencera773bd52006-08-04 18:18:08 +000013618done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013619if test "${ac_cv_search_dlopen+set}" = set; then
13620 :
Reid Spencera773bd52006-08-04 18:18:08 +000013621else
13622 ac_cv_search_dlopen=no
13623fi
13624rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013625LIBS=$ac_func_search_save_LIBS
13626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013627{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13628echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013629ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013630if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013633cat >>confdefs.h <<\_ACEOF
13634#define HAVE_DLOPEN 1
13635_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013636
13637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013638 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13639echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013640fi
13641
13642
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013643if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013644 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13645echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13646if test "${ac_cv_search_ffi_call+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013648else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013649 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013650cat >conftest.$ac_ext <<_ACEOF
13651/* confdefs.h. */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013655/* end confdefs.h. */
13656
13657/* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13660#ifdef __cplusplus
13661extern "C"
13662#endif
13663char ffi_call ();
13664int
13665main ()
13666{
13667return ffi_call ();
13668 ;
13669 return 0;
13670}
13671_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013672for ac_lib in '' ffi; do
13673 if test -z "$ac_lib"; then
13674 ac_res="none required"
13675 else
13676 ac_res=-l$ac_lib
13677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13678 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679 rm -f conftest.$ac_objext conftest$ac_exeext
13680if { (ac_try="$ac_link"
13681case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684esac
13685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_link") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694 { (case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_try") 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest$ac_exeext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707esac
13708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013713 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013714else
13715 echo "$as_me: failed program was:" >&5
13716sed 's/^/| /' conftest.$ac_ext >&5
13717
13718
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013720
Bill Wendlingebcceee2009-04-18 11:20:33 +000013721rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013722 conftest$ac_exeext
13723 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013724 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013725fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013726done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013727if test "${ac_cv_search_ffi_call+set}" = set; then
13728 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013729else
13730 ac_cv_search_ffi_call=no
13731fi
13732rm conftest.$ac_ext
13733LIBS=$ac_func_search_save_LIBS
13734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013735{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13736echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013737ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013738if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013741cat >>confdefs.h <<\_ACEOF
13742#define HAVE_FFI_CALL 1
13743_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013744
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013745else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013746 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13747echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13748 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013749fi
13750
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013751fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13754echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13755if test "${ac_cv_search_mallinfo+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013757else
13758 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013759cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013765
Reid Spencera773bd52006-08-04 18:18:08 +000013766/* Override any GCC internal prototype to avoid an error.
13767 Use char because int might match the return type of a GCC
13768 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013769#ifdef __cplusplus
13770extern "C"
13771#endif
John Criswell7a73b802003-06-30 21:59:07 +000013772char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013773int
13774main ()
13775{
Reid Spencera773bd52006-08-04 18:18:08 +000013776return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013777 ;
13778 return 0;
13779}
13780_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013781for ac_lib in '' malloc; do
13782 if test -z "$ac_lib"; then
13783 ac_res="none required"
13784 else
13785 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013787 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013788 rm -f conftest.$ac_objext conftest$ac_exeext
13789if { (ac_try="$ac_link"
13790case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793esac
13794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_link") 2>conftest.er1
13796 ac_status=$?
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13803 { (case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_try") 2>&5
13809 ac_status=$?
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest$ac_exeext'
13813 { (case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13816esac
13817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_try") 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013822 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013823else
13824 echo "$as_me: failed program was:" >&5
13825sed 's/^/| /' conftest.$ac_ext >&5
13826
13827
John Criswell7a73b802003-06-30 21:59:07 +000013828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013829
Bill Wendlingebcceee2009-04-18 11:20:33 +000013830rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013831 conftest$ac_exeext
13832 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013833 break
John Criswell7a73b802003-06-30 21:59:07 +000013834fi
Reid Spencera773bd52006-08-04 18:18:08 +000013835done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013836if test "${ac_cv_search_mallinfo+set}" = set; then
13837 :
Reid Spencera773bd52006-08-04 18:18:08 +000013838else
13839 ac_cv_search_mallinfo=no
13840fi
13841rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013842LIBS=$ac_func_search_save_LIBS
13843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013844{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13845echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013846ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013847if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013850cat >>confdefs.h <<\_ACEOF
13851#define HAVE_MALLINFO 1
13852_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013853
13854fi
13855
13856
Reid Spencer0a262ba2005-08-24 10:07:20 +000013857if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013858
13859{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13860echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13861if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013863else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013864 ac_check_lib_save_LIBS=$LIBS
13865LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013866cat >conftest.$ac_ext <<_ACEOF
13867/* confdefs.h. */
13868_ACEOF
13869cat confdefs.h >>conftest.$ac_ext
13870cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013871/* end confdefs.h. */
13872
Reid Spencera773bd52006-08-04 18:18:08 +000013873/* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013876#ifdef __cplusplus
13877extern "C"
13878#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013879char pthread_mutex_init ();
13880int
13881main ()
13882{
Reid Spencera773bd52006-08-04 18:18:08 +000013883return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013884 ;
13885 return 0;
13886}
13887_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013888rm -f conftest.$ac_objext conftest$ac_exeext
13889if { (ac_try="$ac_link"
13890case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893esac
13894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_link") 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13903 { (case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906esac
13907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_try") 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest$ac_exeext'
13913 { (case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13916esac
13917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_try") 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013922 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924 echo "$as_me: failed program was:" >&5
13925sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013928fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013929
Bill Wendlingebcceee2009-04-18 11:20:33 +000013930rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013931 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013932LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013934{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13935echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13936if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013937 cat >>confdefs.h <<_ACEOF
13938#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013939_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013940
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013941 LIBS="-lpthread $LIBS"
13942
Reid Spencer22177fe2005-07-12 15:24:20 +000013943fi
13944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013945 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13946echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13947if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013949else
13950 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013951cat >conftest.$ac_ext <<_ACEOF
13952/* confdefs.h. */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013956/* end confdefs.h. */
13957
Reid Spencera773bd52006-08-04 18:18:08 +000013958/* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013961#ifdef __cplusplus
13962extern "C"
13963#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013964char pthread_mutex_lock ();
13965int
13966main ()
13967{
Reid Spencera773bd52006-08-04 18:18:08 +000013968return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013969 ;
13970 return 0;
13971}
13972_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013973for ac_lib in '' pthread; do
13974 if test -z "$ac_lib"; then
13975 ac_res="none required"
13976 else
13977 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013979 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013980 rm -f conftest.$ac_objext conftest$ac_exeext
13981if { (ac_try="$ac_link"
13982case "(($ac_try" in
13983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984 *) ac_try_echo=$ac_try;;
13985esac
13986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_link") 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995 { (case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998esac
13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_try") 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest$ac_exeext'
14005 { (case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14008esac
14009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_try") 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014014 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014015else
14016 echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
14018
14019
Brian Gaeke5f268f72003-12-05 19:29:01 +000014020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014021
Bill Wendlingebcceee2009-04-18 11:20:33 +000014022rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023 conftest$ac_exeext
14024 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014025 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014026fi
Reid Spencera773bd52006-08-04 18:18:08 +000014027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14029 :
Reid Spencera773bd52006-08-04 18:18:08 +000014030else
14031 ac_cv_search_pthread_mutex_lock=no
14032fi
14033rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014034LIBS=$ac_func_search_save_LIBS
14035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014036{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14037echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014038ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014039if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014042cat >>confdefs.h <<\_ACEOF
14043#define HAVE_PTHREAD_MUTEX_LOCK 1
14044_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014045
14046fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14049echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14050if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014052else
14053 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054cat >conftest.$ac_ext <<_ACEOF
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014059/* end confdefs.h. */
14060
14061/* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14064#ifdef __cplusplus
14065extern "C"
14066#endif
14067char pthread_rwlock_init ();
14068int
14069main ()
14070{
14071return pthread_rwlock_init ();
14072 ;
14073 return 0;
14074}
14075_ACEOF
14076for ac_lib in '' pthread; do
14077 if test -z "$ac_lib"; then
14078 ac_res="none required"
14079 else
14080 ac_res=-l$ac_lib
14081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14082 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014083 rm -f conftest.$ac_objext conftest$ac_exeext
14084if { (ac_try="$ac_link"
14085case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088esac
14089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_link") 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111esac
14112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_try") 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014117 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118else
14119 echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122
Owen Andersonde8aed22009-06-16 18:20:20 +000014123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124
Owen Andersonde8aed22009-06-16 18:20:20 +000014125rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126 conftest$ac_exeext
14127 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014128 break
14129fi
14130done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014131if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14132 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014133else
14134 ac_cv_search_pthread_rwlock_init=no
14135fi
14136rm conftest.$ac_ext
14137LIBS=$ac_func_search_save_LIBS
14138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014139{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14140echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014141ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014145cat >>confdefs.h <<\_ACEOF
14146#define HAVE_PTHREAD_RWLOCK_INIT 1
14147_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014148
14149fi
14150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14152echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14153if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014155else
14156 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014157cat >conftest.$ac_ext <<_ACEOF
14158/* confdefs.h. */
14159_ACEOF
14160cat confdefs.h >>conftest.$ac_ext
14161cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014162/* end confdefs.h. */
14163
14164/* Override any GCC internal prototype to avoid an error.
14165 Use char because int might match the return type of a GCC
14166 builtin and then its argument prototype would still apply. */
14167#ifdef __cplusplus
14168extern "C"
14169#endif
14170char pthread_getspecific ();
14171int
14172main ()
14173{
14174return pthread_getspecific ();
14175 ;
14176 return 0;
14177}
14178_ACEOF
14179for ac_lib in '' pthread; do
14180 if test -z "$ac_lib"; then
14181 ac_res="none required"
14182 else
14183 ac_res=-l$ac_lib
14184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14185 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014186 rm -f conftest.$ac_objext conftest$ac_exeext
14187if { (ac_try="$ac_link"
14188case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191esac
14192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_link") 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14201 { (case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204esac
14205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_try") 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; } &&
14210 { ac_try='test -s conftest$ac_exeext'
14211 { (case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214esac
14215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_try") 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014220 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225
Owen Anderson27fcfe12009-06-25 23:10:26 +000014226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227
Owen Anderson27fcfe12009-06-25 23:10:26 +000014228rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229 conftest$ac_exeext
14230 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014231 break
14232fi
14233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14235 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014236else
14237 ac_cv_search_pthread_getspecific=no
14238fi
14239rm conftest.$ac_ext
14240LIBS=$ac_func_search_save_LIBS
14241fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014242{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14243echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014244ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248cat >>confdefs.h <<\_ACEOF
14249#define HAVE_PTHREAD_GETSPECIFIC 1
14250_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014251
14252fi
14253
Reid Spencer0a262ba2005-08-24 10:07:20 +000014254fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014255
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014256
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014257# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014259 withval=$with_udis86;
14260 USE_UDIS86=1
14261
14262 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014263 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014264 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14265 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266
14267{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14268echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14269if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014271else
14272 ac_check_lib_save_LIBS=$LIBS
14273LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014274cat >conftest.$ac_ext <<_ACEOF
14275/* confdefs.h. */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014279/* end confdefs.h. */
14280
14281/* Override any GCC internal prototype to avoid an error.
14282 Use char because int might match the return type of a GCC
14283 builtin and then its argument prototype would still apply. */
14284#ifdef __cplusplus
14285extern "C"
14286#endif
14287char ud_init ();
14288int
14289main ()
14290{
14291return ud_init ();
14292 ;
14293 return 0;
14294}
14295_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014296rm -f conftest.$ac_objext conftest$ac_exeext
14297if { (ac_try="$ac_link"
14298case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301esac
14302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_link") 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311 { (case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14314esac
14315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_try") 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest$ac_exeext'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14324esac
14325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014330 ac_cv_lib_udis86_ud_init=yes
14331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014332 echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014337
Bill Wendlingebcceee2009-04-18 11:20:33 +000014338rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014340LIBS=$ac_check_lib_save_LIBS
14341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014342{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14343echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14344if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014345 cat >>confdefs.h <<_ACEOF
14346#define HAVE_LIBUDIS86 1
14347_ACEOF
14348
14349 LIBS="-ludis86 $LIBS"
14350
14351else
14352
14353 echo "Error! You need to have libudis86 around."
14354 exit -1
14355
14356fi
14357
14358
14359else
14360 USE_UDIS86=0
14361
14362fi
14363
14364
14365cat >>confdefs.h <<_ACEOF
14366#define USE_UDIS86 $USE_UDIS86
14367_ACEOF
14368
14369
14370
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014371# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014372if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014373 withval=$with_oprofile;
14374 USE_OPROFILE=1
14375
14376 case "$withval" in
14377 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014378 no) llvm_cv_oppath=
14379 USE_OPROFILE=0
14380 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014381 *) llvm_cv_oppath="${withval}/lib/oprofile"
14382 CPPFLAGS="-I${withval}/include";;
14383 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014384 if test -n "$llvm_cv_oppath" ; then
14385 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014386 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14387echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14388if test "${ac_cv_search_bfd_init+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014390else
14391 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014397/* end confdefs.h. */
14398
14399/* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14402#ifdef __cplusplus
14403extern "C"
14404#endif
14405char bfd_init ();
14406int
14407main ()
14408{
14409return bfd_init ();
14410 ;
14411 return 0;
14412}
14413_ACEOF
14414for ac_lib in '' bfd; do
14415 if test -z "$ac_lib"; then
14416 ac_res="none required"
14417 else
14418 ac_res=-l$ac_lib
14419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14420 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014421 rm -f conftest.$ac_objext conftest$ac_exeext
14422if { (ac_try="$ac_link"
14423case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426esac
14427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_link") 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436 { (case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439esac
14440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_try") 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest$ac_exeext'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449esac
14450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014455 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014456else
14457 echo "$as_me: failed program was:" >&5
14458sed 's/^/| /' conftest.$ac_ext >&5
14459
14460
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014462
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014463rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464 conftest$ac_exeext
14465 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014466 break
14467fi
14468done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014469if test "${ac_cv_search_bfd_init+set}" = set; then
14470 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014471else
14472 ac_cv_search_bfd_init=no
14473fi
14474rm conftest.$ac_ext
14475LIBS=$ac_func_search_save_LIBS
14476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014477{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14478echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014479ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014480if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14482
14483fi
14484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14486echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14487if test "${ac_cv_search_op_open_agent+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014489else
14490 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014491cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014496/* end confdefs.h. */
14497
14498/* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14501#ifdef __cplusplus
14502extern "C"
14503#endif
14504char op_open_agent ();
14505int
14506main ()
14507{
14508return op_open_agent ();
14509 ;
14510 return 0;
14511}
14512_ACEOF
14513for ac_lib in '' opagent; do
14514 if test -z "$ac_lib"; then
14515 ac_res="none required"
14516 else
14517 ac_res=-l$ac_lib
14518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14519 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014520 rm -f conftest.$ac_objext conftest$ac_exeext
14521if { (ac_try="$ac_link"
14522case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525esac
14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_link") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538esac
14539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; } &&
14544 { ac_try='test -s conftest$ac_exeext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014554 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014561
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014562rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014563 conftest$ac_exeext
14564 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014565 break
14566fi
14567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014568if test "${ac_cv_search_op_open_agent+set}" = set; then
14569 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014570else
14571 ac_cv_search_op_open_agent=no
14572fi
14573rm conftest.$ac_ext
14574LIBS=$ac_func_search_save_LIBS
14575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014576{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14577echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014578ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14581
14582else
14583
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014584 echo "Error! You need to have libopagent around."
14585 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014586
14587fi
14588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014589 if test "${ac_cv_header_opagent_h+set}" = set; then
14590 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14591echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14592if test "${ac_cv_header_opagent_h+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594fi
14595{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14596echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14597else
14598 # Is the header compilable?
14599{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14600echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14601cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h. */
14607$ac_includes_default
14608#include <opagent.h>
14609_ACEOF
14610rm -f conftest.$ac_objext
14611if { (ac_try="$ac_compile"
14612case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615esac
14616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_compile") 2>conftest.er1
14618 ac_status=$?
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14625 { (case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14628esac
14629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_try") 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest.$ac_objext'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638esac
14639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_header_compiler=yes
14645else
14646 echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014649 ac_header_compiler=no
14650fi
14651
14652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14654echo "${ECHO_T}$ac_header_compiler" >&6; }
14655
14656# Is the header present?
14657{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14658echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14659cat >conftest.$ac_ext <<_ACEOF
14660/* confdefs.h. */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h. */
14665#include <opagent.h>
14666_ACEOF
14667if { (ac_try="$ac_cpp conftest.$ac_ext"
14668case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671esac
14672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } >/dev/null; then
14680 if test -s conftest.err; then
14681 ac_cpp_err=$ac_c_preproc_warn_flag
14682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14683 else
14684 ac_cpp_err=
14685 fi
14686else
14687 ac_cpp_err=yes
14688fi
14689if test -z "$ac_cpp_err"; then
14690 ac_header_preproc=yes
14691else
14692 echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5
14694
14695 ac_header_preproc=no
14696fi
14697
14698rm -f conftest.err conftest.$ac_ext
14699{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14700echo "${ECHO_T}$ac_header_preproc" >&6; }
14701
14702# So? What about this header?
14703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14704 yes:no: )
14705 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14706echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14708echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14709 ac_header_preproc=yes
14710 ;;
14711 no:yes:* )
14712 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14713echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14715echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14717echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14719echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14721echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14723echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14724 ( cat <<\_ASBOX
14725## ----------------------------------- ##
14726## Report this to llvmbugs@cs.uiuc.edu ##
14727## ----------------------------------- ##
14728_ASBOX
14729 ) | sed "s/^/$as_me: WARNING: /" >&2
14730 ;;
14731esac
14732{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14733echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14734if test "${ac_cv_header_opagent_h+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736else
14737 ac_cv_header_opagent_h=$ac_header_preproc
14738fi
14739{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14740echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14741
14742fi
14743if test $ac_cv_header_opagent_h = yes; then
14744 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014745else
14746
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014747 echo "Error! You need to have opagent.h around."
14748 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014749
14750fi
14751
14752
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014753 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014754
14755else
14756
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014757 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014758
14759
14760fi
14761
14762
14763cat >>confdefs.h <<_ACEOF
14764#define USE_OPROFILE $USE_OPROFILE
14765_ACEOF
14766
14767
14768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014769
14770
14771
14772
14773
Reid Spencer59473af2004-12-25 07:31:29 +000014774ac_header_dirent=no
14775for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014776 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14777{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14778echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014782 cat >conftest.$ac_ext <<_ACEOF
14783/* confdefs.h. */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014787/* end confdefs.h. */
14788#include <sys/types.h>
14789#include <$ac_hdr>
14790
14791int
14792main ()
14793{
14794if ((DIR *) 0)
14795return 0;
14796 ;
14797 return 0;
14798}
14799_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014800rm -f conftest.$ac_objext
14801if { (ac_try="$ac_compile"
14802case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14805esac
14806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_compile") 2>conftest.er1
14808 ac_status=$?
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14815 { (case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818esac
14819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_try") 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; } &&
14824 { ac_try='test -s conftest.$ac_objext'
14825 { (case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14828esac
14829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_try") 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014834 eval "$as_ac_Header=yes"
14835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014836 echo "$as_me: failed program was:" >&5
14837sed 's/^/| /' conftest.$ac_ext >&5
14838
14839 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014841
Reid Spencera773bd52006-08-04 18:18:08 +000014842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014844ac_res=`eval echo '${'$as_ac_Header'}'`
14845 { echo "$as_me:$LINENO: result: $ac_res" >&5
14846echo "${ECHO_T}$ac_res" >&6; }
14847if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014848 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014849#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014850_ACEOF
14851
14852ac_header_dirent=$ac_hdr; break
14853fi
14854
14855done
14856# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14857if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14859echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14860if test "${ac_cv_search_opendir+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014862else
14863 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014864cat >conftest.$ac_ext <<_ACEOF
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014869/* end confdefs.h. */
14870
Reid Spencera773bd52006-08-04 18:18:08 +000014871/* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014874#ifdef __cplusplus
14875extern "C"
14876#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014877char opendir ();
14878int
14879main ()
14880{
Reid Spencera773bd52006-08-04 18:18:08 +000014881return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014882 ;
14883 return 0;
14884}
14885_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014886for ac_lib in '' dir; do
14887 if test -z "$ac_lib"; then
14888 ac_res="none required"
14889 else
14890 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014892 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014893 rm -f conftest.$ac_objext conftest$ac_exeext
14894if { (ac_try="$ac_link"
14895case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898esac
14899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_link") 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14908 { (case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911esac
14912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_try") 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921esac
14922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_try") 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014927 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014928else
14929 echo "$as_me: failed program was:" >&5
14930sed 's/^/| /' conftest.$ac_ext >&5
14931
14932
Reid Spencer59473af2004-12-25 07:31:29 +000014933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014934
Bill Wendlingebcceee2009-04-18 11:20:33 +000014935rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014936 conftest$ac_exeext
14937 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014938 break
Reid Spencer59473af2004-12-25 07:31:29 +000014939fi
Reid Spencera773bd52006-08-04 18:18:08 +000014940done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014941if test "${ac_cv_search_opendir+set}" = set; then
14942 :
Reid Spencera773bd52006-08-04 18:18:08 +000014943else
14944 ac_cv_search_opendir=no
14945fi
14946rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014947LIBS=$ac_func_search_save_LIBS
14948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014949{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14950echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014951ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014952if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014954
14955fi
14956
14957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14959echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14960if test "${ac_cv_search_opendir+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014962else
14963 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014964cat >conftest.$ac_ext <<_ACEOF
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014969/* end confdefs.h. */
14970
Reid Spencera773bd52006-08-04 18:18:08 +000014971/* Override any GCC internal prototype to avoid an error.
14972 Use char because int might match the return type of a GCC
14973 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014974#ifdef __cplusplus
14975extern "C"
14976#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014977char opendir ();
14978int
14979main ()
14980{
Reid Spencera773bd52006-08-04 18:18:08 +000014981return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014982 ;
14983 return 0;
14984}
14985_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014986for ac_lib in '' x; do
14987 if test -z "$ac_lib"; then
14988 ac_res="none required"
14989 else
14990 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014992 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014993 rm -f conftest.$ac_objext conftest$ac_exeext
14994if { (ac_try="$ac_link"
14995case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998esac
14999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_link") 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011esac
15012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; } &&
15017 { ac_try='test -s conftest$ac_exeext'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015027 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015028else
15029 echo "$as_me: failed program was:" >&5
15030sed 's/^/| /' conftest.$ac_ext >&5
15031
15032
Reid Spencer59473af2004-12-25 07:31:29 +000015033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015034
Bill Wendlingebcceee2009-04-18 11:20:33 +000015035rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015036 conftest$ac_exeext
15037 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015038 break
Reid Spencer59473af2004-12-25 07:31:29 +000015039fi
Reid Spencera773bd52006-08-04 18:18:08 +000015040done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015041if test "${ac_cv_search_opendir+set}" = set; then
15042 :
Reid Spencera773bd52006-08-04 18:18:08 +000015043else
15044 ac_cv_search_opendir=no
15045fi
15046rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015047LIBS=$ac_func_search_save_LIBS
15048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15050echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015051ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015052if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015054
15055fi
15056
15057fi
15058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015059{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15060echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15061if test "${ac_cv_header_mmap_anon+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015063else
15064 ac_ext=c
15065ac_cpp='$CPP $CPPFLAGS'
15066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068ac_compiler_gnu=$ac_cv_c_compiler_gnu
15069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015070 cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015075/* end confdefs.h. */
15076#include <sys/mman.h>
15077#include <unistd.h>
15078#include <fcntl.h>
15079int
15080main ()
15081{
15082mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15083 ;
15084 return 0;
15085}
15086_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015087rm -f conftest.$ac_objext
15088if { (ac_try="$ac_compile"
15089case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15092esac
15093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_compile") 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105esac
15106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; } &&
15111 { ac_try='test -s conftest.$ac_objext'
15112 { (case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115esac
15116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_try") 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015121 ac_cv_header_mmap_anon=yes
15122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015123 echo "$as_me: failed program was:" >&5
15124sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015128
Reid Spencera773bd52006-08-04 18:18:08 +000015129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015130 ac_ext=c
15131ac_cpp='$CPP $CPPFLAGS'
15132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134ac_compiler_gnu=$ac_cv_c_compiler_gnu
15135
15136
15137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015138{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15139echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015140if test "$ac_cv_header_mmap_anon" = yes; then
15141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015142cat >>confdefs.h <<\_ACEOF
15143#define HAVE_MMAP_ANONYMOUS 1
15144_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015145
15146fi
15147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015148{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15149echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15150if test "${ac_cv_header_stat_broken+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015153 cat >conftest.$ac_ext <<_ACEOF
15154/* confdefs.h. */
15155_ACEOF
15156cat confdefs.h >>conftest.$ac_ext
15157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015158/* end confdefs.h. */
15159#include <sys/types.h>
15160#include <sys/stat.h>
15161
Reid Spencera773bd52006-08-04 18:18:08 +000015162#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015163# if S_ISBLK (S_IFDIR)
15164You lose.
15165# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015166#endif
15167
Reid Spencera773bd52006-08-04 18:18:08 +000015168#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015169# if S_ISBLK (S_IFCHR)
15170You lose.
15171# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015172#endif
15173
Reid Spencera773bd52006-08-04 18:18:08 +000015174#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015175# if S_ISLNK (S_IFREG)
15176You lose.
15177# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015178#endif
15179
Reid Spencera773bd52006-08-04 18:18:08 +000015180#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015181# if S_ISSOCK (S_IFREG)
15182You lose.
15183# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015184#endif
15185
15186_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15188 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015189 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015190else
15191 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015193rm -f conftest*
15194
Reid Spencer59473af2004-12-25 07:31:29 +000015195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015196{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15197echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015198if test $ac_cv_header_stat_broken = yes; then
15199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015200cat >>confdefs.h <<\_ACEOF
15201#define STAT_MACROS_BROKEN 1
15202_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015203
15204fi
15205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015206{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15207echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15208if test "${ac_cv_header_stdc+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015211 cat >conftest.$ac_ext <<_ACEOF
15212/* confdefs.h. */
15213_ACEOF
15214cat confdefs.h >>conftest.$ac_ext
15215cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015217#include <stdlib.h>
15218#include <stdarg.h>
15219#include <string.h>
15220#include <float.h>
15221
John Criswell0c38eaf2003-09-10 15:17:25 +000015222int
15223main ()
15224{
15225
15226 ;
15227 return 0;
15228}
John Criswell7a73b802003-06-30 21:59:07 +000015229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015230rm -f conftest.$ac_objext
15231if { (ac_try="$ac_compile"
15232case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235esac
15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_compile") 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248esac
15249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest.$ac_objext'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258esac
15259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015264 ac_cv_header_stdc=yes
15265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015266 echo "$as_me: failed program was:" >&5
15267sed 's/^/| /' conftest.$ac_ext >&5
15268
15269 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015271
Reid Spencera773bd52006-08-04 18:18:08 +000015272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015273
15274if test $ac_cv_header_stdc = yes; then
15275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276 cat >conftest.$ac_ext <<_ACEOF
15277/* confdefs.h. */
15278_ACEOF
15279cat confdefs.h >>conftest.$ac_ext
15280cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015282#include <string.h>
15283
15284_ACEOF
15285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015286 $EGREP "memchr" >/dev/null 2>&1; then
15287 :
John Criswell7a73b802003-06-30 21:59:07 +000015288else
15289 ac_cv_header_stdc=no
15290fi
15291rm -f conftest*
15292
15293fi
15294
15295if test $ac_cv_header_stdc = yes; then
15296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015297 cat >conftest.$ac_ext <<_ACEOF
15298/* confdefs.h. */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015303#include <stdlib.h>
15304
15305_ACEOF
15306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015307 $EGREP "free" >/dev/null 2>&1; then
15308 :
John Criswell7a73b802003-06-30 21:59:07 +000015309else
15310 ac_cv_header_stdc=no
15311fi
15312rm -f conftest*
15313
15314fi
15315
15316if test $ac_cv_header_stdc = yes; then
15317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015318 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015319 :
15320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015321 cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015326/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015327#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015328#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015329#if ((' ' & 0x0FF) == 0x020)
15330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15332#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015333# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015334 (('a' <= (c) && (c) <= 'i') \
15335 || ('j' <= (c) && (c) <= 'r') \
15336 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15338#endif
15339
15340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15341int
15342main ()
15343{
15344 int i;
15345 for (i = 0; i < 256; i++)
15346 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015347 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015348 return 2;
15349 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015350}
15351_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015352rm -f conftest$ac_exeext
15353if { (ac_try="$ac_link"
15354case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357esac
15358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15363 { (case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366esac
15367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_try") 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 :
John Criswell7a73b802003-06-30 21:59:07 +000015373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015374 echo "$as_me: program exited with status $ac_status" >&5
15375echo "$as_me: failed program was:" >&5
15376sed 's/^/| /' conftest.$ac_ext >&5
15377
15378( exit $ac_status )
15379ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000015382fi
15383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015384
John Criswell7a73b802003-06-30 21:59:07 +000015385fi
15386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015387{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15388echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015389if test $ac_cv_header_stdc = yes; then
15390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015391cat >>confdefs.h <<\_ACEOF
15392#define STDC_HEADERS 1
15393_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015394
15395fi
15396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015397{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15398echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15399if test "${ac_cv_header_sys_wait_h+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015402 cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015408#include <sys/types.h>
15409#include <sys/wait.h>
15410#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015411# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015412#endif
15413#ifndef WIFEXITED
15414# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15415#endif
15416
John Criswell7a73b802003-06-30 21:59:07 +000015417int
15418main ()
15419{
15420 int s;
15421 wait (&s);
15422 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15423 ;
15424 return 0;
15425}
15426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015427rm -f conftest.$ac_objext
15428if { (ac_try="$ac_compile"
15429case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15432esac
15433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_compile") 2>conftest.er1
15435 ac_status=$?
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15442 { (case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445esac
15446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_try") 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } &&
15451 { ac_try='test -s conftest.$ac_objext'
15452 { (case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455esac
15456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_try") 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015461 ac_cv_header_sys_wait_h=yes
15462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015463 echo "$as_me: failed program was:" >&5
15464sed 's/^/| /' conftest.$ac_ext >&5
15465
15466 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015468
Reid Spencera773bd52006-08-04 18:18:08 +000015469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015470fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015471{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15472echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015473if test $ac_cv_header_sys_wait_h = yes; then
15474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015475cat >>confdefs.h <<\_ACEOF
15476#define HAVE_SYS_WAIT_H 1
15477_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015478
15479fi
15480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015481{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15482echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15483if test "${ac_cv_header_time+set}" = set; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015486 cat >conftest.$ac_ext <<_ACEOF
15487/* confdefs.h. */
15488_ACEOF
15489cat confdefs.h >>conftest.$ac_ext
15490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015491/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015492#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015493#include <sys/time.h>
15494#include <time.h>
15495
15496int
15497main ()
15498{
15499if ((struct tm *) 0)
15500return 0;
15501 ;
15502 return 0;
15503}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015504_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015505rm -f conftest.$ac_objext
15506if { (ac_try="$ac_compile"
15507case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15510esac
15511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_compile") 2>conftest.er1
15513 ac_status=$?
15514 grep -v '^ *+' conftest.er1 >conftest.err
15515 rm -f conftest.er1
15516 cat conftest.err >&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
15519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15520 { (case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523esac
15524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_try") 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; } &&
15529 { ac_try='test -s conftest.$ac_objext'
15530 { (case "(($ac_try" in
15531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532 *) ac_try_echo=$ac_try;;
15533esac
15534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535 (eval "$ac_try") 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015539 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015541 echo "$as_me: failed program was:" >&5
15542sed 's/^/| /' conftest.$ac_ext >&5
15543
15544 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015546
Reid Spencera773bd52006-08-04 18:18:08 +000015547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015549{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15550echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015551if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015553cat >>confdefs.h <<\_ACEOF
15554#define TIME_WITH_SYS_TIME 1
15555_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015556
15557fi
15558
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015560
15561
15562
15563
15564
15565
Reid Spencer59473af2004-12-25 07:31:29 +000015566for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015567do
15568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574fi
15575ac_res=`eval echo '${'$as_ac_Header'}'`
15576 { echo "$as_me:$LINENO: result: $ac_res" >&5
15577echo "${ECHO_T}$ac_res" >&6; }
15578else
15579 # Is the header compilable?
15580{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15582cat >conftest.$ac_ext <<_ACEOF
15583/* confdefs.h. */
15584_ACEOF
15585cat confdefs.h >>conftest.$ac_ext
15586cat >>conftest.$ac_ext <<_ACEOF
15587/* end confdefs.h. */
15588$ac_includes_default
15589#include <$ac_header>
15590_ACEOF
15591rm -f conftest.$ac_objext
15592if { (ac_try="$ac_compile"
15593case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596esac
15597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_compile") 2>conftest.er1
15599 ac_status=$?
15600 grep -v '^ *+' conftest.er1 >conftest.err
15601 rm -f conftest.er1
15602 cat conftest.err >&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15606 { (case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15609esac
15610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_try") 2>&5
15612 ac_status=$?
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; } &&
15615 { ac_try='test -s conftest.$ac_objext'
15616 { (case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619esac
15620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_try") 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15625 ac_header_compiler=yes
15626else
15627 echo "$as_me: failed program was:" >&5
15628sed 's/^/| /' conftest.$ac_ext >&5
15629
15630 ac_header_compiler=no
15631fi
15632
15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15635echo "${ECHO_T}$ac_header_compiler" >&6; }
15636
15637# Is the header present?
15638{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15640cat >conftest.$ac_ext <<_ACEOF
15641/* confdefs.h. */
15642_ACEOF
15643cat confdefs.h >>conftest.$ac_ext
15644cat >>conftest.$ac_ext <<_ACEOF
15645/* end confdefs.h. */
15646#include <$ac_header>
15647_ACEOF
15648if { (ac_try="$ac_cpp conftest.$ac_ext"
15649case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15652esac
15653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev/null; then
15661 if test -s conftest.err; then
15662 ac_cpp_err=$ac_c_preproc_warn_flag
15663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15664 else
15665 ac_cpp_err=
15666 fi
15667else
15668 ac_cpp_err=yes
15669fi
15670if test -z "$ac_cpp_err"; then
15671 ac_header_preproc=yes
15672else
15673 echo "$as_me: failed program was:" >&5
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 ac_header_preproc=no
15677fi
15678
15679rm -f conftest.err conftest.$ac_ext
15680{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15681echo "${ECHO_T}$ac_header_preproc" >&6; }
15682
15683# So? What about this header?
15684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15685 yes:no: )
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15690 ac_header_preproc=yes
15691 ;;
15692 no:yes:* )
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15705 ( cat <<\_ASBOX
15706## ----------------------------------- ##
15707## Report this to llvmbugs@cs.uiuc.edu ##
15708## ----------------------------------- ##
15709_ASBOX
15710 ) | sed "s/^/$as_me: WARNING: /" >&2
15711 ;;
15712esac
15713{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15717else
15718 eval "$as_ac_Header=\$ac_header_preproc"
15719fi
15720ac_res=`eval echo '${'$as_ac_Header'}'`
15721 { echo "$as_me:$LINENO: result: $ac_res" >&5
15722echo "${ECHO_T}$ac_res" >&6; }
15723
15724fi
15725if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015726 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015728_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015729
15730fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015731
Reid Spencer59473af2004-12-25 07:31:29 +000015732done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015734
15735
15736
15737
15738
15739
Douglas Gregor071d73d2009-05-18 17:21:34 +000015740for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015741do
15742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15748fi
15749ac_res=`eval echo '${'$as_ac_Header'}'`
15750 { echo "$as_me:$LINENO: result: $ac_res" >&5
15751echo "${ECHO_T}$ac_res" >&6; }
15752else
15753 # Is the header compilable?
15754{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15756cat >conftest.$ac_ext <<_ACEOF
15757/* confdefs.h. */
15758_ACEOF
15759cat confdefs.h >>conftest.$ac_ext
15760cat >>conftest.$ac_ext <<_ACEOF
15761/* end confdefs.h. */
15762$ac_includes_default
15763#include <$ac_header>
15764_ACEOF
15765rm -f conftest.$ac_objext
15766if { (ac_try="$ac_compile"
15767case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15770esac
15771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_compile") 2>conftest.er1
15773 ac_status=$?
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783esac
15784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
15790 { (case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15793esac
15794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_try") 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 ac_header_compiler=yes
15800else
15801 echo "$as_me: failed program was:" >&5
15802sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 ac_header_compiler=no
15805fi
15806
15807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15809echo "${ECHO_T}$ac_header_compiler" >&6; }
15810
15811# Is the header present?
15812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15814cat >conftest.$ac_ext <<_ACEOF
15815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
15820#include <$ac_header>
15821_ACEOF
15822if { (ac_try="$ac_cpp conftest.$ac_ext"
15823case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826esac
15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } >/dev/null; then
15835 if test -s conftest.err; then
15836 ac_cpp_err=$ac_c_preproc_warn_flag
15837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15838 else
15839 ac_cpp_err=
15840 fi
15841else
15842 ac_cpp_err=yes
15843fi
15844if test -z "$ac_cpp_err"; then
15845 ac_header_preproc=yes
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850 ac_header_preproc=no
15851fi
15852
15853rm -f conftest.err conftest.$ac_ext
15854{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15855echo "${ECHO_T}$ac_header_preproc" >&6; }
15856
15857# So? What about this header?
15858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15859 yes:no: )
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15863echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15864 ac_header_preproc=yes
15865 ;;
15866 no:yes:* )
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15868echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15870echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15872echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15874echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15878echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15879 ( cat <<\_ASBOX
15880## ----------------------------------- ##
15881## Report this to llvmbugs@cs.uiuc.edu ##
15882## ----------------------------------- ##
15883_ASBOX
15884 ) | sed "s/^/$as_me: WARNING: /" >&2
15885 ;;
15886esac
15887{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891else
15892 eval "$as_ac_Header=\$ac_header_preproc"
15893fi
15894ac_res=`eval echo '${'$as_ac_Header'}'`
15895 { echo "$as_me:$LINENO: result: $ac_res" >&5
15896echo "${ECHO_T}$ac_res" >&6; }
15897
15898fi
15899if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015900 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015902_ACEOF
15903
15904fi
15905
15906done
15907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015908
15909
Douglas Gregor071d73d2009-05-18 17:21:34 +000015910for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015911do
15912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918fi
15919ac_res=`eval echo '${'$as_ac_Header'}'`
15920 { echo "$as_me:$LINENO: result: $ac_res" >&5
15921echo "${ECHO_T}$ac_res" >&6; }
15922else
15923 # Is the header compilable?
15924{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15926cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932$ac_includes_default
15933#include <$ac_header>
15934_ACEOF
15935rm -f conftest.$ac_objext
15936if { (ac_try="$ac_compile"
15937case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940esac
15941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_compile") 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_try") 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; } &&
15959 { ac_try='test -s conftest.$ac_objext'
15960 { (case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15963esac
15964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_try") 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_header_compiler=yes
15970else
15971 echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 ac_header_compiler=no
15975fi
15976
15977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979echo "${ECHO_T}$ac_header_compiler" >&6; }
15980
15981# Is the header present?
15982{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15984cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990#include <$ac_header>
15991_ACEOF
15992if { (ac_try="$ac_cpp conftest.$ac_ext"
15993case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15996esac
15997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15999 ac_status=$?
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } >/dev/null; then
16005 if test -s conftest.err; then
16006 ac_cpp_err=$ac_c_preproc_warn_flag
16007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16008 else
16009 ac_cpp_err=
16010 fi
16011else
16012 ac_cpp_err=yes
16013fi
16014if test -z "$ac_cpp_err"; then
16015 ac_header_preproc=yes
16016else
16017 echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020 ac_header_preproc=no
16021fi
16022
16023rm -f conftest.err conftest.$ac_ext
16024{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025echo "${ECHO_T}$ac_header_preproc" >&6; }
16026
16027# So? What about this header?
16028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16029 yes:no: )
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034 ac_header_preproc=yes
16035 ;;
16036 no:yes:* )
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16040echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16044echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16049 ( cat <<\_ASBOX
16050## ----------------------------------- ##
16051## Report this to llvmbugs@cs.uiuc.edu ##
16052## ----------------------------------- ##
16053_ASBOX
16054 ) | sed "s/^/$as_me: WARNING: /" >&2
16055 ;;
16056esac
16057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16061else
16062 eval "$as_ac_Header=\$ac_header_preproc"
16063fi
16064ac_res=`eval echo '${'$as_ac_Header'}'`
16065 { echo "$as_me:$LINENO: result: $ac_res" >&5
16066echo "${ECHO_T}$ac_res" >&6; }
16067
16068fi
16069if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016070 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016072_ACEOF
16073
16074fi
16075
16076done
Reid Spencer59473af2004-12-25 07:31:29 +000016077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016078
16079
16080
16081
Reid Spencerbe3e4192007-08-17 05:45:26 +000016082for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016083do
16084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090fi
16091ac_res=`eval echo '${'$as_ac_Header'}'`
16092 { echo "$as_me:$LINENO: result: $ac_res" >&5
16093echo "${ECHO_T}$ac_res" >&6; }
16094else
16095 # Is the header compilable?
16096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16098cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105#include <$ac_header>
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (ac_try="$ac_compile"
16109case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16112esac
16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_header_compiler=yes
16142else
16143 echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_header_compiler=no
16147fi
16148
16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151echo "${ECHO_T}$ac_header_compiler" >&6; }
16152
16153# Is the header present?
16154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16156cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h. */
16162#include <$ac_header>
16163_ACEOF
16164if { (ac_try="$ac_cpp conftest.$ac_ext"
16165case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16168esac
16169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171 ac_status=$?
16172 grep -v '^ *+' conftest.er1 >conftest.err
16173 rm -f conftest.er1
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } >/dev/null; then
16177 if test -s conftest.err; then
16178 ac_cpp_err=$ac_c_preproc_warn_flag
16179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16180 else
16181 ac_cpp_err=
16182 fi
16183else
16184 ac_cpp_err=yes
16185fi
16186if test -z "$ac_cpp_err"; then
16187 ac_header_preproc=yes
16188else
16189 echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 ac_header_preproc=no
16193fi
16194
16195rm -f conftest.err conftest.$ac_ext
16196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197echo "${ECHO_T}$ac_header_preproc" >&6; }
16198
16199# So? What about this header?
16200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201 yes:no: )
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16206 ac_header_preproc=yes
16207 ;;
16208 no:yes:* )
16209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16221 ( cat <<\_ASBOX
16222## ----------------------------------- ##
16223## Report this to llvmbugs@cs.uiuc.edu ##
16224## ----------------------------------- ##
16225_ASBOX
16226 ) | sed "s/^/$as_me: WARNING: /" >&2
16227 ;;
16228esac
16229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16233else
16234 eval "$as_ac_Header=\$ac_header_preproc"
16235fi
16236ac_res=`eval echo '${'$as_ac_Header'}'`
16237 { echo "$as_me:$LINENO: result: $ac_res" >&5
16238echo "${ECHO_T}$ac_res" >&6; }
16239
16240fi
16241if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016242 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016244_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016245
16246fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016247
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016248done
16249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016250
16251
16252
16253
Douglas Gregor01746742009-05-11 18:05:52 +000016254for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016255do
16256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16262fi
16263ac_res=`eval echo '${'$as_ac_Header'}'`
16264 { echo "$as_me:$LINENO: result: $ac_res" >&5
16265echo "${ECHO_T}$ac_res" >&6; }
16266else
16267 # Is the header compilable?
16268{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16270cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276$ac_includes_default
16277#include <$ac_header>
16278_ACEOF
16279rm -f conftest.$ac_objext
16280if { (ac_try="$ac_compile"
16281case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284esac
16285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_compile") 2>conftest.er1
16287 ac_status=$?
16288 grep -v '^ *+' conftest.er1 >conftest.err
16289 rm -f conftest.er1
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16294 { (case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297esac
16298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_try") 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest.$ac_objext'
16304 { (case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307esac
16308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_try") 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_header_compiler=yes
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_header_compiler=no
16319fi
16320
16321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16323echo "${ECHO_T}$ac_header_compiler" >&6; }
16324
16325# Is the header present?
16326{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16328cat >conftest.$ac_ext <<_ACEOF
16329/* confdefs.h. */
16330_ACEOF
16331cat confdefs.h >>conftest.$ac_ext
16332cat >>conftest.$ac_ext <<_ACEOF
16333/* end confdefs.h. */
16334#include <$ac_header>
16335_ACEOF
16336if { (ac_try="$ac_cpp conftest.$ac_ext"
16337case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340esac
16341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } >/dev/null; then
16349 if test -s conftest.err; then
16350 ac_cpp_err=$ac_c_preproc_warn_flag
16351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16352 else
16353 ac_cpp_err=
16354 fi
16355else
16356 ac_cpp_err=yes
16357fi
16358if test -z "$ac_cpp_err"; then
16359 ac_header_preproc=yes
16360else
16361 echo "$as_me: failed program was:" >&5
16362sed 's/^/| /' conftest.$ac_ext >&5
16363
16364 ac_header_preproc=no
16365fi
16366
16367rm -f conftest.err conftest.$ac_ext
16368{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16369echo "${ECHO_T}$ac_header_preproc" >&6; }
16370
16371# So? What about this header?
16372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16373 yes:no: )
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16378 ac_header_preproc=yes
16379 ;;
16380 no:yes:* )
16381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16384echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16388echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16393 ( cat <<\_ASBOX
16394## ----------------------------------- ##
16395## Report this to llvmbugs@cs.uiuc.edu ##
16396## ----------------------------------- ##
16397_ASBOX
16398 ) | sed "s/^/$as_me: WARNING: /" >&2
16399 ;;
16400esac
16401{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16405else
16406 eval "$as_ac_Header=\$ac_header_preproc"
16407fi
16408ac_res=`eval echo '${'$as_ac_Header'}'`
16409 { echo "$as_me:$LINENO: result: $ac_res" >&5
16410echo "${ECHO_T}$ac_res" >&6; }
16411
16412fi
16413if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016414 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016416_ACEOF
16417
16418fi
16419
16420done
16421
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016422
16423for ac_header in valgrind/valgrind.h
16424do
16425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16431fi
16432ac_res=`eval echo '${'$as_ac_Header'}'`
16433 { echo "$as_me:$LINENO: result: $ac_res" >&5
16434echo "${ECHO_T}$ac_res" >&6; }
16435else
16436 # Is the header compilable?
16437{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16439cat >conftest.$ac_ext <<_ACEOF
16440/* confdefs.h. */
16441_ACEOF
16442cat confdefs.h >>conftest.$ac_ext
16443cat >>conftest.$ac_ext <<_ACEOF
16444/* end confdefs.h. */
16445$ac_includes_default
16446#include <$ac_header>
16447_ACEOF
16448rm -f conftest.$ac_objext
16449if { (ac_try="$ac_compile"
16450case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453esac
16454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_compile") 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
16462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16463 { (case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16466esac
16467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_try") 2>&5
16469 ac_status=$?
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; } &&
16472 { ac_try='test -s conftest.$ac_objext'
16473 { (case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476esac
16477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_try") 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16482 ac_header_compiler=yes
16483else
16484 echo "$as_me: failed program was:" >&5
16485sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 ac_header_compiler=no
16488fi
16489
16490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16492echo "${ECHO_T}$ac_header_compiler" >&6; }
16493
16494# Is the header present?
16495{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16497cat >conftest.$ac_ext <<_ACEOF
16498/* confdefs.h. */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h. */
16503#include <$ac_header>
16504_ACEOF
16505if { (ac_try="$ac_cpp conftest.$ac_ext"
16506case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16509esac
16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16512 ac_status=$?
16513 grep -v '^ *+' conftest.er1 >conftest.err
16514 rm -f conftest.er1
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } >/dev/null; then
16518 if test -s conftest.err; then
16519 ac_cpp_err=$ac_c_preproc_warn_flag
16520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16521 else
16522 ac_cpp_err=
16523 fi
16524else
16525 ac_cpp_err=yes
16526fi
16527if test -z "$ac_cpp_err"; then
16528 ac_header_preproc=yes
16529else
16530 echo "$as_me: failed program was:" >&5
16531sed 's/^/| /' conftest.$ac_ext >&5
16532
16533 ac_header_preproc=no
16534fi
16535
16536rm -f conftest.err conftest.$ac_ext
16537{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16538echo "${ECHO_T}$ac_header_preproc" >&6; }
16539
16540# So? What about this header?
16541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16542 yes:no: )
16543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16546echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16547 ac_header_preproc=yes
16548 ;;
16549 no:yes:* )
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16551echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16553echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16555echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16557echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16561echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16562 ( cat <<\_ASBOX
16563## ----------------------------------- ##
16564## Report this to llvmbugs@cs.uiuc.edu ##
16565## ----------------------------------- ##
16566_ASBOX
16567 ) | sed "s/^/$as_me: WARNING: /" >&2
16568 ;;
16569esac
16570{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574else
16575 eval "$as_ac_Header=\$ac_header_preproc"
16576fi
16577ac_res=`eval echo '${'$as_ac_Header'}'`
16578 { echo "$as_me:$LINENO: result: $ac_res" >&5
16579echo "${ECHO_T}$ac_res" >&6; }
16580
16581fi
16582if test `eval echo '${'$as_ac_Header'}'` = yes; then
16583 cat >>confdefs.h <<_ACEOF
16584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16585_ACEOF
16586
16587fi
16588
16589done
16590
Reid Spencer0a262ba2005-08-24 10:07:20 +000016591if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016592
16593for ac_header in pthread.h
16594do
16595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16601fi
16602ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604echo "${ECHO_T}$ac_res" >&6; }
16605else
16606 # Is the header compilable?
16607{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16609cat >conftest.$ac_ext <<_ACEOF
16610/* confdefs.h. */
16611_ACEOF
16612cat confdefs.h >>conftest.$ac_ext
16613cat >>conftest.$ac_ext <<_ACEOF
16614/* end confdefs.h. */
16615$ac_includes_default
16616#include <$ac_header>
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (ac_try="$ac_compile"
16620case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623esac
16624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16626 ac_status=$?
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633 { (case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_try") 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16646esac
16647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_try") 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_header_compiler=yes
16653else
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
16657 ac_header_compiler=no
16658fi
16659
16660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16662echo "${ECHO_T}$ac_header_compiler" >&6; }
16663
16664# Is the header present?
16665{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16667cat >conftest.$ac_ext <<_ACEOF
16668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */
16673#include <$ac_header>
16674_ACEOF
16675if { (ac_try="$ac_cpp conftest.$ac_ext"
16676case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } >/dev/null; then
16688 if test -s conftest.err; then
16689 ac_cpp_err=$ac_c_preproc_warn_flag
16690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16691 else
16692 ac_cpp_err=
16693 fi
16694else
16695 ac_cpp_err=yes
16696fi
16697if test -z "$ac_cpp_err"; then
16698 ac_header_preproc=yes
16699else
16700 echo "$as_me: failed program was:" >&5
16701sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 ac_header_preproc=no
16704fi
16705
16706rm -f conftest.err conftest.$ac_ext
16707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708echo "${ECHO_T}$ac_header_preproc" >&6; }
16709
16710# So? What about this header?
16711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16712 yes:no: )
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16717 ac_header_preproc=yes
16718 ;;
16719 no:yes:* )
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16732 ( cat <<\_ASBOX
16733## ----------------------------------- ##
16734## Report this to llvmbugs@cs.uiuc.edu ##
16735## ----------------------------------- ##
16736_ASBOX
16737 ) | sed "s/^/$as_me: WARNING: /" >&2
16738 ;;
16739esac
16740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744else
16745 eval "$as_ac_Header=\$ac_header_preproc"
16746fi
16747ac_res=`eval echo '${'$as_ac_Header'}'`
16748 { echo "$as_me:$LINENO: result: $ac_res" >&5
16749echo "${ECHO_T}$ac_res" >&6; }
16750
16751fi
16752if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016753 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016755_ACEOF
16756 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016757
16758else
16759 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016760
16761fi
16762
Reid Spencerbe3e4192007-08-17 05:45:26 +000016763done
Reid Spencer1000b732006-12-01 00:37:14 +000016764
16765else
16766 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016767
16768fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016769
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016770if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016771
16772
16773for ac_header in ffi.h ffi/ffi.h
16774do
16775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781fi
16782ac_res=`eval echo '${'$as_ac_Header'}'`
16783 { echo "$as_me:$LINENO: result: $ac_res" >&5
16784echo "${ECHO_T}$ac_res" >&6; }
16785else
16786 # Is the header compilable?
16787{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16789cat >conftest.$ac_ext <<_ACEOF
16790/* confdefs.h. */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h. */
16795$ac_includes_default
16796#include <$ac_header>
16797_ACEOF
16798rm -f conftest.$ac_objext
16799if { (ac_try="$ac_compile"
16800case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803esac
16804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_compile") 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816esac
16817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826esac
16827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 ac_header_compiler=yes
16833else
16834 echo "$as_me: failed program was:" >&5
16835sed 's/^/| /' conftest.$ac_ext >&5
16836
16837 ac_header_compiler=no
16838fi
16839
16840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16842echo "${ECHO_T}$ac_header_compiler" >&6; }
16843
16844# Is the header present?
16845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16847cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h. */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h. */
16853#include <$ac_header>
16854_ACEOF
16855if { (ac_try="$ac_cpp conftest.$ac_ext"
16856case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } >/dev/null; then
16868 if test -s conftest.err; then
16869 ac_cpp_err=$ac_c_preproc_warn_flag
16870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16871 else
16872 ac_cpp_err=
16873 fi
16874else
16875 ac_cpp_err=yes
16876fi
16877if test -z "$ac_cpp_err"; then
16878 ac_header_preproc=yes
16879else
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
16883 ac_header_preproc=no
16884fi
16885
16886rm -f conftest.err conftest.$ac_ext
16887{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16888echo "${ECHO_T}$ac_header_preproc" >&6; }
16889
16890# So? What about this header?
16891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16892 yes:no: )
16893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16897 ac_header_preproc=yes
16898 ;;
16899 no:yes:* )
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16912 ( cat <<\_ASBOX
16913## ----------------------------------- ##
16914## Report this to llvmbugs@cs.uiuc.edu ##
16915## ----------------------------------- ##
16916_ASBOX
16917 ) | sed "s/^/$as_me: WARNING: /" >&2
16918 ;;
16919esac
16920{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16924else
16925 eval "$as_ac_Header=\$ac_header_preproc"
16926fi
16927ac_res=`eval echo '${'$as_ac_Header'}'`
16928 { echo "$as_me:$LINENO: result: $ac_res" >&5
16929echo "${ECHO_T}$ac_res" >&6; }
16930
16931fi
16932if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016933 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016935_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016936
16937fi
16938
16939done
16940
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016941fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016942
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016943
Eric Christopher654dee42010-06-22 21:01:04 +000016944for ac_header in CrashReporterClient.h
16945do
16946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952fi
16953ac_res=`eval echo '${'$as_ac_Header'}'`
16954 { echo "$as_me:$LINENO: result: $ac_res" >&5
16955echo "${ECHO_T}$ac_res" >&6; }
16956else
16957 # Is the header compilable?
16958{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16960cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966$ac_includes_default
16967#include <$ac_header>
16968_ACEOF
16969rm -f conftest.$ac_objext
16970if { (ac_try="$ac_compile"
16971case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974esac
16975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_compile") 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984 { (case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987esac
16988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_try") 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997esac
16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_header_compiler=yes
17004else
17005 echo "$as_me: failed program was:" >&5
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
17008 ac_header_compiler=no
17009fi
17010
17011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17013echo "${ECHO_T}$ac_header_compiler" >&6; }
17014
17015# Is the header present?
17016{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17018cat >conftest.$ac_ext <<_ACEOF
17019/* confdefs.h. */
17020_ACEOF
17021cat confdefs.h >>conftest.$ac_ext
17022cat >>conftest.$ac_ext <<_ACEOF
17023/* end confdefs.h. */
17024#include <$ac_header>
17025_ACEOF
17026if { (ac_try="$ac_cpp conftest.$ac_ext"
17027case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030esac
17031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } >/dev/null; then
17039 if test -s conftest.err; then
17040 ac_cpp_err=$ac_c_preproc_warn_flag
17041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17042 else
17043 ac_cpp_err=
17044 fi
17045else
17046 ac_cpp_err=yes
17047fi
17048if test -z "$ac_cpp_err"; then
17049 ac_header_preproc=yes
17050else
17051 echo "$as_me: failed program was:" >&5
17052sed 's/^/| /' conftest.$ac_ext >&5
17053
17054 ac_header_preproc=no
17055fi
17056
17057rm -f conftest.err conftest.$ac_ext
17058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17059echo "${ECHO_T}$ac_header_preproc" >&6; }
17060
17061# So? What about this header?
17062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17063 yes:no: )
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17068 ac_header_preproc=yes
17069 ;;
17070 no:yes:* )
17071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17078echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17083 ( cat <<\_ASBOX
17084## ----------------------------------- ##
17085## Report this to llvmbugs@cs.uiuc.edu ##
17086## ----------------------------------- ##
17087_ASBOX
17088 ) | sed "s/^/$as_me: WARNING: /" >&2
17089 ;;
17090esac
17091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095else
17096 eval "$as_ac_Header=\$ac_header_preproc"
17097fi
17098ac_res=`eval echo '${'$as_ac_Header'}'`
17099 { echo "$as_me:$LINENO: result: $ac_res" >&5
17100echo "${ECHO_T}$ac_res" >&6; }
17101
17102fi
17103if test `eval echo '${'$as_ac_Header'}'` = yes; then
17104 cat >>confdefs.h <<_ACEOF
17105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17106_ACEOF
17107
17108fi
17109
17110done
17111
17112
17113
Owen Anderson009f20a2010-07-19 19:24:55 +000017114for ac_header in mach-o/getsect.h
17115do
17116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17122fi
17123ac_res=`eval echo '${'$as_ac_Header'}'`
17124 { echo "$as_me:$LINENO: result: $ac_res" >&5
17125echo "${ECHO_T}$ac_res" >&6; }
17126else
17127 # Is the header compilable?
17128{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17129echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17130cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
17136$ac_includes_default
17137#include <$ac_header>
17138_ACEOF
17139rm -f conftest.$ac_objext
17140if { (ac_try="$ac_compile"
17141case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17144esac
17145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_compile") 2>conftest.er1
17147 ac_status=$?
17148 grep -v '^ *+' conftest.er1 >conftest.err
17149 rm -f conftest.er1
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } &&
17153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest.$ac_objext'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17167esac
17168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_header_compiler=yes
17174else
17175 echo "$as_me: failed program was:" >&5
17176sed 's/^/| /' conftest.$ac_ext >&5
17177
17178 ac_header_compiler=no
17179fi
17180
17181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17183echo "${ECHO_T}$ac_header_compiler" >&6; }
17184
17185# Is the header present?
17186{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17188cat >conftest.$ac_ext <<_ACEOF
17189/* confdefs.h. */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h. */
17194#include <$ac_header>
17195_ACEOF
17196if { (ac_try="$ac_cpp conftest.$ac_ext"
17197case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200esac
17201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } >/dev/null; then
17209 if test -s conftest.err; then
17210 ac_cpp_err=$ac_c_preproc_warn_flag
17211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17212 else
17213 ac_cpp_err=
17214 fi
17215else
17216 ac_cpp_err=yes
17217fi
17218if test -z "$ac_cpp_err"; then
17219 ac_header_preproc=yes
17220else
17221 echo "$as_me: failed program was:" >&5
17222sed 's/^/| /' conftest.$ac_ext >&5
17223
17224 ac_header_preproc=no
17225fi
17226
17227rm -f conftest.err conftest.$ac_ext
17228{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17229echo "${ECHO_T}$ac_header_preproc" >&6; }
17230
17231# So? What about this header?
17232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17233 yes:no: )
17234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17238 ac_header_preproc=yes
17239 ;;
17240 no:yes:* )
17241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17253 ( cat <<\_ASBOX
17254## ----------------------------------- ##
17255## Report this to llvmbugs@cs.uiuc.edu ##
17256## ----------------------------------- ##
17257_ASBOX
17258 ) | sed "s/^/$as_me: WARNING: /" >&2
17259 ;;
17260esac
17261{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17265else
17266 eval "$as_ac_Header=\$ac_header_preproc"
17267fi
17268ac_res=`eval echo '${'$as_ac_Header'}'`
17269 { echo "$as_me:$LINENO: result: $ac_res" >&5
17270echo "${ECHO_T}$ac_res" >&6; }
17271
17272fi
17273if test `eval echo '${'$as_ac_Header'}'` = yes; then
17274 cat >>confdefs.h <<_ACEOF
17275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17276_ACEOF
17277
17278fi
17279
17280done
17281
17282
17283
Reid Spencer8085cff2005-01-16 02:58:39 +000017284
Torok Edwin871384f2010-01-26 08:50:50 +000017285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017286 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17287echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17288if test "${ac_cv_huge_val_sanity+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017290else
17291
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017292 ac_ext=cpp
17293ac_cpp='$CXXCPP $CPPFLAGS'
17294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017297
Eric Christopherc7718502010-03-02 05:06:54 +000017298 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017299 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017300 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017301 ac_cv_huge_val_sanity=yes
17302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017303 cat >conftest.$ac_ext <<_ACEOF
17304/* confdefs.h. */
17305_ACEOF
17306cat confdefs.h >>conftest.$ac_ext
17307cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017308/* end confdefs.h. */
17309#include <math.h>
17310int
17311main ()
17312{
17313double x = HUGE_VAL; return x != x;
17314 ;
17315 return 0;
17316}
17317_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017318rm -f conftest$ac_exeext
17319if { (ac_try="$ac_link"
17320case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323esac
17324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17329 { (case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17332esac
17333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_try") 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017338 ac_cv_huge_val_sanity=yes
17339else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017340 echo "$as_me: program exited with status $ac_status" >&5
17341echo "$as_me: failed program was:" >&5
17342sed 's/^/| /' conftest.$ac_ext >&5
17343
17344( exit $ac_status )
17345ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017347rm -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 +000017348fi
17349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017350
Eric Christopherc7718502010-03-02 05:06:54 +000017351 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017352 ac_ext=c
17353ac_cpp='$CPP $CPPFLAGS'
17354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356ac_compiler_gnu=$ac_cv_c_compiler_gnu
17357
17358
17359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017360{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17361echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017362 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17363
17364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017365{ echo "$as_me:$LINENO: checking for pid_t" >&5
17366echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17367if test "${ac_cv_type_pid_t+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369else
17370 cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h. */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h. */
17376$ac_includes_default
17377typedef pid_t ac__type_new_;
17378int
17379main ()
17380{
17381if ((ac__type_new_ *) 0)
17382 return 0;
17383if (sizeof (ac__type_new_))
17384 return 0;
17385 ;
17386 return 0;
17387}
17388_ACEOF
17389rm -f conftest.$ac_objext
17390if { (ac_try="$ac_compile"
17391case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394esac
17395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_compile") 2>conftest.er1
17397 ac_status=$?
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
17403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17404 { (case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_try") 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; } &&
17413 { ac_try='test -s conftest.$ac_objext'
17414 { (case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17417esac
17418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_try") 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_type_pid_t=yes
17424else
17425 echo "$as_me: failed program was:" >&5
17426sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017428 ac_cv_type_pid_t=no
17429fi
17430
17431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17432fi
17433{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17434echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17435if test $ac_cv_type_pid_t = yes; then
17436 :
John Criswell7a73b802003-06-30 21:59:07 +000017437else
17438
17439cat >>confdefs.h <<_ACEOF
17440#define pid_t int
17441_ACEOF
17442
17443fi
17444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017445{ echo "$as_me:$LINENO: checking for size_t" >&5
17446echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17447if test "${ac_cv_type_size_t+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449else
17450 cat >conftest.$ac_ext <<_ACEOF
17451/* confdefs.h. */
17452_ACEOF
17453cat confdefs.h >>conftest.$ac_ext
17454cat >>conftest.$ac_ext <<_ACEOF
17455/* end confdefs.h. */
17456$ac_includes_default
17457typedef size_t ac__type_new_;
17458int
17459main ()
17460{
17461if ((ac__type_new_ *) 0)
17462 return 0;
17463if (sizeof (ac__type_new_))
17464 return 0;
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469rm -f conftest.$ac_objext
17470if { (ac_try="$ac_compile"
17471case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474esac
17475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_compile") 2>conftest.er1
17477 ac_status=$?
17478 grep -v '^ *+' conftest.er1 >conftest.err
17479 rm -f conftest.er1
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } &&
17483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17484 { (case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487esac
17488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_try") 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest.$ac_objext'
17494 { (case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17497esac
17498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499 (eval "$ac_try") 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_cv_type_size_t=yes
17504else
17505 echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017508 ac_cv_type_size_t=no
17509fi
17510
17511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512fi
17513{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17514echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17515if test $ac_cv_type_size_t = yes; then
17516 :
John Criswell7a73b802003-06-30 21:59:07 +000017517else
17518
17519cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017520#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017521_ACEOF
17522
17523fi
17524
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017525
17526cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017527#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017528_ACEOF
17529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017530{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17531echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17532if test "${ac_cv_struct_tm+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017535 cat >conftest.$ac_ext <<_ACEOF
17536/* confdefs.h. */
17537_ACEOF
17538cat confdefs.h >>conftest.$ac_ext
17539cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017540/* end confdefs.h. */
17541#include <sys/types.h>
17542#include <time.h>
17543
17544int
17545main ()
17546{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017547struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017548 ;
17549 return 0;
17550}
17551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017552rm -f conftest.$ac_objext
17553if { (ac_try="$ac_compile"
17554case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17557esac
17558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_compile") 2>conftest.er1
17560 ac_status=$?
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } &&
17566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17567 { (case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570esac
17571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_try") 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try='test -s conftest.$ac_objext'
17577 { (case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17580esac
17581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_try") 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017586 ac_cv_struct_tm=time.h
17587else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017588 echo "$as_me: failed program was:" >&5
17589sed 's/^/| /' conftest.$ac_ext >&5
17590
17591 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017593
Reid Spencera773bd52006-08-04 18:18:08 +000017594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017596{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17597echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017598if test $ac_cv_struct_tm = sys/time.h; then
17599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017600cat >>confdefs.h <<\_ACEOF
17601#define TM_IN_SYS_TIME 1
17602_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017603
17604fi
17605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017606{ echo "$as_me:$LINENO: checking for int64_t" >&5
17607echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17608if test "${ac_cv_type_int64_t+set}" = set; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17610else
17611 cat >conftest.$ac_ext <<_ACEOF
17612/* confdefs.h. */
17613_ACEOF
17614cat confdefs.h >>conftest.$ac_ext
17615cat >>conftest.$ac_ext <<_ACEOF
17616/* end confdefs.h. */
17617$ac_includes_default
17618typedef int64_t ac__type_new_;
17619int
17620main ()
17621{
17622if ((ac__type_new_ *) 0)
17623 return 0;
17624if (sizeof (ac__type_new_))
17625 return 0;
17626 ;
17627 return 0;
17628}
17629_ACEOF
17630rm -f conftest.$ac_objext
17631if { (ac_try="$ac_compile"
17632case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635esac
17636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_compile") 2>conftest.er1
17638 ac_status=$?
17639 grep -v '^ *+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } &&
17644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17645 { (case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648esac
17649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_try") 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest.$ac_objext'
17655 { (case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17658esac
17659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_try") 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_cv_type_int64_t=yes
17665else
17666 echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669 ac_cv_type_int64_t=no
17670fi
17671
17672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673fi
17674{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17675echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17676if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017677
17678cat >>confdefs.h <<_ACEOF
17679#define HAVE_INT64_T 1
17680_ACEOF
17681
17682
17683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017684 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17685echo "$as_me: error: Type int64_t required but not found" >&2;}
17686 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017687fi
17688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017689{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17690echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17691if test "${ac_cv_type_uint64_t+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693else
17694 cat >conftest.$ac_ext <<_ACEOF
17695/* confdefs.h. */
17696_ACEOF
17697cat confdefs.h >>conftest.$ac_ext
17698cat >>conftest.$ac_ext <<_ACEOF
17699/* end confdefs.h. */
17700$ac_includes_default
17701typedef uint64_t ac__type_new_;
17702int
17703main ()
17704{
17705if ((ac__type_new_ *) 0)
17706 return 0;
17707if (sizeof (ac__type_new_))
17708 return 0;
17709 ;
17710 return 0;
17711}
17712_ACEOF
17713rm -f conftest.$ac_objext
17714if { (ac_try="$ac_compile"
17715case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17718esac
17719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_compile") 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17728 { (case "(($ac_try" in
17729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730 *) ac_try_echo=$ac_try;;
17731esac
17732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733 (eval "$ac_try") 2>&5
17734 ac_status=$?
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; } &&
17737 { ac_try='test -s conftest.$ac_objext'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741esac
17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 ac_cv_type_uint64_t=yes
17748else
17749 echo "$as_me: failed program was:" >&5
17750sed 's/^/| /' conftest.$ac_ext >&5
17751
17752 ac_cv_type_uint64_t=no
17753fi
17754
17755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756fi
17757{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17758echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17759if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017760
17761cat >>confdefs.h <<_ACEOF
17762#define HAVE_UINT64_T 1
17763_ACEOF
17764
17765
17766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017767 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17768echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17769if test "${ac_cv_type_u_int64_t+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17771else
17772 cat >conftest.$ac_ext <<_ACEOF
17773/* confdefs.h. */
17774_ACEOF
17775cat confdefs.h >>conftest.$ac_ext
17776cat >>conftest.$ac_ext <<_ACEOF
17777/* end confdefs.h. */
17778$ac_includes_default
17779typedef u_int64_t ac__type_new_;
17780int
17781main ()
17782{
17783if ((ac__type_new_ *) 0)
17784 return 0;
17785if (sizeof (ac__type_new_))
17786 return 0;
17787 ;
17788 return 0;
17789}
17790_ACEOF
17791rm -f conftest.$ac_objext
17792if { (ac_try="$ac_compile"
17793case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17796esac
17797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_compile") 2>conftest.er1
17799 ac_status=$?
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17806 { (case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809esac
17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_try") 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest.$ac_objext'
17816 { (case "(($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_try") 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_cv_type_u_int64_t=yes
17826else
17827 echo "$as_me: failed program was:" >&5
17828sed 's/^/| /' conftest.$ac_ext >&5
17829
17830 ac_cv_type_u_int64_t=no
17831fi
17832
17833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834fi
17835{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17836echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17837if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017838
17839cat >>confdefs.h <<_ACEOF
17840#define HAVE_U_INT64_T 1
17841_ACEOF
17842
17843
Misha Brukmanceca9042004-09-02 23:02:30 +000017844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017845 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17846echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17847 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017848fi
17849
John Criswell679ff312004-09-02 18:44:44 +000017850fi
17851
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017852
17853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017854
17855
17856
17857
17858
17859
17860
Reid Spencerdf3be822006-01-23 08:15:53 +000017861for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017862do
17863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17864{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17866if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17868else
17869 cat >conftest.$ac_ext <<_ACEOF
17870/* confdefs.h. */
17871_ACEOF
17872cat confdefs.h >>conftest.$ac_ext
17873cat >>conftest.$ac_ext <<_ACEOF
17874/* end confdefs.h. */
17875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17877#define $ac_func innocuous_$ac_func
17878
17879/* System header to define __stub macros and hopefully few prototypes,
17880 which can conflict with char $ac_func (); below.
17881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17882 <limits.h> exists even on freestanding compilers. */
17883
17884#ifdef __STDC__
17885# include <limits.h>
17886#else
17887# include <assert.h>
17888#endif
17889
17890#undef $ac_func
17891
17892/* Override any GCC internal prototype to avoid an error.
17893 Use char because int might match the return type of a GCC
17894 builtin and then its argument prototype would still apply. */
17895#ifdef __cplusplus
17896extern "C"
17897#endif
17898char $ac_func ();
17899/* The GNU C library defines this for functions which it implements
17900 to always fail with ENOSYS. Some functions are actually named
17901 something starting with __ and the normal name is an alias. */
17902#if defined __stub_$ac_func || defined __stub___$ac_func
17903choke me
17904#endif
17905
17906int
17907main ()
17908{
17909return $ac_func ();
17910 ;
17911 return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext conftest$ac_exeext
17915if { (ac_try="$ac_link"
17916case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919esac
17920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_link") 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17929 { (case "(($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_try") 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try='test -s conftest$ac_exeext'
17939 { (case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17942esac
17943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 eval "$as_ac_var=yes"
17949else
17950 echo "$as_me: failed program was:" >&5
17951sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 eval "$as_ac_var=no"
17954fi
17955
17956rm -f core conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext conftest.$ac_ext
17958fi
17959ac_res=`eval echo '${'$as_ac_var'}'`
17960 { echo "$as_me:$LINENO: result: $ac_res" >&5
17961echo "${ECHO_T}$ac_res" >&6; }
17962if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017963 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017965_ACEOF
17966
17967fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017968done
John Criswell7a73b802003-06-30 21:59:07 +000017969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017970
17971
17972
17973
Reid Spencer96cf5872007-07-13 10:05:30 +000017974for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017975do
17976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17977{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981else
17982 cat >conftest.$ac_ext <<_ACEOF
17983/* confdefs.h. */
17984_ACEOF
17985cat confdefs.h >>conftest.$ac_ext
17986cat >>conftest.$ac_ext <<_ACEOF
17987/* end confdefs.h. */
17988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17990#define $ac_func innocuous_$ac_func
17991
17992/* System header to define __stub macros and hopefully few prototypes,
17993 which can conflict with char $ac_func (); below.
17994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17995 <limits.h> exists even on freestanding compilers. */
17996
17997#ifdef __STDC__
17998# include <limits.h>
17999#else
18000# include <assert.h>
18001#endif
18002
18003#undef $ac_func
18004
18005/* Override any GCC internal prototype to avoid an error.
18006 Use char because int might match the return type of a GCC
18007 builtin and then its argument prototype would still apply. */
18008#ifdef __cplusplus
18009extern "C"
18010#endif
18011char $ac_func ();
18012/* The GNU C library defines this for functions which it implements
18013 to always fail with ENOSYS. Some functions are actually named
18014 something starting with __ and the normal name is an alias. */
18015#if defined __stub_$ac_func || defined __stub___$ac_func
18016choke me
18017#endif
18018
18019int
18020main ()
18021{
18022return $ac_func ();
18023 ;
18024 return 0;
18025}
18026_ACEOF
18027rm -f conftest.$ac_objext 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>conftest.er1
18035 ac_status=$?
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18042 { (case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045esac
18046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_try") 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try='test -s conftest$ac_exeext'
18052 { (case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18055esac
18056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_try") 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 eval "$as_ac_var=yes"
18062else
18063 echo "$as_me: failed program was:" >&5
18064sed 's/^/| /' conftest.$ac_ext >&5
18065
18066 eval "$as_ac_var=no"
18067fi
18068
18069rm -f core conftest.err conftest.$ac_objext \
18070 conftest$ac_exeext conftest.$ac_ext
18071fi
18072ac_res=`eval echo '${'$as_ac_var'}'`
18073 { echo "$as_me:$LINENO: result: $ac_res" >&5
18074echo "${ECHO_T}$ac_res" >&6; }
18075if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018076 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018078_ACEOF
18079
18080fi
18081done
18082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018083
18084
18085
18086
18087
Reid Spencerb90645c2007-02-16 19:17:20 +000018088for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018089do
18090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18091{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18095else
18096 cat >conftest.$ac_ext <<_ACEOF
18097/* confdefs.h. */
18098_ACEOF
18099cat confdefs.h >>conftest.$ac_ext
18100cat >>conftest.$ac_ext <<_ACEOF
18101/* end confdefs.h. */
18102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18104#define $ac_func innocuous_$ac_func
18105
18106/* System header to define __stub macros and hopefully few prototypes,
18107 which can conflict with char $ac_func (); below.
18108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18109 <limits.h> exists even on freestanding compilers. */
18110
18111#ifdef __STDC__
18112# include <limits.h>
18113#else
18114# include <assert.h>
18115#endif
18116
18117#undef $ac_func
18118
18119/* Override any GCC internal prototype to avoid an error.
18120 Use char because int might match the return type of a GCC
18121 builtin and then its argument prototype would still apply. */
18122#ifdef __cplusplus
18123extern "C"
18124#endif
18125char $ac_func ();
18126/* The GNU C library defines this for functions which it implements
18127 to always fail with ENOSYS. Some functions are actually named
18128 something starting with __ and the normal name is an alias. */
18129#if defined __stub_$ac_func || defined __stub___$ac_func
18130choke me
18131#endif
18132
18133int
18134main ()
18135{
18136return $ac_func ();
18137 ;
18138 return 0;
18139}
18140_ACEOF
18141rm -f conftest.$ac_objext conftest$ac_exeext
18142if { (ac_try="$ac_link"
18143case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146esac
18147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_link") 2>conftest.er1
18149 ac_status=$?
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159esac
18160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest$ac_exeext'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 eval "$as_ac_var=yes"
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180 eval "$as_ac_var=no"
18181fi
18182
18183rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18185fi
18186ac_res=`eval echo '${'$as_ac_var'}'`
18187 { echo "$as_me:$LINENO: result: $ac_res" >&5
18188echo "${ECHO_T}$ac_res" >&6; }
18189if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018190 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018192_ACEOF
18193
18194fi
18195done
18196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018197
18198
18199
Reid Spencerb90645c2007-02-16 19:17:20 +000018200for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018201do
18202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18203{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18205if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207else
18208 cat >conftest.$ac_ext <<_ACEOF
18209/* confdefs.h. */
18210_ACEOF
18211cat confdefs.h >>conftest.$ac_ext
18212cat >>conftest.$ac_ext <<_ACEOF
18213/* end confdefs.h. */
18214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18216#define $ac_func innocuous_$ac_func
18217
18218/* System header to define __stub macros and hopefully few prototypes,
18219 which can conflict with char $ac_func (); below.
18220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18221 <limits.h> exists even on freestanding compilers. */
18222
18223#ifdef __STDC__
18224# include <limits.h>
18225#else
18226# include <assert.h>
18227#endif
18228
18229#undef $ac_func
18230
18231/* Override any GCC internal prototype to avoid an error.
18232 Use char because int might match the return type of a GCC
18233 builtin and then its argument prototype would still apply. */
18234#ifdef __cplusplus
18235extern "C"
18236#endif
18237char $ac_func ();
18238/* The GNU C library defines this for functions which it implements
18239 to always fail with ENOSYS. Some functions are actually named
18240 something starting with __ and the normal name is an alias. */
18241#if defined __stub_$ac_func || defined __stub___$ac_func
18242choke me
18243#endif
18244
18245int
18246main ()
18247{
18248return $ac_func ();
18249 ;
18250 return 0;
18251}
18252_ACEOF
18253rm -f conftest.$ac_objext conftest$ac_exeext
18254if { (ac_try="$ac_link"
18255case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18258esac
18259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_link") 2>conftest.er1
18261 ac_status=$?
18262 grep -v '^ *+' conftest.er1 >conftest.err
18263 rm -f conftest.er1
18264 cat conftest.err >&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } &&
18267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18268 { (case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18271esac
18272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_try") 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; } &&
18277 { ac_try='test -s conftest$ac_exeext'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281esac
18282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18287 eval "$as_ac_var=yes"
18288else
18289 echo "$as_me: failed program was:" >&5
18290sed 's/^/| /' conftest.$ac_ext >&5
18291
18292 eval "$as_ac_var=no"
18293fi
18294
18295rm -f core conftest.err conftest.$ac_objext \
18296 conftest$ac_exeext conftest.$ac_ext
18297fi
18298ac_res=`eval echo '${'$as_ac_var'}'`
18299 { echo "$as_me:$LINENO: result: $ac_res" >&5
18300echo "${ECHO_T}$ac_res" >&6; }
18301if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018302 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018304_ACEOF
18305
18306fi
18307done
18308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018309
18310
18311
18312
18313
Eric Christophere4291822010-04-16 05:14:21 +000018314
18315for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018316do
18317as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18318{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18320if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322else
18323 cat >conftest.$ac_ext <<_ACEOF
18324/* confdefs.h. */
18325_ACEOF
18326cat confdefs.h >>conftest.$ac_ext
18327cat >>conftest.$ac_ext <<_ACEOF
18328/* end confdefs.h. */
18329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18331#define $ac_func innocuous_$ac_func
18332
18333/* System header to define __stub macros and hopefully few prototypes,
18334 which can conflict with char $ac_func (); below.
18335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18336 <limits.h> exists even on freestanding compilers. */
18337
18338#ifdef __STDC__
18339# include <limits.h>
18340#else
18341# include <assert.h>
18342#endif
18343
18344#undef $ac_func
18345
18346/* Override any GCC internal prototype to avoid an error.
18347 Use char because int might match the return type of a GCC
18348 builtin and then its argument prototype would still apply. */
18349#ifdef __cplusplus
18350extern "C"
18351#endif
18352char $ac_func ();
18353/* The GNU C library defines this for functions which it implements
18354 to always fail with ENOSYS. Some functions are actually named
18355 something starting with __ and the normal name is an alias. */
18356#if defined __stub_$ac_func || defined __stub___$ac_func
18357choke me
18358#endif
18359
18360int
18361main ()
18362{
18363return $ac_func ();
18364 ;
18365 return 0;
18366}
18367_ACEOF
18368rm -f conftest.$ac_objext conftest$ac_exeext
18369if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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
18402 eval "$as_ac_var=yes"
18403else
18404 echo "$as_me: failed program was:" >&5
18405sed 's/^/| /' conftest.$ac_ext >&5
18406
18407 eval "$as_ac_var=no"
18408fi
18409
18410rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18412fi
18413ac_res=`eval echo '${'$as_ac_var'}'`
18414 { echo "$as_me:$LINENO: result: $ac_res" >&5
18415echo "${ECHO_T}$ac_res" >&6; }
18416if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018417 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018419_ACEOF
18420
18421fi
18422done
Reid Spencerdf3be822006-01-23 08:15:53 +000018423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018424
18425
18426
18427
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018428for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018429do
18430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18431{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18435else
18436 cat >conftest.$ac_ext <<_ACEOF
18437/* confdefs.h. */
18438_ACEOF
18439cat confdefs.h >>conftest.$ac_ext
18440cat >>conftest.$ac_ext <<_ACEOF
18441/* end confdefs.h. */
18442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18444#define $ac_func innocuous_$ac_func
18445
18446/* System header to define __stub macros and hopefully few prototypes,
18447 which can conflict with char $ac_func (); below.
18448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18449 <limits.h> exists even on freestanding compilers. */
18450
18451#ifdef __STDC__
18452# include <limits.h>
18453#else
18454# include <assert.h>
18455#endif
18456
18457#undef $ac_func
18458
18459/* Override any GCC internal prototype to avoid an error.
18460 Use char because int might match the return type of a GCC
18461 builtin and then its argument prototype would still apply. */
18462#ifdef __cplusplus
18463extern "C"
18464#endif
18465char $ac_func ();
18466/* The GNU C library defines this for functions which it implements
18467 to always fail with ENOSYS. Some functions are actually named
18468 something starting with __ and the normal name is an alias. */
18469#if defined __stub_$ac_func || defined __stub___$ac_func
18470choke me
18471#endif
18472
18473int
18474main ()
18475{
18476return $ac_func ();
18477 ;
18478 return 0;
18479}
18480_ACEOF
18481rm -f conftest.$ac_objext conftest$ac_exeext
18482if { (ac_try="$ac_link"
18483case "(($ac_try" in
18484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485 *) ac_try_echo=$ac_try;;
18486esac
18487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18488 (eval "$ac_link") 2>conftest.er1
18489 ac_status=$?
18490 grep -v '^ *+' conftest.er1 >conftest.err
18491 rm -f conftest.er1
18492 cat conftest.err >&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } &&
18495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18496 { (case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499esac
18500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_try") 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; } &&
18505 { ac_try='test -s conftest$ac_exeext'
18506 { (case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18509esac
18510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_try") 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 eval "$as_ac_var=yes"
18516else
18517 echo "$as_me: failed program was:" >&5
18518sed 's/^/| /' conftest.$ac_ext >&5
18519
18520 eval "$as_ac_var=no"
18521fi
18522
18523rm -f core conftest.err conftest.$ac_objext \
18524 conftest$ac_exeext conftest.$ac_ext
18525fi
18526ac_res=`eval echo '${'$as_ac_var'}'`
18527 { echo "$as_me:$LINENO: result: $ac_res" >&5
18528echo "${ECHO_T}$ac_res" >&6; }
18529if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018530 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018532_ACEOF
18533
18534fi
18535done
18536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018537
18538
18539
18540
Chris Lattner511f11d2005-11-14 07:25:50 +000018541for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018542do
18543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18544{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18546if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18548else
18549 cat >conftest.$ac_ext <<_ACEOF
18550/* confdefs.h. */
18551_ACEOF
18552cat confdefs.h >>conftest.$ac_ext
18553cat >>conftest.$ac_ext <<_ACEOF
18554/* end confdefs.h. */
18555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18557#define $ac_func innocuous_$ac_func
18558
18559/* System header to define __stub macros and hopefully few prototypes,
18560 which can conflict with char $ac_func (); below.
18561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18562 <limits.h> exists even on freestanding compilers. */
18563
18564#ifdef __STDC__
18565# include <limits.h>
18566#else
18567# include <assert.h>
18568#endif
18569
18570#undef $ac_func
18571
18572/* Override any GCC internal prototype to avoid an error.
18573 Use char because int might match the return type of a GCC
18574 builtin and then its argument prototype would still apply. */
18575#ifdef __cplusplus
18576extern "C"
18577#endif
18578char $ac_func ();
18579/* The GNU C library defines this for functions which it implements
18580 to always fail with ENOSYS. Some functions are actually named
18581 something starting with __ and the normal name is an alias. */
18582#if defined __stub_$ac_func || defined __stub___$ac_func
18583choke me
18584#endif
18585
18586int
18587main ()
18588{
18589return $ac_func ();
18590 ;
18591 return 0;
18592}
18593_ACEOF
18594rm -f conftest.$ac_objext conftest$ac_exeext
18595if { (ac_try="$ac_link"
18596case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599esac
18600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_link") 2>conftest.er1
18602 ac_status=$?
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } &&
18608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18609 { (case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612esac
18613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_try") 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest$ac_exeext'
18619 { (case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18622esac
18623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_try") 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628 eval "$as_ac_var=yes"
18629else
18630 echo "$as_me: failed program was:" >&5
18631sed 's/^/| /' conftest.$ac_ext >&5
18632
18633 eval "$as_ac_var=no"
18634fi
18635
18636rm -f core conftest.err conftest.$ac_objext \
18637 conftest$ac_exeext conftest.$ac_ext
18638fi
18639ac_res=`eval echo '${'$as_ac_var'}'`
18640 { echo "$as_me:$LINENO: result: $ac_res" >&5
18641echo "${ECHO_T}$ac_res" >&6; }
18642if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018643 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018645_ACEOF
18646
18647fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018648done
John Criswell7a73b802003-06-30 21:59:07 +000018649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018650
18651
18652
18653
Reid Spencerafa22e22006-12-10 23:29:19 +000018654for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018655do
18656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18657{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18659if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
18662 cat >conftest.$ac_ext <<_ACEOF
18663/* confdefs.h. */
18664_ACEOF
18665cat confdefs.h >>conftest.$ac_ext
18666cat >>conftest.$ac_ext <<_ACEOF
18667/* end confdefs.h. */
18668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18670#define $ac_func innocuous_$ac_func
18671
18672/* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char $ac_func (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18676
18677#ifdef __STDC__
18678# include <limits.h>
18679#else
18680# include <assert.h>
18681#endif
18682
18683#undef $ac_func
18684
18685/* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18688#ifdef __cplusplus
18689extern "C"
18690#endif
18691char $ac_func ();
18692/* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695#if defined __stub_$ac_func || defined __stub___$ac_func
18696choke me
18697#endif
18698
18699int
18700main ()
18701{
18702return $ac_func ();
18703 ;
18704 return 0;
18705}
18706_ACEOF
18707rm -f conftest.$ac_objext conftest$ac_exeext
18708if { (ac_try="$ac_link"
18709case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18712esac
18713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_link") 2>conftest.er1
18715 ac_status=$?
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18722 { (case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18725esac
18726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_try") 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; } &&
18731 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18741 eval "$as_ac_var=yes"
18742else
18743 echo "$as_me: failed program was:" >&5
18744sed 's/^/| /' conftest.$ac_ext >&5
18745
18746 eval "$as_ac_var=no"
18747fi
18748
18749rm -f core conftest.err conftest.$ac_objext \
18750 conftest$ac_exeext conftest.$ac_ext
18751fi
18752ac_res=`eval echo '${'$as_ac_var'}'`
18753 { echo "$as_me:$LINENO: result: $ac_res" >&5
18754echo "${ECHO_T}$ac_res" >&6; }
18755if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018756 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018758_ACEOF
18759
18760fi
18761done
18762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018763{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18764echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18765if test "${llvm_cv_c_printf_a+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018767else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018768 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018769ac_cpp='$CPP $CPPFLAGS'
18770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18772ac_compiler_gnu=$ac_cv_c_compiler_gnu
18773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018774 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018775 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018776else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018777 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018779 /* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018784
John Criswella0137d32003-10-13 16:22:01 +000018785#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018786#include <stdlib.h>
18787
John Criswella0137d32003-10-13 16:22:01 +000018788int
18789main ()
18790{
18791
Reid Spencer2706f8c2004-09-19 23:53:36 +000018792volatile double A, B;
18793char Buffer[100];
18794A = 1;
18795A /= 10.0;
18796sprintf(Buffer, "%a", A);
18797B = atof(Buffer);
18798if (A != B)
18799 return (1);
18800if (A != 0x1.999999999999ap-4)
18801 return (1);
18802return (0);
John Criswella0137d32003-10-13 16:22:01 +000018803 ;
18804 return 0;
18805}
18806_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018807rm -f conftest$ac_exeext
18808if { (ac_try="$ac_link"
18809case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18812esac
18813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_link") 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18821esac
18822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018827 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018829 echo "$as_me: program exited with status $ac_status" >&5
18830echo "$as_me: failed program was:" >&5
18831sed 's/^/| /' conftest.$ac_ext >&5
18832
18833( exit $ac_status )
18834llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018836rm -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 +000018837fi
Reid Spencera773bd52006-08-04 18:18:08 +000018838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018839
Reid Spencer2706f8c2004-09-19 23:53:36 +000018840 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018841ac_cpp='$CPP $CPPFLAGS'
18842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18844ac_compiler_gnu=$ac_cv_c_compiler_gnu
18845
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018847{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18848echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018849 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018851cat >>confdefs.h <<\_ACEOF
18852#define HAVE_PRINTF_A 1
18853_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018854
Reid Spencer2706f8c2004-09-19 23:53:36 +000018855 fi
John Criswella0137d32003-10-13 16:22:01 +000018856
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018858{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18859echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18860if test "${ac_cv_func_rand48+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018862else
Reid Spencera773bd52006-08-04 18:18:08 +000018863 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018864ac_cpp='$CXXCPP $CPPFLAGS'
18865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018869 cat >conftest.$ac_ext <<_ACEOF
18870/* confdefs.h. */
18871_ACEOF
18872cat confdefs.h >>conftest.$ac_ext
18873cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018874/* end confdefs.h. */
18875#include <stdlib.h>
18876int
18877main ()
18878{
18879srand48(0);lrand48();drand48();
18880 ;
18881 return 0;
18882}
18883_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018884rm -f conftest.$ac_objext
18885if { (ac_try="$ac_compile"
18886case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889esac
18890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_compile") 2>conftest.er1
18892 ac_status=$?
18893 grep -v '^ *+' conftest.er1 >conftest.err
18894 rm -f conftest.er1
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } &&
18898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18899 { (case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18902esac
18903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_try") 2>&5
18905 ac_status=$?
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; } &&
18908 { ac_try='test -s conftest.$ac_objext'
18909 { (case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18912esac
18913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_try") 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018918 ac_cv_func_rand48=yes
18919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018920 echo "$as_me: failed program was:" >&5
18921sed 's/^/| /' conftest.$ac_ext >&5
18922
18923 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018925
Reid Spencera773bd52006-08-04 18:18:08 +000018926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018927 ac_ext=c
18928ac_cpp='$CPP $CPPFLAGS'
18929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18931ac_compiler_gnu=$ac_cv_c_compiler_gnu
18932
18933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018934{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18935echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018936
18937if test "$ac_cv_func_rand48" = "yes" ; then
18938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018939cat >>confdefs.h <<\_ACEOF
18940#define HAVE_RAND48 1
18941_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018942
18943fi
John Criswell0021c312004-02-13 21:57:29 +000018944
18945
Torok Edwin871384f2010-01-26 08:50:50 +000018946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018947{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18948echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18949if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018951else
Reid Spencera773bd52006-08-04 18:18:08 +000018952 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018953ac_cpp='$CXXCPP $CPPFLAGS'
18954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018958 cat >conftest.$ac_ext <<_ACEOF
18959/* confdefs.h. */
18960_ACEOF
18961cat confdefs.h >>conftest.$ac_ext
18962cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018963/* end confdefs.h. */
18964#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018965int
18966main ()
18967{
18968float f; isnan(f);
18969 ;
18970 return 0;
18971}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018972_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018973rm -f conftest.$ac_objext
18974if { (ac_try="$ac_compile"
18975case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978esac
18979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_compile") 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
18987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18988 { (case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991esac
18992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_try") 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest.$ac_objext'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001esac
19002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019007 ac_cv_func_isnan_in_math_h=yes
19008else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019009 echo "$as_me: failed program was:" >&5
19010sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019014
Reid Spencera773bd52006-08-04 18:18:08 +000019015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019016 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019017ac_cpp='$CPP $CPPFLAGS'
19018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19020ac_compiler_gnu=$ac_cv_c_compiler_gnu
19021
19022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019023{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19024echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019025
19026
19027if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019029cat >>confdefs.h <<\_ACEOF
19030#define HAVE_ISNAN_IN_MATH_H 1
19031_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019032
Reid Spencerabec8f92004-10-27 23:03:44 +000019033fi
19034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019035{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19036echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19037if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019039else
Reid Spencera773bd52006-08-04 18:18:08 +000019040 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019041ac_cpp='$CXXCPP $CPPFLAGS'
19042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019046 cat >conftest.$ac_ext <<_ACEOF
19047/* confdefs.h. */
19048_ACEOF
19049cat confdefs.h >>conftest.$ac_ext
19050cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019051/* end confdefs.h. */
19052#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019053int
19054main ()
19055{
19056float f; isnan(f);
19057 ;
19058 return 0;
19059}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019060_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019061rm -f conftest.$ac_objext
19062if { (ac_try="$ac_compile"
19063case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066esac
19067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_compile") 2>conftest.er1
19069 ac_status=$?
19070 grep -v '^ *+' conftest.er1 >conftest.err
19071 rm -f conftest.er1
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19076 { (case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19079esac
19080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_try") 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest.$ac_objext'
19086 { (case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089esac
19090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_try") 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019095 ac_cv_func_isnan_in_cmath=yes
19096else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019097 echo "$as_me: failed program was:" >&5
19098sed 's/^/| /' conftest.$ac_ext >&5
19099
19100 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019102
Reid Spencera773bd52006-08-04 18:18:08 +000019103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019104 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019105ac_cpp='$CPP $CPPFLAGS'
19106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109
19110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019111{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19112echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019113
19114if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019116cat >>confdefs.h <<\_ACEOF
19117#define HAVE_ISNAN_IN_CMATH 1
19118_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019119
Reid Spencerabec8f92004-10-27 23:03:44 +000019120fi
19121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019122{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19123echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19124if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019126else
Reid Spencera773bd52006-08-04 18:18:08 +000019127 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019128ac_cpp='$CXXCPP $CPPFLAGS'
19129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019133 cat >conftest.$ac_ext <<_ACEOF
19134/* confdefs.h. */
19135_ACEOF
19136cat confdefs.h >>conftest.$ac_ext
19137cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019138/* end confdefs.h. */
19139#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019140int
19141main ()
19142{
19143float f; std::isnan(f);
19144 ;
19145 return 0;
19146}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019147_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019148rm -f conftest.$ac_objext
19149if { (ac_try="$ac_compile"
19150case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19153esac
19154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155 (eval "$ac_compile") 2>conftest.er1
19156 ac_status=$?
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
19162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19163 { (case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166esac
19167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest.$ac_objext'
19173 { (case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176esac
19177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_try") 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019182 ac_cv_func_std_isnan_in_cmath=yes
19183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019184 echo "$as_me: failed program was:" >&5
19185sed 's/^/| /' conftest.$ac_ext >&5
19186
19187 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019189
Reid Spencera773bd52006-08-04 18:18:08 +000019190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019191 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019192ac_cpp='$CPP $CPPFLAGS'
19193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19195ac_compiler_gnu=$ac_cv_c_compiler_gnu
19196
19197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019198{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19199echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019200
19201if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019203cat >>confdefs.h <<\_ACEOF
19204#define HAVE_STD_ISNAN_IN_CMATH 1
19205_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019206
Reid Spencerabec8f92004-10-27 23:03:44 +000019207fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019208
19209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019210{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19211echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19212if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019214else
Reid Spencera773bd52006-08-04 18:18:08 +000019215 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019216ac_cpp='$CXXCPP $CPPFLAGS'
19217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019221 cat >conftest.$ac_ext <<_ACEOF
19222/* confdefs.h. */
19223_ACEOF
19224cat confdefs.h >>conftest.$ac_ext
19225cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019226/* end confdefs.h. */
19227#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019228int
19229main ()
19230{
19231float f; isinf(f);
19232 ;
19233 return 0;
19234}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019236rm -f conftest.$ac_objext
19237if { (ac_try="$ac_compile"
19238case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19241esac
19242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_compile") 2>conftest.er1
19244 ac_status=$?
19245 grep -v '^ *+' conftest.er1 >conftest.err
19246 rm -f conftest.er1
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19251 { (case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254esac
19255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest.$ac_objext'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264esac
19265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019270 ac_cv_func_isinf_in_math_h=yes
19271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019272 echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
19275 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019277
Reid Spencera773bd52006-08-04 18:18:08 +000019278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019279 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019280ac_cpp='$CPP $CPPFLAGS'
19281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283ac_compiler_gnu=$ac_cv_c_compiler_gnu
19284
19285fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019286{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19287echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019288
19289if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019291cat >>confdefs.h <<\_ACEOF
19292#define HAVE_ISINF_IN_MATH_H 1
19293_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019294
Reid Spencerabec8f92004-10-27 23:03:44 +000019295fi
19296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019297{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19298echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19299if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019301else
Reid Spencera773bd52006-08-04 18:18:08 +000019302 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019303ac_cpp='$CXXCPP $CPPFLAGS'
19304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019308 cat >conftest.$ac_ext <<_ACEOF
19309/* confdefs.h. */
19310_ACEOF
19311cat confdefs.h >>conftest.$ac_ext
19312cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019313/* end confdefs.h. */
19314#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019315int
19316main ()
19317{
19318float f; isinf(f);
19319 ;
19320 return 0;
19321}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019322_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019323rm -f conftest.$ac_objext
19324if { (ac_try="$ac_compile"
19325case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328esac
19329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_compile") 2>conftest.er1
19331 ac_status=$?
19332 grep -v '^ *+' conftest.er1 >conftest.err
19333 rm -f conftest.er1
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } &&
19337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19338 { (case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341esac
19342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_try") 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; } &&
19347 { ac_try='test -s conftest.$ac_objext'
19348 { (case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19351esac
19352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_try") 2>&5
19354 ac_status=$?
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019357 ac_cv_func_isinf_in_cmath=yes
19358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019359 echo "$as_me: failed program was:" >&5
19360sed 's/^/| /' conftest.$ac_ext >&5
19361
19362 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019364
Reid Spencera773bd52006-08-04 18:18:08 +000019365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019366 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019367ac_cpp='$CPP $CPPFLAGS'
19368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19370ac_compiler_gnu=$ac_cv_c_compiler_gnu
19371
19372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019373{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19374echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019375
19376if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019378cat >>confdefs.h <<\_ACEOF
19379#define HAVE_ISINF_IN_CMATH 1
19380_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019381
Reid Spencerabec8f92004-10-27 23:03:44 +000019382fi
19383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019384{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19385echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19386if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019388else
Reid Spencera773bd52006-08-04 18:18:08 +000019389 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019390ac_cpp='$CXXCPP $CPPFLAGS'
19391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019395 cat >conftest.$ac_ext <<_ACEOF
19396/* confdefs.h. */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019400/* end confdefs.h. */
19401#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019402int
19403main ()
19404{
19405float f; std::isinf(f)}
19406 ;
19407 return 0;
19408}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019410rm -f conftest.$ac_objext
19411if { (ac_try="$ac_compile"
19412case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19415esac
19416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_compile") 2>conftest.er1
19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19425 { (case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428esac
19429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_try") 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
19435 { (case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_try") 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019444 ac_cv_func_std_isinf_in_cmath=yes
19445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019446 echo "$as_me: failed program was:" >&5
19447sed 's/^/| /' conftest.$ac_ext >&5
19448
19449 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019451
Reid Spencera773bd52006-08-04 18:18:08 +000019452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019453 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019454ac_cpp='$CPP $CPPFLAGS'
19455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_c_compiler_gnu
19458
19459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019460{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19461echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019462
19463if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019465cat >>confdefs.h <<\_ACEOF
19466#define HAVE_STD_ISINF_IN_CMATH 1
19467_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019468
Reid Spencerabec8f92004-10-27 23:03:44 +000019469fi
19470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019471{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19472echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19473if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019475else
Reid Spencera773bd52006-08-04 18:18:08 +000019476 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019477ac_cpp='$CXXCPP $CPPFLAGS'
19478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019482 cat >conftest.$ac_ext <<_ACEOF
19483/* confdefs.h. */
19484_ACEOF
19485cat confdefs.h >>conftest.$ac_ext
19486cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019487/* end confdefs.h. */
19488#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019489int
19490main ()
19491{
19492float f; finite(f);
19493 ;
19494 return 0;
19495}
Brian Gaeked59a6472004-07-21 03:33:58 +000019496_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019497rm -f conftest.$ac_objext
19498if { (ac_try="$ac_compile"
19499case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19502esac
19503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_compile") 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; } &&
19521 { ac_try='test -s conftest.$ac_objext'
19522 { (case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_try") 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019531 ac_cv_func_finite_in_ieeefp_h=yes
19532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019538
Reid Spencera773bd52006-08-04 18:18:08 +000019539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019540 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019541ac_cpp='$CPP $CPPFLAGS'
19542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544ac_compiler_gnu=$ac_cv_c_compiler_gnu
19545
19546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019547{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19548echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019549
Brian Gaeke6802b552004-10-28 05:06:45 +000019550if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019552cat >>confdefs.h <<\_ACEOF
19553#define HAVE_FINITE_IN_IEEEFP_H 1
19554_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019555
Reid Spencerabec8f92004-10-27 23:03:44 +000019556fi
19557
19558
19559
Reid Spencer30fe5262007-01-20 07:48:49 +000019560if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019561
19562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019563for ac_header in stdlib.h unistd.h
19564do
19565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19571fi
19572ac_res=`eval echo '${'$as_ac_Header'}'`
19573 { echo "$as_me:$LINENO: result: $ac_res" >&5
19574echo "${ECHO_T}$ac_res" >&6; }
19575else
19576 # Is the header compilable?
19577{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19579cat >conftest.$ac_ext <<_ACEOF
19580/* confdefs.h. */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h. */
19585$ac_includes_default
19586#include <$ac_header>
19587_ACEOF
19588rm -f conftest.$ac_objext
19589if { (ac_try="$ac_compile"
19590case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19593esac
19594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_compile") 2>conftest.er1
19596 ac_status=$?
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; } &&
19612 { ac_try='test -s conftest.$ac_objext'
19613 { (case "(($ac_try" in
19614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615 *) ac_try_echo=$ac_try;;
19616esac
19617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618 (eval "$ac_try") 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 ac_header_compiler=yes
19623else
19624 echo "$as_me: failed program was:" >&5
19625sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019627 ac_header_compiler=no
19628fi
19629
19630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19632echo "${ECHO_T}$ac_header_compiler" >&6; }
19633
19634# Is the header present?
19635{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19637cat >conftest.$ac_ext <<_ACEOF
19638/* confdefs.h. */
19639_ACEOF
19640cat confdefs.h >>conftest.$ac_ext
19641cat >>conftest.$ac_ext <<_ACEOF
19642/* end confdefs.h. */
19643#include <$ac_header>
19644_ACEOF
19645if { (ac_try="$ac_cpp conftest.$ac_ext"
19646case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19649esac
19650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19652 ac_status=$?
19653 grep -v '^ *+' conftest.er1 >conftest.err
19654 rm -f conftest.er1
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } >/dev/null; then
19658 if test -s conftest.err; then
19659 ac_cpp_err=$ac_c_preproc_warn_flag
19660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19661 else
19662 ac_cpp_err=
19663 fi
19664else
19665 ac_cpp_err=yes
19666fi
19667if test -z "$ac_cpp_err"; then
19668 ac_header_preproc=yes
19669else
19670 echo "$as_me: failed program was:" >&5
19671sed 's/^/| /' conftest.$ac_ext >&5
19672
19673 ac_header_preproc=no
19674fi
19675
19676rm -f conftest.err conftest.$ac_ext
19677{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19678echo "${ECHO_T}$ac_header_preproc" >&6; }
19679
19680# So? What about this header?
19681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19682 yes:no: )
19683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19687 ac_header_preproc=yes
19688 ;;
19689 no:yes:* )
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19702 ( cat <<\_ASBOX
19703## ----------------------------------- ##
19704## Report this to llvmbugs@cs.uiuc.edu ##
19705## ----------------------------------- ##
19706_ASBOX
19707 ) | sed "s/^/$as_me: WARNING: /" >&2
19708 ;;
19709esac
19710{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19714else
19715 eval "$as_ac_Header=\$ac_header_preproc"
19716fi
19717ac_res=`eval echo '${'$as_ac_Header'}'`
19718 { echo "$as_me:$LINENO: result: $ac_res" >&5
19719echo "${ECHO_T}$ac_res" >&6; }
19720
19721fi
19722if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019723 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019724#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019725_ACEOF
19726
19727fi
19728
19729done
19730
19731
19732for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019733do
19734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19735{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19737if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19739else
19740 cat >conftest.$ac_ext <<_ACEOF
19741/* confdefs.h. */
19742_ACEOF
19743cat confdefs.h >>conftest.$ac_ext
19744cat >>conftest.$ac_ext <<_ACEOF
19745/* end confdefs.h. */
19746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19748#define $ac_func innocuous_$ac_func
19749
19750/* System header to define __stub macros and hopefully few prototypes,
19751 which can conflict with char $ac_func (); below.
19752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19753 <limits.h> exists even on freestanding compilers. */
19754
19755#ifdef __STDC__
19756# include <limits.h>
19757#else
19758# include <assert.h>
19759#endif
19760
19761#undef $ac_func
19762
19763/* Override any GCC internal prototype to avoid an error.
19764 Use char because int might match the return type of a GCC
19765 builtin and then its argument prototype would still apply. */
19766#ifdef __cplusplus
19767extern "C"
19768#endif
19769char $ac_func ();
19770/* The GNU C library defines this for functions which it implements
19771 to always fail with ENOSYS. Some functions are actually named
19772 something starting with __ and the normal name is an alias. */
19773#if defined __stub_$ac_func || defined __stub___$ac_func
19774choke me
19775#endif
19776
19777int
19778main ()
19779{
19780return $ac_func ();
19781 ;
19782 return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext conftest$ac_exeext
19786if { (ac_try="$ac_link"
19787case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_link") 2>conftest.er1
19793 ac_status=$?
19794 grep -v '^ *+' conftest.er1 >conftest.err
19795 rm -f conftest.er1
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } &&
19799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19800 { (case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803esac
19804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_try") 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest$ac_exeext'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 eval "$as_ac_var=yes"
19820else
19821 echo "$as_me: failed program was:" >&5
19822sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 eval "$as_ac_var=no"
19825fi
19826
19827rm -f core conftest.err conftest.$ac_objext \
19828 conftest$ac_exeext conftest.$ac_ext
19829fi
19830ac_res=`eval echo '${'$as_ac_var'}'`
19831 { echo "$as_me:$LINENO: result: $ac_res" >&5
19832echo "${ECHO_T}$ac_res" >&6; }
19833if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019834 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019836_ACEOF
19837
19838fi
19839done
19840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019841{ echo "$as_me:$LINENO: checking for working mmap" >&5
19842echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19843if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019846 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019847 ac_cv_func_mmap_fixed_mapped=no
19848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019849 cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h. */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019854/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019855$ac_includes_default
19856/* malloc might have been renamed as rpl_malloc. */
19857#undef malloc
19858
19859/* Thanks to Mike Haertel and Jim Avera for this test.
19860 Here is a matrix of mmap possibilities:
19861 mmap private not fixed
19862 mmap private fixed at somewhere currently unmapped
19863 mmap private fixed at somewhere already mapped
19864 mmap shared not fixed
19865 mmap shared fixed at somewhere currently unmapped
19866 mmap shared fixed at somewhere already mapped
19867 For private mappings, we should verify that changes cannot be read()
19868 back from the file, nor mmap's back from the file at a different
19869 address. (There have been systems where private was not correctly
19870 implemented like the infamous i386 svr4.0, and systems where the
19871 VM page cache was not coherent with the file system buffer cache
19872 like early versions of FreeBSD and possibly contemporary NetBSD.)
19873 For shared mappings, we should conversely verify that changes get
19874 propagated back to all the places they're supposed to be.
19875
19876 Grep wants private fixed already mapped.
19877 The main things grep needs to know about mmap are:
19878 * does it exist and is it safe to write into the mmap'd area
19879 * how to use it (BSD variants) */
19880
19881#include <fcntl.h>
19882#include <sys/mman.h>
19883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019884#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019885char *malloc ();
19886#endif
19887
19888/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019889#if !HAVE_GETPAGESIZE
19890/* Assume that all systems that can run configure have sys/param.h. */
19891# if !HAVE_SYS_PARAM_H
19892# define HAVE_SYS_PARAM_H 1
19893# endif
19894
John Criswell7a73b802003-06-30 21:59:07 +000019895# ifdef _SC_PAGESIZE
19896# define getpagesize() sysconf(_SC_PAGESIZE)
19897# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019898# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019899# include <sys/param.h>
19900# ifdef EXEC_PAGESIZE
19901# define getpagesize() EXEC_PAGESIZE
19902# else /* no EXEC_PAGESIZE */
19903# ifdef NBPG
19904# define getpagesize() NBPG * CLSIZE
19905# ifndef CLSIZE
19906# define CLSIZE 1
19907# endif /* no CLSIZE */
19908# else /* no NBPG */
19909# ifdef NBPC
19910# define getpagesize() NBPC
19911# else /* no NBPC */
19912# ifdef PAGESIZE
19913# define getpagesize() PAGESIZE
19914# endif /* PAGESIZE */
19915# endif /* no NBPC */
19916# endif /* no NBPG */
19917# endif /* no EXEC_PAGESIZE */
19918# else /* no HAVE_SYS_PARAM_H */
19919# define getpagesize() 8192 /* punt totally */
19920# endif /* no HAVE_SYS_PARAM_H */
19921# endif /* no _SC_PAGESIZE */
19922
19923#endif /* no HAVE_GETPAGESIZE */
19924
19925int
19926main ()
19927{
19928 char *data, *data2, *data3;
19929 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019930 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019931
19932 pagesize = getpagesize ();
19933
19934 /* First, make a file with some known garbage in it. */
19935 data = (char *) malloc (pagesize);
19936 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019937 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019938 for (i = 0; i < pagesize; ++i)
19939 *(data + i) = rand ();
19940 umask (0);
19941 fd = creat ("conftest.mmap", 0600);
19942 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019943 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019944 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019945 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019946 close (fd);
19947
19948 /* Next, try to mmap the file at a fixed address which already has
19949 something else allocated at it. If we can, also make sure that
19950 we see the same garbage. */
19951 fd = open ("conftest.mmap", O_RDWR);
19952 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019953 return 1;
19954 data2 = (char *) malloc (2 * pagesize);
19955 if (!data2)
19956 return 1;
19957 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019958 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019959 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019960 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019961 for (i = 0; i < pagesize; ++i)
19962 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019963 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019964
19965 /* Finally, make sure that changes to the mapped area do not
19966 percolate back to the file as seen by read(). (This is a bug on
19967 some variants of i386 svr4.0.) */
19968 for (i = 0; i < pagesize; ++i)
19969 *(data2 + i) = *(data2 + i) + 1;
19970 data3 = (char *) malloc (pagesize);
19971 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019972 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019973 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019974 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019975 for (i = 0; i < pagesize; ++i)
19976 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019977 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019978 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019979 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019980}
19981_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019982rm -f conftest$ac_exeext
19983if { (ac_try="$ac_link"
19984case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987esac
19988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_link") 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19993 { (case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996esac
19997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_try") 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020002 ac_cv_func_mmap_fixed_mapped=yes
20003else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020004 echo "$as_me: program exited with status $ac_status" >&5
20005echo "$as_me: failed program was:" >&5
20006sed 's/^/| /' conftest.$ac_ext >&5
20007
20008( exit $ac_status )
20009ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020011rm -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 +000020012fi
Reid Spencera773bd52006-08-04 18:18:08 +000020013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020014
John Criswell7a73b802003-06-30 21:59:07 +000020015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020016{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20017echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020018if test $ac_cv_func_mmap_fixed_mapped = yes; then
20019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020020cat >>confdefs.h <<\_ACEOF
20021#define HAVE_MMAP 1
20022_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020023
20024fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020025rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020027 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20028echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20029if test "${ac_cv_func_mmap_file+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020031else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020032 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020033ac_cpp='$CPP $CPPFLAGS'
20034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20036ac_compiler_gnu=$ac_cv_c_compiler_gnu
20037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020038 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020039 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020040else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020041 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020043 /* confdefs.h. */
20044_ACEOF
20045cat confdefs.h >>conftest.$ac_ext
20046cat >>conftest.$ac_ext <<_ACEOF
20047/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020048
John Criswell7a73b802003-06-30 21:59:07 +000020049#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020050#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020051#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020052
20053int
20054main ()
20055{
John Criswell7a73b802003-06-30 21:59:07 +000020056
20057 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020058 fd = creat ("foo",0777);
20059 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20060 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020061 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020062 ;
20063 return 0;
20064}
John Criswell7a73b802003-06-30 21:59:07 +000020065_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066rm -f conftest$ac_exeext
20067if { (ac_try="$ac_link"
20068case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071esac
20072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_link") 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20077 { (case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20080esac
20081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_try") 2>&5
20083 ac_status=$?
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020086 ac_cv_func_mmap_file=yes
20087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020088 echo "$as_me: program exited with status $ac_status" >&5
20089echo "$as_me: failed program was:" >&5
20090sed 's/^/| /' conftest.$ac_ext >&5
20091
20092( exit $ac_status )
20093ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020095rm -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 +000020096fi
Reid Spencera773bd52006-08-04 18:18:08 +000020097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020098
John Criswell7a73b802003-06-30 21:59:07 +000020099 ac_ext=c
20100ac_cpp='$CPP $CPPFLAGS'
20101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20103ac_compiler_gnu=$ac_cv_c_compiler_gnu
20104
20105
20106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020107{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20108echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020109if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020111cat >>confdefs.h <<\_ACEOF
20112#define HAVE_MMAP_FILE
20113_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020114
20115 MMAP_FILE=yes
20116
20117fi
20118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020119 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20120echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20121if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20122 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020123else
Reid Spencer582a23c2004-12-29 07:07:57 +000020124 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020125 ac_cv_need_dev_zero_for_mmap=yes
20126 else
20127 ac_cv_need_dev_zero_for_mmap=no
20128 fi
20129
20130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020131{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20132echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020133if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020135cat >>confdefs.h <<\_ACEOF
20136#define NEED_DEV_ZERO_FOR_MMAP 1
20137_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020138
20139fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020140
Reid Spencer30fe5262007-01-20 07:48:49 +000020141 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20142 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020143 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20144echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020145 fi
20146 if test "$ac_cv_func_mmap_file" = "no"
20147 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020148 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20149echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020150 fi
John Criswellb13092b2003-07-22 21:00:24 +000020151fi
John Criswell7a73b802003-06-30 21:59:07 +000020152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020153{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20154echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020155ac_ext=cpp
20156ac_cpp='$CXXCPP $CPPFLAGS'
20157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020161cat >conftest.$ac_ext <<_ACEOF
20162/* confdefs.h. */
20163_ACEOF
20164cat confdefs.h >>conftest.$ac_ext
20165cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020166/* end confdefs.h. */
20167int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020168 volatile unsigned long val = 1;
20169 __sync_synchronize();
20170 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020171 __sync_add_and_fetch(&val, 1);
20172 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020173 return 0;
20174 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020175
20176_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020177rm -f conftest.$ac_objext conftest$ac_exeext
20178if { (ac_try="$ac_link"
20179case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20182esac
20183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_link") 2>conftest.er1
20185 ac_status=$?
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } &&
20191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20192 { (case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20195esac
20196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_try") 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; } &&
20201 { ac_try='test -s conftest$ac_exeext'
20202 { (case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20205esac
20206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_try") 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020211 ac_ext=c
20212ac_cpp='$CPP $CPPFLAGS'
20213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20215ac_compiler_gnu=$ac_cv_c_compiler_gnu
20216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020217 { echo "$as_me:$LINENO: result: yes" >&5
20218echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020220cat >>confdefs.h <<\_ACEOF
20221#define LLVM_MULTITHREADED 1
20222_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020223
Owen Andersond4b272b2009-05-18 23:58:51 +000020224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020225 echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020228 { echo "$as_me:$LINENO: result: no" >&5
20229echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020231cat >>confdefs.h <<\_ACEOF
20232#define LLVM_MULTITHREADED 0
20233_ACEOF
20234
20235 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20236echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020238
Owen Andersond4b272b2009-05-18 23:58:51 +000020239rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020240 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020241
Owen Anderson009f20a2010-07-19 19:24:55 +000020242{ echo "$as_me:$LINENO: checking for getsect()" >&5
20243echo $ECHO_N "checking for getsect()... $ECHO_C" >&6; }
20244cat >conftest.$ac_ext <<_ACEOF
20245/* confdefs.h. */
20246_ACEOF
20247cat confdefs.h >>conftest.$ac_ext
20248cat >>conftest.$ac_ext <<_ACEOF
20249/* end confdefs.h. */
20250#include <mach-o/getsect.h>
20251 int main() {
20252 unsigned long p;
Owen Anderson519f1792010-07-19 19:42:01 +000020253 return (int)getsect("__DATA","__pass_info", &p);
Owen Anderson009f20a2010-07-19 19:24:55 +000020254 }
20255
20256_ACEOF
20257rm -f conftest.$ac_objext
20258if { (ac_try="$ac_compile"
20259case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20262esac
20263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_compile") 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20272 { (case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20275esac
20276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277 (eval "$ac_try") 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
20282 { (case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20285esac
20286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_try") 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; }; then
20291 { echo "$as_me:$LINENO: result: yes" >&5
20292echo "${ECHO_T}yes" >&6; }
20293
20294cat >>confdefs.h <<\_ACEOF
20295#define HAVE_GETSECT 1
20296_ACEOF
20297
20298else
20299 echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 { echo "$as_me:$LINENO: result: no" >&5
20303echo "${ECHO_T}no" >&6; }
20304
20305cat >>confdefs.h <<\_ACEOF
20306#define HAVE_GETSECT 1
20307_ACEOF
20308
20309
20310fi
20311
20312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313
Owen Andersond4b272b2009-05-18 23:58:51 +000020314
John Criswell7a73b802003-06-30 21:59:07 +000020315
Nick Lewycky4372e692009-09-29 06:18:23 +000020316if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020317 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20318echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20319if test "${llvm_cv_linux_mixed+set}" = set; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020321else
20322 ac_ext=c
20323ac_cpp='$CPP $CPPFLAGS'
20324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20326ac_compiler_gnu=$ac_cv_c_compiler_gnu
20327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020328 cat >conftest.$ac_ext <<_ACEOF
20329/* confdefs.h. */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020333/* end confdefs.h. */
20334#ifndef __x86_64__
20335 error: Not x86-64 even if uname says so!
20336 #endif
20337
20338int
20339main ()
20340{
20341
20342 ;
20343 return 0;
20344}
20345_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020346rm -f conftest.$ac_objext
20347if { (ac_try="$ac_compile"
20348case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20351esac
20352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_compile") 2>conftest.er1
20354 ac_status=$?
20355 grep -v '^ *+' conftest.er1 >conftest.err
20356 rm -f conftest.er1
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20361 { (case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20364esac
20365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_try") 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; } &&
20370 { ac_try='test -s conftest.$ac_objext'
20371 { (case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20374esac
20375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_try") 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020380 llvm_cv_linux_mixed=no
20381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020382 echo "$as_me: failed program was:" >&5
20383sed 's/^/| /' conftest.$ac_ext >&5
20384
20385 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020387
Nick Lewycky4372e692009-09-29 06:18:23 +000020388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20389 ac_ext=c
20390ac_cpp='$CPP $CPPFLAGS'
20391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393ac_compiler_gnu=$ac_cv_c_compiler_gnu
20394
20395
20396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020397{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20398echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020399
20400 if test "$llvm_cv_linux_mixed" = "yes"; then
20401 llvm_cv_target_arch="x86"
20402 ARCH="x86"
20403 fi
20404fi
20405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020406
Reid Spencer9372f152007-07-30 20:13:24 +000020407for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020408do
20409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20410{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20414else
20415 cat >conftest.$ac_ext <<_ACEOF
20416/* confdefs.h. */
20417_ACEOF
20418cat confdefs.h >>conftest.$ac_ext
20419cat >>conftest.$ac_ext <<_ACEOF
20420/* end confdefs.h. */
20421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20423#define $ac_func innocuous_$ac_func
20424
20425/* System header to define __stub macros and hopefully few prototypes,
20426 which can conflict with char $ac_func (); below.
20427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20428 <limits.h> exists even on freestanding compilers. */
20429
20430#ifdef __STDC__
20431# include <limits.h>
20432#else
20433# include <assert.h>
20434#endif
20435
20436#undef $ac_func
20437
20438/* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20441#ifdef __cplusplus
20442extern "C"
20443#endif
20444char $ac_func ();
20445/* The GNU C library defines this for functions which it implements
20446 to always fail with ENOSYS. Some functions are actually named
20447 something starting with __ and the normal name is an alias. */
20448#if defined __stub_$ac_func || defined __stub___$ac_func
20449choke me
20450#endif
20451
20452int
20453main ()
20454{
20455return $ac_func ();
20456 ;
20457 return 0;
20458}
20459_ACEOF
20460rm -f conftest.$ac_objext conftest$ac_exeext
20461if { (ac_try="$ac_link"
20462case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465esac
20466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_link") 2>conftest.er1
20468 ac_status=$?
20469 grep -v '^ *+' conftest.er1 >conftest.err
20470 rm -f conftest.er1
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } &&
20474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20475 { (case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20478esac
20479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_try") 2>&5
20481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; } &&
20484 { ac_try='test -s conftest$ac_exeext'
20485 { (case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20488esac
20489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_try") 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 eval "$as_ac_var=yes"
20495else
20496 echo "$as_me: failed program was:" >&5
20497sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 eval "$as_ac_var=no"
20500fi
20501
20502rm -f core conftest.err conftest.$ac_objext \
20503 conftest$ac_exeext conftest.$ac_ext
20504fi
20505ac_res=`eval echo '${'$as_ac_var'}'`
20506 { echo "$as_me:$LINENO: result: $ac_res" >&5
20507echo "${ECHO_T}$ac_res" >&6; }
20508if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020509 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020511_ACEOF
20512
20513fi
20514done
20515
20516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020517{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20518echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20519if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020521else
20522 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020523if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020524 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020525 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20526 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020527 if test $? -eq 0 ; then
20528 llvm_cv_llvmgcc_sanity="yes"
20529 fi
20530 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020531fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020532fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20534echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020535
20536if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020537 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20538echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020539 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020540 LLVMCC1=$llvmcc1path
20541
Reid Spencer502935f2004-12-22 05:56:56 +000020542 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020543 LLVMCC1PLUS=$llvmcc1pluspath
20544
Reid Spencer502935f2004-12-22 05:56:56 +000020545 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20546 LLVMGCCDIR=$llvmgccdir
20547
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020548 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020549 LLVMGCC_LANGS=$llvmgcclangs
20550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020551 { echo "$as_me:$LINENO: result: ok" >&5
20552echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020553fi
20554
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020555SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020556
20557
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020558SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20559
20560
Reid Spencere9de0912004-08-20 09:03:57 +000020561# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020562# information into substitutions that will end up in Makefile.config.in
20563# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020564if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020565 prefix="/usr/local"
20566fi
Reid Spencere9de0912004-08-20 09:03:57 +000020567eval LLVM_PREFIX="${prefix}";
20568eval LLVM_BINDIR="${prefix}/bin";
20569eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020570eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020571eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020572eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020573eval LLVM_INCLUDEDIR="${prefix}/include";
20574eval LLVM_INFODIR="${prefix}/info";
20575eval LLVM_MANDIR="${prefix}/man";
20576LLVM_CONFIGTIME=`date`
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020588# Place the various directores into the config.h file as #defines so that we
20589# can know about the installation paths within LLVM.
20590
Reid Spencere9de0912004-08-20 09:03:57 +000020591cat >>confdefs.h <<_ACEOF
20592#define LLVM_PREFIX "$LLVM_PREFIX"
20593_ACEOF
20594
20595
20596cat >>confdefs.h <<_ACEOF
20597#define LLVM_BINDIR "$LLVM_BINDIR"
20598_ACEOF
20599
20600
20601cat >>confdefs.h <<_ACEOF
20602#define LLVM_LIBDIR "$LLVM_LIBDIR"
20603_ACEOF
20604
20605
20606cat >>confdefs.h <<_ACEOF
20607#define LLVM_DATADIR "$LLVM_DATADIR"
20608_ACEOF
20609
20610
20611cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020612#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020613_ACEOF
20614
20615
20616cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020617#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020618_ACEOF
20619
20620
20621cat >>confdefs.h <<_ACEOF
20622#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20623_ACEOF
20624
20625
20626cat >>confdefs.h <<_ACEOF
20627#define LLVM_INFODIR "$LLVM_INFODIR"
20628_ACEOF
20629
20630
20631cat >>confdefs.h <<_ACEOF
20632#define LLVM_MANDIR "$LLVM_MANDIR"
20633_ACEOF
20634
20635
20636cat >>confdefs.h <<_ACEOF
20637#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20638_ACEOF
20639
20640
Eric Christopher790e11c2007-12-01 00:34:39 +000020641cat >>confdefs.h <<_ACEOF
20642#define LLVM_HOSTTRIPLE "$host"
20643_ACEOF
20644
20645
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020646# Determine which bindings to build.
20647if test "$BINDINGS_TO_BUILD" = auto ; then
20648 BINDINGS_TO_BUILD=""
20649 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20650 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20651 fi
20652fi
20653BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20654
20655
20656# This isn't really configurey, but it avoids having to repeat the list in
20657# other files.
20658ALL_BINDINGS=ocaml
20659
20660
Gordon Henriksenf0915682007-10-02 16:42:22 +000020661# Do any work necessary to ensure that bindings have what they need.
20662binding_prereqs_failed=0
20663for a_binding in $BINDINGS_TO_BUILD ; do
20664 case "$a_binding" in
20665 ocaml)
20666 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20668echo "$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 +000020669 binding_prereqs_failed=1
20670 fi
20671 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020672 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20673echo "$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 +000020674 binding_prereqs_failed=1
20675 fi
20676 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020677 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20678echo "$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 +000020679 fi
20680 if test "x$with_ocaml_libdir" != xauto ; then
20681 OCAML_LIBDIR=$with_ocaml_libdir
20682
20683 else
20684 ocaml_stdlib="`"$OCAMLC" -where`"
20685 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20686 then
20687 # ocaml stdlib is beneath our prefix; use stdlib
20688 OCAML_LIBDIR=$ocaml_stdlib
20689
20690 else
20691 # ocaml stdlib is outside our prefix; use libdir/ocaml
20692 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20693
20694 fi
20695 fi
20696 ;;
20697 esac
20698done
20699if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020700 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20701echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20702 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020703fi
20704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020705{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20706echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20707if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020709else
20710 ac_ext=cpp
20711ac_cpp='$CXXCPP $CPPFLAGS'
20712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20715
20716 oldcxxflags="$CXXFLAGS"
20717 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020718 cat >conftest.$ac_ext <<_ACEOF
20719/* confdefs.h. */
20720_ACEOF
20721cat confdefs.h >>conftest.$ac_ext
20722cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020723/* end confdefs.h. */
20724
20725int
20726main ()
20727{
20728
20729 ;
20730 return 0;
20731}
20732_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020733rm -f conftest.$ac_objext
20734if { (ac_try="$ac_compile"
20735case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20738esac
20739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_compile") 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20748 { (case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751esac
20752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_try") 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; } &&
20757 { ac_try='test -s conftest.$ac_objext'
20758 { (case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20761esac
20762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763 (eval "$ac_try") 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020767 llvm_cv_cxx_visibility_inlines_hidden=yes
20768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020769 echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20776 CXXFLAGS="$oldcxxflags"
20777 ac_ext=c
20778ac_cpp='$CPP $CPPFLAGS'
20779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781ac_compiler_gnu=$ac_cv_c_compiler_gnu
20782
20783
20784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020785{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20786echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020787if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20788 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20789
20790else
20791 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20792
20793fi
20794
Gordon Henriksenf0915682007-10-02 16:42:22 +000020795
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020796if test "$llvm_cv_link_use_r" = "yes" ; then
20797 RPATH="-Wl,-R"
20798else
20799 RPATH="-Wl,-rpath"
20800fi
20801
20802
20803if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20804 RDYNAMIC="-Wl,-export-dynamic"
20805else
20806 RDYNAMIC=""
20807fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020808
20809
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020810
Eric Christophera1cba682010-08-08 02:44:25 +000020811ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020812
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020813
20814
20815
20816
20817
Douglas Gregor1555a232009-06-16 20:12:29 +000020818ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20819
20820ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20821
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020822ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20823
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020824ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20825
Chandler Carruth8b67f772009-10-26 01:35:46 +000020826ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020827
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020828
Reid Spencera773bd52006-08-04 18:18:08 +000020829ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020830
20831
Reid Spencerea949cf2006-08-16 00:45:38 +000020832ac_config_files="$ac_config_files llvm.spec"
20833
20834
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020835ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020836
20837
Reid Spencera773bd52006-08-04 18:18:08 +000020838ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020839
20840
Reid Spencera773bd52006-08-04 18:18:08 +000020841ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020842
Reid Spencera773bd52006-08-04 18:18:08 +000020843ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020844
20845
Reid Spencera773bd52006-08-04 18:18:08 +000020846ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020847
20848
Reid Spencera773bd52006-08-04 18:18:08 +000020849ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020850
20851
Reid Spencera773bd52006-08-04 18:18:08 +000020852ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020853
20854
Reid Spencer8b2e1412006-11-17 03:32:33 +000020855ac_config_commands="$ac_config_commands runtime/Makefile"
20856
20857
Reid Spencera773bd52006-08-04 18:18:08 +000020858ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020859
20860
Reid Spencera773bd52006-08-04 18:18:08 +000020861ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020862
20863
Bill Wendlingf24eb392009-01-04 23:12:30 +000020864ac_config_commands="$ac_config_commands unittests/Makefile"
20865
20866
Reid Spencera773bd52006-08-04 18:18:08 +000020867ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020868
20869
Reid Spencera773bd52006-08-04 18:18:08 +000020870ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020871
20872
Reid Spencera773bd52006-08-04 18:18:08 +000020873ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020874
20875
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020876ac_config_commands="$ac_config_commands bindings/Makefile"
20877
20878
20879ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20880
20881
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020882
John Criswell7a73b802003-06-30 21:59:07 +000020883cat >confcache <<\_ACEOF
20884# This file is a shell script that caches the results of configure
20885# tests run on this system so they can be shared between configure
20886# scripts and configure runs, see configure's option --config-cache.
20887# It is not useful on other systems. If it contains results you don't
20888# want to keep, you may remove or edit it.
20889#
20890# config.status only pays attention to the cache file if you give it
20891# the --recheck option to rerun configure.
20892#
John Criswell0c38eaf2003-09-10 15:17:25 +000020893# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020894# loading this file, other *unset* `ac_cv_foo' will be assigned the
20895# following values.
20896
20897_ACEOF
20898
20899# The following way of writing the cache mishandles newlines in values,
20900# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020901# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020902# Ultrix sh set writes to stderr and can't be redirected directly,
20903# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020904(
20905 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20906 eval ac_val=\$$ac_var
20907 case $ac_val in #(
20908 *${as_nl}*)
20909 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020910 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20911echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020912 esac
20913 case $ac_var in #(
20914 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020915 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020916 esac ;;
20917 esac
20918 done
20919
John Criswell7a73b802003-06-30 21:59:07 +000020920 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20922 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923 # `set' does not quote correctly, so add quotes (double-quote
20924 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020925 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020926 "s/'/'\\\\''/g;
20927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020928 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020929 *)
20930 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020932 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020933 esac |
20934 sort
20935) |
John Criswell7a73b802003-06-30 21:59:07 +000020936 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020937 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020938 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020939 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20941 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20943 :end' >>confcache
20944if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20945 if test -w "$cache_file"; then
20946 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020947 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20948echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020949 cat confcache >$cache_file
20950 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020951 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20952echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020953 fi
20954fi
20955rm -f confcache
20956
20957test "x$prefix" = xNONE && prefix=$ac_default_prefix
20958# Let make expand exec_prefix.
20959test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20960
John Criswell7a73b802003-06-30 21:59:07 +000020961DEFS=-DHAVE_CONFIG_H
20962
John Criswell0c38eaf2003-09-10 15:17:25 +000020963ac_libobjs=
20964ac_ltlibobjs=
20965for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20966 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020967 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020968 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020969 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20970 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020971 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20972 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020973done
20974LIBOBJS=$ac_libobjs
20975
20976LTLIBOBJS=$ac_ltlibobjs
20977
20978
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020979if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020980 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20981Usually this means the macro was only invoked conditionally." >&5
20982echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20983Usually this means the macro was only invoked conditionally." >&2;}
20984 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020985fi
20986if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020987 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20988Usually this means the macro was only invoked conditionally." >&5
20989echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20990Usually this means the macro was only invoked conditionally." >&2;}
20991 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020992fi
John Criswell7a73b802003-06-30 21:59:07 +000020993
20994: ${CONFIG_STATUS=./config.status}
20995ac_clean_files_save=$ac_clean_files
20996ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020997{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20998echo "$as_me: creating $CONFIG_STATUS" >&6;}
20999cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021000#! $SHELL
21001# Generated by $as_me.
21002# Run this file to recreate the current configuration.
21003# Compiler output produced by configure, useful for debugging
21004# configure, is in config.log if it exists.
21005
21006debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021007ac_cs_recheck=false
21008ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021009SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021010_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021012cat >>$CONFIG_STATUS <<\_ACEOF
21013## --------------------- ##
21014## M4sh Initialization. ##
21015## --------------------- ##
21016
21017# Be Bourne compatible
21018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021019 emulate sh
21020 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021022 # is contrary to our usage. Disable this feature.
21023 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021024 setopt NO_GLOB_SUBST
21025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021028BIN_SH=xpg4; export BIN_SH # for Tru64
21029DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021030
John Criswell7a73b802003-06-30 21:59:07 +000021031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021032# PATH needs CR
21033# Avoid depending upon Character Ranges.
21034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21035as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21036as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21037as_cr_digits='0123456789'
21038as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021039
21040# The user is always right.
21041if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021042 echo "#! /bin/sh" >conf$$.sh
21043 echo "exit 0" >>conf$$.sh
21044 chmod +x conf$$.sh
21045 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21046 PATH_SEPARATOR=';'
21047 else
21048 PATH_SEPARATOR=:
21049 fi
21050 rm -f conf$$.sh
21051fi
21052
21053# Support unset when possible.
21054if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21055 as_unset=unset
21056else
21057 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021058fi
John Criswell7a73b802003-06-30 21:59:07 +000021059
Reid Spencera773bd52006-08-04 18:18:08 +000021060
21061# IFS
21062# We need space, tab and new line, in precisely that order. Quoting is
21063# there to prevent editors from complaining about space-tab.
21064# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21065# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021066as_nl='
21067'
Reid Spencera773bd52006-08-04 18:18:08 +000021068IFS=" "" $as_nl"
21069
21070# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021072 *[\\/]* ) as_myself=$0 ;;
21073 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021074for as_dir in $PATH
21075do
21076 IFS=$as_save_IFS
21077 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21079done
Reid Spencera773bd52006-08-04 18:18:08 +000021080IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021081
Reid Spencera773bd52006-08-04 18:18:08 +000021082 ;;
21083esac
21084# We did not find ourselves, most probably we were run as `sh COMMAND'
21085# in which case we are not to be found in the path.
21086if test "x$as_myself" = x; then
21087 as_myself=$0
21088fi
21089if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21091 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021092fi
21093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021094# Work around bugs in pre-3.0 UWIN ksh.
21095for as_var in ENV MAIL MAILPATH
21096do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021097done
21098PS1='$ '
21099PS2='> '
21100PS4='+ '
21101
21102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021103for as_var in \
21104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21106 LC_TELEPHONE LC_TIME
21107do
21108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21109 eval $as_var=C; export $as_var
21110 else
21111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021113done
Torok Edwin871384f2010-01-26 08:50:50 +000021114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021116if expr a : '\(a\)' >/dev/null 2>&1 &&
21117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21118 as_expr=expr
21119else
21120 as_expr=false
21121fi
21122
21123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21124 as_basename=basename
21125else
21126 as_basename=false
21127fi
21128
21129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021131as_me=`$as_basename -- "$0" ||
21132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21133 X"$0" : 'X\(//\)$' \| \
21134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021136 sed '/^.*\/\([^/][^/]*\)\/*$/{
21137 s//\1/
21138 q
21139 }
21140 /^X\/\(\/\/\)$/{
21141 s//\1/
21142 q
21143 }
21144 /^X\/\(\/\).*/{
21145 s//\1/
21146 q
21147 }
21148 s/.*/./; q'`
21149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021150# CDPATH.
21151$as_unset CDPATH
21152
21153
21154
21155 as_lineno_1=$LINENO
21156 as_lineno_2=$LINENO
21157 test "x$as_lineno_1" != "x$as_lineno_2" &&
21158 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21159
21160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21161 # uniformly replaced by the line number. The first 'sed' inserts a
21162 # line-number line after each line using $LINENO; the second 'sed'
21163 # does the real work. The second script uses 'N' to pair each
21164 # line-number line with the line containing $LINENO, and appends
21165 # trailing '-' during substitution so that $LINENO is not a special
21166 # case at line end.
21167 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21168 # scripts with optimization help from Paolo Bonzini. Blame Lee
21169 # E. McMahon (1931-1989) for sed's syntax. :-)
21170 sed -n '
21171 p
21172 /[$]LINENO/=
21173 ' <$as_myself |
21174 sed '
21175 s/[$]LINENO.*/&-/
21176 t lineno
21177 b
21178 :lineno
21179 N
21180 :loop
21181 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21182 t loop
21183 s/-\n.*//
21184 ' >$as_me.lineno &&
21185 chmod +x "$as_me.lineno" ||
21186 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21187 { (exit 1); exit 1; }; }
21188
21189 # Don't try to exec as it changes $[0], causing all sort of problems
21190 # (the dirname of $[0] is not the place where we might find the
21191 # original and so on. Autoconf is especially sensitive to this).
21192 . "./$as_me.lineno"
21193 # Exit status is that of the last command.
21194 exit
21195}
21196
21197
21198if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21199 as_dirname=dirname
21200else
21201 as_dirname=false
21202fi
Reid Spencera773bd52006-08-04 18:18:08 +000021203
21204ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021205case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021206-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021207 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021208 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021210 esac;;
21211*)
21212 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021213esac
21214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021215if expr a : '\(a\)' >/dev/null 2>&1 &&
21216 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21217 as_expr=expr
21218else
21219 as_expr=false
21220fi
21221
John Criswell7a73b802003-06-30 21:59:07 +000021222rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021223if test -d conf$$.dir; then
21224 rm -f conf$$.dir/conf$$.file
21225else
21226 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021227 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021229echo >conf$$.file
21230if ln -s conf$$.file conf$$ 2>/dev/null; then
21231 as_ln_s='ln -s'
21232 # ... but there are two gotchas:
21233 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21234 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21235 # In both cases, we have to default to `cp -p'.
21236 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021237 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021238elif ln conf$$.file conf$$ 2>/dev/null; then
21239 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021240else
21241 as_ln_s='cp -p'
21242fi
Reid Spencera773bd52006-08-04 18:18:08 +000021243rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21244rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021245
John Criswell0c38eaf2003-09-10 15:17:25 +000021246if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021247 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021248else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021249 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021250 as_mkdir_p=false
21251fi
21252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021253# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21254# systems may use methods other than mode bits to determine executability.
21255cat >conf$$.file <<_ASEOF
21256#! /bin/sh
21257exit 0
21258_ASEOF
21259chmod +x conf$$.file
21260if test -x conf$$.file >/dev/null 2>&1; then
21261 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021262else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021263 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021266
21267# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021268as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021269
21270# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021271as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021272
21273
John Criswell7a73b802003-06-30 21:59:07 +000021274exec 6>&1
21275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021276# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021277# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021278# values after options handling.
21279ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021280This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021281generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021282
21283 CONFIG_FILES = $CONFIG_FILES
21284 CONFIG_HEADERS = $CONFIG_HEADERS
21285 CONFIG_LINKS = $CONFIG_LINKS
21286 CONFIG_COMMANDS = $CONFIG_COMMANDS
21287 $ $0 $@
21288
Reid Spencera773bd52006-08-04 18:18:08 +000021289on `(hostname || uname -n) 2>/dev/null | sed 1q`
21290"
21291
John Criswell7a73b802003-06-30 21:59:07 +000021292_ACEOF
21293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021294cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021295# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021296config_files="$ac_config_files"
21297config_headers="$ac_config_headers"
21298config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021299
Reid Spencera773bd52006-08-04 18:18:08 +000021300_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021303ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021304\`$as_me' instantiates files from templates according to the
21305current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021307Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021308
21309 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021310 -V, --version print version number, then exit
21311 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021312 -d, --debug don't remove temporary files
21313 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021314 --file=FILE[:TEMPLATE]
21315 instantiate the configuration file FILE
21316 --header=FILE[:TEMPLATE]
21317 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021318
21319Configuration files:
21320$config_files
21321
21322Configuration headers:
21323$config_headers
21324
John Criswellc764fbc2003-09-06 15:17:13 +000021325Configuration commands:
21326$config_commands
21327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021328Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021329
Reid Spencera773bd52006-08-04 18:18:08 +000021330_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021331cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021332ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021333llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021334configured by $0, generated by GNU Autoconf 2.60,
21335 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021337Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021338This config.status script is free software; the Free Software Foundation
21339gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021340
21341ac_pwd='$ac_pwd'
21342srcdir='$srcdir'
21343INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021344_ACEOF
21345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021346cat >>$CONFIG_STATUS <<\_ACEOF
21347# If no file are specified by the user, then we need to provide default
21348# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021349ac_need_defaults=:
21350while test $# != 0
21351do
21352 case $1 in
21353 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21355 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021356 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021357 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021358 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021359 ac_option=$1
21360 ac_optarg=$2
21361 ac_shift=shift
21362 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021363 esac
21364
John Criswell0c38eaf2003-09-10 15:17:25 +000021365 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021366 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21368 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021369 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021370 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021371 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021372 debug=: ;;
21373 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021374 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021375 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021376 ac_need_defaults=false;;
21377 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021378 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021380 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021381 --he | --h)
21382 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383 { echo "$as_me: error: ambiguous option: $1
21384Try \`$0 --help' for more information." >&2
21385 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021386 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021387 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21389 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21390 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021391
21392 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021393 -*) { echo "$as_me: error: unrecognized option: $1
21394Try \`$0 --help' for more information." >&2
21395 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021397 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021398 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021399
21400 esac
21401 shift
21402done
21403
John Criswell0c38eaf2003-09-10 15:17:25 +000021404ac_configure_extra_args=
21405
21406if $ac_cs_silent; then
21407 exec 6>/dev/null
21408 ac_configure_extra_args="$ac_configure_extra_args --silent"
21409fi
21410
21411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021413if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021414 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21415 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021416 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021417 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021418fi
21419
John Criswell7a73b802003-06-30 21:59:07 +000021420_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021421cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021422exec 5>>config.log
21423{
21424 echo
21425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21426## Running $as_me. ##
21427_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021428 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021429} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021430
Reid Spencera773bd52006-08-04 18:18:08 +000021431_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021432cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021433#
Reid Spencera773bd52006-08-04 18:18:08 +000021434# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021435#
Reid Spencerc0682832005-02-24 19:05:19 +000021436llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021437
21438_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021440cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021441
21442# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021443for ac_config_target in $ac_config_targets
21444do
Reid Spencera773bd52006-08-04 18:18:08 +000021445 case $ac_config_target in
21446 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021447 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021448 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21449 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021450 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021451 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021452 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021453 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021454 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021455 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021456 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21457 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21458 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21459 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21460 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21461 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021462 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021463 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21464 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021465 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021466 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21467 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21468 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021469 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21470 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021472 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21473echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21474 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021475 esac
21476done
21477
Reid Spencera773bd52006-08-04 18:18:08 +000021478
John Criswell7a73b802003-06-30 21:59:07 +000021479# If the user did not use the arguments to specify the items to instantiate,
21480# then the envvar interface is used. Set only those that are not.
21481# We use the long form for the default assignment because of an extremely
21482# bizarre bug on SunOS 4.1.3.
21483if $ac_need_defaults; then
21484 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21485 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021486 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021487fi
21488
John Criswell0c38eaf2003-09-10 15:17:25 +000021489# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021490# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021491# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021492# Hook for its removal unless debugging.
21493# Note that there is a small window in which the directory will not be cleaned:
21494# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021495$debug ||
21496{
Reid Spencera773bd52006-08-04 18:18:08 +000021497 tmp=
21498 trap 'exit_status=$?
21499 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21500' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021502}
John Criswell7a73b802003-06-30 21:59:07 +000021503# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021504
John Criswell7a73b802003-06-30 21:59:07 +000021505{
Reid Spencera773bd52006-08-04 18:18:08 +000021506 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021507 test -n "$tmp" && test -d "$tmp"
21508} ||
21509{
Reid Spencera773bd52006-08-04 18:18:08 +000021510 tmp=./conf$$-$RANDOM
21511 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021512} ||
21513{
21514 echo "$me: cannot create a temporary directory in ." >&2
21515 { (exit 1); exit 1; }
21516}
John Criswell7a73b802003-06-30 21:59:07 +000021517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518#
21519# Set up the sed scripts for CONFIG_FILES section.
21520#
21521
21522# No need to generate the scripts if there are no CONFIG_FILES.
21523# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021524if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021525
21526_ACEOF
21527
Reid Spencera773bd52006-08-04 18:18:08 +000021528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021529
Reid Spencera773bd52006-08-04 18:18:08 +000021530ac_delim='%!_!# '
21531for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021532 cat >conf$$subs.sed <<_ACEOF
21533SHELL!$SHELL$ac_delim
21534PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21535PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21536PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21537PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21538PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21539PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21540exec_prefix!$exec_prefix$ac_delim
21541prefix!$prefix$ac_delim
21542program_transform_name!$program_transform_name$ac_delim
21543bindir!$bindir$ac_delim
21544sbindir!$sbindir$ac_delim
21545libexecdir!$libexecdir$ac_delim
21546datarootdir!$datarootdir$ac_delim
21547datadir!$datadir$ac_delim
21548sysconfdir!$sysconfdir$ac_delim
21549sharedstatedir!$sharedstatedir$ac_delim
21550localstatedir!$localstatedir$ac_delim
21551includedir!$includedir$ac_delim
21552oldincludedir!$oldincludedir$ac_delim
21553docdir!$docdir$ac_delim
21554infodir!$infodir$ac_delim
21555htmldir!$htmldir$ac_delim
21556dvidir!$dvidir$ac_delim
21557pdfdir!$pdfdir$ac_delim
21558psdir!$psdir$ac_delim
21559libdir!$libdir$ac_delim
21560localedir!$localedir$ac_delim
21561mandir!$mandir$ac_delim
21562DEFS!$DEFS$ac_delim
21563ECHO_C!$ECHO_C$ac_delim
21564ECHO_N!$ECHO_N$ac_delim
21565ECHO_T!$ECHO_T$ac_delim
21566LIBS!$LIBS$ac_delim
21567build_alias!$build_alias$ac_delim
21568host_alias!$host_alias$ac_delim
21569target_alias!$target_alias$ac_delim
21570LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21571subdirs!$subdirs$ac_delim
21572build!$build$ac_delim
21573build_cpu!$build_cpu$ac_delim
21574build_vendor!$build_vendor$ac_delim
21575build_os!$build_os$ac_delim
21576host!$host$ac_delim
21577host_cpu!$host_cpu$ac_delim
21578host_vendor!$host_vendor$ac_delim
21579host_os!$host_os$ac_delim
21580target!$target$ac_delim
21581target_cpu!$target_cpu$ac_delim
21582target_vendor!$target_vendor$ac_delim
21583target_os!$target_os$ac_delim
21584OS!$OS$ac_delim
21585HOST_OS!$HOST_OS$ac_delim
21586TARGET_OS!$TARGET_OS$ac_delim
21587LINKALL!$LINKALL$ac_delim
21588NOLINKALL!$NOLINKALL$ac_delim
21589LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21590LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21591ARCH!$ARCH$ac_delim
21592ENDIAN!$ENDIAN$ac_delim
21593CC!$CC$ac_delim
21594CFLAGS!$CFLAGS$ac_delim
21595LDFLAGS!$LDFLAGS$ac_delim
21596CPPFLAGS!$CPPFLAGS$ac_delim
21597ac_ct_CC!$ac_ct_CC$ac_delim
21598EXEEXT!$EXEEXT$ac_delim
21599OBJEXT!$OBJEXT$ac_delim
21600CPP!$CPP$ac_delim
21601GREP!$GREP$ac_delim
21602EGREP!$EGREP$ac_delim
21603LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21604BUILD_CC!$BUILD_CC$ac_delim
21605BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21606BUILD_CXX!$BUILD_CXX$ac_delim
21607CVSBUILD!$CVSBUILD$ac_delim
21608ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21609ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21610DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21611ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21612EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21613DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21614DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21615JIT!$JIT$ac_delim
21616TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21617ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21618ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21619ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021620ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021621ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021622TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21623LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21624LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21625LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21626LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21627ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021628CLANGPATH!$CLANGPATH$ac_delim
21629CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021632 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021633 break
21634 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021635 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21636echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21637 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021638 else
21639 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021640 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021641done
21642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021643ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21644if test -n "$ac_eof"; then
21645 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21646 ac_eof=`expr $ac_eof + 1`
21647fi
21648
21649cat >>$CONFIG_STATUS <<_ACEOF
21650cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21651/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021652_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021653sed '
21654s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21655s/^/s,@/; s/!/@,|#_!!_#|/
21656:n
21657t n
21658s/'"$ac_delim"'$/,g/; t
21659s/$/\\/; p
21660N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21661' >>$CONFIG_STATUS <conf$$subs.sed
21662rm -f conf$$subs.sed
21663cat >>$CONFIG_STATUS <<_ACEOF
21664CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021665_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666
21667
21668ac_delim='%!_!# '
21669for ac_last_try in false false false false false :; do
21670 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021671ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021672OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021673EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21674BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021675CXX!$CXX$ac_delim
21676CXXFLAGS!$CXXFLAGS$ac_delim
21677ac_ct_CXX!$ac_ct_CXX$ac_delim
21678NM!$NM$ac_delim
21679ifGNUmake!$ifGNUmake$ac_delim
21680LN_S!$LN_S$ac_delim
21681CMP!$CMP$ac_delim
21682CP!$CP$ac_delim
21683DATE!$DATE$ac_delim
21684FIND!$FIND$ac_delim
21685MKDIR!$MKDIR$ac_delim
21686MV!$MV$ac_delim
21687RANLIB!$RANLIB$ac_delim
21688AR!$AR$ac_delim
21689RM!$RM$ac_delim
21690SED!$SED$ac_delim
21691TAR!$TAR$ac_delim
21692BINPWD!$BINPWD$ac_delim
21693GRAPHVIZ!$GRAPHVIZ$ac_delim
21694DOT!$DOT$ac_delim
21695FDP!$FDP$ac_delim
21696NEATO!$NEATO$ac_delim
21697TWOPI!$TWOPI$ac_delim
21698CIRCO!$CIRCO$ac_delim
21699GV!$GV$ac_delim
21700DOTTY!$DOTTY$ac_delim
21701PERL!$PERL$ac_delim
21702HAVE_PERL!$HAVE_PERL$ac_delim
21703INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21704INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21705INSTALL_DATA!$INSTALL_DATA$ac_delim
21706BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021707CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708DOXYGEN!$DOXYGEN$ac_delim
21709GROFF!$GROFF$ac_delim
21710GZIP!$GZIP$ac_delim
21711POD2HTML!$POD2HTML$ac_delim
21712POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021713PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021714RUNTEST!$RUNTEST$ac_delim
21715TCLSH!$TCLSH$ac_delim
21716ZIP!$ZIP$ac_delim
21717OCAMLC!$OCAMLC$ac_delim
21718OCAMLOPT!$OCAMLOPT$ac_delim
21719OCAMLDEP!$OCAMLDEP$ac_delim
21720OCAMLDOC!$OCAMLDOC$ac_delim
21721GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021722HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21724INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21725CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21726CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21727LIBADD_DL!$LIBADD_DL$ac_delim
21728LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21729LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21730LLVMGCC!$LLVMGCC$ac_delim
21731LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021732LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021733NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21734NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21735USE_UDIS86!$USE_UDIS86$ac_delim
21736USE_OPROFILE!$USE_OPROFILE$ac_delim
21737HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21738HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21739MMAP_FILE!$MMAP_FILE$ac_delim
21740LLVMCC1!$LLVMCC1$ac_delim
21741LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21742LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021743LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21744SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021745SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021746LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21747LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21748LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21749LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21750LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21751LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21752LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21753LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21754LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21755LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21756BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21757ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21758OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21759ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21760RPATH!$RPATH$ac_delim
21761RDYNAMIC!$RDYNAMIC$ac_delim
21762LIBOBJS!$LIBOBJS$ac_delim
21763LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021764_ACEOF
21765
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021766 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021767 break
21768 elif $ac_last_try; then
21769 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21770echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21771 { (exit 1); exit 1; }; }
21772 else
21773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21774 fi
21775done
21776
21777ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21778if test -n "$ac_eof"; then
21779 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21780 ac_eof=`expr $ac_eof + 1`
21781fi
21782
21783cat >>$CONFIG_STATUS <<_ACEOF
21784cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21785/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21786_ACEOF
21787sed '
21788s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21789s/^/s,@/; s/!/@,|#_!!_#|/
21790:n
21791t n
21792s/'"$ac_delim"'$/,g/; t
21793s/$/\\/; p
21794N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21795' >>$CONFIG_STATUS <conf$$subs.sed
21796rm -f conf$$subs.sed
21797cat >>$CONFIG_STATUS <<_ACEOF
21798:end
21799s/|#_!!_#|//g
21800CEOF$ac_eof
21801_ACEOF
21802
21803
Reid Spencera773bd52006-08-04 18:18:08 +000021804# VPATH may cause trouble with some makes, so we remove $(srcdir),
21805# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21806# trailing colons and then remove the whole line if VPATH becomes empty
21807# (actually we leave an empty line to preserve line numbers).
21808if test "x$srcdir" = x.; then
21809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21810s/:*\$(srcdir):*/:/
21811s/:*\${srcdir}:*/:/
21812s/:*@srcdir@:*/:/
21813s/^\([^=]*=[ ]*\):*/\1/
21814s/:*$//
21815s/^[^=]*=[ ]*$//
21816}'
21817fi
21818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021819cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021820fi # test -n "$CONFIG_FILES"
21821
Reid Spencera773bd52006-08-04 18:18:08 +000021822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021824do
21825 case $ac_tag in
21826 :[FHLC]) ac_mode=$ac_tag; continue;;
21827 esac
21828 case $ac_mode$ac_tag in
21829 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021830 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21831echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21832 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021833 :[FH]-) ac_tag=-:-;;
21834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21835 esac
21836 ac_save_IFS=$IFS
21837 IFS=:
21838 set x $ac_tag
21839 IFS=$ac_save_IFS
21840 shift
21841 ac_file=$1
21842 shift
21843
21844 case $ac_mode in
21845 :L) ac_source=$1;;
21846 :[FH])
21847 ac_file_inputs=
21848 for ac_f
21849 do
21850 case $ac_f in
21851 -) ac_f="$tmp/stdin";;
21852 *) # Look for the file first in the build tree, then in the source tree
21853 # (if the path is not absolute). The absolute path cannot be DOS-style,
21854 # because $ac_f cannot contain `:'.
21855 test -f "$ac_f" ||
21856 case $ac_f in
21857 [\\/$]*) false;;
21858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21859 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021860 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21861echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21862 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021863 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021865 done
21866
21867 # Let's still pretend it is `configure' which instantiates (i.e., don't
21868 # use $as_me), people would be surprised to read:
21869 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870 configure_input="Generated from "`IFS=:
21871 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021872 if test x"$ac_file" != x-; then
21873 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021874 { echo "$as_me:$LINENO: creating $ac_file" >&5
21875echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021876 fi
21877
21878 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021879 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021880 esac
21881 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021882 esac
21883
Reid Spencera773bd52006-08-04 18:18:08 +000021884 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021885$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021886 X"$ac_file" : 'X\(//\)[^/]' \| \
21887 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21891 s//\1/
21892 q
21893 }
21894 /^X\(\/\/\)[^/].*/{
21895 s//\1/
21896 q
21897 }
21898 /^X\(\/\/\)$/{
21899 s//\1/
21900 q
21901 }
21902 /^X\(\/\).*/{
21903 s//\1/
21904 q
21905 }
21906 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907 { as_dir="$ac_dir"
21908 case $as_dir in #(
21909 -*) as_dir=./$as_dir;;
21910 esac
21911 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21912 as_dirs=
21913 while :; do
21914 case $as_dir in #(
21915 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21916 *) as_qdir=$as_dir;;
21917 esac
21918 as_dirs="'$as_qdir' $as_dirs"
21919 as_dir=`$as_dirname -- "$as_dir" ||
21920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21921 X"$as_dir" : 'X\(//\)[^/]' \| \
21922 X"$as_dir" : 'X\(//\)$' \| \
21923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21924echo X"$as_dir" |
21925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21926 s//\1/
21927 q
21928 }
21929 /^X\(\/\/\)[^/].*/{
21930 s//\1/
21931 q
21932 }
21933 /^X\(\/\/\)$/{
21934 s//\1/
21935 q
21936 }
21937 /^X\(\/\).*/{
21938 s//\1/
21939 q
21940 }
21941 s/.*/./; q'`
21942 test -d "$as_dir" && break
21943 done
21944 test -z "$as_dirs" || eval "mkdir $as_dirs"
21945 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21946echo "$as_me: error: cannot create directory $as_dir" >&2;}
21947 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021948 ac_builddir=.
21949
Reid Spencera773bd52006-08-04 18:18:08 +000021950case "$ac_dir" in
21951.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21952*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021954 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021955 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021956 case $ac_top_builddir_sub in
21957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21959 esac ;;
21960esac
21961ac_abs_top_builddir=$ac_pwd
21962ac_abs_builddir=$ac_pwd$ac_dir_suffix
21963# for backward compatibility:
21964ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021965
21966case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021967 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021968 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021969 ac_top_srcdir=$ac_top_builddir_sub
21970 ac_abs_top_srcdir=$ac_pwd ;;
21971 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021972 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021973 ac_top_srcdir=$srcdir
21974 ac_abs_top_srcdir=$srcdir ;;
21975 *) # Relative name.
21976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21977 ac_top_srcdir=$ac_top_build_prefix$srcdir
21978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021979esac
Reid Spencera773bd52006-08-04 18:18:08 +000021980ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021981
John Criswell7a73b802003-06-30 21:59:07 +000021982
Reid Spencera773bd52006-08-04 18:18:08 +000021983 case $ac_mode in
21984 :F)
21985 #
21986 # CONFIG_FILE
21987 #
John Criswell7a73b802003-06-30 21:59:07 +000021988
21989 case $INSTALL in
21990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021992 esac
John Criswell7a73b802003-06-30 21:59:07 +000021993_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021995cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021996# If the template does not know about datarootdir, expand it.
21997# FIXME: This hack should be removed a few years after 2.60.
21998ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021999
22000case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022001 p
22002 q
22003}
22004/@datadir@/p
22005/@docdir@/p
22006/@infodir@/p
22007/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022008/@mandir@/p
22009' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022010*datarootdir*) ac_datarootdir_seen=yes;;
22011*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22013echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022014_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022015cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022016 ac_datarootdir_hack='
22017 s&@datadir@&$datadir&g
22018 s&@docdir@&$docdir&g
22019 s&@infodir@&$infodir&g
22020 s&@localedir@&$localedir&g
22021 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022022 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022023esac
22024_ACEOF
22025
22026# Neutralize VPATH when `$srcdir' = `.'.
22027# Shell code in configure.ac might set extrasub.
22028# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022029cat >>$CONFIG_STATUS <<_ACEOF
22030 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022031$extrasub
22032_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022033cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022034:t
22035/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022036s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022037s&@top_builddir@&$ac_top_builddir_sub&;t t
22038s&@srcdir@&$ac_srcdir&;t t
22039s&@abs_srcdir@&$ac_abs_srcdir&;t t
22040s&@top_srcdir@&$ac_top_srcdir&;t t
22041s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22042s&@builddir@&$ac_builddir&;t t
22043s&@abs_builddir@&$ac_abs_builddir&;t t
22044s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22045s&@INSTALL@&$ac_INSTALL&;t t
22046$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022047" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022048
Reid Spencera773bd52006-08-04 18:18:08 +000022049test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22050 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22051 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022053which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022054echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022055which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022056
Reid Spencera773bd52006-08-04 18:18:08 +000022057 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022058 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059 -) cat "$tmp/out"; rm -f "$tmp/out";;
22060 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22061 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022062 ;;
22063 :H)
22064 #
22065 # CONFIG_HEADER
22066 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022067_ACEOF
22068
22069# Transform confdefs.h into a sed script `conftest.defines', that
22070# substitutes the proper values into config.h.in to produce config.h.
22071rm -f conftest.defines conftest.tail
22072# First, append a space to every undef/define line, to ease matching.
22073echo 's/$/ /' >conftest.defines
22074# Then, protect against being on the right side of a sed subst, or in
22075# an unquoted here document, in config.status. If some macros were
22076# called several times there might be several #defines for the same
22077# symbol, which is useless. But do not sort them, since the last
22078# AC_DEFINE must be honored.
22079ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22080# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22081# NAME is the cpp macro being defined, VALUE is the value it is being given.
22082# PARAMS is the parameter list in the macro definition--in most cases, it's
22083# just an empty string.
22084ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22085ac_dB='\\)[ (].*,\\1define\\2'
22086ac_dC=' '
22087ac_dD=' ,'
22088
22089uniq confdefs.h |
22090 sed -n '
22091 t rset
22092 :rset
22093 s/^[ ]*#[ ]*define[ ][ ]*//
22094 t ok
22095 d
22096 :ok
22097 s/[\\&,]/\\&/g
22098 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22099 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22100 ' >>conftest.defines
22101
22102# Remove the space that was appended to ease matching.
22103# Then replace #undef with comments. This is necessary, for
22104# example, in the case of _POSIX_SOURCE, which is predefined and required
22105# on some systems where configure will not decide to define it.
22106# (The regexp can be short, since the line contains either #define or #undef.)
22107echo 's/ $//
22108s,^[ #]*u.*,/* & */,' >>conftest.defines
22109
22110# Break up conftest.defines:
22111ac_max_sed_lines=50
22112
22113# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22114# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22115# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22116# et cetera.
22117ac_in='$ac_file_inputs'
22118ac_out='"$tmp/out1"'
22119ac_nxt='"$tmp/out2"'
22120
22121while :
22122do
22123 # Write a here document:
22124 cat >>$CONFIG_STATUS <<_ACEOF
22125 # First, check the format of the line:
22126 cat >"\$tmp/defines.sed" <<\\CEOF
22127/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22128/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22129b
22130:def
22131_ACEOF
22132 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22133 echo 'CEOF
22134 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22135 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22136 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22137 grep . conftest.tail >/dev/null || break
22138 rm -f conftest.defines
22139 mv conftest.tail conftest.defines
22140done
22141rm -f conftest.defines conftest.tail
22142
22143echo "ac_result=$ac_in" >>$CONFIG_STATUS
22144cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022145 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022146 echo "/* $configure_input */" >"$tmp/config.h"
22147 cat "$ac_result" >>"$tmp/config.h"
22148 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22150echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022151 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022152 rm -f $ac_file
22153 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022154 fi
22155 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022156 echo "/* $configure_input */"
22157 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022158 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022160 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022162 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22163echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022164 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022165 esac
John Criswell7a73b802003-06-30 21:59:07 +000022166
Reid Spencera773bd52006-08-04 18:18:08 +000022167
22168 case $ac_file$ac_mode in
22169 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022170 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022171 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022172 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022173 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022174 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022175 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022176 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022177 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022178 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022179 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022180 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022181 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022182 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022183 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022184 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022185 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022186 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022187 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022188 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022189 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022190 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022191 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022192 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022193 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022194 ${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 +000022195
22196 esac
22197done # for ac_tag
22198
John Criswell7a73b802003-06-30 21:59:07 +000022199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022200{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022201_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022202chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022203ac_clean_files=$ac_clean_files_save
22204
22205
22206# configure is writing to config.log, and then calls config.status.
22207# config.status does its own redirection, appending to config.log.
22208# Unfortunately, on DOS this fails, as config.log is still kept open
22209# by configure, so config.status won't be able to write to it; its
22210# output is simply discarded. So we exec the FD to /dev/null,
22211# effectively closing config.log, so it can be properly (re)opened and
22212# appended to by config.status. When coming back to configure, we
22213# need to make the FD available again.
22214if test "$no_create" != yes; then
22215 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022216 ac_config_status_args=
22217 test "$silent" = yes &&
22218 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022219 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022221 exec 5>>config.log
22222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22223 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022224 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022225fi
22226
John Criswell12399a12003-09-30 15:55:44 +000022227#
22228# CONFIG_SUBDIRS section.
22229#
22230if test "$no_recursion" != yes; then
22231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022233 ac_sub_configure_args=
22234 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022235 eval "set x $ac_configure_args"
22236 shift
22237 for ac_arg
22238 do
John Criswell12399a12003-09-30 15:55:44 +000022239 if test -n "$ac_prev"; then
22240 ac_prev=
22241 continue
22242 fi
22243 case $ac_arg in
22244 -cache-file | --cache-file | --cache-fil | --cache-fi \
22245 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22246 ac_prev=cache_file ;;
22247 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22248 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22249 | --c=*)
22250 ;;
22251 --config-cache | -C)
22252 ;;
22253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22254 ac_prev=srcdir ;;
22255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22256 ;;
22257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22258 ac_prev=prefix ;;
22259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022261 *)
22262 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022263 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022264 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022265 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022266 esac
22267 done
22268
22269 # Always prepend --prefix to ensure using the same prefix
22270 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022271 ac_arg="--prefix=$prefix"
22272 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022273 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022274 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022275 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022276
22277 ac_popdir=`pwd`
22278 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22279
22280 # Do not complain, so a configure script can configure whichever
22281 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022282 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022283
Reid Spencera773bd52006-08-04 18:18:08 +000022284 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022285 echo "$as_me:$LINENO: $ac_msg" >&5
22286 echo "$ac_msg" >&6
22287 { as_dir="$ac_dir"
22288 case $as_dir in #(
22289 -*) as_dir=./$as_dir;;
22290 esac
22291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22292 as_dirs=
22293 while :; do
22294 case $as_dir in #(
22295 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22296 *) as_qdir=$as_dir;;
22297 esac
22298 as_dirs="'$as_qdir' $as_dirs"
22299 as_dir=`$as_dirname -- "$as_dir" ||
22300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301 X"$as_dir" : 'X\(//\)[^/]' \| \
22302 X"$as_dir" : 'X\(//\)$' \| \
22303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22304echo X"$as_dir" |
22305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22306 s//\1/
22307 q
22308 }
22309 /^X\(\/\/\)[^/].*/{
22310 s//\1/
22311 q
22312 }
22313 /^X\(\/\/\)$/{
22314 s//\1/
22315 q
22316 }
22317 /^X\(\/\).*/{
22318 s//\1/
22319 q
22320 }
22321 s/.*/./; q'`
22322 test -d "$as_dir" && break
22323 done
22324 test -z "$as_dirs" || eval "mkdir $as_dirs"
22325 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22326echo "$as_me: error: cannot create directory $as_dir" >&2;}
22327 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022328 ac_builddir=.
22329
Reid Spencera773bd52006-08-04 18:18:08 +000022330case "$ac_dir" in
22331.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22332*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022334 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022335 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022336 case $ac_top_builddir_sub in
22337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22339 esac ;;
22340esac
22341ac_abs_top_builddir=$ac_pwd
22342ac_abs_builddir=$ac_pwd$ac_dir_suffix
22343# for backward compatibility:
22344ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022345
22346case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022347 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022348 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022349 ac_top_srcdir=$ac_top_builddir_sub
22350 ac_abs_top_srcdir=$ac_pwd ;;
22351 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022352 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022353 ac_top_srcdir=$srcdir
22354 ac_abs_top_srcdir=$srcdir ;;
22355 *) # Relative name.
22356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22357 ac_top_srcdir=$ac_top_build_prefix$srcdir
22358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022359esac
Reid Spencera773bd52006-08-04 18:18:08 +000022360ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022361
22362
Reid Spencera773bd52006-08-04 18:18:08 +000022363 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022364
22365 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022366 if test -f "$ac_srcdir/configure.gnu"; then
22367 ac_sub_configure=$ac_srcdir/configure.gnu
22368 elif test -f "$ac_srcdir/configure"; then
22369 ac_sub_configure=$ac_srcdir/configure
22370 elif test -f "$ac_srcdir/configure.in"; then
22371 # This should be Cygnus configure.
22372 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022373 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022374 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22375echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022376 ac_sub_configure=
22377 fi
22378
22379 # The recursion is here.
22380 if test -n "$ac_sub_configure"; then
22381 # Make the cache file name correct relative to the subdirectory.
22382 case $cache_file in
22383 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022384 *) # Relative name.
22385 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022386 esac
22387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022388 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22389echo "$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 +000022390 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022391 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22392 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022393 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22394echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22395 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022396 fi
22397
Reid Spencera773bd52006-08-04 18:18:08 +000022398 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022399 done
22400fi
22401