blob: 9f35b4196a0713ce459acf4b46b2b07782672224 [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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000693TARGETS_TO_BUILD
694LLVM_ENUM_TARGETS
695LLVM_ENUM_ASM_PRINTERS
696LLVM_ENUM_ASM_PARSERS
697LLVM_ENUM_DISASSEMBLERS
698ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000699CLANGPATH
700CLANGXXPATH
701ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702OPTIMIZE_OPTION
703EXTRA_OPTIONS
704BINUTILS_INCDIR
705ENABLE_LLVMC_DYNAMIC
706ENABLE_LLVMC_DYNAMIC_PLUGINS
707CXX
708CXXFLAGS
709ac_ct_CXX
710NM
711ifGNUmake
712LN_S
713CMP
714CP
715DATE
716FIND
717MKDIR
718MV
719RANLIB
720AR
721RM
722SED
723TAR
724BINPWD
725GRAPHVIZ
726DOT
727FDP
728NEATO
729TWOPI
730CIRCO
731GV
732DOTTY
733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
744RUNTEST
745TCLSH
746ZIP
747OCAMLC
748OCAMLOPT
749OCAMLDEP
750OCAMLDOC
751GAS
Dan Gohman391569c2010-04-16 22:59:06 +0000752HAVE_LINK_RETAIN_SYMBOLS_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000753INSTALL_LTDL_TRUE
754INSTALL_LTDL_FALSE
755CONVENIENCE_LTDL_TRUE
756CONVENIENCE_LTDL_FALSE
757LIBADD_DL
758LLVMGCCCOMMAND
759LLVMGXXCOMMAND
760LLVMGCC
761LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000762LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
765USE_UDIS86
766USE_OPROFILE
767HAVE_PTHREAD
768HUGE_VAL_SANITY
769MMAP_FILE
770LLVMCC1
771LLVMCC1PLUS
772LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773LLVMGCC_LANGS
774SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000775SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776LLVM_PREFIX
777LLVM_BINDIR
778LLVM_LIBDIR
779LLVM_DATADIR
780LLVM_DOCSDIR
781LLVM_ETCDIR
782LLVM_INCLUDEDIR
783LLVM_INFODIR
784LLVM_MANDIR
785LLVM_CONFIGTIME
786BINDINGS_TO_BUILD
787ALL_BINDINGS
788OCAML_LIBDIR
789ENABLE_VISIBILITY_INLINES_HIDDEN
790RPATH
791RDYNAMIC
792LIBOBJS
793LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000794ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801CPPFLAGS
802CPP
803CXX
804CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000805CCC'
John Criswell0157f502010-03-19 21:31:39 +0000806ac_subdirs_all='projects/llvm-gcc
807projects/test-suite
808projects/llvm-test
809projects/poolalloc
810projects/llvm-poolalloc
811projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000813projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-java
816projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000817projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000845# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000854includedir='${prefix}/include'
855oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000865
866ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000867ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000872 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000873 ac_prev=
874 continue
875 fi
876
Reid Spencera773bd52006-08-04 18:18:08 +0000877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
John Criswell7a73b802003-06-30 21:59:07 +0000881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
Reid Spencera773bd52006-08-04 18:18:08 +0000884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000909 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000911 datadir=$ac_optarg ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
John Criswell7a73b802003-06-30 21:59:07 +0000920 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000922 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000938
939 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000941 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
Reid Spencera773bd52006-08-04 18:18:08 +0000973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
John Criswell7a73b802003-06-30 21:59:07 +0000979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
Reid Spencera773bd52006-08-04 18:18:08 +00001003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
John Criswell7a73b802003-06-30 21:59:07 +00001008 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001009 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
Reid Spencera773bd52006-08-04 18:18:08 +00001077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
John Criswell7a73b802003-06-30 21:59:07 +00001087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001138 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001144
1145 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001183 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001201fi
1202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001208do
Reid Spencera773bd52006-08-04 18:18:08 +00001209 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001210 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001213 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
Reid Spencera773bd52006-08-04 18:18:08 +00001242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250
1251
John Criswell7a73b802003-06-30 21:59:07 +00001252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001255 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 ac_confdir=`$as_dirname -- "$0" ||
1257$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001280 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
Reid Spencera773bd52006-08-04 18:18:08 +00001286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001320\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
John Criswell7a73b802003-06-30 21:59:07 +00001340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385 case $ac_init_help in
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001386 short | recursive ) echo "Configuration of llvm 2.8svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001387 esac
1388 cat <<\_ACEOF
1389
1390Optional Features:
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001393 --enable-optimized Compile with optimizations enabled (default is NO)
1394 --enable-profiling Compile with profiling enabled (default is NO)
1395 --enable-assertions Compile with assertion checks enabled (default is
1396 YES)
David Greenea696d242007-06-28 19:36:08 +00001397 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001398 Compile with expensive debug checks enabled (default
1399 is NO)
1400 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001402 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1403 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001404 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001405 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001406 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001407 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001408 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001409 --enable-shared Build a shared library and link tools against it
1410 (default is NO)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001411 --enable-targets Build specific host targets: all or
1412 target1,target2,... Valid targets are: host, x86,
1413 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1414 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1415 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001416 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1417 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001418 --enable-bindings Build specific language bindings:
1419 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001420 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001421 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1422 Win32)
1423 --enable-llvmc-dynamic-plugins
1424 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001425 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001432 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 searches PATH)
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001436 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang)
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001440 --with-optimize-option Select the compiler options to use for optimized
1441 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001442 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001445 --with-c-include-dirs Colon separated list of directories clang will
1446 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001455 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001458 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001461
1462Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001463 CC C compiler command
1464 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001468 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001469 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473Use these variables to override the choices made by `configure' or to help
1474it to find libraries and programs with nonstandard names/locations.
1475
1476Report bugs to <llvmbugs@cs.uiuc.edu>.
1477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001478ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001479fi
1480
1481if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001485 ac_builddir=.
1486
Reid Spencera773bd52006-08-04 18:18:08 +00001487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001491 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001502
1503case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001504 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001509 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001516esac
Reid Spencera773bd52006-08-04 18:18:08 +00001517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001518
Reid Spencera773bd52006-08-04 18:18:08 +00001519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001527 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001531 done
1532fi
1533
Reid Spencera773bd52006-08-04 18:18:08 +00001534test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001535if $ac_init_version; then
1536 cat <<\_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001537llvm configure 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001538generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001540Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15412002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001544
John Criswell5a129712010-03-19 21:04:16 +00001545Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001547 exit
John Criswell7a73b802003-06-30 21:59:07 +00001548fi
Reid Spencera773bd52006-08-04 18:18:08 +00001549cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001550This file contains any messages produced by compilers while
1551running configure, to aid debugging if configure makes a mistake.
1552
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001553It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001554generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001555
1556 $ $0 $@
1557
1558_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001559exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001560{
1561cat <<_ASUNAME
1562## --------- ##
1563## Platform. ##
1564## --------- ##
1565
1566hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574
1575/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001578/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001579/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582
1583_ASUNAME
1584
1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586for as_dir in $PATH
1587do
1588 IFS=$as_save_IFS
1589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001590 echo "PATH: $as_dir"
1591done
Reid Spencera773bd52006-08-04 18:18:08 +00001592IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001593
1594} >&5
1595
1596cat >&5 <<_ACEOF
1597
1598
1599## ----------- ##
1600## Core tests. ##
1601## ----------- ##
1602
1603_ACEOF
1604
1605
1606# Keep a trace of the command line.
1607# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001608# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001609# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001610# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001611ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001612ac_configure_args0=
1613ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001614ac_must_keep_next=false
1615for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001616do
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 for ac_arg
1618 do
1619 case $ac_arg in
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1623 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001624 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 esac
1627 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001632 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001634 case $ac_arg in
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 esac
1642 ;;
1643 -* ) ac_must_keep_next=true ;;
1644 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ;;
1648 esac
1649 done
John Criswell7a73b802003-06-30 21:59:07 +00001650done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652$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 +00001653
1654# When interrupted or exit'd, cleanup temporary files, and complete
1655# config.log. We remove comments because anyway the quotes in there
1656# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001657# WARNING: Use '\'' to represent an apostrophe within the trap.
1658# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001659trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1661 {
1662 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001663
John Criswell7a73b802003-06-30 21:59:07 +00001664 cat <<\_ASBOX
1665## ---------------- ##
1666## Cache variables. ##
1667## ---------------- ##
1668_ASBOX
1669 echo
1670 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001671(
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1674 case $ac_val in #(
1675 *${as_nl}*)
1676 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac
1680 case $ac_var in #(
1681 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001682 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001683 esac ;;
1684 esac
1685 done
John Criswell7a73b802003-06-30 21:59:07 +00001686 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001689 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001693 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001695 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001696 esac |
1697 sort
1698)
John Criswell7a73b802003-06-30 21:59:07 +00001699 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001700
1701 cat <<\_ASBOX
1702## ----------------- ##
1703## Output variables. ##
1704## ----------------- ##
1705_ASBOX
1706 echo
1707 for ac_var in $ac_subst_vars
1708 do
Reid Spencera773bd52006-08-04 18:18:08 +00001709 eval ac_val=\$$ac_var
1710 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001712 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001713 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001714 done | sort
1715 echo
1716
1717 if test -n "$ac_subst_files"; then
1718 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001719## ------------------- ##
1720## File substitutions. ##
1721## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001722_ASBOX
1723 echo
1724 for ac_var in $ac_subst_files
1725 do
Reid Spencera773bd52006-08-04 18:18:08 +00001726 eval ac_val=\$$ac_var
1727 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001729 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 done | sort
1732 echo
1733 fi
1734
John Criswell7a73b802003-06-30 21:59:07 +00001735 if test -s confdefs.h; then
1736 cat <<\_ASBOX
1737## ----------- ##
1738## confdefs.h. ##
1739## ----------- ##
1740_ASBOX
1741 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001742 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001743 echo
1744 fi
1745 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001748 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001751 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001752' 0
John Criswell7a73b802003-06-30 21:59:07 +00001753for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001755done
1756ac_signal=0
1757
1758# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001759rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001760
1761# Predefined preprocessor variables.
1762
1763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_NAME "$PACKAGE_NAME"
1765_ACEOF
1766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_VERSION "$PACKAGE_VERSION"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_STRING "$PACKAGE_STRING"
1780_ACEOF
1781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782
John Criswell7a73b802003-06-30 21:59:07 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785_ACEOF
1786
1787
1788# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001790if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001792elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798shift
1799for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001800do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001804 sed 's/^/| /' "$ac_site_file" >&5
1805 . "$ac_site_file"
1806 fi
1807done
1808
1809if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001815 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001818 esac
1819 fi
1820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 >$cache_file
1824fi
1825
1826# Check that the precious variables saved in the cache have kept the same
1827# value.
1828ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001829for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $ac_old_set,$ac_new_set in
1835 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 ac_cache_corrupted=: ;;
1843 ,);;
1844 *)
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001853 fi;;
1854 esac
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1857 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001859 *) ac_arg=$ac_var=$ac_new_val ;;
1860 esac
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001864 esac
1865 fi
1866done
1867if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
Reid Spencera773bd52006-08-04 18:18:08 +00001898
John Criswell7a73b802003-06-30 21:59:07 +00001899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
John Criswell5a129712010-03-19 21:04:16 +00001907LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001908
1909
1910
1911
1912
1913
1914
John Criswell7a73b802003-06-30 21:59:07 +00001915ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001916for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001917 if test -f "$ac_dir/install-sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 break
1921 elif test -f "$ac_dir/install.sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 break
1925 elif test -f "$ac_dir/shtool"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 break
1929 fi
John Criswell7a73b802003-06-30 21:59:07 +00001930done
1931if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001935fi
Reid Spencera773bd52006-08-04 18:18:08 +00001936
1937# These three variables are undocumented and unsupported,
1938# and are intended to be withdrawn in a future Autoconf release.
1939# They can cause serious problems if a builder's source tree is in a directory
1940# whose full name contains unusual characters.
1941ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944
John Criswell7a73b802003-06-30 21:59:07 +00001945
John Criswell392aaa32003-07-22 19:18:09 +00001946
Reid Spencer2706f8c2004-09-19 23:53:36 +00001947if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001948 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952 fi
John Criswell93e1c722003-09-15 17:04:06 +00001953fi
1954
John Criswell0157f502010-03-19 21:31:39 +00001955
1956
1957if test -d ${srcdir}/projects/llvm-gcc ; then
1958 subdirs="$subdirs projects/llvm-gcc"
1959
1960fi
1961
1962if test -d ${srcdir}/projects/test-suite ; then
1963 subdirs="$subdirs projects/test-suite"
1964
1965fi
1966
1967if test -d ${srcdir}/projects/llvm-test ; then
1968 subdirs="$subdirs projects/llvm-test"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/poolalloc ; then
1973 subdirs="$subdirs projects/poolalloc"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978 subdirs="$subdirs projects/llvm-poolalloc"
1979
1980fi
1981
John Criswell33a911a2003-11-25 20:36:46 +00001982for i in `ls ${srcdir}/projects`
1983do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001984 if test -d ${srcdir}/projects/${i} ; then
1985 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001986 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001987 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001988 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001989 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001990 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001991 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001992 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001993 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001994;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001995 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001996 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001997 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001998 ;;
John Criswell7def2932010-02-25 22:57:19 +00001999 safecode) subdirs="$subdirs projects/safecode"
2000 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002001 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002002 ;;
John Criswell52c02862010-03-25 13:59:09 +00002003 llvm-gcc) ;;
2004 test-suite) ;;
2005 llvm-test) ;;
2006 poolalloc) ;;
2007 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002008 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002009 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2010echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002011 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002012 esac
John Criswell33a911a2003-11-25 20:36:46 +00002013 fi
2014done
John Criswell559a6c12003-09-30 16:31:48 +00002015
John Criswell7a73b802003-06-30 21:59:07 +00002016
2017# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002018$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002019 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2021 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002023{ echo "$as_me:$LINENO: checking build system type" >&5
2024echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2025if test "${ac_cv_build+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002027else
Reid Spencera773bd52006-08-04 18:18:08 +00002028 ac_build_alias=$build_alias
2029test "x$ac_build_alias" = x &&
2030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2031test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002032 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002035ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002036 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2038 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002039
2040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002041{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002043case $ac_cv_build in
2044*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002045*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046echo "$as_me: error: invalid value of canonical build" >&2;}
2047 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002048esac
John Criswell7a73b802003-06-30 21:59:07 +00002049build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002050ac_save_IFS=$IFS; IFS='-'
2051set x $ac_cv_build
2052shift
2053build_cpu=$1
2054build_vendor=$2
2055shift; shift
2056# Remember, the first character of IFS is used to create $*,
2057# except with old shells:
2058build_os=$*
2059IFS=$ac_save_IFS
2060case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002061
2062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002063{ echo "$as_me:$LINENO: checking host system type" >&5
2064echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2065if test "${ac_cv_host+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002067else
Reid Spencera773bd52006-08-04 18:18:08 +00002068 if test "x$host_alias" = x; then
2069 ac_cv_host=$ac_cv_build
2070else
2071 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002075fi
John Criswell7a73b802003-06-30 21:59:07 +00002076
2077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002080case $ac_cv_host in
2081*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002082*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083echo "$as_me: error: invalid value of canonical host" >&2;}
2084 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002085esac
John Criswell7a73b802003-06-30 21:59:07 +00002086host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002087ac_save_IFS=$IFS; IFS='-'
2088set x $ac_cv_host
2089shift
2090host_cpu=$1
2091host_vendor=$2
2092shift; shift
2093# Remember, the first character of IFS is used to create $*,
2094# except with old shells:
2095host_os=$*
2096IFS=$ac_save_IFS
2097case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002098
2099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002100{ echo "$as_me:$LINENO: checking target system type" >&5
2101echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2102if test "${ac_cv_target+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002104else
Reid Spencera773bd52006-08-04 18:18:08 +00002105 if test "x$target_alias" = x; then
2106 ac_cv_target=$ac_cv_host
2107else
2108 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002109 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002112fi
John Criswell7a73b802003-06-30 21:59:07 +00002113
2114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002115{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002117case $ac_cv_target in
2118*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002119*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120echo "$as_me: error: invalid value of canonical target" >&2;}
2121 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002122esac
John Criswell7a73b802003-06-30 21:59:07 +00002123target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002124ac_save_IFS=$IFS; IFS='-'
2125set x $ac_cv_target
2126shift
2127target_cpu=$1
2128target_vendor=$2
2129shift; shift
2130# Remember, the first character of IFS is used to create $*,
2131# except with old shells:
2132target_os=$*
2133IFS=$ac_save_IFS
2134case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002135
2136
2137# The aliases save the names the user supplied, while $host etc.
2138# will get canonicalized.
2139test -n "$target_alias" &&
2140 test "$program_prefix$program_suffix$program_transform_name" = \
2141 NONENONEs,x,x, &&
2142 program_prefix=${target_alias}-
2143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002144{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2145echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2146if test "${llvm_cv_os_type+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002148else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002149 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002150 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002151 llvm_cv_link_all_option="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002153 llvm_cv_os_type="AIX"
2154 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002155 *-*-irix*)
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="IRIX"
2159 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002160 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002163 llvm_cv_os_type="Cygwin"
2164 llvm_cv_platform_type="Unix" ;;
2165 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002166 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002167 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002168 llvm_cv_os_type="Darwin"
2169 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002170 *-*-minix*)
2171 llvm_cv_link_all_option="-Wl,-all_load"
2172 llvm_cv_no_link_all_option="-Wl,-noall_load"
2173 llvm_cv_os_type="Minix"
2174 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002175 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002176 llvm_cv_link_all_option="-Wl,--whole-archive"
2177 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002178 llvm_cv_os_type="FreeBSD"
2179 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002180 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002181 llvm_cv_link_all_option="-Wl,--whole-archive"
2182 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002183 llvm_cv_os_type="OpenBSD"
2184 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002185 *-*-netbsd*)
2186 llvm_cv_link_all_option="-Wl,--whole-archive"
2187 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2188 llvm_cv_os_type="NetBSD"
2189 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002190 *-*-dragonfly*)
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="DragonFly"
2194 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002195 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002198 llvm_cv_os_type="HP-UX"
2199 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002200 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002203 llvm_cv_os_type="Interix"
2204 llvm_cv_platform_type="Unix" ;;
2205 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 llvm_cv_os_type="Linux"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002211 llvm_cv_link_all_option="-Wl,-z,allextract"
2212 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002213 llvm_cv_os_type="SunOS"
2214 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002215 *-*-auroraux*)
2216 llvm_cv_link_all_option="-Wl,-z,allextract"
2217 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2218 llvm_cv_os_type="AuroraUX"
2219 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002220 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002223 llvm_cv_os_type="Win32"
2224 llvm_cv_platform_type="Win32" ;;
2225 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002228 llvm_cv_os_type="MingW"
2229 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002230 *-*-haiku*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="Haiku"
2234 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002235 *-unknown-eabi*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="Freestanding"
2239 llvm_cv_platform_type="Unix" ;;
2240 *-unknown-elf*)
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="Freestanding"
2244 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002246 llvm_cv_link_all_option=""
2247 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 llvm_cv_os_type="Unknown"
2249 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002250esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002252{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2253echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002255{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2256echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2257if test "${llvm_cv_target_os_type+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002259else
2260 case $target in
2261 *-*-aix*)
2262 llvm_cv_target_os_type="AIX" ;;
2263 *-*-irix*)
2264 llvm_cv_target_os_type="IRIX" ;;
2265 *-*-cygwin*)
2266 llvm_cv_target_os_type="Cygwin" ;;
2267 *-*-darwin*)
2268 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002269 *-*-minix*)
2270 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002271 *-*-freebsd*)
2272 llvm_cv_target_os_type="FreeBSD" ;;
2273 *-*-openbsd*)
2274 llvm_cv_target_os_type="OpenBSD" ;;
2275 *-*-netbsd*)
2276 llvm_cv_target_os_type="NetBSD" ;;
2277 *-*-dragonfly*)
2278 llvm_cv_target_os_type="DragonFly" ;;
2279 *-*-hpux*)
2280 llvm_cv_target_os_type="HP-UX" ;;
2281 *-*-interix*)
2282 llvm_cv_target_os_type="Interix" ;;
2283 *-*-linux*)
2284 llvm_cv_target_os_type="Linux" ;;
2285 *-*-solaris*)
2286 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002287 *-*-auroraux*)
2288 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002289 *-*-win32*)
2290 llvm_cv_target_os_type="Win32" ;;
2291 *-*-mingw*)
2292 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002293 *-*-haiku*)
2294 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002295 *-unknown-eabi*)
2296 llvm_cv_target_os_type="Freestanding" ;;
2297 *)
2298 llvm_cv_target_os_type="Unknown" ;;
2299esac
2300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002301{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2302echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002303
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002305 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002308fi
2309
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002311
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002312HOST_OS=$llvm_cv_os_type
2313
2314TARGET_OS=$llvm_cv_target_os_type
2315
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002316
Reid Spencera773bd52006-08-04 18:18:08 +00002317LINKALL=$llvm_cv_link_all_option
2318
2319NOLINKALL=$llvm_cv_no_link_all_option
2320
2321
Reid Spencer7b3e8512004-12-24 06:29:05 +00002322case $llvm_cv_platform_type in
2323 Unix)
2324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002325cat >>confdefs.h <<\_ACEOF
2326#define LLVM_ON_UNIX 1
2327_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002329 LLVM_ON_UNIX=1
2330
2331 LLVM_ON_WIN32=0
2332
Reid Spencer7b3e8512004-12-24 06:29:05 +00002333 ;;
2334 Win32)
2335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336cat >>confdefs.h <<\_ACEOF
2337#define LLVM_ON_WIN32 1
2338_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002340 LLVM_ON_UNIX=0
2341
2342 LLVM_ON_WIN32=1
2343
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344 ;;
2345esac
2346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347{ echo "$as_me:$LINENO: checking target architecture" >&5
2348echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2349if test "${llvm_cv_target_arch+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002351else
2352 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002353 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002354 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002355 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2356 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002357 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002358 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002359 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002360 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002361 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002362 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002363 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002364 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002365 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002366 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002367esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002369{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002371
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002372if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002375fi
John Criswell76595452003-07-01 22:07:39 +00002376
Nick Lewycky83fc4472009-09-29 05:48:51 +00002377# Determine the LLVM native architecture for the target
2378case "$llvm_cv_target_arch" in
2379 x86) LLVM_NATIVE_ARCH="X86" ;;
2380 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2381 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2382esac
2383
2384ARCH=$llvm_cv_target_arch
2385
2386
2387ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002392if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 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 +00002410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412 break 2
2413 fi
2414done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002415done
Reid Spencera773bd52006-08-04 18:18:08 +00002416IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417
2418fi
2419fi
2420CC=$ac_cv_prog_CC
2421if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 { echo "$as_me:$LINENO: result: $CC" >&5
2423echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002425 { echo "$as_me:$LINENO: result: no" >&5
2426echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427fi
2428
Reid Spencera773bd52006-08-04 18:18:08 +00002429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430fi
2431if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 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 +00002450 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452 break 2
2453 fi
2454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002455done
Reid Spencera773bd52006-08-04 18:18:08 +00002456IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002465 { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467fi
2468
Reid Spencera773bd52006-08-04 18:18:08 +00002469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475whose name does not start with the host triplet. If you think this
2476configuration is useful to you, please write to autoconf@gnu.org." >&5
2477echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478whose name does not start with the host triplet. If you think this
2479configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002480ac_tool_warned=yes ;;
2481esac
2482 CC=$ac_ct_CC
2483 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484else
2485 CC="$ac_cv_prog_CC"
2486fi
2487
2488if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002489 if test -n "$ac_tool_prefix"; then
2490 # 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 +00002491set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 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 +00002507 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509 break 2
2510 fi
2511done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512done
Reid Spencera773bd52006-08-04 18:18:08 +00002513IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002519 { echo "$as_me:$LINENO: result: $CC" >&5
2520echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002522 { echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524fi
2525
Reid Spencera773bd52006-08-04 18:18:08 +00002526
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528fi
2529if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540 ac_prog_rejected=no
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 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 +00002548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2550 continue
2551 fi
2552 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554 break 2
2555 fi
2556done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557done
Reid Spencera773bd52006-08-04 18:18:08 +00002558IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559
2560if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2563 shift
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2568 shift
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570 fi
2571fi
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002576 { echo "$as_me:$LINENO: result: $CC" >&5
2577echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579 { echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002581fi
2582
Reid Spencera773bd52006-08-04 18:18:08 +00002583
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002584fi
2585if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002587 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002588 do
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002595else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 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 +00002606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002608 break 2
2609 fi
2610done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611done
Reid Spencera773bd52006-08-04 18:18:08 +00002612IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002613
2614fi
2615fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618 { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002621 { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002623fi
2624
Reid Spencera773bd52006-08-04 18:18:08 +00002625
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002627 done
2628fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629if test -z "$CC"; then
2630 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002631 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002632do
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002639else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 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 +00002650 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002652 break 2
2653 fi
2654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002655done
Reid Spencera773bd52006-08-04 18:18:08 +00002656IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002657
2658fi
2659fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002665 { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002667fi
2668
Reid Spencera773bd52006-08-04 18:18:08 +00002669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002671done
John Criswell7a73b802003-06-30 21:59:07 +00002672
Reid Spencera773bd52006-08-04 18:18:08 +00002673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet. If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&5
2681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682whose name does not start with the host triplet. If you think this
2683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002684ac_tool_warned=yes ;;
2685esac
2686 CC=$ac_ct_CC
2687 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002688fi
2689
John Criswell7a73b802003-06-30 21:59:07 +00002690fi
2691
2692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&5
2695echo "$as_me: error: no acceptable C compiler found in \$PATH
2696See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002698
John Criswell7a73b802003-06-30 21:59:07 +00002699# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002700echo "$as_me:$LINENO: checking for C compiler version" >&5
2701ac_compiler=`set X $ac_compile; echo $2`
2702{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002709 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712{ (ac_try="$ac_compiler -v >&5"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722{ (ac_try="$ac_compiler -V >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002733cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002739
John Criswell7a73b802003-06-30 21:59:07 +00002740int
2741main ()
2742{
2743
2744 ;
2745 return 0;
2746}
2747_ACEOF
2748ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002750# Try to create an executable without -o first, disregard a.out.
2751# It will help us diagnose broken compilers, and finding out an intuition
2752# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002753{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756#
2757# List of possible output files, starting from the most likely.
2758# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759# only as a last resort. b.out is created by i960 compilers.
2760ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761#
2762# The IRIX 6 linker writes into existing files which may not be
2763# executable, retaining their permissions. Remove them first so a
2764# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772done
2773rm -f $ac_rmfiles
2774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002775if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002781 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002782 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787# in a Makefile. We should not override ac_cv_exeext if it was cached,
2788# so that the user can short-circuit this test for compilers unknown to
2789# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002790for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002791do
2792 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002793 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002796 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002797 # We found the default executable, but exeext='' is most
2798 # certainly right.
2799 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002802 then :; else
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 fi
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2809 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002810 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002811 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002812 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002813 esac
2814done
Reid Spencera773bd52006-08-04 18:18:08 +00002815test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
John Criswell7a73b802003-06-30 21:59:07 +00002817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002819sed 's/^/| /' conftest.$ac_ext >&5
2820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002821{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822See \`config.log' for more details." >&5
2823echo "$as_me: error: C compiler cannot create executables
2824See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002826fi
John Criswell7a73b802003-06-30 21:59:07 +00002827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002828ac_exeext=$ac_cv_exeext
2829{ echo "$as_me:$LINENO: result: $ac_file" >&5
2830echo "${ECHO_T}$ac_file" >&6; }
2831
2832# Check that the compiler produces executables we can run. If not, either
2833# the compiler is broken, or we cross compile.
2834{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837# If not cross compiling, check that we can run a simple program.
2838if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cross_compiling=no
2850 else
2851 if test "$cross_compiling" = maybe; then
2852 cross_compiling=yes
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details." >&5
2857echo "$as_me: error: cannot run C compiled programs.
2858If you meant to cross compile, use \`--host'.
2859See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2861 fi
2862 fi
2863fi
2864{ echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6; }
2866
2867rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002868ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002869# Check that the compiler produces executables we can run. If not, either
2870# the compiler is broken, or we cross compile.
2871{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874echo "${ECHO_T}$cross_compiling" >&6; }
2875
2876{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002884 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002885 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890# work properly (i.e., refer to `conftest.exe'), while it won't with
2891# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002892for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002894 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002897 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002898 * ) break;;
2899 esac
2900done
2901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002908
2909rm -f conftest$ac_cv_exeext
2910{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002916{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002927
John Criswell7a73b802003-06-30 21:59:07 +00002928int
2929main ()
2930{
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002943 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002944 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002949 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954done
2955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002957sed 's/^/| /' conftest.$ac_ext >&5
2958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002964fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002965
John Criswell7a73b802003-06-30 21:59:07 +00002966rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002968{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002970OBJEXT=$ac_cv_objext
2971ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002972{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002977 cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h. */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002983
John Criswell7a73b802003-06-30 21:59:07 +00002984int
2985main ()
2986{
2987#ifndef __GNUC__
2988 choke me
2989#endif
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002995rm -f conftest.$ac_objext
2996if { (ac_try="$ac_compile"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003029 ac_compiler_gnu=yes
3030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003031 echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003036
Reid Spencera773bd52006-08-04 18:18:08 +00003037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003038ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003039
3040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003041{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003044ac_test_CFLAGS=${CFLAGS+set}
3045ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003046{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003050else
Reid Spencera773bd52006-08-04 18:18:08 +00003051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3053 ac_cv_prog_cc_g=no
3054 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003055 cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003061
John Criswell7a73b802003-06-30 21:59:07 +00003062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003104 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 :
Torok Edwin871384f2010-01-26 08:50:50 +00003160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003165 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003166 cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h. */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003215 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003216else
3217 echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
John Criswell7a73b802003-06-30 21:59:07 +00003221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003222
Reid Spencera773bd52006-08-04 18:18:08 +00003223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003225
Reid Spencera773bd52006-08-04 18:18:08 +00003226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228
Reid Spencera773bd52006-08-04 18:18:08 +00003229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003232{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003234if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003239 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003240 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003241 fi
3242else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003245 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003247 fi
3248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003249{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253else
Reid Spencera773bd52006-08-04 18:18:08 +00003254 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003256cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261/* end confdefs.h. */
3262#include <stdarg.h>
3263#include <stdio.h>
3264#include <sys/types.h>
3265#include <sys/stat.h>
3266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267struct buf { int x; };
3268FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269static char *e (p, i)
3270 char **p;
3271 int i;
3272{
3273 return p[i];
3274}
3275static char *f (char * (*g) (char **, int), char **p, ...)
3276{
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3283}
3284
3285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003288 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003291 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
Reid Spencera773bd52006-08-04 18:18:08 +00003294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296#define FOO(x) 'x'
3297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299int test (int i, double x);
3300struct s1 {int (*f) (int a);};
3301struct s2 {int (*f) (double a);};
3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303int argc;
3304char **argv;
3305int
3306main ()
3307{
3308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 ;
3310 return 0;
3311}
3312_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315do
3316 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003317 rm -f conftest.$ac_objext
3318if { (ac_try="$ac_compile"
3319case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003351 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003358
Reid Spencera773bd52006-08-04 18:18:08 +00003359rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361done
Reid Spencera773bd52006-08-04 18:18:08 +00003362rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363CC=$ac_save_CC
3364
3365fi
Reid Spencera773bd52006-08-04 18:18:08 +00003366# AC_CACHE_VAL
3367case "x$ac_cv_prog_cc_c89" in
3368 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 { echo "$as_me:$LINENO: result: none needed" >&5
3370echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003371 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003375 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378esac
3379
John Criswell0c38eaf2003-09-10 15:17:25 +00003380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395# On Suns, sometimes $CPP names a directory.
3396if test -n "$CPP" && test -d "$CPP"; then
3397 CPP=
3398fi
3399if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402else
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 do
3406 ac_preproc_ok=false
3407for ac_c_preproc_warn_flag in '' yes
3408do
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420/* end confdefs.h. */
3421#ifdef __STDC__
3422# include <limits.h>
3423#else
3424# include <assert.h>
3425#endif
3426 Syntax error
3427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003428if { (ac_try="$ac_cpp conftest.$ac_ext"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 else
3445 ac_cpp_err=
3446 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003448 ac_cpp_err=yes
3449fi
3450if test -z "$ac_cpp_err"; then
3451 :
3452else
3453 echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003456 # Broken: fails on valid input.
3457continue
3458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003459
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460rm -f conftest.err conftest.$ac_ext
3461
Reid Spencera773bd52006-08-04 18:18:08 +00003462 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003464 cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469/* end confdefs.h. */
3470#include <ac_nonexistent.h>
3471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003472if { (ac_try="$ac_cpp conftest.$ac_ext"
3473case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491else
3492 ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495 # Broken: success on invalid input.
3496continue
3497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 # Passes both tests.
3502ac_preproc_ok=:
3503break
3504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003505
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506rm -f conftest.err conftest.$ac_ext
3507
3508done
3509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003511if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512 break
3513fi
3514
3515 done
3516 ac_cv_prog_CPP=$CPP
3517
3518fi
3519 CPP=$ac_cv_prog_CPP
3520else
3521 ac_cv_prog_CPP=$CPP
3522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003523{ echo "$as_me:$LINENO: result: $CPP" >&5
3524echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003525ac_preproc_ok=false
3526for ac_c_preproc_warn_flag in '' yes
3527do
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003534 cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003539/* end confdefs.h. */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545 Syntax error
3546_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003547if { (ac_try="$ac_cpp conftest.$ac_ext"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 else
3564 ac_cpp_err=
3565 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003567 ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570 :
3571else
3572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003575 # Broken: fails on valid input.
3576continue
3577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003578
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579rm -f conftest.err conftest.$ac_ext
3580
Reid Spencera773bd52006-08-04 18:18:08 +00003581 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588/* end confdefs.h. */
3589#include <ac_nonexistent.h>
3590_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003591if { (ac_try="$ac_cpp conftest.$ac_ext"
3592case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 else
3608 ac_cpp_err=
3609 fi
3610else
3611 ac_cpp_err=yes
3612fi
3613if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003614 # Broken: success on invalid input.
3615continue
3616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003617 echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003620 # Passes both tests.
3621ac_preproc_ok=:
3622break
3623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003624
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625rm -f conftest.err conftest.$ac_ext
3626
3627done
3628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003630if $ac_preproc_ok; then
3631 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&5
3635echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003638fi
3639
John Criswell7a73b802003-06-30 21:59:07 +00003640ac_ext=c
3641ac_cpp='$CPP $CPPFLAGS'
3642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
John Criswell7a73b802003-06-30 21:59:07 +00003646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003647{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003652 # Extract the first word of "grep ggrep" to use in msg output
3653if test -z "$GREP"; then
3654set dummy grep ggrep; ac_prog_name=$2
3655if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
Reid Spencera773bd52006-08-04 18:18:08 +00003658 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003659# Loop through the user's path and test for each of PROGNAME-LIST
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003661for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003670 # Check for GNU $ac_path_GREP
3671case `"$ac_path_GREP" --version 2>&1` in
3672*GNU*)
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674*)
3675 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003677 while :
3678 do
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003682 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003685 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003690 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695esac
3696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003697
3698 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003699 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003700done
3701
3702done
Reid Spencera773bd52006-08-04 18:18:08 +00003703IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003704
3705
3706fi
3707
3708GREP="$ac_cv_path_GREP"
3709if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3713fi
3714
Reid Spencera773bd52006-08-04 18:18:08 +00003715else
3716 ac_cv_path_GREP=$GREP
3717fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719
Reid Spencera773bd52006-08-04 18:18:08 +00003720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003723 GREP="$ac_cv_path_GREP"
3724
3725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003726{ echo "$as_me:$LINENO: checking for egrep" >&5
3727echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003730else
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3733 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003734 # Extract the first word of "egrep" to use in msg output
3735if test -z "$EGREP"; then
3736set dummy egrep; ac_prog_name=$2
3737if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
Reid Spencera773bd52006-08-04 18:18:08 +00003740 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003741# Loop through the user's path and test for each of PROGNAME-LIST
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003752 # Check for GNU $ac_path_EGREP
3753case `"$ac_path_EGREP" --version 2>&1` in
3754*GNU*)
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756*)
3757 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003759 while :
3760 do
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003764 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003767 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3772 fi
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3775 done
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777esac
3778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003779
3780 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003781 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003782done
3783
3784done
Reid Spencera773bd52006-08-04 18:18:08 +00003785IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003786
3787
3788fi
3789
3790EGREP="$ac_cv_path_EGREP"
3791if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3795fi
3796
Reid Spencera773bd52006-08-04 18:18:08 +00003797else
3798 ac_cv_path_EGREP=$EGREP
3799fi
3800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003801
Reid Spencera773bd52006-08-04 18:18:08 +00003802 fi
3803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003804{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003806 EGREP="$ac_cv_path_EGREP"
3807
3808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003809{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003814 cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003820#include <stdlib.h>
3821#include <stdarg.h>
3822#include <string.h>
3823#include <float.h>
3824
John Criswell0c38eaf2003-09-10 15:17:25 +00003825int
3826main ()
3827{
3828
3829 ;
3830 return 0;
3831}
John Criswell7a73b802003-06-30 21:59:07 +00003832_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003833rm -f conftest.$ac_objext
3834if { (ac_try="$ac_compile"
3835case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003867 ac_cv_header_stdc=yes
3868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003874
Reid Spencera773bd52006-08-04 18:18:08 +00003875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003876
3877if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003879 cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003884/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003885#include <string.h>
3886
3887_ACEOF
3888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003889 $EGREP "memchr" >/dev/null 2>&1; then
3890 :
John Criswell7a73b802003-06-30 21:59:07 +00003891else
3892 ac_cv_header_stdc=no
3893fi
3894rm -f conftest*
3895
3896fi
3897
3898if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003906#include <stdlib.h>
3907
3908_ACEOF
3909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003910 $EGREP "free" >/dev/null 2>&1; then
3911 :
John Criswell7a73b802003-06-30 21:59:07 +00003912else
3913 ac_cv_header_stdc=no
3914fi
3915rm -f conftest*
3916
3917fi
3918
3919if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003921 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003922 :
3923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003924 cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003930#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003931#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003932#if ((' ' & 0x0FF) == 0x020)
3933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003936# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941#endif
3942
3943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944int
3945main ()
3946{
3947 int i;
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003950 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003951 return 2;
3952 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003953}
3954_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955rm -f conftest$ac_exeext
3956if { (ac_try="$ac_link"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969esac
3970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 :
John Criswell7a73b802003-06-30 21:59:07 +00003976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977 echo "$as_me: program exited with status $ac_status" >&5
3978echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981( exit $ac_status )
3982ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984rm -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 +00003985fi
3986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987
John Criswell7a73b802003-06-30 21:59:07 +00003988fi
3989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003990{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003992if test $ac_cv_header_stdc = yes; then
3993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003994cat >>confdefs.h <<\_ACEOF
3995#define STDC_HEADERS 1
3996_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003997
3998fi
3999
Reid Spencera773bd52006-08-04 18:18:08 +00004000# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004001
4002
4003
4004
4005
4006
4007
4008
4009
Reid Spencera773bd52006-08-04 18:18:08 +00004010for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012do
4013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h. */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h. */
4025$ac_includes_default
4026
4027#include <$ac_header>
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (ac_try="$ac_compile"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047esac
4048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 eval "$as_ac_Header=no"
4069fi
4070
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072fi
4073ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075echo "${ECHO_T}$ac_res" >&6; }
4076if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004077 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004079_ACEOF
4080
4081fi
4082
4083done
4084
4085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004086{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091 # See if sys/param.h defines the BYTE_ORDER macro.
4092cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004094_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004097/* end confdefs.h. */
4098#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004099#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004100
4101int
4102main ()
4103{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 bogus endian macros
4106#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004107
4108 ;
4109 return 0;
4110}
4111_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004112rm -f conftest.$ac_objext
4113if { (ac_try="$ac_compile"
4114case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004146 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004147cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004152/* end confdefs.h. */
4153#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004154#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004155
4156int
4157main ()
4158{
4159#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004160 not big endian
4161#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004162
4163 ;
4164 return 0;
4165}
4166_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004167rm -f conftest.$ac_objext
4168if { (ac_try="$ac_compile"
4169case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004201 ac_cv_c_bigendian=yes
4202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203 echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004206 ac_cv_c_bigendian=no
4207fi
4208
4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210else
4211 echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 # It does not; compile a test program.
4215if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h. */
4224short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004230int
4231main ()
4232{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004233 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004234 ;
4235 return 0;
4236}
4237_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238rm -f conftest.$ac_objext
4239if { (ac_try="$ac_compile"
4240case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004273 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004274fi
4275if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4278 else
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4281 fi
4282fi
Reid Spencera773bd52006-08-04 18:18:08 +00004283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004284 echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287
Torok Edwin871384f2010-01-26 08:50:50 +00004288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289
Reid Spencera773bd52006-08-04 18:18:08 +00004290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292 cat >conftest.$ac_ext <<_ACEOF
4293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004297/* end confdefs.h. */
4298$ac_includes_default
4299int
4300main ()
4301{
4302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004303 /* Are we little or big endian? From Harbison&Steele. */
4304 union
4305 {
4306 long int l;
4307 char c[sizeof (long int)];
4308 } u;
4309 u.l = 1;
4310 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004311
4312 ;
4313 return 0;
4314}
4315_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004316rm -f conftest$ac_exeext
4317if { (ac_try="$ac_link"
4318case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004336 ac_cv_c_bigendian=no
4337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004338 echo "$as_me: program exited with status $ac_status" >&5
4339echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342( exit $ac_status )
4343ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004345rm -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 +00004346fi
4347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004348
Reid Spencera773bd52006-08-04 18:18:08 +00004349fi
4350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355case $ac_cv_c_bigendian in
4356 yes)
4357 ENDIAN=big
4358 ;;
4359 no)
4360 ENDIAN=little
4361 ;;
4362 *)
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365echo "$as_me: error: unknown endianness
4366presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4368esac
Reid Spencera773bd52006-08-04 18:18:08 +00004369
4370
4371if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4373
4374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004379else
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4382else
4383 ac_build_prefix=${build_alias}-
4384
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004391else
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 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 +00004402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004404 break 2
4405 fi
4406done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004407done
Reid Spencera773bd52006-08-04 18:18:08 +00004408IFS=$as_save_IFS
4409
4410fi
4411fi
4412BUILD_CC=$ac_cv_prog_BUILD_CC
4413if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417 { echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004419fi
4420
4421
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004429else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 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 +00004440 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004442 break 2
4443 fi
4444done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445done
Reid Spencera773bd52006-08-04 18:18:08 +00004446IFS=$as_save_IFS
4447
4448fi
4449fi
4450BUILD_CC=$ac_cv_prog_BUILD_CC
4451if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455 { echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004457fi
4458
4459
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004467else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470else
4471 ac_prog_rejected=no
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 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 +00004479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4481 continue
4482 fi
4483 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004485 break 2
4486 fi
4487done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488done
Reid Spencera773bd52006-08-04 18:18:08 +00004489IFS=$as_save_IFS
4490
4491if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4494 shift
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4499 shift
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4501 fi
4502fi
4503fi
4504fi
4505BUILD_CC=$ac_cv_prog_BUILD_CC
4506if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004510 { echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004512fi
4513
4514
4515 fi
4516 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 rm -f conftest*
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004525 (eval $ac_build_link) 2>&5
4526 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004529 for file in conftest.*; do
4530 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004531 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 esac
4534 done
4535 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004539 fi
4540 rm -f conftest*
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4542fi
4543fi
4544
4545BUILD_EXEEXT=""
4546test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004547{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004549ac_build_exeext=$BUILD_EXEEXT
4550
Jim Grosbach673612e2008-10-02 22:56:44 +00004551 ac_build_prefix=${build_alias}-
4552 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004558else
4559 if test -n "$BUILD_CXX"; then
4560 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 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 +00004569 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004571 break 2
4572 fi
4573done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574done
Jim Grosbach673612e2008-10-02 22:56:44 +00004575IFS=$as_save_IFS
4576
4577fi
4578fi
4579BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004581 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584 { echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004586fi
4587
4588
4589 if test -z "$BUILD_CXX"; then
4590 # Extract the first word of "g++", so it can be a program name with args.
4591set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004596else
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 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 +00004607 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004609 break 2
4610 fi
4611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612done
Jim Grosbach673612e2008-10-02 22:56:44 +00004613IFS=$as_save_IFS
4614
4615fi
4616fi
4617BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004622 { echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004624fi
4625
4626
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "c++", so it can be a program name with args.
4629set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004634else
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637else
4638 ac_prog_rejected=no
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 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 +00004646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647 ac_prog_rejected=yes
4648 continue
4649 fi
4650 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004652 break 2
4653 fi
4654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655done
Jim Grosbach673612e2008-10-02 22:56:44 +00004656IFS=$as_save_IFS
4657
4658if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_BUILD_CXX
4661 shift
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 shift
4667 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4668 fi
4669fi
4670fi
4671fi
4672BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004674 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677 { echo "$as_me:$LINENO: result: no" >&5
4678echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004679fi
4680
4681
4682 fi
4683 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004684else
4685 LLVM_CROSS_COMPILING=0
4686
4687fi
4688
Nick Lewycky5b28f862009-04-10 05:18:27 +00004689if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004690 cvsbuild="yes"
4691 optimize="no"
4692 CVSBUILD=CVSBUILD=1
4693
4694else
4695 cvsbuild="no"
4696 optimize="yes"
4697fi
4698
4699
4700# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004702 enableval=$enable_optimized;
4703else
4704 enableval=$optimize
4705fi
4706
4707if test ${enableval} = "no" ; then
4708 ENABLE_OPTIMIZED=
4709
4710else
4711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4712
4713fi
4714
David Greene2a5a12c2009-04-17 14:50:39 +00004715# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004717 enableval=$enable_profiling;
4718else
4719 enableval="no"
4720fi
4721
4722if test ${enableval} = "no" ; then
4723 ENABLE_PROFILING=
4724
4725else
4726 ENABLE_PROFILING=ENABLE_PROFILING=1
4727
4728fi
4729
Reid Spencera773bd52006-08-04 18:18:08 +00004730# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004731if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004732 enableval=$enable_assertions;
4733else
4734 enableval="yes"
4735fi
4736
4737if test ${enableval} = "yes" ; then
4738 DISABLE_ASSERTIONS=
4739
4740else
4741 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4742
4743fi
4744
David Greenea696d242007-06-28 19:36:08 +00004745# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004746if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004747 enableval=$enable_expensive_checks;
4748else
4749 enableval="no"
4750fi
4751
4752if test ${enableval} = "yes" ; then
4753 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754
4755 EXPENSIVE_CHECKS=yes
4756
4757else
4758 ENABLE_EXPENSIVE_CHECKS=
4759
4760 EXPENSIVE_CHECKS=no
4761
4762fi
4763
Reid Spencer8b2e1412006-11-17 03:32:33 +00004764# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004766 enableval=$enable_debug_runtime;
4767else
4768 enableval=no
4769fi
4770
4771if test ${enableval} = "no" ; then
4772 DEBUG_RUNTIME=
4773
4774else
4775 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4776
4777fi
4778
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004779# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004781 enableval=$enable_debug_symbols;
4782else
4783 enableval=no
4784fi
4785
4786if test ${enableval} = "no" ; then
4787 DEBUG_SYMBOLS=
4788
4789else
4790 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4791
4792fi
4793
Reid Spencera773bd52006-08-04 18:18:08 +00004794# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004796 enableval=$enable_jit;
4797else
4798 enableval=default
4799fi
4800
4801if test ${enableval} = "no"
4802then
4803 JIT=
4804
4805else
4806 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004807 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004809 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004815 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004816 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004817 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004818 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004819 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004828 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004829 Blackfin) TARGET_HAS_JIT=0
4830 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004831 MBlaze) TARGET_HAS_JIT=0
4832 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004833 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004834 ;;
4835 esac
4836fi
4837
4838# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004840 enableval=$enable_doxygen;
4841else
4842 enableval=default
4843fi
4844
4845case "$enableval" in
4846 yes) ENABLE_DOXYGEN=1
4847 ;;
4848 no) ENABLE_DOXYGEN=0
4849 ;;
4850 default) ENABLE_DOXYGEN=0
4851 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4853echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004855esac
4856
4857# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004858if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004859 enableval=$enable_threads;
4860else
Reid Spencer65c5d752006-11-05 17:08:18 +00004861 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004862fi
4863
4864case "$enableval" in
4865 yes) ENABLE_THREADS=1
4866 ;;
4867 no) ENABLE_THREADS=0
4868 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004869 default) ENABLE_THREADS=1
4870 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4872echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4873 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004874esac
4875
Owen Andersona8603702009-05-19 22:18:56 +00004876cat >>confdefs.h <<_ACEOF
4877#define ENABLE_THREADS $ENABLE_THREADS
4878_ACEOF
4879
4880
Reid Spencer89b0d992006-12-16 22:07:52 +00004881# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004883 enableval=$enable_pic;
4884else
4885 enableval=default
4886fi
4887
4888case "$enableval" in
4889 yes) ENABLE_PIC=1
4890 ;;
4891 no) ENABLE_PIC=0
4892 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004893 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004894 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4896echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004898esac
4899
4900cat >>confdefs.h <<_ACEOF
4901#define ENABLE_PIC $ENABLE_PIC
4902_ACEOF
4903
4904
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004905# Check whether --enable-shared was given.
4906if test "${enable_shared+set}" = set; then
4907 enableval=$enable_shared;
4908else
4909 enableval=default
4910fi
4911
4912case "$enableval" in
4913 yes) ENABLE_SHARED=1
4914 ;;
4915 no) ENABLE_SHARED=0
4916 ;;
4917 default) ENABLE_SHARED=0
4918 ;;
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4920echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4922esac
4923
Reid Spencera773bd52006-08-04 18:18:08 +00004924TARGETS_TO_BUILD=""
4925# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004926if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004927 enableval=$enable_targets;
4928else
4929 enableval=all
4930fi
4931
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004932if test "$enableval" = host-only ; then
4933 enableval=host
4934fi
Reid Spencera773bd52006-08-04 18:18:08 +00004935case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004936 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 +00004937 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4938 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004939 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4941 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4942 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4943 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4944 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4945 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4946 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4947 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4948 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4949 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4950 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4951 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4952 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4953 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4954 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004955 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004956 host) case "$llvm_cv_target_arch" in
4957 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4959 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4960 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4961 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4962 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4963 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004964 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004965 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4966 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4967 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4968 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004969 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004970 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004971 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4972echo "$as_me: error: Can not set target to build" >&2;}
4973 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004974 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004975 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4976echo "$as_me: error: Unrecognized target $a_target" >&2;}
4977 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004978 esac
4979 done
4980 ;;
4981esac
Reid Spencera773bd52006-08-04 18:18:08 +00004982TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4983
4984
Douglas Gregor0711c302009-06-17 00:43:20 +00004985# Determine whether we are building LLVM support for the native architecture.
4986# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4987for a_target in $TARGETS_TO_BUILD; do
4988 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004989 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004990
4991cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004992#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004993_ACEOF
4994
4995 fi
4996done
4997
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004998# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4999# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005000LLVM_ENUM_TARGETS=""
5001LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005002LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005003LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005004for target_to_build in $TARGETS_TO_BUILD; do
5005 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5006 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5007 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5008 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005009 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5010 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5011 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005012 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5013 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5014 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005015done
5016
5017
5018
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005019
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005020
Reid Spencer65c5d752006-11-05 17:08:18 +00005021# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005022if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005023 enableval=$enable_cbe_printf_a;
5024else
5025 enableval=default
5026fi
5027
5028case "$enableval" in
5029 yes) ENABLE_CBE_PRINTF_A=1
5030 ;;
5031 no) ENABLE_CBE_PRINTF_A=0
5032 ;;
5033 default) ENABLE_CBE_PRINTF_A=1
5034 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005035 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5036echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5037 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005038esac
5039
5040cat >>confdefs.h <<_ACEOF
5041#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5042_ACEOF
5043
5044
Reid Spencera773bd52006-08-04 18:18:08 +00005045
5046# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005047if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005048 withval=$with_llvmgccdir;
5049else
5050 withval=default
5051fi
5052
5053case "$withval" in
5054 default) WITH_LLVMGCCDIR=default ;;
5055 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5057echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5058 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005059esac
5060
5061
Devang Patel5d28b882007-12-04 22:54:47 +00005062# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005063if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005064 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5065 WITH_LLVMGCCDIR=""
5066fi
5067
5068
5069
5070# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005071if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005072 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5073 WITH_LLVMGCCDIR=""
5074fi
5075
Douglas Gregor01746742009-05-11 18:05:52 +00005076
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005077if test -n "$LLVMGCC"; then
5078 LLVMGCCCOMMAND="$LLVMGCC"
5079fi
5080
5081if test -n "$LLVMGXX"; then
5082 LLVMGXXCOMMAND="$LLVMGXX"
5083fi
Devang Patel5d28b882007-12-04 22:54:47 +00005084
5085if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005086 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5087echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5088 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005089fi
5090
5091if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005092 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5093echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5094 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005095fi
5096
5097
Daniel Dunbar98515672010-02-23 10:00:49 +00005098# Check whether --with-clang was given.
5099if test "${with_clang+set}" = set; then
5100 withval=$with_clang;
5101else
5102 with_clang=default
5103fi
5104
5105
5106
5107# Check whether --with-built-clang was given.
5108if test "${with_built_clang+set}" = set; then
5109 withval=$with_built_clang;
5110else
5111 with_built_clang=check
5112fi
5113
5114
5115{ echo "$as_me:$LINENO: checking clang compiler" >&5
5116echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5117WITH_CLANGPATH=""
5118WITH_BUILT_CLANG=0
5119if test "$with_clang" != "default"; then
5120 WITH_CLANGPATH="$with_clang"
5121 if ! test -x "$WITH_CLANGPATH"; then
5122 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5123echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5124 { (exit 1); exit 1; }; }
5125 fi
5126elif test "$with_built_clang" = "yes"; then
5127 WITH_BUILT_CLANG=1
5128elif test "$with_built_clang" = "no"; then
5129 WITH_BUILT_CLANG=0
5130else
5131 if test "$with_built_clang" != "check"; then
5132 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5133echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5134 { (exit 1); exit 1; }; }
5135 fi
5136
5137 if test -f ${srcdir}/tools/clang/README.txt; then
5138 WITH_BUILT_CLANG=1
5139 fi
5140fi
5141
5142if ! test -z "$WITH_CLANGPATH"; then
5143 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5144echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5145 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5146elif test "$WITH_BUILT_CLANG" = "1"; then
5147 { echo "$as_me:$LINENO: result: built" >&5
5148echo "${ECHO_T}built" >&6; }
5149else
5150 { echo "$as_me:$LINENO: result: none" >&5
5151echo "${ECHO_T}none" >&6; }
5152fi
5153CLANGPATH=$WITH_CLANGPATH
5154
5155CLANGXXPATH=$WITH_CLANGXXPATH
5156
5157ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5158
5159
5160
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005161# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005162if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005163 withval=$with_optimize_option;
5164else
5165 withval=default
5166fi
5167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005168{ echo "$as_me:$LINENO: checking optimization flags" >&5
5169echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005170case "$withval" in
5171 default)
5172 case "$llvm_cv_os_type" in
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005173 MingW) optimize_option=-O2 ;;
5174 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005175 esac ;;
5176 *) optimize_option="$withval" ;;
5177esac
5178OPTIMIZE_OPTION=$optimize_option
5179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005180{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5181echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005182
5183
Reid Spencera773bd52006-08-04 18:18:08 +00005184# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005185if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005186 withval=$with_extra_options;
5187else
5188 withval=default
5189fi
5190
5191case "$withval" in
5192 default) EXTRA_OPTIONS= ;;
5193 *) EXTRA_OPTIONS=$withval ;;
5194esac
5195EXTRA_OPTIONS=$EXTRA_OPTIONS
5196
5197
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005198# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005199if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005200 enableval=$enable_bindings;
5201else
5202 enableval=default
5203fi
5204
5205BINDINGS_TO_BUILD=""
5206case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005207 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005208 all ) BINDINGS_TO_BUILD="ocaml" ;;
5209 none | no) BINDINGS_TO_BUILD="" ;;
5210 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5211 case "$a_binding" in
5212 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5214echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5215 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005216 esac
5217 done
5218 ;;
5219esac
5220
Reid Spencera773bd52006-08-04 18:18:08 +00005221
Gordon Henriksenf0915682007-10-02 16:42:22 +00005222# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005223if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005224 withval=$with_ocaml_libdir;
5225else
5226 withval=auto
5227fi
5228
5229case "$withval" in
5230 auto) with_ocaml_libdir="$withval" ;;
5231 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005232 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5233echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5234 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005235esac
5236
5237
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005238# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005239if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005240 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005241else
5242 withval=""
5243fi
5244
5245
5246cat >>confdefs.h <<_ACEOF
5247#define C_INCLUDE_DIRS "$withval"
5248_ACEOF
5249
5250
5251
Rafael Espindola420d23c2009-11-16 19:46:55 +00005252# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005253if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005254 withval=$with_cxx_include_root;
5255else
5256 withval=""
5257fi
5258
5259
5260cat >>confdefs.h <<_ACEOF
5261#define CXX_INCLUDE_ROOT "$withval"
5262_ACEOF
5263
5264
5265
5266# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005267if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005268 withval=$with_cxx_include_arch;
5269else
5270 withval=""
5271fi
5272
5273
5274cat >>confdefs.h <<_ACEOF
5275#define CXX_INCLUDE_ARCH "$withval"
5276_ACEOF
5277
5278
5279
5280# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005281if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005282 withval=$with_cxx_include_32bit_dir;
5283else
5284 withval=""
5285fi
5286
5287
5288cat >>confdefs.h <<_ACEOF
5289#define CXX_INCLUDE_32BIT_DIR "$withval"
5290_ACEOF
5291
5292
5293
5294# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005295if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005296 withval=$with_cxx_include_64bit_dir;
5297else
5298 withval=""
5299fi
5300
5301
5302cat >>confdefs.h <<_ACEOF
5303#define CXX_INCLUDE_64BIT_DIR "$withval"
5304_ACEOF
5305
5306
5307
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005308# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005309if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005310 withval=$with_binutils_include;
5311else
5312 withval=default
5313fi
5314
5315case "$withval" in
5316 default) WITH_BINUTILS_INCDIR=default ;;
5317 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005318 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5319echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5320 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005321esac
5322if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5323 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5324
5325 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5326 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005327 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5328echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5329 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005330 fi
5331fi
5332
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005333# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005334if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005335 enableval=$enable_libffi; case "$enableval" in
5336 yes) llvm_cv_enable_libffi="yes" ;;
5337 no) llvm_cv_enable_libffi="no" ;;
5338 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005339echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5340 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005341 esac
5342else
5343 llvm_cv_enable_libffi=no
5344fi
5345
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005346
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005347if test "$llvm_cv_os_type" = "Win32" ; then
5348 llvmc_dynamic="yes"
5349else
5350 llvmc_dynamic="no"
5351fi
5352
5353# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005354if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005355 enableval=$enable_llvmc_dynamic;
5356else
5357 enableval=$llvmc_dynamic
5358fi
5359
5360if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5361 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5362
5363else
5364 ENABLE_LLVMC_DYNAMIC=
5365
5366fi
5367
5368# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005369if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005370 enableval=$enable_llvmc_dynamic_plugins;
5371else
5372 enableval=yes
5373fi
5374
5375if test ${enableval} = "yes" ; then
5376 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5377
5378else
5379 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5380
5381fi
5382
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005383
Reid Spencera773bd52006-08-04 18:18:08 +00005384ac_ext=c
5385ac_cpp='$CPP $CPPFLAGS'
5386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005389{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5390echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005391# On Suns, sometimes $CPP names a directory.
5392if test -n "$CPP" && test -d "$CPP"; then
5393 CPP=
5394fi
5395if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005396 if test "${ac_cv_prog_CPP+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005398else
5399 # Double quotes because CPP needs to be expanded
5400 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5401 do
5402 ac_preproc_ok=false
5403for ac_c_preproc_warn_flag in '' yes
5404do
5405 # Use a header file that comes with gcc, so configuring glibc
5406 # with a fresh cross-compiler works.
5407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5408 # <limits.h> exists even on freestanding compilers.
5409 # On the NeXT, cc -E runs the code through the compiler's parser,
5410 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005411 cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005416/* end confdefs.h. */
5417#ifdef __STDC__
5418# include <limits.h>
5419#else
5420# include <assert.h>
5421#endif
5422 Syntax error
5423_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005424if { (ac_try="$ac_cpp conftest.$ac_ext"
5425case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428esac
5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } >/dev/null; then
5437 if test -s conftest.err; then
5438 ac_cpp_err=$ac_c_preproc_warn_flag
5439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5440 else
5441 ac_cpp_err=
5442 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005444 ac_cpp_err=yes
5445fi
5446if test -z "$ac_cpp_err"; then
5447 :
5448else
5449 echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
Reid Spencera773bd52006-08-04 18:18:08 +00005452 # Broken: fails on valid input.
5453continue
5454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005455
Reid Spencera773bd52006-08-04 18:18:08 +00005456rm -f conftest.err conftest.$ac_ext
5457
5458 # OK, works on sane cases. Now check whether nonexistent headers
5459 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460 cat >conftest.$ac_ext <<_ACEOF
5461/* confdefs.h. */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005465/* end confdefs.h. */
5466#include <ac_nonexistent.h>
5467_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005468if { (ac_try="$ac_cpp conftest.$ac_ext"
5469case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472esac
5473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev/null; then
5481 if test -s conftest.err; then
5482 ac_cpp_err=$ac_c_preproc_warn_flag
5483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5484 else
5485 ac_cpp_err=
5486 fi
5487else
5488 ac_cpp_err=yes
5489fi
5490if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005491 # Broken: success on invalid input.
5492continue
5493else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005494 echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
Reid Spencera773bd52006-08-04 18:18:08 +00005497 # Passes both tests.
5498ac_preproc_ok=:
5499break
5500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005501
Reid Spencera773bd52006-08-04 18:18:08 +00005502rm -f conftest.err conftest.$ac_ext
5503
5504done
5505# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5506rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005507if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005508 break
5509fi
5510
5511 done
5512 ac_cv_prog_CPP=$CPP
5513
5514fi
5515 CPP=$ac_cv_prog_CPP
5516else
5517 ac_cv_prog_CPP=$CPP
5518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005519{ echo "$as_me:$LINENO: result: $CPP" >&5
5520echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005521ac_preproc_ok=false
5522for ac_c_preproc_warn_flag in '' yes
5523do
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005530 cat >conftest.$ac_ext <<_ACEOF
5531/* confdefs.h. */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005535/* end confdefs.h. */
5536#ifdef __STDC__
5537# include <limits.h>
5538#else
5539# include <assert.h>
5540#endif
5541 Syntax error
5542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005543if { (ac_try="$ac_cpp conftest.$ac_ext"
5544case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547esac
5548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_c_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559 else
5560 ac_cpp_err=
5561 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005563 ac_cpp_err=yes
5564fi
5565if test -z "$ac_cpp_err"; then
5566 :
5567else
5568 echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
Reid Spencera773bd52006-08-04 18:18:08 +00005571 # Broken: fails on valid input.
5572continue
5573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005574
Reid Spencera773bd52006-08-04 18:18:08 +00005575rm -f conftest.err conftest.$ac_ext
5576
5577 # OK, works on sane cases. Now check whether nonexistent headers
5578 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579 cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005584/* end confdefs.h. */
5585#include <ac_nonexistent.h>
5586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587if { (ac_try="$ac_cpp conftest.$ac_ext"
5588case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null; then
5600 if test -s conftest.err; then
5601 ac_cpp_err=$ac_c_preproc_warn_flag
5602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5603 else
5604 ac_cpp_err=
5605 fi
5606else
5607 ac_cpp_err=yes
5608fi
5609if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005610 # Broken: success on invalid input.
5611continue
5612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005613 echo "$as_me: failed program was:" >&5
5614sed 's/^/| /' conftest.$ac_ext >&5
5615
Reid Spencera773bd52006-08-04 18:18:08 +00005616 # Passes both tests.
5617ac_preproc_ok=:
5618break
5619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620
Reid Spencera773bd52006-08-04 18:18:08 +00005621rm -f conftest.err conftest.$ac_ext
5622
5623done
5624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5625rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005626if $ac_preproc_ok; then
5627 :
Reid Spencera773bd52006-08-04 18:18:08 +00005628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005629 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5630See \`config.log' for more details." >&5
5631echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5632See \`config.log' for more details." >&2;}
5633 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005634fi
5635
5636ac_ext=c
5637ac_cpp='$CPP $CPPFLAGS'
5638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
5642ac_ext=c
5643ac_cpp='$CPP $CPPFLAGS'
5644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647if test -n "$ac_tool_prefix"; then
5648 for ac_prog in gcc
5649 do
5650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5654if test "${ac_cv_prog_CC+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005656else
5657 if test -n "$CC"; then
5658 ac_cv_prog_CC="$CC" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 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 +00005667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005669 break 2
5670 fi
5671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005672done
Reid Spencera773bd52006-08-04 18:18:08 +00005673IFS=$as_save_IFS
5674
5675fi
5676fi
5677CC=$ac_cv_prog_CC
5678if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005679 { echo "$as_me:$LINENO: result: $CC" >&5
5680echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005682 { echo "$as_me:$LINENO: result: no" >&5
5683echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005684fi
5685
5686
5687 test -n "$CC" && break
5688 done
5689fi
5690if test -z "$CC"; then
5691 ac_ct_CC=$CC
5692 for ac_prog in gcc
5693do
5694 # Extract the first word of "$ac_prog", so it can be a program name with args.
5695set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005700else
5701 if test -n "$ac_ct_CC"; then
5702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 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 +00005711 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005713 break 2
5714 fi
5715done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005716done
Reid Spencera773bd52006-08-04 18:18:08 +00005717IFS=$as_save_IFS
5718
5719fi
5720fi
5721ac_ct_CC=$ac_cv_prog_ac_ct_CC
5722if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005723 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5724echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726 { echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005728fi
5729
5730
5731 test -n "$ac_ct_CC" && break
5732done
5733
5734 if test "x$ac_ct_CC" = x; then
5735 CC=""
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5740whose name does not start with the host triplet. If you think this
5741configuration is useful to you, please write to autoconf@gnu.org." >&5
5742echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5743whose name does not start with the host triplet. If you think this
5744configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005745ac_tool_warned=yes ;;
5746esac
5747 CC=$ac_ct_CC
5748 fi
5749fi
5750
5751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005752test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5753See \`config.log' for more details." >&5
5754echo "$as_me: error: no acceptable C compiler found in \$PATH
5755See \`config.log' for more details." >&2;}
5756 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005757
5758# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005759echo "$as_me:$LINENO: checking for C compiler version" >&5
5760ac_compiler=`set X $ac_compile; echo $2`
5761{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005762case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005768 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }
5771{ (ac_try="$ac_compiler -v >&5"
5772case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775esac
5776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_compiler -v >&5") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }
5781{ (ac_try="$ac_compiler -V >&5"
5782case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785esac
5786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_compiler -V >&5") 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005792{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5793echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5794if test "${ac_cv_c_compiler_gnu+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h. */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005802/* end confdefs.h. */
5803
5804int
5805main ()
5806{
5807#ifndef __GNUC__
5808 choke me
5809#endif
5810
5811 ;
5812 return 0;
5813}
5814_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815rm -f conftest.$ac_objext
5816if { (ac_try="$ac_compile"
5817case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5830 { (case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833esac
5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_try") 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843esac
5844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_try") 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005849 ac_compiler_gnu=yes
5850else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851 echo "$as_me: failed program was:" >&5
5852sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005855fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856
Reid Spencera773bd52006-08-04 18:18:08 +00005857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858ac_cv_c_compiler_gnu=$ac_compiler_gnu
5859
5860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005861{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5862echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5863GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005864ac_test_CFLAGS=${CFLAGS+set}
5865ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5868if test "${ac_cv_prog_cc_g+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005870else
5871 ac_save_c_werror_flag=$ac_c_werror_flag
5872 ac_c_werror_flag=yes
5873 ac_cv_prog_cc_g=no
5874 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875 cat >conftest.$ac_ext <<_ACEOF
5876/* confdefs.h. */
5877_ACEOF
5878cat confdefs.h >>conftest.$ac_ext
5879cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005880/* end confdefs.h. */
5881
5882int
5883main ()
5884{
5885
5886 ;
5887 return 0;
5888}
5889_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005890rm -f conftest.$ac_objext
5891if { (ac_try="$ac_compile"
5892case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_compile") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5905 { (case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_try") 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005924 ac_cv_prog_cc_g=yes
5925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005926 echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929 CFLAGS=""
5930 cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h. */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005935/* end confdefs.h. */
5936
5937int
5938main ()
5939{
5940
5941 ;
5942 return 0;
5943}
5944_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945rm -f conftest.$ac_objext
5946if { (ac_try="$ac_compile"
5947case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5960 { (case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5963esac
5964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_try") 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973esac
5974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_try") 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 :
Torok Edwin871384f2010-01-26 08:50:50 +00005980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981 echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005985 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005991/* end confdefs.h. */
5992
5993int
5994main ()
5995{
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006001rm -f conftest.$ac_objext
6002if { (ac_try="$ac_compile"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019esac
6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest.$ac_objext'
6026 { (case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029esac
6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_try") 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006035 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036else
6037 echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040
Reid Spencera773bd52006-08-04 18:18:08 +00006041fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042
Reid Spencera773bd52006-08-04 18:18:08 +00006043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045
Reid Spencera773bd52006-08-04 18:18:08 +00006046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048
Reid Spencera773bd52006-08-04 18:18:08 +00006049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 ac_c_werror_flag=$ac_save_c_werror_flag
6051fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006052{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6053echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006054if test "$ac_test_CFLAGS" = set; then
6055 CFLAGS=$ac_save_CFLAGS
6056elif test $ac_cv_prog_cc_g = yes; then
6057 if test "$GCC" = yes; then
6058 CFLAGS="-g -O2"
6059 else
6060 CFLAGS="-g"
6061 fi
6062else
6063 if test "$GCC" = yes; then
6064 CFLAGS="-O2"
6065 else
6066 CFLAGS=
6067 fi
6068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6070echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6071if test "${ac_cv_prog_cc_c89+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006073else
6074 ac_cv_prog_cc_c89=no
6075ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006076cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h. */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006081/* end confdefs.h. */
6082#include <stdarg.h>
6083#include <stdio.h>
6084#include <sys/types.h>
6085#include <sys/stat.h>
6086/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6087struct buf { int x; };
6088FILE * (*rcsopen) (struct buf *, struct stat *, int);
6089static char *e (p, i)
6090 char **p;
6091 int i;
6092{
6093 return p[i];
6094}
6095static char *f (char * (*g) (char **, int), char **p, ...)
6096{
6097 char *s;
6098 va_list v;
6099 va_start (v,p);
6100 s = g (p, va_arg (v,int));
6101 va_end (v);
6102 return s;
6103}
6104
6105/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6106 function prototypes and stuff, but not '\xHH' hex character constants.
6107 These don't provoke an error unfortunately, instead are silently treated
6108 as 'x'. The following induces an error, until -std is added to get
6109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6110 array size at least. It's necessary to write '\x00'==0 to get something
6111 that's true only with -std. */
6112int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6113
6114/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6115 inside strings and character constants. */
6116#define FOO(x) 'x'
6117int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6118
6119int test (int i, double x);
6120struct s1 {int (*f) (int a);};
6121struct s2 {int (*f) (double a);};
6122int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6123int argc;
6124char **argv;
6125int
6126main ()
6127{
6128return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6129 ;
6130 return 0;
6131}
6132_ACEOF
6133for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6135do
6136 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006137 rm -f conftest.$ac_objext
6138if { (ac_try="$ac_compile"
6139case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142esac
6143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152 { (case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155esac
6156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest.$ac_objext'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165esac
6166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006171 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176
Reid Spencera773bd52006-08-04 18:18:08 +00006177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006178
Reid Spencera773bd52006-08-04 18:18:08 +00006179rm -f core conftest.err conftest.$ac_objext
6180 test "x$ac_cv_prog_cc_c89" != "xno" && break
6181done
6182rm -f conftest.$ac_ext
6183CC=$ac_save_CC
6184
6185fi
6186# AC_CACHE_VAL
6187case "x$ac_cv_prog_cc_c89" in
6188 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189 { echo "$as_me:$LINENO: result: none needed" >&5
6190echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006191 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192 { echo "$as_me:$LINENO: result: unsupported" >&5
6193echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006194 *)
6195 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6197echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006198esac
6199
6200
6201ac_ext=c
6202ac_cpp='$CPP $CPPFLAGS'
6203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206
6207ac_ext=cpp
6208ac_cpp='$CXXCPP $CPPFLAGS'
6209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6212if test -z "$CXX"; then
6213 if test -n "$CCC"; then
6214 CXX=$CCC
6215 else
6216 if test -n "$ac_tool_prefix"; then
6217 for ac_prog in g++
6218 do
6219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6220set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223if test "${ac_cv_prog_CXX+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006225else
6226 if test -n "$CXX"; then
6227 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 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 +00006236 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006238 break 2
6239 fi
6240done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006241done
Reid Spencera773bd52006-08-04 18:18:08 +00006242IFS=$as_save_IFS
6243
6244fi
6245fi
6246CXX=$ac_cv_prog_CXX
6247if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248 { echo "$as_me:$LINENO: result: $CXX" >&5
6249echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251 { echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006253fi
6254
6255
6256 test -n "$CXX" && break
6257 done
6258fi
6259if test -z "$CXX"; then
6260 ac_ct_CXX=$CXX
6261 for ac_prog in g++
6262do
6263 # Extract the first word of "$ac_prog", so it can be a program name with args.
6264set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006269else
6270 if test -n "$ac_ct_CXX"; then
6271 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 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 +00006280 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006282 break 2
6283 fi
6284done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285done
Reid Spencera773bd52006-08-04 18:18:08 +00006286IFS=$as_save_IFS
6287
6288fi
6289fi
6290ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6291if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6293echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 { echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006297fi
6298
6299
6300 test -n "$ac_ct_CXX" && break
6301done
6302
6303 if test "x$ac_ct_CXX" = x; then
6304 CXX="g++"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006308{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6309whose name does not start with the host triplet. If you think this
6310configuration is useful to you, please write to autoconf@gnu.org." >&5
6311echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6312whose name does not start with the host triplet. If you think this
6313configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006314ac_tool_warned=yes ;;
6315esac
6316 CXX=$ac_ct_CXX
6317 fi
6318fi
6319
6320 fi
6321fi
6322# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006323echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6324ac_compiler=`set X $ac_compile; echo $2`
6325{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006326case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006332 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }
6335{ (ac_try="$ac_compiler -v >&5"
6336case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339esac
6340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compiler -v >&5") 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }
6345{ (ac_try="$ac_compiler -V >&5"
6346case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349esac
6350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compiler -V >&5") 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006356{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6357echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6358if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361 cat >conftest.$ac_ext <<_ACEOF
6362/* confdefs.h. */
6363_ACEOF
6364cat confdefs.h >>conftest.$ac_ext
6365cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006366/* end confdefs.h. */
6367
6368int
6369main ()
6370{
6371#ifndef __GNUC__
6372 choke me
6373#endif
6374
6375 ;
6376 return 0;
6377}
6378_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006379rm -f conftest.$ac_objext
6380if { (ac_try="$ac_compile"
6381case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384esac
6385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6394 { (case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397esac
6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_try") 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407esac
6408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_try") 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006413 ac_compiler_gnu=yes
6414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415 echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420
Reid Spencera773bd52006-08-04 18:18:08 +00006421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6423
6424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6426echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6427GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006428ac_test_CXXFLAGS=${CXXFLAGS+set}
6429ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006430{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6431echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6432if test "${ac_cv_prog_cxx_g+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006434else
6435 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6436 ac_cxx_werror_flag=yes
6437 ac_cv_prog_cxx_g=no
6438 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439 cat >conftest.$ac_ext <<_ACEOF
6440/* confdefs.h. */
6441_ACEOF
6442cat confdefs.h >>conftest.$ac_ext
6443cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006444/* end confdefs.h. */
6445
6446int
6447main ()
6448{
6449
6450 ;
6451 return 0;
6452}
6453_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454rm -f conftest.$ac_objext
6455if { (ac_try="$ac_compile"
6456case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459esac
6460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6469 { (case "(($ac_try" in
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6472esac
6473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_try") 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; } &&
6478 { ac_try='test -s conftest.$ac_objext'
6479 { (case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482esac
6483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_try") 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006488 ac_cv_prog_cxx_g=yes
6489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006490 echo "$as_me: failed program was:" >&5
6491sed 's/^/| /' conftest.$ac_ext >&5
6492
6493 CXXFLAGS=""
6494 cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006499/* end confdefs.h. */
6500
6501int
6502main ()
6503{
6504
6505 ;
6506 return 0;
6507}
6508_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509rm -f conftest.$ac_objext
6510if { (ac_try="$ac_compile"
6511case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514esac
6515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compile") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6524 { (case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527esac
6528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_try") 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537esac
6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_try") 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 :
Torok Edwin871384f2010-01-26 08:50:50 +00006544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006545 echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006549 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550 cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h. */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006555/* end confdefs.h. */
6556
6557int
6558main ()
6559{
6560
6561 ;
6562 return 0;
6563}
6564_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006565rm -f conftest.$ac_objext
6566if { (ac_try="$ac_compile"
6567case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570esac
6571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583esac
6584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593esac
6594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_try") 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006599 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006600else
6601 echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
6604
Reid Spencera773bd52006-08-04 18:18:08 +00006605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606
Reid Spencera773bd52006-08-04 18:18:08 +00006607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609
Reid Spencera773bd52006-08-04 18:18:08 +00006610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006612
Reid Spencera773bd52006-08-04 18:18:08 +00006613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006616{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6617echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006618if test "$ac_test_CXXFLAGS" = set; then
6619 CXXFLAGS=$ac_save_CXXFLAGS
6620elif test $ac_cv_prog_cxx_g = yes; then
6621 if test "$GXX" = yes; then
6622 CXXFLAGS="-g -O2"
6623 else
6624 CXXFLAGS="-g"
6625 fi
6626else
6627 if test "$GXX" = yes; then
6628 CXXFLAGS="-O2"
6629 else
6630 CXXFLAGS=
6631 fi
6632fi
6633ac_ext=c
6634ac_cpp='$CPP $CPPFLAGS'
6635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637ac_compiler_gnu=$ac_cv_c_compiler_gnu
6638
Reid Spencera773bd52006-08-04 18:18:08 +00006639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006640{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6641echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6642if test "${lt_cv_path_NM+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006644else
6645 if test -n "$NM"; then
6646 # Let the user override the test.
6647 lt_cv_path_NM="$NM"
6648else
6649 lt_nm_to_check="${ac_tool_prefix}nm"
6650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6651 lt_nm_to_check="$lt_nm_to_check nm"
6652 fi
6653 for lt_tmp_nm in $lt_nm_to_check; do
6654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6656 IFS="$lt_save_ifs"
6657 test -z "$ac_dir" && ac_dir=.
6658 tmp_nm="$ac_dir/$lt_tmp_nm"
6659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6660 # Check to see if the nm accepts a BSD-compat flag.
6661 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6662 # nm: unknown option "B" ignored
6663 # Tru64's nm complains that /dev/null is an invalid object file
6664 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6665 */dev/null* | *'Invalid file or object type'*)
6666 lt_cv_path_NM="$tmp_nm -B"
6667 break
6668 ;;
6669 *)
6670 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6671 */dev/null*)
6672 lt_cv_path_NM="$tmp_nm -p"
6673 break
6674 ;;
6675 *)
6676 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6677 continue # so that we can try to find one that supports BSD flags
6678 ;;
6679 esac
6680 ;;
6681 esac
6682 fi
6683 done
6684 IFS="$lt_save_ifs"
6685 done
6686 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6687fi
6688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006689{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6690echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006691NM="$lt_cv_path_NM"
6692
6693
6694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006695{ echo "$as_me:$LINENO: checking for GNU make" >&5
6696echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6697if test "${llvm_cv_gnu_make_command+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006699else
6700 llvm_cv_gnu_make_command=''
6701 for a in "$MAKE" make gmake gnumake ; do
6702 if test -z "$a" ; then continue ; fi ;
6703 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6704 then
6705 llvm_cv_gnu_make_command=$a ;
6706 break;
6707 fi
6708 done
6709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006710{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6711echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006712 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6713 ifGNUmake='' ;
6714 else
6715 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006716 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6717echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006718 fi
6719
6720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6722echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006723LN_S=$as_ln_s
6724if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725 { echo "$as_me:$LINENO: result: yes" >&5
6726echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006727else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6729echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006730fi
6731
6732# Extract the first word of "cmp", so it can be a program name with args.
6733set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736if test "${ac_cv_path_CMP+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006738else
6739 case $CMP in
6740 [\\/]* | ?:[\\/]*)
6741 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6742 ;;
6743 *)
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 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 +00006751 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006753 break 2
6754 fi
6755done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006756done
Reid Spencera773bd52006-08-04 18:18:08 +00006757IFS=$as_save_IFS
6758
6759 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6760 ;;
6761esac
6762fi
6763CMP=$ac_cv_path_CMP
6764if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765 { echo "$as_me:$LINENO: result: $CMP" >&5
6766echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768 { echo "$as_me:$LINENO: result: no" >&5
6769echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006770fi
6771
6772
6773# Extract the first word of "cp", so it can be a program name with args.
6774set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777if test "${ac_cv_path_CP+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006779else
6780 case $CP in
6781 [\\/]* | ?:[\\/]*)
6782 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6783 ;;
6784 *)
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 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 +00006792 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006794 break 2
6795 fi
6796done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797done
Reid Spencera773bd52006-08-04 18:18:08 +00006798IFS=$as_save_IFS
6799
6800 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6801 ;;
6802esac
6803fi
6804CP=$ac_cv_path_CP
6805if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806 { echo "$as_me:$LINENO: result: $CP" >&5
6807echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006809 { echo "$as_me:$LINENO: result: no" >&5
6810echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006811fi
6812
6813
6814# Extract the first word of "date", so it can be a program name with args.
6815set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818if test "${ac_cv_path_DATE+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006820else
6821 case $DATE in
6822 [\\/]* | ?:[\\/]*)
6823 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6824 ;;
6825 *)
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 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 +00006833 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006835 break 2
6836 fi
6837done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838done
Reid Spencera773bd52006-08-04 18:18:08 +00006839IFS=$as_save_IFS
6840
6841 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6842 ;;
6843esac
6844fi
6845DATE=$ac_cv_path_DATE
6846if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006847 { echo "$as_me:$LINENO: result: $DATE" >&5
6848echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850 { echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006852fi
6853
6854
6855# Extract the first word of "find", so it can be a program name with args.
6856set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859if test "${ac_cv_path_FIND+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006861else
6862 case $FIND in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6865 ;;
6866 *)
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 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 +00006874 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006876 break 2
6877 fi
6878done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006879done
Reid Spencera773bd52006-08-04 18:18:08 +00006880IFS=$as_save_IFS
6881
6882 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6883 ;;
6884esac
6885fi
6886FIND=$ac_cv_path_FIND
6887if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888 { echo "$as_me:$LINENO: result: $FIND" >&5
6889echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006890else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006891 { echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006893fi
6894
6895
6896# Extract the first word of "grep", so it can be a program name with args.
6897set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900if test "${ac_cv_path_GREP+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006902else
6903 case $GREP in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6906 ;;
6907 *)
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 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 +00006915 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006917 break 2
6918 fi
6919done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006920done
Reid Spencera773bd52006-08-04 18:18:08 +00006921IFS=$as_save_IFS
6922
6923 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6924 ;;
6925esac
6926fi
6927GREP=$ac_cv_path_GREP
6928if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929 { echo "$as_me:$LINENO: result: $GREP" >&5
6930echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006931else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006932 { echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006934fi
6935
6936
6937# Extract the first word of "mkdir", so it can be a program name with args.
6938set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941if test "${ac_cv_path_MKDIR+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006943else
6944 case $MKDIR in
6945 [\\/]* | ?:[\\/]*)
6946 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6947 ;;
6948 *)
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 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 +00006956 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006958 break 2
6959 fi
6960done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006961done
Reid Spencera773bd52006-08-04 18:18:08 +00006962IFS=$as_save_IFS
6963
6964 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6965 ;;
6966esac
6967fi
6968MKDIR=$ac_cv_path_MKDIR
6969if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006970 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6971echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006973 { echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006975fi
6976
6977
6978# Extract the first word of "mv", so it can be a program name with args.
6979set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982if test "${ac_cv_path_MV+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006984else
6985 case $MV in
6986 [\\/]* | ?:[\\/]*)
6987 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6988 ;;
6989 *)
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 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 +00006997 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006999 break 2
7000 fi
7001done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002done
Reid Spencera773bd52006-08-04 18:18:08 +00007003IFS=$as_save_IFS
7004
7005 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7006 ;;
7007esac
7008fi
7009MV=$ac_cv_path_MV
7010if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011 { echo "$as_me:$LINENO: result: $MV" >&5
7012echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007013else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014 { echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007016fi
7017
7018
7019if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7021set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024if test "${ac_cv_prog_RANLIB+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007026else
7027 if test -n "$RANLIB"; then
7028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 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 +00007037 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007039 break 2
7040 fi
7041done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042done
Reid Spencera773bd52006-08-04 18:18:08 +00007043IFS=$as_save_IFS
7044
7045fi
7046fi
7047RANLIB=$ac_cv_prog_RANLIB
7048if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7050echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007051else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007052 { echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007054fi
7055
7056
7057fi
7058if test -z "$ac_cv_prog_RANLIB"; then
7059 ac_ct_RANLIB=$RANLIB
7060 # Extract the first word of "ranlib", so it can be a program name with args.
7061set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007066else
7067 if test -n "$ac_ct_RANLIB"; then
7068 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 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 +00007077 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007079 break 2
7080 fi
7081done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082done
Reid Spencera773bd52006-08-04 18:18:08 +00007083IFS=$as_save_IFS
7084
7085fi
7086fi
7087ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7088if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7090echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 { echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007094fi
7095
7096 if test "x$ac_ct_RANLIB" = x; then
7097 RANLIB=":"
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007101{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7102whose name does not start with the host triplet. If you think this
7103configuration is useful to you, please write to autoconf@gnu.org." >&5
7104echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7105whose name does not start with the host triplet. If you think this
7106configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007107ac_tool_warned=yes ;;
7108esac
7109 RANLIB=$ac_ct_RANLIB
7110 fi
7111else
7112 RANLIB="$ac_cv_prog_RANLIB"
7113fi
7114
Torok Edwin871384f2010-01-26 08:50:50 +00007115if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7117set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120if test "${ac_cv_prog_AR+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007122else
7123 if test -n "$AR"; then
7124 ac_cv_prog_AR="$AR" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 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 +00007133 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007135 break 2
7136 fi
7137done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007138done
Torok Edwin871384f2010-01-26 08:50:50 +00007139IFS=$as_save_IFS
7140
7141fi
7142fi
7143AR=$ac_cv_prog_AR
7144if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007145 { echo "$as_me:$LINENO: result: $AR" >&5
7146echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007147else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007148 { echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007150fi
7151
7152
7153fi
7154if test -z "$ac_cv_prog_AR"; then
7155 ac_ct_AR=$AR
7156 # Extract the first word of "ar", so it can be a program name with args.
7157set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007162else
7163 if test -n "$ac_ct_AR"; then
7164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 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 +00007173 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007175 break 2
7176 fi
7177done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178done
Torok Edwin871384f2010-01-26 08:50:50 +00007179IFS=$as_save_IFS
7180
7181fi
7182fi
7183ac_ct_AR=$ac_cv_prog_ac_ct_AR
7184if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007185 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7186echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188 { echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007190fi
7191
7192 if test "x$ac_ct_AR" = x; then
7193 AR="false"
7194 else
7195 case $cross_compiling:$ac_tool_warned in
7196yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7198whose name does not start with the host triplet. If you think this
7199configuration is useful to you, please write to autoconf@gnu.org." >&5
7200echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7201whose name does not start with the host triplet. If you think this
7202configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007203ac_tool_warned=yes ;;
7204esac
7205 AR=$ac_ct_AR
7206 fi
7207else
7208 AR="$ac_cv_prog_AR"
7209fi
7210
Reid Spencera773bd52006-08-04 18:18:08 +00007211# Extract the first word of "rm", so it can be a program name with args.
7212set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215if test "${ac_cv_path_RM+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007217else
7218 case $RM in
7219 [\\/]* | ?:[\\/]*)
7220 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7221 ;;
7222 *)
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 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 +00007230 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007232 break 2
7233 fi
7234done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235done
Reid Spencera773bd52006-08-04 18:18:08 +00007236IFS=$as_save_IFS
7237
7238 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7239 ;;
7240esac
7241fi
7242RM=$ac_cv_path_RM
7243if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244 { echo "$as_me:$LINENO: result: $RM" >&5
7245echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247 { echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007249fi
7250
7251
7252# Extract the first word of "sed", so it can be a program name with args.
7253set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256if test "${ac_cv_path_SED+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007258else
7259 case $SED in
7260 [\\/]* | ?:[\\/]*)
7261 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7262 ;;
7263 *)
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 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 +00007271 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007273 break 2
7274 fi
7275done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007276done
Reid Spencera773bd52006-08-04 18:18:08 +00007277IFS=$as_save_IFS
7278
7279 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7280 ;;
7281esac
7282fi
7283SED=$ac_cv_path_SED
7284if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007285 { echo "$as_me:$LINENO: result: $SED" >&5
7286echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288 { echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007290fi
7291
7292
7293# Extract the first word of "tar", so it can be a program name with args.
7294set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297if test "${ac_cv_path_TAR+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007299else
7300 case $TAR in
7301 [\\/]* | ?:[\\/]*)
7302 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7303 ;;
7304 *)
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 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 +00007312 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007314 break 2
7315 fi
7316done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317done
Reid Spencera773bd52006-08-04 18:18:08 +00007318IFS=$as_save_IFS
7319
7320 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7321 ;;
7322esac
7323fi
7324TAR=$ac_cv_path_TAR
7325if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326 { echo "$as_me:$LINENO: result: $TAR" >&5
7327echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007329 { echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007331fi
7332
7333
7334# Extract the first word of "pwd", so it can be a program name with args.
7335set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338if test "${ac_cv_path_BINPWD+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007340else
7341 case $BINPWD in
7342 [\\/]* | ?:[\\/]*)
7343 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7344 ;;
7345 *)
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 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 +00007353 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007355 break 2
7356 fi
7357done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358done
Reid Spencera773bd52006-08-04 18:18:08 +00007359IFS=$as_save_IFS
7360
7361 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7362 ;;
7363esac
7364fi
7365BINPWD=$ac_cv_path_BINPWD
7366if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007367 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7368echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370 { echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007372fi
7373
7374
7375
7376# Extract the first word of "Graphviz", so it can be a program name with args.
7377set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007382else
7383 case $GRAPHVIZ in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7386 ;;
7387 *)
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 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 +00007395 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007397 break 2
7398 fi
7399done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400done
Reid Spencera773bd52006-08-04 18:18:08 +00007401IFS=$as_save_IFS
7402
7403 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7404 ;;
7405esac
7406fi
7407GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7408if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7410echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 { echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007414fi
7415
7416
7417if test "$GRAPHVIZ" != "echo Graphviz" ; then
7418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007419cat >>confdefs.h <<\_ACEOF
7420#define HAVE_GRAPHVIZ 1
7421_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007422
Jeff Cohen28783c32007-01-12 18:22:38 +00007423 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007424 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7425 fi
7426
7427cat >>confdefs.h <<_ACEOF
7428#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7429_ACEOF
7430
7431fi
7432# Extract the first word of "dot", so it can be a program name with args.
7433set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436if test "${ac_cv_path_DOT+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007438else
7439 case $DOT in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 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 +00007451 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007453 break 2
7454 fi
7455done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456done
Reid Spencera773bd52006-08-04 18:18:08 +00007457IFS=$as_save_IFS
7458
7459 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7460 ;;
7461esac
7462fi
7463DOT=$ac_cv_path_DOT
7464if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465 { echo "$as_me:$LINENO: result: $DOT" >&5
7466echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007470fi
7471
7472
7473if test "$DOT" != "echo dot" ; then
7474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475cat >>confdefs.h <<\_ACEOF
7476#define HAVE_DOT 1
7477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007478
Jeff Cohen28783c32007-01-12 18:22:38 +00007479 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007480 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7481 fi
7482
7483cat >>confdefs.h <<_ACEOF
7484#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7485_ACEOF
7486
7487fi
David Greenef0b9eff2009-07-09 17:16:26 +00007488# Extract the first word of "fdp", so it can be a program name with args.
7489set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492if test "${ac_cv_path_FDP+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007494else
7495 case $FDP in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7498 ;;
7499 *)
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 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 +00007507 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007509 break 2
7510 fi
7511done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512done
David Greenef0b9eff2009-07-09 17:16:26 +00007513IFS=$as_save_IFS
7514
7515 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7516 ;;
7517esac
7518fi
7519FDP=$ac_cv_path_FDP
7520if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007521 { echo "$as_me:$LINENO: result: $FDP" >&5
7522echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524 { echo "$as_me:$LINENO: result: no" >&5
7525echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007526fi
7527
7528
7529if test "$FDP" != "echo fdp" ; then
7530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007531cat >>confdefs.h <<\_ACEOF
7532#define HAVE_FDP 1
7533_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007534
7535 if test "$llvm_cv_os_type" = "MingW" ; then
7536 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7537 fi
7538
7539cat >>confdefs.h <<_ACEOF
7540#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7541_ACEOF
7542
7543fi
7544# Extract the first word of "neato", so it can be a program name with args.
7545set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_NEATO+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007550else
7551 case $NEATO in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 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 +00007563 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007565 break 2
7566 fi
7567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568done
David Greenef0b9eff2009-07-09 17:16:26 +00007569IFS=$as_save_IFS
7570
7571 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7572 ;;
7573esac
7574fi
7575NEATO=$ac_cv_path_NEATO
7576if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007577 { echo "$as_me:$LINENO: result: $NEATO" >&5
7578echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007579else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580 { echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007582fi
7583
7584
7585if test "$NEATO" != "echo neato" ; then
7586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587cat >>confdefs.h <<\_ACEOF
7588#define HAVE_NEATO 1
7589_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007590
7591 if test "$llvm_cv_os_type" = "MingW" ; then
7592 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7593 fi
7594
7595cat >>confdefs.h <<_ACEOF
7596#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7597_ACEOF
7598
7599fi
7600# Extract the first word of "twopi", so it can be a program name with args.
7601set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604if test "${ac_cv_path_TWOPI+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007606else
7607 case $TWOPI in
7608 [\\/]* | ?:[\\/]*)
7609 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7610 ;;
7611 *)
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 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 +00007619 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007621 break 2
7622 fi
7623done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007624done
David Greenef0b9eff2009-07-09 17:16:26 +00007625IFS=$as_save_IFS
7626
7627 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7628 ;;
7629esac
7630fi
7631TWOPI=$ac_cv_path_TWOPI
7632if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7634echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007636 { echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007638fi
7639
7640
7641if test "$TWOPI" != "echo twopi" ; then
7642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007643cat >>confdefs.h <<\_ACEOF
7644#define HAVE_TWOPI 1
7645_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007646
7647 if test "$llvm_cv_os_type" = "MingW" ; then
7648 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7649 fi
7650
7651cat >>confdefs.h <<_ACEOF
7652#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7653_ACEOF
7654
7655fi
7656# Extract the first word of "circo", so it can be a program name with args.
7657set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660if test "${ac_cv_path_CIRCO+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007662else
7663 case $CIRCO in
7664 [\\/]* | ?:[\\/]*)
7665 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7666 ;;
7667 *)
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 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 +00007675 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007677 break 2
7678 fi
7679done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680done
David Greenef0b9eff2009-07-09 17:16:26 +00007681IFS=$as_save_IFS
7682
7683 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7684 ;;
7685esac
7686fi
7687CIRCO=$ac_cv_path_CIRCO
7688if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7690echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007691else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692 { echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007694fi
7695
7696
7697if test "$CIRCO" != "echo circo" ; then
7698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699cat >>confdefs.h <<\_ACEOF
7700#define HAVE_CIRCO 1
7701_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007702
7703 if test "$llvm_cv_os_type" = "MingW" ; then
7704 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7705 fi
7706
7707cat >>confdefs.h <<_ACEOF
7708#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7709_ACEOF
7710
7711fi
Reid Spencera773bd52006-08-04 18:18:08 +00007712for ac_prog in gv gsview32
7713do
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718if test "${ac_cv_path_GV+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007720else
7721 case $GV in
7722 [\\/]* | ?:[\\/]*)
7723 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7724 ;;
7725 *)
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 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 +00007733 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007735 break 2
7736 fi
7737done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738done
Reid Spencera773bd52006-08-04 18:18:08 +00007739IFS=$as_save_IFS
7740
7741 ;;
7742esac
7743fi
7744GV=$ac_cv_path_GV
7745if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746 { echo "$as_me:$LINENO: result: $GV" >&5
7747echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749 { echo "$as_me:$LINENO: result: no" >&5
7750echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007751fi
7752
7753
7754 test -n "$GV" && break
7755done
7756test -n "$GV" || GV="echo gv"
7757
7758if test "$GV" != "echo gv" ; then
7759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760cat >>confdefs.h <<\_ACEOF
7761#define HAVE_GV 1
7762_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007763
Jeff Cohen28783c32007-01-12 18:22:38 +00007764 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007765 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7766 fi
7767
7768cat >>confdefs.h <<_ACEOF
7769#define LLVM_PATH_GV "$GV${EXEEXT}"
7770_ACEOF
7771
7772fi
7773# Extract the first word of "dotty", so it can be a program name with args.
7774set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777if test "${ac_cv_path_DOTTY+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007779else
7780 case $DOTTY in
7781 [\\/]* | ?:[\\/]*)
7782 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7783 ;;
7784 *)
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007792 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007794 break 2
7795 fi
7796done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007797done
Reid Spencera773bd52006-08-04 18:18:08 +00007798IFS=$as_save_IFS
7799
7800 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7801 ;;
7802esac
7803fi
7804DOTTY=$ac_cv_path_DOTTY
7805if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007806 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7807echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007809 { echo "$as_me:$LINENO: result: no" >&5
7810echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007811fi
7812
7813
7814if test "$DOTTY" != "echo dotty" ; then
7815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007816cat >>confdefs.h <<\_ACEOF
7817#define HAVE_DOTTY 1
7818_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007819
Jeff Cohen28783c32007-01-12 18:22:38 +00007820 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007821 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7822 fi
7823
7824cat >>confdefs.h <<_ACEOF
7825#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7826_ACEOF
7827
7828fi
7829
7830
7831# Extract the first word of "perl", so it can be a program name with args.
7832set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835if test "${ac_cv_path_PERL+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007837else
7838 case $PERL in
7839 [\\/]* | ?:[\\/]*)
7840 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7841 ;;
7842 *)
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 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 +00007850 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007852 break 2
7853 fi
7854done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007855done
Reid Spencera773bd52006-08-04 18:18:08 +00007856IFS=$as_save_IFS
7857
7858 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7859 ;;
7860esac
7861fi
7862PERL=$ac_cv_path_PERL
7863if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007864 { echo "$as_me:$LINENO: result: $PERL" >&5
7865echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867 { echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007869fi
7870
7871
7872if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007873 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7874echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007875 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007876 { echo "$as_me:$LINENO: result: yes" >&5
7877echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007878 else
7879 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007880 { echo "$as_me:$LINENO: result: not found" >&5
7881echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007882 fi
7883fi
7884
7885
7886if test x"$PERL" = xnone; then
7887 HAVE_PERL=0
7888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007889 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7890echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7891 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007892else
7893 HAVE_PERL=1
7894
7895fi
7896
7897# Find a good install program. We prefer a C program (faster),
7898# so one script is as good as another. But avoid the broken or
7899# incompatible versions:
7900# SysV /etc/install, /usr/sbin/install
7901# SunOS /usr/etc/install
7902# IRIX /sbin/install
7903# AIX /bin/install
7904# AmigaOS /C/install, which installs bootblocks on floppy discs
7905# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7906# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7907# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7908# OS/2's system install, which has a completely different semantic
7909# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007910{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7911echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007912if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913if test "${ac_cv_path_install+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007915else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007921 # Account for people who put trailing slashes in PATH elements.
7922case $as_dir/ in
7923 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007925 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007926 /usr/ucb/* ) ;;
7927 *)
7928 # OSF1 and SCO ODT 3.0 have their own names for install.
7929 # Don't use installbsd from OSF since it installs stuff as root
7930 # by default.
7931 for ac_prog in ginstall scoinst install; do
7932 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007933 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 +00007934 if test $ac_prog = install &&
7935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7936 # AIX install. It has an incompatible calling convention.
7937 :
7938 elif test $ac_prog = install &&
7939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7940 # program-specific install script used by HP pwplus--don't use.
7941 :
7942 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7944 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007945 fi
7946 fi
7947 done
7948 done
7949 ;;
7950esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007951done
Reid Spencera773bd52006-08-04 18:18:08 +00007952IFS=$as_save_IFS
7953
7954
7955fi
7956 if test "${ac_cv_path_install+set}" = set; then
7957 INSTALL=$ac_cv_path_install
7958 else
7959 # As a last resort, use the slow shell script. Don't cache a
7960 # value for INSTALL within a source directory, because that will
7961 # break other packages using the cache if that directory is
7962 # removed, or if the value is a relative name.
7963 INSTALL=$ac_install_sh
7964 fi
7965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007966{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7967echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007968
7969# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7970# It thinks the first close brace ends the variable substitution.
7971test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7972
7973test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7974
7975test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7976
7977
7978# Extract the first word of "bzip2", so it can be a program name with args.
7979set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982if test "${ac_cv_path_BZIP2+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007984else
7985 case $BZIP2 in
7986 [\\/]* | ?:[\\/]*)
7987 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7988 ;;
7989 *)
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 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 +00007997 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007999 break 2
8000 fi
8001done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008002done
Reid Spencera773bd52006-08-04 18:18:08 +00008003IFS=$as_save_IFS
8004
Reid Spencera773bd52006-08-04 18:18:08 +00008005 ;;
8006esac
8007fi
8008BZIP2=$ac_cv_path_BZIP2
8009if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8011echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008013 { echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008015fi
8016
8017
8018# Extract the first word of "doxygen", so it can be a program name with args.
8019set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8022if test "${ac_cv_path_DOXYGEN+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008024else
8025 case $DOXYGEN in
8026 [\\/]* | ?:[\\/]*)
8027 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8028 ;;
8029 *)
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 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 +00008037 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008039 break 2
8040 fi
8041done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008042done
Reid Spencera773bd52006-08-04 18:18:08 +00008043IFS=$as_save_IFS
8044
Reid Spencera773bd52006-08-04 18:18:08 +00008045 ;;
8046esac
8047fi
8048DOXYGEN=$ac_cv_path_DOXYGEN
8049if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008050 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8051echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008053 { echo "$as_me:$LINENO: result: no" >&5
8054echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008055fi
8056
8057
Reid Spencera773bd52006-08-04 18:18:08 +00008058# Extract the first word of "groff", so it can be a program name with args.
8059set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8062if test "${ac_cv_path_GROFF+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008064else
8065 case $GROFF in
8066 [\\/]* | ?:[\\/]*)
8067 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8068 ;;
8069 *)
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071for as_dir in $PATH
8072do
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 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 +00008077 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008079 break 2
8080 fi
8081done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008082done
Reid Spencera773bd52006-08-04 18:18:08 +00008083IFS=$as_save_IFS
8084
Reid Spencera773bd52006-08-04 18:18:08 +00008085 ;;
8086esac
8087fi
8088GROFF=$ac_cv_path_GROFF
8089if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008090 { echo "$as_me:$LINENO: result: $GROFF" >&5
8091echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008092else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008093 { echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008095fi
8096
8097
8098# Extract the first word of "gzip", so it can be a program name with args.
8099set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8102if test "${ac_cv_path_GZIP+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008104else
8105 case $GZIP in
8106 [\\/]* | ?:[\\/]*)
8107 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8108 ;;
8109 *)
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 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 +00008117 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008119 break 2
8120 fi
8121done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008122done
Reid Spencera773bd52006-08-04 18:18:08 +00008123IFS=$as_save_IFS
8124
Reid Spencera773bd52006-08-04 18:18:08 +00008125 ;;
8126esac
8127fi
8128GZIP=$ac_cv_path_GZIP
8129if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008130 { echo "$as_me:$LINENO: result: $GZIP" >&5
8131echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008133 { echo "$as_me:$LINENO: result: no" >&5
8134echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008135fi
8136
8137
8138# Extract the first word of "pod2html", so it can be a program name with args.
8139set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8142if test "${ac_cv_path_POD2HTML+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008144else
8145 case $POD2HTML in
8146 [\\/]* | ?:[\\/]*)
8147 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8148 ;;
8149 *)
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 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 +00008157 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008159 break 2
8160 fi
8161done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162done
Reid Spencera773bd52006-08-04 18:18:08 +00008163IFS=$as_save_IFS
8164
Reid Spencera773bd52006-08-04 18:18:08 +00008165 ;;
8166esac
8167fi
8168POD2HTML=$ac_cv_path_POD2HTML
8169if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008170 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8171echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008172else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008173 { echo "$as_me:$LINENO: result: no" >&5
8174echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008175fi
8176
8177
8178# Extract the first word of "pod2man", so it can be a program name with args.
8179set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182if test "${ac_cv_path_POD2MAN+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008184else
8185 case $POD2MAN in
8186 [\\/]* | ?:[\\/]*)
8187 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8188 ;;
8189 *)
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 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 +00008197 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008199 break 2
8200 fi
8201done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008202done
Reid Spencera773bd52006-08-04 18:18:08 +00008203IFS=$as_save_IFS
8204
Reid Spencera773bd52006-08-04 18:18:08 +00008205 ;;
8206esac
8207fi
8208POD2MAN=$ac_cv_path_POD2MAN
8209if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8211echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008212else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008213 { echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008215fi
8216
8217
8218# Extract the first word of "runtest", so it can be a program name with args.
8219set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222if test "${ac_cv_path_RUNTEST+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008224else
8225 case $RUNTEST in
8226 [\\/]* | ?:[\\/]*)
8227 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8228 ;;
8229 *)
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 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 +00008237 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008239 break 2
8240 fi
8241done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242done
Reid Spencera773bd52006-08-04 18:18:08 +00008243IFS=$as_save_IFS
8244
Reid Spencera773bd52006-08-04 18:18:08 +00008245 ;;
8246esac
8247fi
8248RUNTEST=$ac_cv_path_RUNTEST
8249if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8251echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008252else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008253 { echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008255fi
8256
8257
8258
8259no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008260{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8261echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008262
8263# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008264if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008265 withval=$with_tclinclude; with_tclinclude=${withval}
8266else
8267 with_tclinclude=''
8268fi
8269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008270if test "${ac_cv_path_tclsh+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008272else
8273
8274if test x"${with_tclinclude}" != x ; then
8275 if test -f ${with_tclinclude}/tclsh ; then
8276 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8277 elif test -f ${with_tclinclude}/src/tclsh ; then
8278 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8279 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008280 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8281echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8282 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008283 fi
8284fi
Torok Edwin871384f2010-01-26 08:50:50 +00008285fi
8286
Reid Spencera773bd52006-08-04 18:18:08 +00008287
8288if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289 { echo "$as_me:$LINENO: result: none" >&5
8290echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008291 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
8292do
8293 # Extract the first word of "$ac_prog", so it can be a program name with args.
8294set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297if test "${ac_cv_path_TCLSH+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008299else
8300 case $TCLSH in
8301 [\\/]* | ?:[\\/]*)
8302 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8303 ;;
8304 *)
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306for as_dir in $PATH
8307do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 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 +00008312 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008314 break 2
8315 fi
8316done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008317done
Reid Spencera773bd52006-08-04 18:18:08 +00008318IFS=$as_save_IFS
8319
8320 ;;
8321esac
8322fi
8323TCLSH=$ac_cv_path_TCLSH
8324if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008325 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8326echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328 { echo "$as_me:$LINENO: result: no" >&5
8329echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008330fi
8331
8332
8333 test -n "$TCLSH" && break
8334done
8335
8336 if test x"${TCLSH}" = x ; then
8337 ac_cv_path_tclsh='';
8338 else
8339 ac_cv_path_tclsh="${TCLSH}";
8340 fi
8341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008342 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8343echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008344 TCLSH="${ac_cv_path_tclsh}"
8345
8346fi
8347
Reid Spencera773bd52006-08-04 18:18:08 +00008348# Extract the first word of "zip", so it can be a program name with args.
8349set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8352if test "${ac_cv_path_ZIP+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008354else
8355 case $ZIP in
8356 [\\/]* | ?:[\\/]*)
8357 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8358 ;;
8359 *)
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361for as_dir in $PATH
8362do
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 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 +00008367 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008369 break 2
8370 fi
8371done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008372done
Reid Spencera773bd52006-08-04 18:18:08 +00008373IFS=$as_save_IFS
8374
Reid Spencera773bd52006-08-04 18:18:08 +00008375 ;;
8376esac
8377fi
8378ZIP=$ac_cv_path_ZIP
8379if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008380 { echo "$as_me:$LINENO: result: $ZIP" >&5
8381echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008383 { echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008385fi
8386
8387
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008388for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008389do
8390 # Extract the first word of "$ac_prog", so it can be a program name with args.
8391set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8394if test "${ac_cv_path_OCAMLC+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008396else
8397 case $OCAMLC in
8398 [\\/]* | ?:[\\/]*)
8399 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8400 ;;
8401 *)
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403for as_dir in $PATH
8404do
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 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 +00008409 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008411 break 2
8412 fi
8413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008414done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008415IFS=$as_save_IFS
8416
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008417 ;;
8418esac
8419fi
8420OCAMLC=$ac_cv_path_OCAMLC
8421if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008422 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8423echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008425 { echo "$as_me:$LINENO: result: no" >&5
8426echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008427fi
8428
8429
Gordon Henriksene7072162008-03-07 18:20:01 +00008430 test -n "$OCAMLC" && break
8431done
8432
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008433for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008434do
8435 # Extract the first word of "$ac_prog", so it can be a program name with args.
8436set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8439if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008441else
8442 case $OCAMLOPT in
8443 [\\/]* | ?:[\\/]*)
8444 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8445 ;;
8446 *)
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 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 +00008454 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008456 break 2
8457 fi
8458done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008459done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008460IFS=$as_save_IFS
8461
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008462 ;;
8463esac
8464fi
8465OCAMLOPT=$ac_cv_path_OCAMLOPT
8466if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008467 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8468echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008470 { echo "$as_me:$LINENO: result: no" >&5
8471echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008472fi
8473
8474
Gordon Henriksene7072162008-03-07 18:20:01 +00008475 test -n "$OCAMLOPT" && break
8476done
8477
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008478for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008479do
8480 # Extract the first word of "$ac_prog", so it can be a program name with args.
8481set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8484if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008486else
8487 case $OCAMLDEP in
8488 [\\/]* | ?:[\\/]*)
8489 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8490 ;;
8491 *)
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 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 +00008499 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008501 break 2
8502 fi
8503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008504done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008505IFS=$as_save_IFS
8506
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008507 ;;
8508esac
8509fi
8510OCAMLDEP=$ac_cv_path_OCAMLDEP
8511if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008512 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8513echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515 { echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008517fi
8518
8519
Gordon Henriksene7072162008-03-07 18:20:01 +00008520 test -n "$OCAMLDEP" && break
8521done
8522
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008523for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008524do
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8529if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008531else
8532 case $OCAMLDOC in
8533 [\\/]* | ?:[\\/]*)
8534 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8535 ;;
8536 *)
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 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 +00008544 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008546 break 2
8547 fi
8548done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008549done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008550IFS=$as_save_IFS
8551
8552 ;;
8553esac
8554fi
8555OCAMLDOC=$ac_cv_path_OCAMLDOC
8556if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008557 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8558echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008560 { echo "$as_me:$LINENO: result: no" >&5
8561echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008562fi
8563
8564
8565 test -n "$OCAMLDOC" && break
8566done
8567
Torok Edwincc499a42008-10-22 09:56:27 +00008568for ac_prog in gas as
8569do
8570 # Extract the first word of "$ac_prog", so it can be a program name with args.
8571set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8574if test "${ac_cv_path_GAS+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008576else
8577 case $GAS in
8578 [\\/]* | ?:[\\/]*)
8579 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8580 ;;
8581 *)
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 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 +00008589 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008591 break 2
8592 fi
8593done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008594done
Torok Edwincc499a42008-10-22 09:56:27 +00008595IFS=$as_save_IFS
8596
8597 ;;
8598esac
8599fi
8600GAS=$ac_cv_path_GAS
8601if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008602 { echo "$as_me:$LINENO: result: $GAS" >&5
8603echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008605 { echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008607fi
8608
8609
8610 test -n "$GAS" && break
8611done
8612
Reid Spencera773bd52006-08-04 18:18:08 +00008613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008614{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8615echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8616if test "${llvm_cv_link_use_r+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008618else
8619 ac_ext=c
8620ac_cpp='$CPP $CPPFLAGS'
8621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623ac_compiler_gnu=$ac_cv_c_compiler_gnu
8624
8625 oldcflags="$CFLAGS"
8626 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008627 cat >conftest.$ac_ext <<_ACEOF
8628/* confdefs.h. */
8629_ACEOF
8630cat confdefs.h >>conftest.$ac_ext
8631cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008632/* end confdefs.h. */
8633
8634int
8635main ()
8636{
Dan Gohman39ed6782010-04-25 00:12:20 +00008637
Reid Spencera773bd52006-08-04 18:18:08 +00008638 ;
8639 return 0;
8640}
8641_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008642rm -f conftest.$ac_objext conftest$ac_exeext
8643if { (ac_try="$ac_link"
8644case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647esac
8648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_link") 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8657 { (case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660esac
8661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_try") 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest$ac_exeext'
8667 { (case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670esac
8671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_try") 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008676 llvm_cv_link_use_r=yes
8677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008678 echo "$as_me: failed program was:" >&5
8679sed 's/^/| /' conftest.$ac_ext >&5
8680
8681 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008683
Bill Wendlingebcceee2009-04-18 11:20:33 +00008684rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008685 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008686 CFLAGS="$oldcflags"
8687 ac_ext=c
8688ac_cpp='$CPP $CPPFLAGS'
8689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8691ac_compiler_gnu=$ac_cv_c_compiler_gnu
8692
8693
8694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008695{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8696echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008697if test "$llvm_cv_link_use_r" = yes ; then
8698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008699cat >>confdefs.h <<\_ACEOF
8700#define HAVE_LINK_R 1
8701_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008702
8703 fi
8704
8705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008706{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8707echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8708if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008710else
8711 ac_ext=c
8712ac_cpp='$CPP $CPPFLAGS'
8713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715ac_compiler_gnu=$ac_cv_c_compiler_gnu
8716
8717 oldcflags="$CFLAGS"
8718 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008719 cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h. */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008724/* end confdefs.h. */
8725
8726int
8727main ()
8728{
Dan Gohman39ed6782010-04-25 00:12:20 +00008729
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008730 ;
8731 return 0;
8732}
8733_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008734rm -f conftest.$ac_objext conftest$ac_exeext
8735if { (ac_try="$ac_link"
8736case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8739esac
8740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_link") 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8749 { (case "(($ac_try" in
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8752esac
8753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_try") 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762esac
8763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_try") 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008768 llvm_cv_link_use_export_dynamic=yes
8769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008770 echo "$as_me: failed program was:" >&5
8771sed 's/^/| /' conftest.$ac_ext >&5
8772
8773 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008774fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008775
Bill Wendlingebcceee2009-04-18 11:20:33 +00008776rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008777 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008778 CFLAGS="$oldcflags"
8779 ac_ext=c
8780ac_cpp='$CPP $CPPFLAGS'
8781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8783ac_compiler_gnu=$ac_cv_c_compiler_gnu
8784
8785
8786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008787{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8788echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008789if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008791cat >>confdefs.h <<\_ACEOF
8792#define HAVE_LINK_EXPORT_DYNAMIC 1
8793_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008794
8795 fi
8796
8797
Dan Gohman391569c2010-04-16 22:59:06 +00008798{ echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8799echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8800if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803 ac_ext=c
8804ac_cpp='$CPP $CPPFLAGS'
8805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8807ac_compiler_gnu=$ac_cv_c_compiler_gnu
8808
8809 oldcflags="$CFLAGS"
8810
8811 # The following code is from the autoconf manual,
8812 # "11.13: Limitations of Usual Tools".
8813 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8814 # Use mktemp if possible; otherwise fall back on mkdir,
8815 # with $RANDOM to make collisions less likely.
8816 : ${TMPDIR=/tmp}
8817 {
8818 tmp=`
8819 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8820 ` &&
8821 test -n "$tmp" && test -d "$tmp"
8822 } || {
8823 tmp=$TMPDIR/foo$$-$RANDOM
8824 (umask 077 && mkdir "$tmp")
8825 } || exit $?
8826
8827 echo "main" > "$tmp/exports"
8828
8829 CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8830 cat >conftest.$ac_ext <<_ACEOF
8831/* confdefs.h. */
8832_ACEOF
8833cat confdefs.h >>conftest.$ac_ext
8834cat >>conftest.$ac_ext <<_ACEOF
8835/* end confdefs.h. */
8836
8837int
8838main ()
8839{
Dan Gohman39ed6782010-04-25 00:12:20 +00008840
Dan Gohman391569c2010-04-16 22:59:06 +00008841 ;
8842 return 0;
8843}
8844_ACEOF
8845rm -f conftest.$ac_objext conftest$ac_exeext
8846if { (ac_try="$ac_link"
8847case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850esac
8851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873esac
8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 llvm_cv_link_use_retain_symbols_file=yes
8880else
8881 echo "$as_me: failed program was:" >&5
8882sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 llvm_cv_link_use_retain_symbols_file=no
8885fi
8886
8887rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 rm "$tmp/exports"
8890 rmdir "$tmp"
8891 CFLAGS="$oldcflags"
8892 ac_ext=c
8893ac_cpp='$CPP $CPPFLAGS'
8894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897
8898
8899fi
8900{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
8901echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8902if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8903 HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8904
8905 fi
8906
8907
Reid Spencera773bd52006-08-04 18:18:08 +00008908
8909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008910{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8911echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8912if test "${ac_cv_c_const+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008915 cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h. */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008920/* end confdefs.h. */
8921
8922int
8923main ()
8924{
8925/* FIXME: Include the comments suggested by Paul. */
8926#ifndef __cplusplus
8927 /* Ultrix mips cc rejects this. */
8928 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008929 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008930 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008931 char const *const *ccp;
8932 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008933 /* NEC SVR4.0.2 mips cc rejects this. */
8934 struct point {int x, y;};
8935 static struct point const zero = {0,0};
8936 /* AIX XL C 1.02.0.0 rejects this.
8937 It does not let you subtract one const X* pointer from another in
8938 an arm of an if-expression whose if-part is not a constant
8939 expression */
8940 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008941 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008942 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008943 ++ccp;
8944 p = (char**) ccp;
8945 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008946 { /* SCO 3.2v4 cc rejects this. */
8947 char *t;
8948 char const *s = 0 ? (char *) 0 : (char const *) 0;
8949
8950 *t++ = 0;
8951 if (s) return 0;
8952 }
8953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8954 int x[] = {25, 17};
8955 const int *foo = &x[0];
8956 ++foo;
8957 }
8958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8959 typedef const int *iptr;
8960 iptr p = 0;
8961 ++p;
8962 }
8963 { /* AIX XL C 1.02.0.0 rejects this saying
8964 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8965 struct s { int j; const int *ap[3]; };
8966 struct s *b; b->j = 5;
8967 }
8968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8969 const int foo = 10;
8970 if (!foo) return 0;
8971 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008972 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008973#endif
8974
8975 ;
8976 return 0;
8977}
8978_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008979rm -f conftest.$ac_objext
8980if { (ac_try="$ac_compile"
8981case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8984esac
8985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_compile") 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994 { (case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997esac
8998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_try") 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest.$ac_objext'
9004 { (case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007esac
9008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_try") 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009013 ac_cv_c_const=yes
9014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009015 echo "$as_me: failed program was:" >&5
9016sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009020
Reid Spencera773bd52006-08-04 18:18:08 +00009021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009023{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9024echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009025if test $ac_cv_c_const = no; then
9026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009027cat >>confdefs.h <<\_ACEOF
9028#define const
9029_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009030
9031fi
9032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009033
9034
9035
9036
9037
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009038ac_header_dirent=no
9039for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009040 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9041{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9042echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009045else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009046 cat >conftest.$ac_ext <<_ACEOF
9047/* confdefs.h. */
9048_ACEOF
9049cat confdefs.h >>conftest.$ac_ext
9050cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009051/* end confdefs.h. */
9052#include <sys/types.h>
9053#include <$ac_hdr>
9054
9055int
9056main ()
9057{
9058if ((DIR *) 0)
9059return 0;
9060 ;
9061 return 0;
9062}
9063_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009064rm -f conftest.$ac_objext
9065if { (ac_try="$ac_compile"
9066case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069esac
9070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_compile") 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079 { (case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082esac
9083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_try") 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9092esac
9093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_try") 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009098 eval "$as_ac_Header=yes"
9099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009100 echo "$as_me: failed program was:" >&5
9101sed 's/^/| /' conftest.$ac_ext >&5
9102
9103 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009105
Reid Spencera773bd52006-08-04 18:18:08 +00009106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009108ac_res=`eval echo '${'$as_ac_Header'}'`
9109 { echo "$as_me:$LINENO: result: $ac_res" >&5
9110echo "${ECHO_T}$ac_res" >&6; }
9111if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009112 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009113#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009114_ACEOF
9115
9116ac_header_dirent=$ac_hdr; break
9117fi
9118
9119done
9120# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9121if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009122 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9123echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9124if test "${ac_cv_search_opendir+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009126else
9127 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009128cat >conftest.$ac_ext <<_ACEOF
9129/* confdefs.h. */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009133/* end confdefs.h. */
9134
Reid Spencera773bd52006-08-04 18:18:08 +00009135/* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009138#ifdef __cplusplus
9139extern "C"
9140#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009141char opendir ();
9142int
9143main ()
9144{
Reid Spencera773bd52006-08-04 18:18:08 +00009145return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009146 ;
9147 return 0;
9148}
9149_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009150for ac_lib in '' dir; do
9151 if test -z "$ac_lib"; then
9152 ac_res="none required"
9153 else
9154 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009156 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009157 rm -f conftest.$ac_objext conftest$ac_exeext
9158if { (ac_try="$ac_link"
9159case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162esac
9163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_link") 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9172 { (case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175esac
9176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_try") 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; } &&
9181 { ac_try='test -s conftest$ac_exeext'
9182 { (case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185esac
9186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_try") 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009191 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009192else
9193 echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009198
Bill Wendlingebcceee2009-04-18 11:20:33 +00009199rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009200 conftest$ac_exeext
9201 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009202 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009203fi
John Criswell7a73b802003-06-30 21:59:07 +00009204done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009205if test "${ac_cv_search_opendir+set}" = set; then
9206 :
Reid Spencera773bd52006-08-04 18:18:08 +00009207else
9208 ac_cv_search_opendir=no
9209fi
9210rm conftest.$ac_ext
9211LIBS=$ac_func_search_save_LIBS
9212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009213{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9214echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009215ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009216if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009218
Reid Spencera773bd52006-08-04 18:18:08 +00009219fi
9220
9221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9223echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9224if test "${ac_cv_search_opendir+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009226else
9227 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009228cat >conftest.$ac_ext <<_ACEOF
9229/* confdefs.h. */
9230_ACEOF
9231cat confdefs.h >>conftest.$ac_ext
9232cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009233/* end confdefs.h. */
9234
9235/* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9238#ifdef __cplusplus
9239extern "C"
9240#endif
9241char opendir ();
9242int
9243main ()
9244{
9245return opendir ();
9246 ;
9247 return 0;
9248}
9249_ACEOF
9250for ac_lib in '' x; do
9251 if test -z "$ac_lib"; then
9252 ac_res="none required"
9253 else
9254 ac_res=-l$ac_lib
9255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9256 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257 rm -f conftest.$ac_objext conftest$ac_exeext
9258if { (ac_try="$ac_link"
9259case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262esac
9263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_link") 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (case "(($ac_try" in
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9275esac
9276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_try") 2>&5
9278 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; } &&
9281 { ac_try='test -s conftest$ac_exeext'
9282 { (case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285esac
9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_try") 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009291 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009292else
9293 echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296
Reid Spencera773bd52006-08-04 18:18:08 +00009297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009298
Bill Wendlingebcceee2009-04-18 11:20:33 +00009299rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009300 conftest$ac_exeext
9301 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009302 break
9303fi
9304done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009305if test "${ac_cv_search_opendir+set}" = set; then
9306 :
Reid Spencera773bd52006-08-04 18:18:08 +00009307else
9308 ac_cv_search_opendir=no
9309fi
9310rm conftest.$ac_ext
9311LIBS=$ac_func_search_save_LIBS
9312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009313{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9314echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009315ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009316if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9318
9319fi
9320
9321fi
John Criswell7a73b802003-06-30 21:59:07 +00009322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009323
John Criswell7a73b802003-06-30 21:59:07 +00009324for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009325do
9326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332fi
9333ac_res=`eval echo '${'$as_ac_Header'}'`
9334 { echo "$as_me:$LINENO: result: $ac_res" >&5
9335echo "${ECHO_T}$ac_res" >&6; }
9336else
9337 # Is the header compilable?
9338{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9340cat >conftest.$ac_ext <<_ACEOF
9341/* confdefs.h. */
9342_ACEOF
9343cat confdefs.h >>conftest.$ac_ext
9344cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h. */
9346$ac_includes_default
9347#include <$ac_header>
9348_ACEOF
9349rm -f conftest.$ac_objext
9350if { (ac_try="$ac_compile"
9351case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354esac
9355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_compile") 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9364 { (case "(($ac_try" in
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9367esac
9368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_try") 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest.$ac_objext'
9374 { (case "(($ac_try" in
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9377esac
9378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379 (eval "$ac_try") 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_header_compiler=yes
9384else
9385 echo "$as_me: failed program was:" >&5
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 ac_header_compiler=no
9389fi
9390
9391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9393echo "${ECHO_T}$ac_header_compiler" >&6; }
9394
9395# Is the header present?
9396{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9398cat >conftest.$ac_ext <<_ACEOF
9399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
9404#include <$ac_header>
9405_ACEOF
9406if { (ac_try="$ac_cpp conftest.$ac_ext"
9407case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410esac
9411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } >/dev/null; then
9419 if test -s conftest.err; then
9420 ac_cpp_err=$ac_c_preproc_warn_flag
9421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9422 else
9423 ac_cpp_err=
9424 fi
9425else
9426 ac_cpp_err=yes
9427fi
9428if test -z "$ac_cpp_err"; then
9429 ac_header_preproc=yes
9430else
9431 echo "$as_me: failed program was:" >&5
9432sed 's/^/| /' conftest.$ac_ext >&5
9433
9434 ac_header_preproc=no
9435fi
9436
9437rm -f conftest.err conftest.$ac_ext
9438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9439echo "${ECHO_T}$ac_header_preproc" >&6; }
9440
9441# So? What about this header?
9442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9443 yes:no: )
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9448 ac_header_preproc=yes
9449 ;;
9450 no:yes:* )
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9458echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9463 ( cat <<\_ASBOX
9464## ----------------------------------- ##
9465## Report this to llvmbugs@cs.uiuc.edu ##
9466## ----------------------------------- ##
9467_ASBOX
9468 ) | sed "s/^/$as_me: WARNING: /" >&2
9469 ;;
9470esac
9471{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476 eval "$as_ac_Header=\$ac_header_preproc"
9477fi
9478ac_res=`eval echo '${'$as_ac_Header'}'`
9479 { echo "$as_me:$LINENO: result: $ac_res" >&5
9480echo "${ECHO_T}$ac_res" >&6; }
9481
9482fi
9483if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009484 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009486_ACEOF
9487
9488fi
9489
9490done
9491
Reid Spencera773bd52006-08-04 18:18:08 +00009492# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009493if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009494 enableval=$enable_ltdl_install;
9495fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009496
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009498
9499
9500if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009501 INSTALL_LTDL_TRUE=
9502 INSTALL_LTDL_FALSE='#'
9503else
9504 INSTALL_LTDL_TRUE='#'
9505 INSTALL_LTDL_FALSE=
9506fi
9507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009508
9509
9510if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511 CONVENIENCE_LTDL_TRUE=
9512 CONVENIENCE_LTDL_FALSE='#'
9513else
9514 CONVENIENCE_LTDL_TRUE='#'
9515 CONVENIENCE_LTDL_FALSE=
9516fi
9517
9518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009519{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9520echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009521library_names_spec=
9522libname_spec='lib$name'
9523soname_spec=
9524shrext_cmds=".so"
9525postinstall_cmds=
9526postuninstall_cmds=
9527finish_cmds=
9528finish_eval=
9529shlibpath_var=
9530shlibpath_overrides_runpath=unknown
9531version_type=none
9532dynamic_linker="$host_os ld.so"
9533sys_lib_dlsearch_path_spec="/lib /usr/lib"
9534if test "$GCC" = yes; then
9535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9536 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9537 # if the path contains ";" then we assume it to be the separator
9538 # otherwise default to the standard path separator (i.e. ":") - it is
9539 # assumed that no part of a normal pathname contains ";" but that should
9540 # okay in the real world where ";" in dirpaths is itself problematic.
9541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9542 else
9543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9544 fi
9545else
9546 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9547fi
9548need_lib_prefix=unknown
9549hardcode_into_libs=no
9550
9551# when you set need_version to no, make sure it does not cause -set_version
9552# flags to be left without arguments
9553need_version=unknown
9554
9555case $host_os in
9556aix3*)
9557 version_type=linux
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9559 shlibpath_var=LIBPATH
9560
9561 # AIX 3 has no versioning support, so we append a major version to the name.
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 ;;
9564
9565aix4* | aix5*)
9566 version_type=linux
9567 need_lib_prefix=no
9568 need_version=no
9569 hardcode_into_libs=yes
9570 if test "$host_cpu" = ia64; then
9571 # AIX 5 supports IA64
9572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 else
9575 # With GCC up to 2.95.x, collect2 would create an import file
9576 # for dependence libraries. The import file would start with
9577 # the line `#! .'. This would cause the generated library to
9578 # depend on `.', always an invalid library. This was fixed in
9579 # development snapshots of GCC prior to 3.0.
9580 case $host_os in
9581 aix4 | aix4.[01] | aix4.[01].*)
9582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9583 echo ' yes '
9584 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9585 :
9586 else
9587 can_build_shared=no
9588 fi
9589 ;;
9590 esac
9591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9592 # soname into executable. Probably we can add versioning support to
9593 # collect2, so additional links can be useful in future.
9594 if test "$aix_use_runtimelinking" = yes; then
9595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9596 # instead of lib<name>.a to let people know that these are not
9597 # typical AIX shared libraries.
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 else
9600 # We preserve .a as extension for shared libraries through AIX4.2
9601 # and later when we are not doing run time linking.
9602 library_names_spec='${libname}${release}.a $libname.a'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 fi
9605 shlibpath_var=LIBPATH
9606 fi
9607 ;;
9608
9609amigaos*)
9610 library_names_spec='$libname.ixlibrary $libname.a'
9611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9612 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'
9613 ;;
9614
9615beos*)
9616 library_names_spec='${libname}${shared_ext}'
9617 dynamic_linker="$host_os ld.so"
9618 shlibpath_var=LIBRARY_PATH
9619 ;;
9620
9621bsdi[45]*)
9622 version_type=linux
9623 need_version=no
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9629 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9630 # the default ld.so.conf also contains /usr/contrib/lib and
9631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9632 # libtool to hard-code these into programs
9633 ;;
9634
9635cygwin* | mingw* | pw32*)
9636 version_type=windows
9637 shrext_cmds=".dll"
9638 need_version=no
9639 need_lib_prefix=no
9640
9641 case $GCC,$host_os in
9642 yes,cygwin* | yes,mingw* | yes,pw32*)
9643 library_names_spec='$libname.dll.a'
9644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9645 postinstall_cmds='base_file=`basename \${file}`~
9646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9647 dldir=$destdir/`dirname \$dlpath`~
9648 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009649 $install_prog $dir/$dlname \$dldir/$dlname~
9650 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9652 dlpath=$dir/\$dldll~
9653 $rm \$dlpath'
9654 shlibpath_overrides_runpath=yes
9655
9656 case $host_os in
9657 cygwin*)
9658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9661 ;;
9662 mingw*)
9663 # MinGW DLLs use traditional 'lib' prefix
9664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9667 # It is most probably a Windows format PATH printed by
9668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9669 # path with ; separators, and with drive letters. We can handle the
9670 # drive letters (cygwin fileutils understands them), so leave them,
9671 # especially as we might pass files found there to a mingw objdump,
9672 # which wouldn't understand a cygwinified path. Ahh.
9673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9674 else
9675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9676 fi
9677 ;;
9678 pw32*)
9679 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009680 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 +00009681 ;;
9682 esac
9683 ;;
9684
9685 *)
9686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9687 ;;
9688 esac
9689 dynamic_linker='Win32 ld.exe'
9690 # FIXME: first we should search . and the directory the executable is in
9691 shlibpath_var=PATH
9692 ;;
9693
9694darwin* | rhapsody*)
9695 dynamic_linker="$host_os dyld"
9696 version_type=darwin
9697 need_lib_prefix=no
9698 need_version=no
9699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9700 soname_spec='${libname}${release}${major}$shared_ext'
9701 shlibpath_overrides_runpath=yes
9702 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009703 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9705 if test "$GCC" = yes; then
9706 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"`
9707 else
9708 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9709 fi
9710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9711 ;;
9712
9713dgux*)
9714 version_type=linux
9715 need_lib_prefix=no
9716 need_version=no
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 ;;
9721
9722freebsd1*)
9723 dynamic_linker=no
9724 ;;
9725
9726kfreebsd*-gnu)
9727 version_type=linux
9728 need_lib_prefix=no
9729 need_version=no
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 shlibpath_var=LD_LIBRARY_PATH
9733 shlibpath_overrides_runpath=no
9734 hardcode_into_libs=yes
9735 dynamic_linker='GNU ld.so'
9736 ;;
9737
Reid Spencera773bd52006-08-04 18:18:08 +00009738freebsd* | dragonfly*)
9739 # DragonFly does not have aout. When/if they implement a new
9740 # versioning mechanism, adjust this.
9741 if test -x /usr/bin/objformat; then
9742 objformat=`/usr/bin/objformat`
9743 else
9744 case $host_os in
9745 freebsd[123]*) objformat=aout ;;
9746 *) objformat=elf ;;
9747 esac
9748 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009749 version_type=freebsd-$objformat
9750 case $version_type in
9751 freebsd-elf*)
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9753 need_version=no
9754 need_lib_prefix=no
9755 ;;
9756 freebsd-*)
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9758 need_version=yes
9759 ;;
9760 esac
9761 shlibpath_var=LD_LIBRARY_PATH
9762 case $host_os in
9763 freebsd2*)
9764 shlibpath_overrides_runpath=yes
9765 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009766 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767 shlibpath_overrides_runpath=yes
9768 hardcode_into_libs=yes
9769 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772 shlibpath_overrides_runpath=no
9773 hardcode_into_libs=yes
9774 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009775 freebsd*) # from 4.6 on
9776 shlibpath_overrides_runpath=yes
9777 hardcode_into_libs=yes
9778 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779 esac
9780 ;;
9781
9782gnu*)
9783 version_type=linux
9784 need_lib_prefix=no
9785 need_version=no
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 hardcode_into_libs=yes
9790 ;;
9791
9792hpux9* | hpux10* | hpux11*)
9793 # Give a soname corresponding to the major version so that dld.sl refuses to
9794 # link against other versions.
9795 version_type=sunos
9796 need_lib_prefix=no
9797 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009798 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009799 ia64*)
9800 shrext_cmds='.so'
9801 hardcode_into_libs=yes
9802 dynamic_linker="$host_os dld.so"
9803 shlibpath_var=LD_LIBRARY_PATH
9804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 if test "X$HPUX_IA64_MODE" = X32; then
9808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9809 else
9810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9811 fi
9812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9813 ;;
9814 hppa*64*)
9815 shrext_cmds='.sl'
9816 hardcode_into_libs=yes
9817 dynamic_linker="$host_os dld.sl"
9818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9824 ;;
9825 *)
9826 shrext_cmds='.sl'
9827 dynamic_linker="$host_os dld.sl"
9828 shlibpath_var=SHLIB_PATH
9829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 ;;
9833 esac
9834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9835 postinstall_cmds='chmod 555 $lib'
9836 ;;
9837
Reid Spencera773bd52006-08-04 18:18:08 +00009838interix3*)
9839 version_type=linux
9840 need_lib_prefix=no
9841 need_version=no
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9843 soname_spec='${libname}${release}${shared_ext}$major'
9844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 shlibpath_overrides_runpath=no
9847 hardcode_into_libs=yes
9848 ;;
9849
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850irix5* | irix6* | nonstopux*)
9851 case $host_os in
9852 nonstopux*) version_type=nonstopux ;;
9853 *)
9854 if test "$lt_cv_prog_gnu_ld" = yes; then
9855 version_type=linux
9856 else
9857 version_type=irix
9858 fi ;;
9859 esac
9860 need_lib_prefix=no
9861 need_version=no
9862 soname_spec='${libname}${release}${shared_ext}$major'
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9864 case $host_os in
9865 irix5* | nonstopux*)
9866 libsuff= shlibsuff=
9867 ;;
9868 *)
9869 case $LD in # libtool.m4 will add one of these switches to LD
9870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9871 libsuff= shlibsuff= libmagic=32-bit;;
9872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9873 libsuff=32 shlibsuff=N32 libmagic=N32;;
9874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9876 *) libsuff= shlibsuff= libmagic=never-match;;
9877 esac
9878 ;;
9879 esac
9880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9881 shlibpath_overrides_runpath=no
9882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9884 hardcode_into_libs=yes
9885 ;;
9886
9887# No shared lib support for Linux oldld, aout, or coff.
9888linux*oldld* | linux*aout* | linux*coff*)
9889 dynamic_linker=no
9890 ;;
9891
9892# This must be Linux ELF.
9893linux*)
9894 version_type=linux
9895 need_lib_prefix=no
9896 need_version=no
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 soname_spec='${libname}${release}${shared_ext}$major'
9899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9900 shlibpath_var=LD_LIBRARY_PATH
9901 shlibpath_overrides_runpath=no
9902 # This implies no fast_install, which is unacceptable.
9903 # Some rework will be needed to allow for fast_install
9904 # before this can be enabled.
9905 hardcode_into_libs=yes
9906
9907 # Append ld.so.conf contents to the search path
9908 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009909 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 +00009910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9911 fi
9912
9913 # We used to test for /lib/ld.so.1 and disable shared libraries on
9914 # powerpc, because MkLinux only supported shared libraries with the
9915 # GNU dynamic linker. Since this was broken with cross compilers,
9916 # most powerpc-linux boxes support dynamic linking these days and
9917 # people can always --disable-shared, the test was removed, and we
9918 # assume the GNU/Linux dynamic linker is in use.
9919 dynamic_linker='GNU/Linux ld.so'
9920 ;;
9921
9922knetbsd*-gnu)
9923 version_type=linux
9924 need_lib_prefix=no
9925 need_version=no
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=no
9930 hardcode_into_libs=yes
9931 dynamic_linker='GNU ld.so'
9932 ;;
9933
9934netbsd*)
9935 version_type=sunos
9936 need_lib_prefix=no
9937 need_version=no
9938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9941 dynamic_linker='NetBSD (a.out) ld.so'
9942 else
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 dynamic_linker='NetBSD ld.elf_so'
9946 fi
9947 shlibpath_var=LD_LIBRARY_PATH
9948 shlibpath_overrides_runpath=yes
9949 hardcode_into_libs=yes
9950 ;;
9951
9952newsos6)
9953 version_type=linux
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=yes
9957 ;;
9958
9959nto-qnx*)
9960 version_type=linux
9961 need_lib_prefix=no
9962 need_version=no
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=yes
9967 ;;
9968
9969openbsd*)
9970 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009971 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9974 case $host_os in
9975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9976 *) need_version=no ;;
9977 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9982 case $host_os in
9983 openbsd2.[89] | openbsd2.[89].*)
9984 shlibpath_overrides_runpath=no
9985 ;;
9986 *)
9987 shlibpath_overrides_runpath=yes
9988 ;;
9989 esac
9990 else
9991 shlibpath_overrides_runpath=yes
9992 fi
9993 ;;
9994
9995os2*)
9996 libname_spec='$name'
9997 shrext_cmds=".dll"
9998 need_lib_prefix=no
9999 library_names_spec='$libname${shared_ext} $libname.a'
10000 dynamic_linker='OS/2 ld.exe'
10001 shlibpath_var=LIBPATH
10002 ;;
10003
10004osf3* | osf4* | osf5*)
10005 version_type=osf
10006 need_lib_prefix=no
10007 need_version=no
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10013 ;;
10014
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010015solaris*)
10016 version_type=linux
10017 need_lib_prefix=no
10018 need_version=no
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=yes
10023 hardcode_into_libs=yes
10024 # ldd complains unless libraries are executable
10025 postinstall_cmds='chmod +x $lib'
10026 ;;
10027
10028sunos4*)
10029 version_type=sunos
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=yes
10034 if test "$with_gnu_ld" = yes; then
10035 need_lib_prefix=no
10036 fi
10037 need_version=yes
10038 ;;
10039
Reid Spencera773bd52006-08-04 18:18:08 +000010040sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010041 version_type=linux
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 case $host_vendor in
10046 sni)
10047 shlibpath_overrides_runpath=no
10048 need_lib_prefix=no
10049 export_dynamic_flag_spec='${wl}-Blargedynsym'
10050 runpath_var=LD_RUN_PATH
10051 ;;
10052 siemens)
10053 need_lib_prefix=no
10054 ;;
10055 motorola)
10056 need_lib_prefix=no
10057 need_version=no
10058 shlibpath_overrides_runpath=no
10059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10060 ;;
10061 esac
10062 ;;
10063
10064sysv4*MP*)
10065 if test -d /usr/nec ;then
10066 version_type=linux
10067 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10068 soname_spec='$libname${shared_ext}.$major'
10069 shlibpath_var=LD_LIBRARY_PATH
10070 fi
10071 ;;
10072
Reid Spencera773bd52006-08-04 18:18:08 +000010073sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10074 version_type=freebsd-elf
10075 need_lib_prefix=no
10076 need_version=no
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 hardcode_into_libs=yes
10081 if test "$with_gnu_ld" = yes; then
10082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10083 shlibpath_overrides_runpath=no
10084 else
10085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10086 shlibpath_overrides_runpath=yes
10087 case $host_os in
10088 sco3.2v5*)
10089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10090 ;;
10091 esac
10092 fi
10093 sys_lib_dlsearch_path_spec='/usr/lib'
10094 ;;
10095
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096uts4*)
10097 version_type=linux
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 ;;
10102
10103*)
10104 dynamic_linker=no
10105 ;;
10106esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010107{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10108echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010109test "$dynamic_linker" = no && can_build_shared=no
10110
Reid Spencera773bd52006-08-04 18:18:08 +000010111variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10112if test "$GCC" = yes; then
10113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10114fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115
Reid Spencera773bd52006-08-04 18:18:08 +000010116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010117{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10118echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10119if test "${libltdl_cv_shlibext+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010121else
10122
10123module=yes
10124eval libltdl_cv_shlibext=$shrext_cmds
10125
10126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010127{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10128echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010129if test -n "$libltdl_cv_shlibext"; then
10130
10131cat >>confdefs.h <<_ACEOF
10132#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10133_ACEOF
10134
10135fi
10136
10137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010138{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10139echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10140if test "${libltdl_cv_shlibpath_var+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142else
10143 libltdl_cv_shlibpath_var="$shlibpath_var"
10144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010145{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10146echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147if test -n "$libltdl_cv_shlibpath_var"; then
10148
10149cat >>confdefs.h <<_ACEOF
10150#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10151_ACEOF
10152
10153fi
10154
10155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010156{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10157echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10158if test "${libltdl_cv_sys_search_path+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010160else
10161 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10162fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010163{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10164echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165if test -n "$libltdl_cv_sys_search_path"; then
10166 sys_search_path=
10167 for dir in $libltdl_cv_sys_search_path; do
10168 if test -z "$sys_search_path"; then
10169 sys_search_path="$dir"
10170 else
10171 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10172 fi
10173 done
10174
10175cat >>confdefs.h <<_ACEOF
10176#define LTDL_SYSSEARCHPATH "$sys_search_path"
10177_ACEOF
10178
10179fi
10180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010181{ echo "$as_me:$LINENO: checking for objdir" >&5
10182echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10183if test "${libltdl_cv_objdir+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185else
10186 libltdl_cv_objdir="$objdir"
10187 if test -n "$objdir"; then
10188 :
10189 else
10190 rm -f .libs 2>/dev/null
10191 mkdir .libs 2>/dev/null
10192 if test -d .libs; then
10193 libltdl_cv_objdir=.libs
10194 else
10195 # MS-DOS does not allow filenames that begin with a dot.
10196 libltdl_cv_objdir=_libs
10197 fi
10198 rmdir .libs 2>/dev/null
10199 fi
10200
10201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010202{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10203echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204
10205cat >>confdefs.h <<_ACEOF
10206#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10207_ACEOF
10208
10209
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010210
10211
10212
10213
10214# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010215{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10216echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10217if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219else
10220
10221# These are sane defaults that work on at least a few old systems.
10222# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10223
10224# Character class describing NM global symbol codes.
10225symcode='[BCDEGRST]'
10226
10227# Regexp to match symbols that can be accessed directly from C.
10228sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10229
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230# Transform an extracted symbol line into a proper C declaration
10231lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10232
10233# Transform an extracted symbol line into symbol name and symbol address
10234lt_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'"
10235
10236# Define system-specific variables.
10237case $host_os in
10238aix*)
10239 symcode='[BCDT]'
10240 ;;
10241cygwin* | mingw* | pw32*)
10242 symcode='[ABCDGISTW]'
10243 ;;
10244hpux*) # Its linker distinguishes data from code symbols
10245 if test "$host_cpu" = ia64; then
10246 symcode='[ABCDEGRST]'
10247 fi
10248 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10249 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'"
10250 ;;
10251linux*)
10252 if test "$host_cpu" = ia64; then
10253 symcode='[ABCDGIRSTW]'
10254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10255 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'"
10256 fi
10257 ;;
10258irix* | nonstopux*)
10259 symcode='[BCDEGRST]'
10260 ;;
10261osf*)
10262 symcode='[BCDEGQRST]'
10263 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010264solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265 symcode='[BDRT]'
10266 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010267sco3.2v5*)
10268 symcode='[DT]'
10269 ;;
10270sysv4.2uw2*)
10271 symcode='[DT]'
10272 ;;
10273sysv5* | sco5v6* | unixware* | OpenUNIX*)
10274 symcode='[ABDT]'
10275 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276sysv4)
10277 symcode='[DFNSTU]'
10278 ;;
10279esac
10280
10281# Handle CRLF in mingw tool chain
10282opt_cr=
10283case $build_os in
10284mingw*)
10285 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10286 ;;
10287esac
10288
10289# If we're using GNU nm, then use its standard symbol codes.
10290case `$NM -V 2>&1` in
10291*GNU* | *'with BFD'*)
10292 symcode='[ABCDGIRSTW]' ;;
10293esac
10294
10295# Try without a prefix undercore, then with it.
10296for ac_symprfx in "" "_"; do
10297
Reid Spencera773bd52006-08-04 18:18:08 +000010298 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10299 symxfrm="\\1 $ac_symprfx\\2 \\2"
10300
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010302 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 +000010303
10304 # Check to see that the pipe works correctly.
10305 pipe_works=no
10306
10307 rm -f conftest*
10308 cat > conftest.$ac_ext <<EOF
10309#ifdef __cplusplus
10310extern "C" {
10311#endif
10312char nm_test_var;
10313void nm_test_func(){}
10314#ifdef __cplusplus
10315}
10316#endif
10317int main(){nm_test_var='a';nm_test_func();return(0);}
10318EOF
10319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321 (eval $ac_compile) 2>&5
10322 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325 # Now try to grab the symbols.
10326 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010327 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 +000010328 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10329 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332 # Try sorting and uniquifying the output.
10333 if sort "$nlist" | uniq > "$nlist"T; then
10334 mv -f "$nlist"T "$nlist"
10335 else
10336 rm -f "$nlist"T
10337 fi
10338
10339 # Make sure that we snagged all the symbols we need.
10340 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10341 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10342 cat <<EOF > conftest.$ac_ext
10343#ifdef __cplusplus
10344extern "C" {
10345#endif
10346
10347EOF
10348 # Now generate the symbol file.
10349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10350
10351 cat <<EOF >> conftest.$ac_ext
10352#if defined (__STDC__) && __STDC__
10353# define lt_ptr_t void *
10354#else
10355# define lt_ptr_t char *
10356# define const
10357#endif
10358
10359/* The mapping between symbol names and symbols. */
10360const struct {
10361 const char *name;
10362 lt_ptr_t address;
10363}
10364lt_preloaded_symbols[] =
10365{
10366EOF
10367 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10368 cat <<\EOF >> conftest.$ac_ext
10369 {0, (lt_ptr_t) 0}
10370};
10371
10372#ifdef __cplusplus
10373}
10374#endif
10375EOF
10376 # Now try linking the two files.
10377 mv conftest.$ac_objext conftstm.$ac_objext
10378 lt_save_LIBS="$LIBS"
10379 lt_save_CFLAGS="$CFLAGS"
10380 LIBS="conftstm.$ac_objext"
10381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383 (eval $ac_link) 2>&5
10384 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 pipe_works=yes
10388 fi
10389 LIBS="$lt_save_LIBS"
10390 CFLAGS="$lt_save_CFLAGS"
10391 else
10392 echo "cannot find nm_test_func in $nlist" >&5
10393 fi
10394 else
10395 echo "cannot find nm_test_var in $nlist" >&5
10396 fi
10397 else
10398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10399 fi
10400 else
10401 echo "$progname: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10403 fi
10404 rm -f conftest* conftst*
10405
10406 # Do not use the global_symbol_pipe unless it works.
10407 if test "$pipe_works" = yes; then
10408 break
10409 else
10410 lt_cv_sys_global_symbol_pipe=
10411 fi
10412done
10413
10414fi
10415
10416if test -z "$lt_cv_sys_global_symbol_pipe"; then
10417 lt_cv_sys_global_symbol_to_cdecl=
10418fi
10419if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010420 { echo "$as_me:$LINENO: result: failed" >&5
10421echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010423 { echo "$as_me:$LINENO: result: ok" >&5
10424echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425fi
10426
10427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010428{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10429echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10430if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010432else
10433 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10434 libltdl_cv_preloaded_symbols=yes
10435 else
10436 libltdl_cv_preloaded_symbols=no
10437 fi
10438
10439fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010440{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10441echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010444cat >>confdefs.h <<\_ACEOF
10445#define HAVE_PRELOADED_SYMBOLS 1
10446_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447
10448fi
10449
10450LIBADD_DL=
10451
10452ac_ext=c
10453ac_cpp='$CPP $CPPFLAGS'
10454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10456ac_compiler_gnu=$ac_cv_c_compiler_gnu
10457
10458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010459{ echo "$as_me:$LINENO: checking for shl_load" >&5
10460echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10461if test "${ac_cv_func_shl_load+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10463else
10464 cat >conftest.$ac_ext <<_ACEOF
10465/* confdefs.h. */
10466_ACEOF
10467cat confdefs.h >>conftest.$ac_ext
10468cat >>conftest.$ac_ext <<_ACEOF
10469/* end confdefs.h. */
10470/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10472#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010474/* System header to define __stub macros and hopefully few prototypes,
10475 which can conflict with char shl_load (); below.
10476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10477 <limits.h> exists even on freestanding compilers. */
10478
10479#ifdef __STDC__
10480# include <limits.h>
10481#else
10482# include <assert.h>
10483#endif
10484
10485#undef shl_load
10486
10487/* Override any GCC internal prototype to avoid an error.
10488 Use char because int might match the return type of a GCC
10489 builtin and then its argument prototype would still apply. */
10490#ifdef __cplusplus
10491extern "C"
10492#endif
10493char shl_load ();
10494/* The GNU C library defines this for functions which it implements
10495 to always fail with ENOSYS. Some functions are actually named
10496 something starting with __ and the normal name is an alias. */
10497#if defined __stub_shl_load || defined __stub___shl_load
10498choke me
10499#endif
10500
10501int
10502main ()
10503{
10504return shl_load ();
10505 ;
10506 return 0;
10507}
10508_ACEOF
10509rm -f conftest.$ac_objext conftest$ac_exeext
10510if { (ac_try="$ac_link"
10511case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514esac
10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_link") 2>conftest.er1
10517 ac_status=$?
10518 grep -v '^ *+' conftest.er1 >conftest.err
10519 rm -f conftest.er1
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524 { (case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_try") 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537esac
10538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_try") 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_func_shl_load=yes
10544else
10545 echo "$as_me: failed program was:" >&5
10546sed 's/^/| /' conftest.$ac_ext >&5
10547
10548 ac_cv_func_shl_load=no
10549fi
10550
10551rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553fi
10554{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10555echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10556if test $ac_cv_func_shl_load = yes; then
10557
10558cat >>confdefs.h <<\_ACEOF
10559#define HAVE_SHL_LOAD 1
10560_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561
10562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010563 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10564echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10565if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567else
10568 ac_check_lib_save_LIBS=$LIBS
10569LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010570cat >conftest.$ac_ext <<_ACEOF
10571/* confdefs.h. */
10572_ACEOF
10573cat confdefs.h >>conftest.$ac_ext
10574cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575/* end confdefs.h. */
10576
Reid Spencera773bd52006-08-04 18:18:08 +000010577/* Override any GCC internal prototype to avoid an error.
10578 Use char because int might match the return type of a GCC
10579 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580#ifdef __cplusplus
10581extern "C"
10582#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583char shl_load ();
10584int
10585main ()
10586{
Reid Spencera773bd52006-08-04 18:18:08 +000010587return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588 ;
10589 return 0;
10590}
10591_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010592rm -f conftest.$ac_objext conftest$ac_exeext
10593if { (ac_try="$ac_link"
10594case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597esac
10598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10607 { (case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610esac
10611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_try") 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620esac
10621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010626 ac_cv_lib_dld_shl_load=yes
10627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010628 echo "$as_me: failed program was:" >&5
10629sed 's/^/| /' conftest.$ac_ext >&5
10630
10631 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010633
Bill Wendlingebcceee2009-04-18 11:20:33 +000010634rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010635 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636LIBS=$ac_check_lib_save_LIBS
10637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010638{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10639echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10640if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010642cat >>confdefs.h <<\_ACEOF
10643#define HAVE_SHL_LOAD 1
10644_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010645
10646 LIBADD_DL="$LIBADD_DL -ldld"
10647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010648 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10649echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10650if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652else
10653 ac_check_lib_save_LIBS=$LIBS
10654LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010655cat >conftest.$ac_ext <<_ACEOF
10656/* confdefs.h. */
10657_ACEOF
10658cat confdefs.h >>conftest.$ac_ext
10659cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660/* end confdefs.h. */
10661
Reid Spencera773bd52006-08-04 18:18:08 +000010662/* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665#ifdef __cplusplus
10666extern "C"
10667#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668char dlopen ();
10669int
10670main ()
10671{
Reid Spencera773bd52006-08-04 18:18:08 +000010672return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673 ;
10674 return 0;
10675}
10676_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010677rm -f conftest.$ac_objext conftest$ac_exeext
10678if { (ac_try="$ac_link"
10679case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682esac
10683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10692 { (case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695esac
10696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_try") 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; } &&
10701 { ac_try='test -s conftest$ac_exeext'
10702 { (case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705esac
10706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_try") 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010711 ac_cv_lib_dl_dlopen=yes
10712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010713 echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010718
Bill Wendlingebcceee2009-04-18 11:20:33 +000010719rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010720 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010721LIBS=$ac_check_lib_save_LIBS
10722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010723{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10724echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10725if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010727cat >>confdefs.h <<\_ACEOF
10728#define HAVE_LIBDL 1
10729_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730
10731 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10732else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010733 cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h. */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010738/* end confdefs.h. */
10739#if HAVE_DLFCN_H
10740# include <dlfcn.h>
10741#endif
10742
10743int
10744main ()
10745{
10746dlopen(0, 0);
10747 ;
10748 return 0;
10749}
10750_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010751rm -f conftest.$ac_objext conftest$ac_exeext
10752if { (ac_try="$ac_link"
10753case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756esac
10757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_link") 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; } &&
10775 { ac_try='test -s conftest$ac_exeext'
10776 { (case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779esac
10780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_try") 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010786cat >>confdefs.h <<\_ACEOF
10787#define HAVE_LIBDL 1
10788_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010789 libltdl_cv_func_dlopen="yes"
10790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010791 echo "$as_me: failed program was:" >&5
10792sed 's/^/| /' conftest.$ac_ext >&5
10793
10794 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10795echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10796if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010798else
10799 ac_check_lib_save_LIBS=$LIBS
10800LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010801cat >conftest.$ac_ext <<_ACEOF
10802/* confdefs.h. */
10803_ACEOF
10804cat confdefs.h >>conftest.$ac_ext
10805cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010806/* end confdefs.h. */
10807
Reid Spencera773bd52006-08-04 18:18:08 +000010808/* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811#ifdef __cplusplus
10812extern "C"
10813#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814char dlopen ();
10815int
10816main ()
10817{
Reid Spencera773bd52006-08-04 18:18:08 +000010818return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819 ;
10820 return 0;
10821}
10822_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010823rm -f conftest.$ac_objext conftest$ac_exeext
10824if { (ac_try="$ac_link"
10825case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10831 ac_status=$?
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851esac
10852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857 ac_cv_lib_svld_dlopen=yes
10858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010864
Bill Wendlingebcceee2009-04-18 11:20:33 +000010865rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010866 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867LIBS=$ac_check_lib_save_LIBS
10868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010869{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10870echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10871if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010873cat >>confdefs.h <<\_ACEOF
10874#define HAVE_LIBDL 1
10875_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876
10877 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010879 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10880echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10881if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883else
10884 ac_check_lib_save_LIBS=$LIBS
10885LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010886cat >conftest.$ac_ext <<_ACEOF
10887/* confdefs.h. */
10888_ACEOF
10889cat confdefs.h >>conftest.$ac_ext
10890cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010891/* end confdefs.h. */
10892
Reid Spencera773bd52006-08-04 18:18:08 +000010893/* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010896#ifdef __cplusplus
10897extern "C"
10898#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899char dld_link ();
10900int
10901main ()
10902{
Reid Spencera773bd52006-08-04 18:18:08 +000010903return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904 ;
10905 return 0;
10906}
10907_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010908rm -f conftest.$ac_objext conftest$ac_exeext
10909if { (ac_try="$ac_link"
10910case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_link") 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926esac
10927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942 ac_cv_lib_dld_dld_link=yes
10943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010949
Bill Wendlingebcceee2009-04-18 11:20:33 +000010950rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010951 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952LIBS=$ac_check_lib_save_LIBS
10953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010954{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10955echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10956if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010958cat >>confdefs.h <<\_ACEOF
10959#define HAVE_DLD 1
10960_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961
10962 LIBADD_DL="$LIBADD_DL -ldld"
10963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010964 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10965echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10966if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968else
10969 cat >conftest.$ac_ext <<_ACEOF
10970/* confdefs.h. */
10971_ACEOF
10972cat confdefs.h >>conftest.$ac_ext
10973cat >>conftest.$ac_ext <<_ACEOF
10974/* end confdefs.h. */
10975/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10977#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010979/* System header to define __stub macros and hopefully few prototypes,
10980 which can conflict with char _dyld_func_lookup (); below.
10981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10982 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010984#ifdef __STDC__
10985# include <limits.h>
10986#else
10987# include <assert.h>
10988#endif
10989
10990#undef _dyld_func_lookup
10991
10992/* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995#ifdef __cplusplus
10996extern "C"
10997#endif
10998char _dyld_func_lookup ();
10999/* The GNU C library defines this for functions which it implements
11000 to always fail with ENOSYS. Some functions are actually named
11001 something starting with __ and the normal name is an alias. */
11002#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11003choke me
11004#endif
11005
11006int
11007main ()
11008{
11009return _dyld_func_lookup ();
11010 ;
11011 return 0;
11012}
11013_ACEOF
11014rm -f conftest.$ac_objext conftest$ac_exeext
11015if { (ac_try="$ac_link"
11016case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_link") 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11029 { (case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032esac
11033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_try") 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest$ac_exeext'
11039 { (case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_try") 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_func__dyld_func_lookup=yes
11049else
11050 echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054fi
Reid Spencera773bd52006-08-04 18:18:08 +000011055
Bill Wendlingebcceee2009-04-18 11:20:33 +000011056rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011057 conftest$ac_exeext conftest.$ac_ext
11058fi
11059{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11060echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11061if test $ac_cv_func__dyld_func_lookup = yes; then
11062
11063cat >>confdefs.h <<\_ACEOF
11064#define HAVE_DYLD 1
11065_ACEOF
11066
11067fi
11068
11069
11070fi
11071
11072
11073fi
11074
11075
11076fi
11077
11078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080
11081fi
11082
11083
11084fi
11085
11086
11087fi
11088
11089
11090if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11091then
11092 lt_save_LIBS="$LIBS"
11093 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011094
11095for ac_func in dlerror
11096do
11097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102else
11103 cat >conftest.$ac_ext <<_ACEOF
11104/* confdefs.h. */
11105_ACEOF
11106cat confdefs.h >>conftest.$ac_ext
11107cat >>conftest.$ac_ext <<_ACEOF
11108/* end confdefs.h. */
11109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111#define $ac_func innocuous_$ac_func
11112
11113/* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char $ac_func (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11117
11118#ifdef __STDC__
11119# include <limits.h>
11120#else
11121# include <assert.h>
11122#endif
11123
11124#undef $ac_func
11125
11126/* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129#ifdef __cplusplus
11130extern "C"
11131#endif
11132char $ac_func ();
11133/* The GNU C library defines this for functions which it implements
11134 to always fail with ENOSYS. Some functions are actually named
11135 something starting with __ and the normal name is an alias. */
11136#if defined __stub_$ac_func || defined __stub___$ac_func
11137choke me
11138#endif
11139
11140int
11141main ()
11142{
11143return $ac_func ();
11144 ;
11145 return 0;
11146}
11147_ACEOF
11148rm -f conftest.$ac_objext conftest$ac_exeext
11149if { (ac_try="$ac_link"
11150case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_link") 2>conftest.er1
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest$ac_exeext'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 eval "$as_ac_var=yes"
11183else
11184 echo "$as_me: failed program was:" >&5
11185sed 's/^/| /' conftest.$ac_ext >&5
11186
11187 eval "$as_ac_var=no"
11188fi
11189
11190rm -f core conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11192fi
11193ac_res=`eval echo '${'$as_ac_var'}'`
11194 { echo "$as_me:$LINENO: result: $ac_res" >&5
11195echo "${ECHO_T}$ac_res" >&6; }
11196if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011199_ACEOF
11200
11201fi
11202done
11203
11204 LIBS="$lt_save_LIBS"
11205fi
11206ac_ext=c
11207ac_cpp='$CPP $CPPFLAGS'
11208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210ac_compiler_gnu=$ac_cv_c_compiler_gnu
11211
11212
11213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011214{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11215echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11216if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218else
11219 ac_cv_sys_symbol_underscore=no
11220 cat > conftest.$ac_ext <<EOF
11221void nm_test_func(){}
11222int main(){nm_test_func;return 0;}
11223EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011225 (eval $ac_compile) 2>&5
11226 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229 # Now try to grab the symbols.
11230 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011231 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 +000011232 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11233 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236 # See whether the symbols have a leading underscore.
11237 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11238 ac_cv_sys_symbol_underscore=yes
11239 else
11240 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11241 :
11242 else
11243 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11244 fi
11245 fi
11246 else
11247 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11248 fi
11249 else
11250 echo "configure: failed program was:" >&5
11251 cat conftest.c >&5
11252 fi
11253 rm -rf conftest*
11254
11255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011256{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11257echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258
11259
11260if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11261 if test x"$libltdl_cv_func_dlopen" = xyes ||
11262 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011263 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11264echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11265if test "${libltdl_cv_need_uscore+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011267else
11268 libltdl_cv_need_uscore=unknown
11269 save_LIBS="$LIBS"
11270 LIBS="$LIBS $LIBADD_DL"
11271 if test "$cross_compiling" = yes; then :
11272 libltdl_cv_need_uscore=cross
11273else
11274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11275 lt_status=$lt_dlunknown
11276 cat > conftest.$ac_ext <<EOF
Dan Gohman391569c2010-04-16 22:59:06 +000011277#line 11277 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011278#include "confdefs.h"
11279
11280#if HAVE_DLFCN_H
11281#include <dlfcn.h>
11282#endif
11283
11284#include <stdio.h>
11285
11286#ifdef RTLD_GLOBAL
11287# define LT_DLGLOBAL RTLD_GLOBAL
11288#else
11289# ifdef DL_GLOBAL
11290# define LT_DLGLOBAL DL_GLOBAL
11291# else
11292# define LT_DLGLOBAL 0
11293# endif
11294#endif
11295
11296/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11297 find out it does not work in some platform. */
11298#ifndef LT_DLLAZY_OR_NOW
11299# ifdef RTLD_LAZY
11300# define LT_DLLAZY_OR_NOW RTLD_LAZY
11301# else
11302# ifdef DL_LAZY
11303# define LT_DLLAZY_OR_NOW DL_LAZY
11304# else
11305# ifdef RTLD_NOW
11306# define LT_DLLAZY_OR_NOW RTLD_NOW
11307# else
11308# ifdef DL_NOW
11309# define LT_DLLAZY_OR_NOW DL_NOW
11310# else
11311# define LT_DLLAZY_OR_NOW 0
11312# endif
11313# endif
11314# endif
11315# endif
11316#endif
11317
11318#ifdef __cplusplus
11319extern "C" void exit (int);
11320#endif
11321
11322void fnord() { int i=42;}
11323int main ()
11324{
11325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11326 int status = $lt_dlunknown;
11327
11328 if (self)
11329 {
11330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11331 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11332 /* dlclose (self); */
11333 }
Reid Spencera773bd52006-08-04 18:18:08 +000011334 else
11335 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011336
11337 exit (status);
11338}
11339EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341 (eval $ac_link) 2>&5
11342 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011345 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346 lt_status=$?
11347 case x$lt_status in
11348 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11349 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011350 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351 esac
11352 else :
11353 # compilation failed
11354
11355 fi
11356fi
11357rm -fr conftest*
11358
11359 LIBS="$save_LIBS"
11360
11361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011362{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11363echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011364 fi
11365fi
11366
11367if test x"$libltdl_cv_need_uscore" = xyes; then
11368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011369cat >>confdefs.h <<\_ACEOF
11370#define NEED_USCORE 1
11371_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011372
11373fi
11374
11375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011376{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11377echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11378if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380else
11381 # PORTME does your system automatically load deplibs for dlopen?
11382 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11383 # For now, we just catch OSes we know something about -- in the
11384 # future, we'll try test this programmatically.
11385 libltdl_cv_sys_dlopen_deplibs=unknown
11386 case "$host_os" in
11387 aix3*|aix4.1.*|aix4.2.*)
11388 # Unknown whether this is true for these versions of AIX, but
11389 # we want this `case' here to explicitly catch those versions.
11390 libltdl_cv_sys_dlopen_deplibs=unknown
11391 ;;
11392 aix[45]*)
11393 libltdl_cv_sys_dlopen_deplibs=yes
11394 ;;
11395 darwin*)
11396 # Assuming the user has installed a libdl from somewhere, this is true
11397 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11398 libltdl_cv_sys_dlopen_deplibs=yes
11399 ;;
11400 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11401 # GNU and its variants, using gnu ld.so (Glibc)
11402 libltdl_cv_sys_dlopen_deplibs=yes
11403 ;;
11404 hpux10*|hpux11*)
11405 libltdl_cv_sys_dlopen_deplibs=yes
11406 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011407 interix*)
11408 libltdl_cv_sys_dlopen_deplibs=yes
11409 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410 irix[12345]*|irix6.[01]*)
11411 # Catch all versions of IRIX before 6.2, and indicate that we don't
11412 # know how it worked for any of those versions.
11413 libltdl_cv_sys_dlopen_deplibs=unknown
11414 ;;
11415 irix*)
11416 # The case above catches anything before 6.2, and it's known that
11417 # at 6.2 and later dlopen does load deplibs.
11418 libltdl_cv_sys_dlopen_deplibs=yes
11419 ;;
11420 netbsd*)
11421 libltdl_cv_sys_dlopen_deplibs=yes
11422 ;;
11423 openbsd*)
11424 libltdl_cv_sys_dlopen_deplibs=yes
11425 ;;
11426 osf[1234]*)
11427 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11428 # it did *not* use an RPATH in a shared library to find objects the
11429 # library depends on, so we explictly say `no'.
11430 libltdl_cv_sys_dlopen_deplibs=no
11431 ;;
11432 osf5.0|osf5.0a|osf5.1)
11433 # dlopen *does* load deplibs and with the right loader patch applied
11434 # it even uses RPATH in a shared library to search for shared objects
11435 # that the library depends on, but there's no easy way to know if that
11436 # patch is installed. Since this is the case, all we can really
11437 # say is unknown -- it depends on the patch being installed. If
11438 # it is, this changes to `yes'. Without it, it would be `no'.
11439 libltdl_cv_sys_dlopen_deplibs=unknown
11440 ;;
11441 osf*)
11442 # the two cases above should catch all versions of osf <= 5.1. Read
11443 # the comments above for what we know about them.
11444 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11445 # is used to find them so we can finally say `yes'.
11446 libltdl_cv_sys_dlopen_deplibs=yes
11447 ;;
11448 solaris*)
11449 libltdl_cv_sys_dlopen_deplibs=yes
11450 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11452 libltdl_cv_sys_dlopen_deplibs=yes
11453 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454 esac
11455
11456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011457{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11458echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011459if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011461cat >>confdefs.h <<\_ACEOF
11462#define LTDL_DLOPEN_DEPLIBS 1
11463_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464
11465fi
11466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011467
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011468for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011469do
11470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476fi
11477ac_res=`eval echo '${'$as_ac_Header'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479echo "${ECHO_T}$ac_res" >&6; }
11480else
11481 # Is the header compilable?
11482{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11484cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
11490$ac_includes_default
11491#include <$ac_header>
11492_ACEOF
11493rm -f conftest.$ac_objext
11494if { (ac_try="$ac_compile"
11495case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_compile") 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } &&
11507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11508 { (case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511esac
11512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_try") 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; } &&
11517 { ac_try='test -s conftest.$ac_objext'
11518 { (case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521esac
11522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_try") 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 ac_header_compiler=yes
11528else
11529 echo "$as_me: failed program was:" >&5
11530sed 's/^/| /' conftest.$ac_ext >&5
11531
11532 ac_header_compiler=no
11533fi
11534
11535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11537echo "${ECHO_T}$ac_header_compiler" >&6; }
11538
11539# Is the header present?
11540{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11542cat >conftest.$ac_ext <<_ACEOF
11543/* confdefs.h. */
11544_ACEOF
11545cat confdefs.h >>conftest.$ac_ext
11546cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h. */
11548#include <$ac_header>
11549_ACEOF
11550if { (ac_try="$ac_cpp conftest.$ac_ext"
11551case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } >/dev/null; then
11563 if test -s conftest.err; then
11564 ac_cpp_err=$ac_c_preproc_warn_flag
11565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11566 else
11567 ac_cpp_err=
11568 fi
11569else
11570 ac_cpp_err=yes
11571fi
11572if test -z "$ac_cpp_err"; then
11573 ac_header_preproc=yes
11574else
11575 echo "$as_me: failed program was:" >&5
11576sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 ac_header_preproc=no
11579fi
11580
11581rm -f conftest.err conftest.$ac_ext
11582{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11583echo "${ECHO_T}$ac_header_preproc" >&6; }
11584
11585# So? What about this header?
11586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11587 yes:no: )
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11592 ac_header_preproc=yes
11593 ;;
11594 no:yes:* )
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11598echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11602echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11607 ( cat <<\_ASBOX
11608## ----------------------------------- ##
11609## Report this to llvmbugs@cs.uiuc.edu ##
11610## ----------------------------------- ##
11611_ASBOX
11612 ) | sed "s/^/$as_me: WARNING: /" >&2
11613 ;;
11614esac
11615{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619else
11620 eval "$as_ac_Header=\$ac_header_preproc"
11621fi
11622ac_res=`eval echo '${'$as_ac_Header'}'`
11623 { echo "$as_me:$LINENO: result: $ac_res" >&5
11624echo "${ECHO_T}$ac_res" >&6; }
11625
11626fi
11627if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011629#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011630_ACEOF
11631
11632fi
11633
11634done
11635
11636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011637{ echo "$as_me:$LINENO: checking for error_t" >&5
11638echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11639if test "${ac_cv_type_error_t+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641else
11642 cat >conftest.$ac_ext <<_ACEOF
11643/* confdefs.h. */
11644_ACEOF
11645cat confdefs.h >>conftest.$ac_ext
11646cat >>conftest.$ac_ext <<_ACEOF
11647/* end confdefs.h. */
11648#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011649# include <argz.h>
11650#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011651
11652typedef error_t ac__type_new_;
11653int
11654main ()
11655{
11656if ((ac__type_new_ *) 0)
11657 return 0;
11658if (sizeof (ac__type_new_))
11659 return 0;
11660 ;
11661 return 0;
11662}
11663_ACEOF
11664rm -f conftest.$ac_objext
11665if { (ac_try="$ac_compile"
11666case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_compile") 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682esac
11683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692esac
11693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_try") 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; }; then
11698 ac_cv_type_error_t=yes
11699else
11700 echo "$as_me: failed program was:" >&5
11701sed 's/^/| /' conftest.$ac_ext >&5
11702
11703 ac_cv_type_error_t=no
11704fi
11705
11706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707fi
11708{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11709echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11710if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711
11712cat >>confdefs.h <<_ACEOF
11713#define HAVE_ERROR_T 1
11714_ACEOF
11715
11716
11717else
11718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011719cat >>confdefs.h <<\_ACEOF
11720#define error_t int
11721_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011722
11723fi
11724
11725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011726
11727
11728
11729
11730
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011731for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011732do
11733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11734{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11736if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738else
11739 cat >conftest.$ac_ext <<_ACEOF
11740/* confdefs.h. */
11741_ACEOF
11742cat confdefs.h >>conftest.$ac_ext
11743cat >>conftest.$ac_ext <<_ACEOF
11744/* end confdefs.h. */
11745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11747#define $ac_func innocuous_$ac_func
11748
11749/* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char $ac_func (); below.
11751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 <limits.h> exists even on freestanding compilers. */
11753
11754#ifdef __STDC__
11755# include <limits.h>
11756#else
11757# include <assert.h>
11758#endif
11759
11760#undef $ac_func
11761
11762/* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11765#ifdef __cplusplus
11766extern "C"
11767#endif
11768char $ac_func ();
11769/* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
11772#if defined __stub_$ac_func || defined __stub___$ac_func
11773choke me
11774#endif
11775
11776int
11777main ()
11778{
11779return $ac_func ();
11780 ;
11781 return 0;
11782}
11783_ACEOF
11784rm -f conftest.$ac_objext conftest$ac_exeext
11785if { (ac_try="$ac_link"
11786case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789esac
11790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_link") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest$ac_exeext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812esac
11813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "$as_ac_var=yes"
11819else
11820 echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 eval "$as_ac_var=no"
11824fi
11825
11826rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828fi
11829ac_res=`eval echo '${'$as_ac_var'}'`
11830 { echo "$as_me:$LINENO: result: $ac_res" >&5
11831echo "${ECHO_T}$ac_res" >&6; }
11832if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835_ACEOF
11836
11837fi
11838done
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011859
11860
11861
11862
11863
11864
11865
11866
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11868 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011869do
11870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876fi
11877ac_res=`eval echo '${'$as_ac_Header'}'`
11878 { echo "$as_me:$LINENO: result: $ac_res" >&5
11879echo "${ECHO_T}$ac_res" >&6; }
11880else
11881 # Is the header compilable?
11882{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11884cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
11890$ac_includes_default
11891#include <$ac_header>
11892_ACEOF
11893rm -f conftest.$ac_objext
11894if { (ac_try="$ac_compile"
11895case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898esac
11899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_compile") 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11908 { (case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911esac
11912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_try") 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest.$ac_objext'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_header_compiler=yes
11928else
11929 echo "$as_me: failed program was:" >&5
11930sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 ac_header_compiler=no
11933fi
11934
11935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937echo "${ECHO_T}$ac_header_compiler" >&6; }
11938
11939# Is the header present?
11940{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11942cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
11948#include <$ac_header>
11949_ACEOF
11950if { (ac_try="$ac_cpp conftest.$ac_ext"
11951case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954esac
11955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null; then
11963 if test -s conftest.err; then
11964 ac_cpp_err=$ac_c_preproc_warn_flag
11965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11966 else
11967 ac_cpp_err=
11968 fi
11969else
11970 ac_cpp_err=yes
11971fi
11972if test -z "$ac_cpp_err"; then
11973 ac_header_preproc=yes
11974else
11975 echo "$as_me: failed program was:" >&5
11976sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 ac_header_preproc=no
11979fi
11980
11981rm -f conftest.err conftest.$ac_ext
11982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11983echo "${ECHO_T}$ac_header_preproc" >&6; }
11984
11985# So? What about this header?
11986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11987 yes:no: )
11988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11992 ac_header_preproc=yes
11993 ;;
11994 no:yes:* )
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12007 ( cat <<\_ASBOX
12008## ----------------------------------- ##
12009## Report this to llvmbugs@cs.uiuc.edu ##
12010## ----------------------------------- ##
12011_ASBOX
12012 ) | sed "s/^/$as_me: WARNING: /" >&2
12013 ;;
12014esac
12015{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019else
12020 eval "$as_ac_Header=\$ac_header_preproc"
12021fi
12022ac_res=`eval echo '${'$as_ac_Header'}'`
12023 { echo "$as_me:$LINENO: result: $ac_res" >&5
12024echo "${ECHO_T}$ac_res" >&6; }
12025
12026fi
12027if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012030_ACEOF
12031
12032fi
12033
12034done
12035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012036
12037
12038
12039
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012040for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012041do
12042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048fi
12049ac_res=`eval echo '${'$as_ac_Header'}'`
12050 { echo "$as_me:$LINENO: result: $ac_res" >&5
12051echo "${ECHO_T}$ac_res" >&6; }
12052else
12053 # Is the header compilable?
12054{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12055echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12056cat >conftest.$ac_ext <<_ACEOF
12057/* confdefs.h. */
12058_ACEOF
12059cat confdefs.h >>conftest.$ac_ext
12060cat >>conftest.$ac_ext <<_ACEOF
12061/* end confdefs.h. */
12062$ac_includes_default
12063#include <$ac_header>
12064_ACEOF
12065rm -f conftest.$ac_objext
12066if { (ac_try="$ac_compile"
12067case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070esac
12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_compile") 2>conftest.er1
12073 ac_status=$?
12074 grep -v '^ *+' conftest.er1 >conftest.err
12075 rm -f conftest.er1
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12080 { (case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083esac
12084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_try") 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093esac
12094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_header_compiler=yes
12100else
12101 echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104 ac_header_compiler=no
12105fi
12106
12107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12109echo "${ECHO_T}$ac_header_compiler" >&6; }
12110
12111# Is the header present?
12112{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12114cat >conftest.$ac_ext <<_ACEOF
12115/* confdefs.h. */
12116_ACEOF
12117cat confdefs.h >>conftest.$ac_ext
12118cat >>conftest.$ac_ext <<_ACEOF
12119/* end confdefs.h. */
12120#include <$ac_header>
12121_ACEOF
12122if { (ac_try="$ac_cpp conftest.$ac_ext"
12123case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } >/dev/null; then
12135 if test -s conftest.err; then
12136 ac_cpp_err=$ac_c_preproc_warn_flag
12137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12138 else
12139 ac_cpp_err=
12140 fi
12141else
12142 ac_cpp_err=yes
12143fi
12144if test -z "$ac_cpp_err"; then
12145 ac_header_preproc=yes
12146else
12147 echo "$as_me: failed program was:" >&5
12148sed 's/^/| /' conftest.$ac_ext >&5
12149
12150 ac_header_preproc=no
12151fi
12152
12153rm -f conftest.err conftest.$ac_ext
12154{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12155echo "${ECHO_T}$ac_header_preproc" >&6; }
12156
12157# So? What about this header?
12158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12159 yes:no: )
12160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12163echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12164 ac_header_preproc=yes
12165 ;;
12166 no:yes:* )
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12168echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12170echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12172echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12174echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12178echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12179 ( cat <<\_ASBOX
12180## ----------------------------------- ##
12181## Report this to llvmbugs@cs.uiuc.edu ##
12182## ----------------------------------- ##
12183_ASBOX
12184 ) | sed "s/^/$as_me: WARNING: /" >&2
12185 ;;
12186esac
12187{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192 eval "$as_ac_Header=\$ac_header_preproc"
12193fi
12194ac_res=`eval echo '${'$as_ac_Header'}'`
12195 { echo "$as_me:$LINENO: result: $ac_res" >&5
12196echo "${ECHO_T}$ac_res" >&6; }
12197
12198fi
12199if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012200 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012202_ACEOF
12203
12204fi
12205
12206done
12207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012208
12209
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012211do
12212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12218fi
12219ac_res=`eval echo '${'$as_ac_Header'}'`
12220 { echo "$as_me:$LINENO: result: $ac_res" >&5
12221echo "${ECHO_T}$ac_res" >&6; }
12222else
12223 # Is the header compilable?
12224{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12225echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12226cat >conftest.$ac_ext <<_ACEOF
12227/* confdefs.h. */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h. */
12232$ac_includes_default
12233#include <$ac_header>
12234_ACEOF
12235rm -f conftest.$ac_objext
12236if { (ac_try="$ac_compile"
12237case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12240esac
12241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_compile") 2>conftest.er1
12243 ac_status=$?
12244 grep -v '^ *+' conftest.er1 >conftest.err
12245 rm -f conftest.er1
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12250 { (case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253esac
12254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_try") 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest.$ac_objext'
12260 { (case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263esac
12264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_try") 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_header_compiler=yes
12270else
12271 echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 ac_header_compiler=no
12275fi
12276
12277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279echo "${ECHO_T}$ac_header_compiler" >&6; }
12280
12281# Is the header present?
12282{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12283echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12284cat >conftest.$ac_ext <<_ACEOF
12285/* confdefs.h. */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
12289/* end confdefs.h. */
12290#include <$ac_header>
12291_ACEOF
12292if { (ac_try="$ac_cpp conftest.$ac_ext"
12293case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296esac
12297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } >/dev/null; then
12305 if test -s conftest.err; then
12306 ac_cpp_err=$ac_c_preproc_warn_flag
12307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12308 else
12309 ac_cpp_err=
12310 fi
12311else
12312 ac_cpp_err=yes
12313fi
12314if test -z "$ac_cpp_err"; then
12315 ac_header_preproc=yes
12316else
12317 echo "$as_me: failed program was:" >&5
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_header_preproc=no
12321fi
12322
12323rm -f conftest.err conftest.$ac_ext
12324{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12325echo "${ECHO_T}$ac_header_preproc" >&6; }
12326
12327# So? What about this header?
12328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12329 yes:no: )
12330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12334 ac_header_preproc=yes
12335 ;;
12336 no:yes:* )
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12340echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12344echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12349 ( cat <<\_ASBOX
12350## ----------------------------------- ##
12351## Report this to llvmbugs@cs.uiuc.edu ##
12352## ----------------------------------- ##
12353_ASBOX
12354 ) | sed "s/^/$as_me: WARNING: /" >&2
12355 ;;
12356esac
12357{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
12362 eval "$as_ac_Header=\$ac_header_preproc"
12363fi
12364ac_res=`eval echo '${'$as_ac_Header'}'`
12365 { echo "$as_me:$LINENO: result: $ac_res" >&5
12366echo "${ECHO_T}$ac_res" >&6; }
12367
12368fi
12369if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012370 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372_ACEOF
12373 break
12374fi
12375
12376done
12377
12378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012379
12380
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012382do
12383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12384{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388else
12389 cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397#define $ac_func innocuous_$ac_func
12398
12399/* System header to define __stub macros and hopefully few prototypes,
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12403
12404#ifdef __STDC__
12405# include <limits.h>
12406#else
12407# include <assert.h>
12408#endif
12409
12410#undef $ac_func
12411
12412/* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12415#ifdef __cplusplus
12416extern "C"
12417#endif
12418char $ac_func ();
12419/* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
12422#if defined __stub_$ac_func || defined __stub___$ac_func
12423choke me
12424#endif
12425
12426int
12427main ()
12428{
12429return $ac_func ();
12430 ;
12431 return 0;
12432}
12433_ACEOF
12434rm -f conftest.$ac_objext conftest$ac_exeext
12435if { (ac_try="$ac_link"
12436case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439esac
12440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452esac
12453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462esac
12463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 eval "$as_ac_var=yes"
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 eval "$as_ac_var=no"
12474fi
12475
12476rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12478fi
12479ac_res=`eval echo '${'$as_ac_var'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481echo "${ECHO_T}$ac_res" >&6; }
12482if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485_ACEOF
12486 break
12487fi
12488done
12489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012490
12491
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012492for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012493do
12494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499else
12500 cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h. */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
12505/* end confdefs.h. */
12506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508#define $ac_func innocuous_$ac_func
12509
12510/* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12514
12515#ifdef __STDC__
12516# include <limits.h>
12517#else
12518# include <assert.h>
12519#endif
12520
12521#undef $ac_func
12522
12523/* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526#ifdef __cplusplus
12527extern "C"
12528#endif
12529char $ac_func ();
12530/* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
12533#if defined __stub_$ac_func || defined __stub___$ac_func
12534choke me
12535#endif
12536
12537int
12538main ()
12539{
12540return $ac_func ();
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext conftest$ac_exeext
12546if { (ac_try="$ac_link"
12547case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563esac
12564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573esac
12574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 eval "$as_ac_var=yes"
12580else
12581 echo "$as_me: failed program was:" >&5
12582sed 's/^/| /' conftest.$ac_ext >&5
12583
12584 eval "$as_ac_var=no"
12585fi
12586
12587rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589fi
12590ac_res=`eval echo '${'$as_ac_var'}'`
12591 { echo "$as_me:$LINENO: result: $ac_res" >&5
12592echo "${ECHO_T}$ac_res" >&6; }
12593if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596_ACEOF
12597 break
12598fi
12599done
12600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012601
12602
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012603for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012604do
12605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12608if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610else
12611 cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
12617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12619#define $ac_func innocuous_$ac_func
12620
12621/* System header to define __stub macros and hopefully few prototypes,
12622 which can conflict with char $ac_func (); below.
12623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624 <limits.h> exists even on freestanding compilers. */
12625
12626#ifdef __STDC__
12627# include <limits.h>
12628#else
12629# include <assert.h>
12630#endif
12631
12632#undef $ac_func
12633
12634/* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12637#ifdef __cplusplus
12638extern "C"
12639#endif
12640char $ac_func ();
12641/* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644#if defined __stub_$ac_func || defined __stub___$ac_func
12645choke me
12646#endif
12647
12648int
12649main ()
12650{
12651return $ac_func ();
12652 ;
12653 return 0;
12654}
12655_ACEOF
12656rm -f conftest.$ac_objext conftest$ac_exeext
12657if { (ac_try="$ac_link"
12658case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661esac
12662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674esac
12675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 eval "$as_ac_var=yes"
12691else
12692 echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 eval "$as_ac_var=no"
12696fi
12697
12698rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700fi
12701ac_res=`eval echo '${'$as_ac_var'}'`
12702 { echo "$as_me:$LINENO: result: $ac_res" >&5
12703echo "${ECHO_T}$ac_res" >&6; }
12704if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012705 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707_ACEOF
12708 break
12709fi
12710done
12711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012712
12713
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012714for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012715do
12716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12717{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721else
12722 cat >conftest.$ac_ext <<_ACEOF
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
12728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12730#define $ac_func innocuous_$ac_func
12731
12732/* System header to define __stub macros and hopefully few prototypes,
12733 which can conflict with char $ac_func (); below.
12734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12735 <limits.h> exists even on freestanding compilers. */
12736
12737#ifdef __STDC__
12738# include <limits.h>
12739#else
12740# include <assert.h>
12741#endif
12742
12743#undef $ac_func
12744
12745/* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
12748#ifdef __cplusplus
12749extern "C"
12750#endif
12751char $ac_func ();
12752/* The GNU C library defines this for functions which it implements
12753 to always fail with ENOSYS. Some functions are actually named
12754 something starting with __ and the normal name is an alias. */
12755#if defined __stub_$ac_func || defined __stub___$ac_func
12756choke me
12757#endif
12758
12759int
12760main ()
12761{
12762return $ac_func ();
12763 ;
12764 return 0;
12765}
12766_ACEOF
12767rm -f conftest.$ac_objext conftest$ac_exeext
12768if { (ac_try="$ac_link"
12769case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772esac
12773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_link") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785esac
12786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 eval "$as_ac_var=yes"
12802else
12803 echo "$as_me: failed program was:" >&5
12804sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 eval "$as_ac_var=no"
12807fi
12808
12809rm -f core conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811fi
12812ac_res=`eval echo '${'$as_ac_var'}'`
12813 { echo "$as_me:$LINENO: result: $ac_res" >&5
12814echo "${ECHO_T}$ac_res" >&6; }
12815if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012816 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012818_ACEOF
12819
12820fi
12821done
12822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012823
12824
12825
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012826for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012827do
12828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833else
12834 cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h. */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h. */
12840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12842#define $ac_func innocuous_$ac_func
12843
12844/* System header to define __stub macros and hopefully few prototypes,
12845 which can conflict with char $ac_func (); below.
12846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12847 <limits.h> exists even on freestanding compilers. */
12848
12849#ifdef __STDC__
12850# include <limits.h>
12851#else
12852# include <assert.h>
12853#endif
12854
12855#undef $ac_func
12856
12857/* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863char $ac_func ();
12864/* The GNU C library defines this for functions which it implements
12865 to always fail with ENOSYS. Some functions are actually named
12866 something starting with __ and the normal name is an alias. */
12867#if defined __stub_$ac_func || defined __stub___$ac_func
12868choke me
12869#endif
12870
12871int
12872main ()
12873{
12874return $ac_func ();
12875 ;
12876 return 0;
12877}
12878_ACEOF
12879rm -f conftest.$ac_objext conftest$ac_exeext
12880if { (ac_try="$ac_link"
12881case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_link") 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897esac
12898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest$ac_exeext'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907esac
12908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 eval "$as_ac_var=yes"
12914else
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 eval "$as_ac_var=no"
12919fi
12920
12921rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12923fi
12924ac_res=`eval echo '${'$as_ac_var'}'`
12925 { echo "$as_me:$LINENO: result: $ac_res" >&5
12926echo "${ECHO_T}$ac_res" >&6; }
12927if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012928 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012930_ACEOF
12931
12932fi
12933done
12934
12935
Douglas Gregor01746742009-05-11 18:05:52 +000012936
Reid Spencer7931a782004-12-27 06:15:02 +000012937if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012938 LLVMGCC="llvm-gcc${EXEEXT}"
12939 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012940 LLVMGCCCOMMAND="$LLVMGCC"
12941 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012942 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12943
12944 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12945
Reid Spencerc84492c2005-06-02 22:34:49 +000012946 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12947set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12950if test "${ac_cv_path_LLVMGCC+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012952else
12953 case $LLVMGCC in
12954 [\\/]* | ?:[\\/]*)
12955 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12956 ;;
12957 *)
12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959for as_dir in $PATH
12960do
12961 IFS=$as_save_IFS
12962 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963 for ac_exec_ext in '' $ac_executable_extensions; do
12964 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 +000012965 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012967 break 2
12968 fi
12969done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012970done
Reid Spencera773bd52006-08-04 18:18:08 +000012971IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012972
Reid Spencer59473af2004-12-25 07:31:29 +000012973 ;;
12974esac
12975fi
12976LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012977if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012978 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12979echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012981 { echo "$as_me:$LINENO: result: no" >&5
12982echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012983fi
12984
Reid Spencera773bd52006-08-04 18:18:08 +000012985
Reid Spencerc84492c2005-06-02 22:34:49 +000012986 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12987set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12990if test "${ac_cv_path_LLVMGXX+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012992else
12993 case $LLVMGXX in
12994 [\\/]* | ?:[\\/]*)
12995 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12996 ;;
12997 *)
12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999for as_dir in $PATH
13000do
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 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 +000013005 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013007 break 2
13008 fi
13009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013010done
Reid Spencera773bd52006-08-04 18:18:08 +000013011IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013012
Reid Spencer59473af2004-12-25 07:31:29 +000013013 ;;
13014esac
13015fi
13016LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013017if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013018 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13019echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021 { echo "$as_me:$LINENO: result: no" >&5
13022echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013023fi
13024
Reid Spencera773bd52006-08-04 18:18:08 +000013025
Reid Spencer59473af2004-12-25 07:31:29 +000013026else
Devang Patel5d28b882007-12-04 22:54:47 +000013027 if test -z "$LLVMGCC"; then
13028 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013029 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013030 fi
13031 if test -z "$LLVMGXX"; then
13032 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013033 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013034 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013035
Reid Spencer59473af2004-12-25 07:31:29 +000013036 LLVMGCC=$LLVMGCC
13037
13038 LLVMGXX=$LLVMGXX
13039
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013040 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13041
13042 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13043
Reid Spencer59473af2004-12-25 07:31:29 +000013044fi
13045
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013046
Daniel Dunbar98515672010-02-23 10:00:49 +000013047# Check whether --with-llvmcc was given.
13048if test "${with_llvmcc+set}" = set; then
13049 withval=$with_llvmcc;
13050else
13051 with_llvmcc=check
13052fi
13053
13054{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13055echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13056if test "$with_llvmcc" != "check"; then
13057 if (test "$with_llvmcc" != "llvm-gcc" &&
13058 test "$with_llvmcc" != "clang" &&
13059 test "$with_llvmcc" != "none"); then
13060 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13061echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13062 { (exit 1); exit 1; }; }
13063 fi
13064 WITH_LLVMCC="$with_llvmcc"
13065elif test -n "$LLVMGCC"; then
13066 WITH_LLVMCC=llvm-gcc
13067elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13068 WITH_LLVMCC=clang
13069else
13070 WITH_LLVMCC=none
13071fi
13072{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13073echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13074LLVMCC_OPTION=$WITH_LLVMCC
13075
13076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013077{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13078echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013079
Reid Spencer86901802004-12-08 23:07:27 +000013080ICC=no
13081IXX=no
13082case $CC in
13083 icc*|icpc*)
13084 ICC=yes
13085 IXX=yes
13086 ;;
13087 *)
13088 ;;
13089esac
13090
Duraid Madina937c60a2006-02-15 07:57:42 +000013091if test "$GCC" != "yes" && test "$ICC" != "yes"
13092then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013093 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13094echo "$as_me: error: gcc|icc required but not found" >&2;}
13095 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013096fi
13097
13098if test "$GXX" != "yes" && test "$IXX" != "yes"
13099then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013100 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13101echo "$as_me: error: g++|icc required but not found" >&2;}
13102 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013103fi
13104
Reid Spencer86901802004-12-08 23:07:27 +000013105if test "$GCC" = "yes"
13106then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013107 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013108#if !defined(__GNUC__) || __GNUC__ < 3
13109#error Unsupported GCC version
13110#endif
13111
13112_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013113rm -f conftest.$ac_objext
13114if { (ac_try="$ac_compile"
13115case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13118esac
13119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_compile") 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131esac
13132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest.$ac_objext'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141esac
13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013149 echo "$as_me: failed program was:" >&5
13150sed 's/^/| /' conftest.$ac_ext >&5
13151
13152 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13153echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13154 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013156
Chris Lattner399c7c72008-02-05 19:43:53 +000013157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013158fi
13159
13160if test -z "$llvm_cv_gnu_make_command"
13161then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013162 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13163echo "$as_me: error: GNU Make required but not found" >&2;}
13164 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013165fi
13166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013167{ echo "$as_me:$LINENO: result: ok" >&5
13168echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013170{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13171echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013172NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13173
13174NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013176{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13177echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013178
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013180
13181{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13182echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13183if test "${ac_cv_lib_m_sin+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013185else
13186 ac_check_lib_save_LIBS=$LIBS
13187LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013188cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013193/* end confdefs.h. */
13194
Reid Spencera773bd52006-08-04 18:18:08 +000013195/* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013198#ifdef __cplusplus
13199extern "C"
13200#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013201char sin ();
13202int
13203main ()
13204{
Reid Spencera773bd52006-08-04 18:18:08 +000013205return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013206 ;
13207 return 0;
13208}
13209_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013210rm -f conftest.$ac_objext conftest$ac_exeext
13211if { (ac_try="$ac_link"
13212case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215esac
13216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_link") 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13225 { (case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228esac
13229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_try") 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; } &&
13234 { ac_try='test -s conftest$ac_exeext'
13235 { (case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238esac
13239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_try") 2>&5
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013244 ac_cv_lib_m_sin=yes
13245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013246 echo "$as_me: failed program was:" >&5
13247sed 's/^/| /' conftest.$ac_ext >&5
13248
13249 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013251
Bill Wendlingebcceee2009-04-18 11:20:33 +000013252rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013254LIBS=$ac_check_lib_save_LIBS
13255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013256{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13257echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13258if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013259 cat >>confdefs.h <<_ACEOF
13260#define HAVE_LIBM 1
13261_ACEOF
13262
13263 LIBS="-lm $LIBS"
13264
13265fi
13266
Jeff Cohen28783c32007-01-12 18:22:38 +000013267if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268
13269{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13270echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13271if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013273else
13274 ac_check_lib_save_LIBS=$LIBS
13275LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013276cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013281/* end confdefs.h. */
13282
Reid Spencer48fdf912006-06-01 19:03:21 +000013283
Reid Spencer484fc8e2006-06-01 16:55:59 +000013284int
13285main ()
13286{
Reid Spencera773bd52006-08-04 18:18:08 +000013287return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013288 ;
13289 return 0;
13290}
13291_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013292rm -f conftest.$ac_objext conftest$ac_exeext
13293if { (ac_try="$ac_link"
13294case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13297esac
13298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_link") 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13307 { (case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310esac
13311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_try") 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; } &&
13316 { ac_try='test -s conftest$ac_exeext'
13317 { (case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13320esac
13321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_try") 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013326 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013328 echo "$as_me: failed program was:" >&5
13329sed 's/^/| /' conftest.$ac_ext >&5
13330
13331 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013333
Bill Wendlingebcceee2009-04-18 11:20:33 +000013334rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013335 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013336LIBS=$ac_check_lib_save_LIBS
13337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013338{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13339echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13340if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013341 cat >>confdefs.h <<_ACEOF
13342#define HAVE_LIBIMAGEHLP 1
13343_ACEOF
13344
13345 LIBS="-limagehlp $LIBS"
13346
13347fi
13348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349
13350{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13351echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13352if test "${ac_cv_lib_psapi_main+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013354else
13355 ac_check_lib_save_LIBS=$LIBS
13356LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357cat >conftest.$ac_ext <<_ACEOF
13358/* confdefs.h. */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013362/* end confdefs.h. */
13363
Reid Spencer48fdf912006-06-01 19:03:21 +000013364
Reid Spencer484fc8e2006-06-01 16:55:59 +000013365int
13366main ()
13367{
Reid Spencera773bd52006-08-04 18:18:08 +000013368return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013369 ;
13370 return 0;
13371}
13372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013373rm -f conftest.$ac_objext conftest$ac_exeext
13374if { (ac_try="$ac_link"
13375case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378esac
13379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (case "(($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_try") 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013407 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013414
Bill Wendlingebcceee2009-04-18 11:20:33 +000013415rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013416 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013417LIBS=$ac_check_lib_save_LIBS
13418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013419{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13420echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13421if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013422 cat >>confdefs.h <<_ACEOF
13423#define HAVE_LIBPSAPI 1
13424_ACEOF
13425
13426 LIBS="-lpsapi $LIBS"
13427
13428fi
13429
13430fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013432{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13433echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13434if test "${ac_cv_search_dlopen+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013436else
13437 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013438cat >conftest.$ac_ext <<_ACEOF
13439/* confdefs.h. */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013444
Reid Spencera773bd52006-08-04 18:18:08 +000013445/* Override any GCC internal prototype to avoid an error.
13446 Use char because int might match the return type of a GCC
13447 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013448#ifdef __cplusplus
13449extern "C"
13450#endif
John Criswell7a73b802003-06-30 21:59:07 +000013451char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013452int
13453main ()
13454{
Reid Spencera773bd52006-08-04 18:18:08 +000013455return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013456 ;
13457 return 0;
13458}
13459_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013460for ac_lib in '' dl; do
13461 if test -z "$ac_lib"; then
13462 ac_res="none required"
13463 else
13464 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013466 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013467 rm -f conftest.$ac_objext conftest$ac_exeext
13468if { (ac_try="$ac_link"
13469case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472esac
13473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_link") 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013501 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013502else
13503 echo "$as_me: failed program was:" >&5
13504sed 's/^/| /' conftest.$ac_ext >&5
13505
13506
John Criswell7a73b802003-06-30 21:59:07 +000013507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013508
Bill Wendlingebcceee2009-04-18 11:20:33 +000013509rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013510 conftest$ac_exeext
13511 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013512 break
John Criswell7a73b802003-06-30 21:59:07 +000013513fi
Reid Spencera773bd52006-08-04 18:18:08 +000013514done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013515if test "${ac_cv_search_dlopen+set}" = set; then
13516 :
Reid Spencera773bd52006-08-04 18:18:08 +000013517else
13518 ac_cv_search_dlopen=no
13519fi
13520rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013521LIBS=$ac_func_search_save_LIBS
13522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013523{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13524echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013525ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013529cat >>confdefs.h <<\_ACEOF
13530#define HAVE_DLOPEN 1
13531_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013532
13533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013534 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13535echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013536fi
13537
13538
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013539if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013540 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13541echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13542if test "${ac_cv_search_ffi_call+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013544else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013545 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013546cat >conftest.$ac_ext <<_ACEOF
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013551/* end confdefs.h. */
13552
13553/* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13556#ifdef __cplusplus
13557extern "C"
13558#endif
13559char ffi_call ();
13560int
13561main ()
13562{
13563return ffi_call ();
13564 ;
13565 return 0;
13566}
13567_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013568for ac_lib in '' ffi; do
13569 if test -z "$ac_lib"; then
13570 ac_res="none required"
13571 else
13572 ac_res=-l$ac_lib
13573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13574 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013575 rm -f conftest.$ac_objext conftest$ac_exeext
13576if { (ac_try="$ac_link"
13577case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13580esac
13581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_link") 2>conftest.er1
13583 ac_status=$?
13584 grep -v '^ *+' conftest.er1 >conftest.err
13585 rm -f conftest.er1
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13590 { (case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13593esac
13594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595 (eval "$ac_try") 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest$ac_exeext'
13600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603esac
13604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_try") 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013609 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013610else
13611 echo "$as_me: failed program was:" >&5
13612sed 's/^/| /' conftest.$ac_ext >&5
13613
13614
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013616
Bill Wendlingebcceee2009-04-18 11:20:33 +000013617rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013618 conftest$ac_exeext
13619 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013620 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013621fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013622done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013623if test "${ac_cv_search_ffi_call+set}" = set; then
13624 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013625else
13626 ac_cv_search_ffi_call=no
13627fi
13628rm conftest.$ac_ext
13629LIBS=$ac_func_search_save_LIBS
13630fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013631{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13632echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013633ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013634if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013637cat >>confdefs.h <<\_ACEOF
13638#define HAVE_FFI_CALL 1
13639_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013640
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013641else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013642 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13643echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13644 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013645fi
13646
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013647fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013649{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13650echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13651if test "${ac_cv_search_mallinfo+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013653else
13654 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013655cat >conftest.$ac_ext <<_ACEOF
13656/* confdefs.h. */
13657_ACEOF
13658cat confdefs.h >>conftest.$ac_ext
13659cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013660/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013661
Reid Spencera773bd52006-08-04 18:18:08 +000013662/* Override any GCC internal prototype to avoid an error.
13663 Use char because int might match the return type of a GCC
13664 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013665#ifdef __cplusplus
13666extern "C"
13667#endif
John Criswell7a73b802003-06-30 21:59:07 +000013668char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013669int
13670main ()
13671{
Reid Spencera773bd52006-08-04 18:18:08 +000013672return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013673 ;
13674 return 0;
13675}
13676_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013677for ac_lib in '' malloc; do
13678 if test -z "$ac_lib"; then
13679 ac_res="none required"
13680 else
13681 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013683 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013684 rm -f conftest.$ac_objext conftest$ac_exeext
13685if { (ac_try="$ac_link"
13686case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13689esac
13690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702esac
13703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013718 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013719else
13720 echo "$as_me: failed program was:" >&5
13721sed 's/^/| /' conftest.$ac_ext >&5
13722
13723
John Criswell7a73b802003-06-30 21:59:07 +000013724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013725
Bill Wendlingebcceee2009-04-18 11:20:33 +000013726rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013727 conftest$ac_exeext
13728 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013729 break
John Criswell7a73b802003-06-30 21:59:07 +000013730fi
Reid Spencera773bd52006-08-04 18:18:08 +000013731done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013732if test "${ac_cv_search_mallinfo+set}" = set; then
13733 :
Reid Spencera773bd52006-08-04 18:18:08 +000013734else
13735 ac_cv_search_mallinfo=no
13736fi
13737rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013738LIBS=$ac_func_search_save_LIBS
13739fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013740{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13741echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013742ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013743if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013746cat >>confdefs.h <<\_ACEOF
13747#define HAVE_MALLINFO 1
13748_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013749
13750fi
13751
13752
Reid Spencer0a262ba2005-08-24 10:07:20 +000013753if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754
13755{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13756echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13757if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013759else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013760 ac_check_lib_save_LIBS=$LIBS
13761LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013762cat >conftest.$ac_ext <<_ACEOF
13763/* confdefs.h. */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013767/* end confdefs.h. */
13768
Reid Spencera773bd52006-08-04 18:18:08 +000013769/* Override any GCC internal prototype to avoid an error.
13770 Use char because int might match the return type of a GCC
13771 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013772#ifdef __cplusplus
13773extern "C"
13774#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013775char pthread_mutex_init ();
13776int
13777main ()
13778{
Reid Spencera773bd52006-08-04 18:18:08 +000013779return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013780 ;
13781 return 0;
13782}
13783_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013784rm -f conftest.$ac_objext conftest$ac_exeext
13785if { (ac_try="$ac_link"
13786case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13789esac
13790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_link") 2>conftest.er1
13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802esac
13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest$ac_exeext'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812esac
13813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013818 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013825
Bill Wendlingebcceee2009-04-18 11:20:33 +000013826rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013827 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013828LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13831echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13832if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013833 cat >>confdefs.h <<_ACEOF
13834#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013835_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013836
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013837 LIBS="-lpthread $LIBS"
13838
Reid Spencer22177fe2005-07-12 15:24:20 +000013839fi
13840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013841 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13842echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13843if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013845else
13846 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013847cat >conftest.$ac_ext <<_ACEOF
13848/* confdefs.h. */
13849_ACEOF
13850cat confdefs.h >>conftest.$ac_ext
13851cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013852/* end confdefs.h. */
13853
Reid Spencera773bd52006-08-04 18:18:08 +000013854/* Override any GCC internal prototype to avoid an error.
13855 Use char because int might match the return type of a GCC
13856 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013857#ifdef __cplusplus
13858extern "C"
13859#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013860char pthread_mutex_lock ();
13861int
13862main ()
13863{
Reid Spencera773bd52006-08-04 18:18:08 +000013864return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013865 ;
13866 return 0;
13867}
13868_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013869for ac_lib in '' pthread; do
13870 if test -z "$ac_lib"; then
13871 ac_res="none required"
13872 else
13873 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013875 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013876 rm -f conftest.$ac_objext conftest$ac_exeext
13877if { (ac_try="$ac_link"
13878case "(($ac_try" in
13879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880 *) ac_try_echo=$ac_try;;
13881esac
13882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883 (eval "$ac_link") 2>conftest.er1
13884 ac_status=$?
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894esac
13895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; } &&
13900 { ac_try='test -s conftest$ac_exeext'
13901 { (case "(($ac_try" in
13902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903 *) ac_try_echo=$ac_try;;
13904esac
13905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906 (eval "$ac_try") 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013910 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013911else
13912 echo "$as_me: failed program was:" >&5
13913sed 's/^/| /' conftest.$ac_ext >&5
13914
13915
Brian Gaeke5f268f72003-12-05 19:29:01 +000013916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013917
Bill Wendlingebcceee2009-04-18 11:20:33 +000013918rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013919 conftest$ac_exeext
13920 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013921 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013922fi
Reid Spencera773bd52006-08-04 18:18:08 +000013923done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13925 :
Reid Spencera773bd52006-08-04 18:18:08 +000013926else
13927 ac_cv_search_pthread_mutex_lock=no
13928fi
13929rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013930LIBS=$ac_func_search_save_LIBS
13931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013932{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13933echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013934ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013935if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013938cat >>confdefs.h <<\_ACEOF
13939#define HAVE_PTHREAD_MUTEX_LOCK 1
13940_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013941
13942fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013944 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13945echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13946if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013948else
13949 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013950cat >conftest.$ac_ext <<_ACEOF
13951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013955/* end confdefs.h. */
13956
13957/* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
13960#ifdef __cplusplus
13961extern "C"
13962#endif
13963char pthread_rwlock_init ();
13964int
13965main ()
13966{
13967return pthread_rwlock_init ();
13968 ;
13969 return 0;
13970}
13971_ACEOF
13972for ac_lib in '' pthread; do
13973 if test -z "$ac_lib"; then
13974 ac_res="none required"
13975 else
13976 ac_res=-l$ac_lib
13977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13978 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013979 rm -f conftest.$ac_objext conftest$ac_exeext
13980if { (ac_try="$ac_link"
13981case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984esac
13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_link") 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994 { (case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13997esac
13998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_try") 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014013 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014014else
14015 echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
14018
Owen Andersonde8aed22009-06-16 18:20:20 +000014019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020
Owen Andersonde8aed22009-06-16 18:20:20 +000014021rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014022 conftest$ac_exeext
14023 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014024 break
14025fi
14026done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14028 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014029else
14030 ac_cv_search_pthread_rwlock_init=no
14031fi
14032rm conftest.$ac_ext
14033LIBS=$ac_func_search_save_LIBS
14034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014035{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14036echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014037ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014038if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041cat >>confdefs.h <<\_ACEOF
14042#define HAVE_PTHREAD_RWLOCK_INIT 1
14043_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014044
14045fi
14046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14048echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14049if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014051else
14052 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014053cat >conftest.$ac_ext <<_ACEOF
14054/* confdefs.h. */
14055_ACEOF
14056cat confdefs.h >>conftest.$ac_ext
14057cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014058/* end confdefs.h. */
14059
14060/* Override any GCC internal prototype to avoid an error.
14061 Use char because int might match the return type of a GCC
14062 builtin and then its argument prototype would still apply. */
14063#ifdef __cplusplus
14064extern "C"
14065#endif
14066char pthread_getspecific ();
14067int
14068main ()
14069{
14070return pthread_getspecific ();
14071 ;
14072 return 0;
14073}
14074_ACEOF
14075for ac_lib in '' pthread; do
14076 if test -z "$ac_lib"; then
14077 ac_res="none required"
14078 else
14079 ac_res=-l$ac_lib
14080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14081 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014082 rm -f conftest.$ac_objext conftest$ac_exeext
14083if { (ac_try="$ac_link"
14084case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087esac
14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_link") 2>conftest.er1
14090 ac_status=$?
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14097 { (case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14100esac
14101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_try") 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest$ac_exeext'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014116 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117else
14118 echo "$as_me: failed program was:" >&5
14119sed 's/^/| /' conftest.$ac_ext >&5
14120
14121
Owen Anderson27fcfe12009-06-25 23:10:26 +000014122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014123
Owen Anderson27fcfe12009-06-25 23:10:26 +000014124rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014125 conftest$ac_exeext
14126 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014127 break
14128fi
14129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14131 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014132else
14133 ac_cv_search_pthread_getspecific=no
14134fi
14135rm conftest.$ac_ext
14136LIBS=$ac_func_search_save_LIBS
14137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014138{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14139echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014140ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144cat >>confdefs.h <<\_ACEOF
14145#define HAVE_PTHREAD_GETSPECIFIC 1
14146_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014147
14148fi
14149
Reid Spencer0a262ba2005-08-24 10:07:20 +000014150fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014151
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014152
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014153# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014154if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014155 withval=$with_udis86;
14156 USE_UDIS86=1
14157
14158 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014159 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014160 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14161 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162
14163{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14164echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14165if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014167else
14168 ac_check_lib_save_LIBS=$LIBS
14169LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014170cat >conftest.$ac_ext <<_ACEOF
14171/* confdefs.h. */
14172_ACEOF
14173cat confdefs.h >>conftest.$ac_ext
14174cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014175/* end confdefs.h. */
14176
14177/* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180#ifdef __cplusplus
14181extern "C"
14182#endif
14183char ud_init ();
14184int
14185main ()
14186{
14187return ud_init ();
14188 ;
14189 return 0;
14190}
14191_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014192rm -f conftest.$ac_objext conftest$ac_exeext
14193if { (ac_try="$ac_link"
14194case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210esac
14211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014226 ac_cv_lib_udis86_ud_init=yes
14227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014228 echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233
Bill Wendlingebcceee2009-04-18 11:20:33 +000014234rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014236LIBS=$ac_check_lib_save_LIBS
14237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14239echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14240if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014241 cat >>confdefs.h <<_ACEOF
14242#define HAVE_LIBUDIS86 1
14243_ACEOF
14244
14245 LIBS="-ludis86 $LIBS"
14246
14247else
14248
14249 echo "Error! You need to have libudis86 around."
14250 exit -1
14251
14252fi
14253
14254
14255else
14256 USE_UDIS86=0
14257
14258fi
14259
14260
14261cat >>confdefs.h <<_ACEOF
14262#define USE_UDIS86 $USE_UDIS86
14263_ACEOF
14264
14265
14266
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014267# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014268if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014269 withval=$with_oprofile;
14270 USE_OPROFILE=1
14271
14272 case "$withval" in
14273 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014274 no) llvm_cv_oppath=
14275 USE_OPROFILE=0
14276 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014277 *) llvm_cv_oppath="${withval}/lib/oprofile"
14278 CPPFLAGS="-I${withval}/include";;
14279 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014280 if test -n "$llvm_cv_oppath" ; then
14281 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014282 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14283echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14284if test "${ac_cv_search_bfd_init+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014286else
14287 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014288cat >conftest.$ac_ext <<_ACEOF
14289/* confdefs.h. */
14290_ACEOF
14291cat confdefs.h >>conftest.$ac_ext
14292cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014293/* end confdefs.h. */
14294
14295/* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14298#ifdef __cplusplus
14299extern "C"
14300#endif
14301char bfd_init ();
14302int
14303main ()
14304{
14305return bfd_init ();
14306 ;
14307 return 0;
14308}
14309_ACEOF
14310for ac_lib in '' bfd; do
14311 if test -z "$ac_lib"; then
14312 ac_res="none required"
14313 else
14314 ac_res=-l$ac_lib
14315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14316 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014317 rm -f conftest.$ac_objext conftest$ac_exeext
14318if { (ac_try="$ac_link"
14319case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322esac
14323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335esac
14336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; } &&
14341 { ac_try='test -s conftest$ac_exeext'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345esac
14346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014351 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352else
14353 echo "$as_me: failed program was:" >&5
14354sed 's/^/| /' conftest.$ac_ext >&5
14355
14356
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014358
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014359rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014360 conftest$ac_exeext
14361 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014362 break
14363fi
14364done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365if test "${ac_cv_search_bfd_init+set}" = set; then
14366 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014367else
14368 ac_cv_search_bfd_init=no
14369fi
14370rm conftest.$ac_ext
14371LIBS=$ac_func_search_save_LIBS
14372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014373{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14374echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014375ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014376if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14378
14379fi
14380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014381 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14382echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14383if test "${ac_cv_search_op_open_agent+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014385else
14386 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014387cat >conftest.$ac_ext <<_ACEOF
14388/* confdefs.h. */
14389_ACEOF
14390cat confdefs.h >>conftest.$ac_ext
14391cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014392/* end confdefs.h. */
14393
14394/* Override any GCC internal prototype to avoid an error.
14395 Use char because int might match the return type of a GCC
14396 builtin and then its argument prototype would still apply. */
14397#ifdef __cplusplus
14398extern "C"
14399#endif
14400char op_open_agent ();
14401int
14402main ()
14403{
14404return op_open_agent ();
14405 ;
14406 return 0;
14407}
14408_ACEOF
14409for ac_lib in '' opagent; do
14410 if test -z "$ac_lib"; then
14411 ac_res="none required"
14412 else
14413 ac_res=-l$ac_lib
14414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14415 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014416 rm -f conftest.$ac_objext conftest$ac_exeext
14417if { (ac_try="$ac_link"
14418case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14421esac
14422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14434esac
14435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; } &&
14440 { ac_try='test -s conftest$ac_exeext'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444esac
14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014450 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014451else
14452 echo "$as_me: failed program was:" >&5
14453sed 's/^/| /' conftest.$ac_ext >&5
14454
14455
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014457
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014458rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014459 conftest$ac_exeext
14460 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014461 break
14462fi
14463done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464if test "${ac_cv_search_op_open_agent+set}" = set; then
14465 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014466else
14467 ac_cv_search_op_open_agent=no
14468fi
14469rm conftest.$ac_ext
14470LIBS=$ac_func_search_save_LIBS
14471fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014472{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14473echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014474ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014475if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14477
14478else
14479
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014480 echo "Error! You need to have libopagent around."
14481 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014482
14483fi
14484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485 if test "${ac_cv_header_opagent_h+set}" = set; then
14486 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14487echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14488if test "${ac_cv_header_opagent_h+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490fi
14491{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14492echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14493else
14494 # Is the header compilable?
14495{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14496echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14497cat >conftest.$ac_ext <<_ACEOF
14498/* confdefs.h. */
14499_ACEOF
14500cat confdefs.h >>conftest.$ac_ext
14501cat >>conftest.$ac_ext <<_ACEOF
14502/* end confdefs.h. */
14503$ac_includes_default
14504#include <opagent.h>
14505_ACEOF
14506rm -f conftest.$ac_objext
14507if { (ac_try="$ac_compile"
14508case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14511esac
14512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_compile") 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524esac
14525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_try") 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest.$ac_objext'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534esac
14535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_header_compiler=yes
14541else
14542 echo "$as_me: failed program was:" >&5
14543sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014545 ac_header_compiler=no
14546fi
14547
14548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14550echo "${ECHO_T}$ac_header_compiler" >&6; }
14551
14552# Is the header present?
14553{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14554echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14555cat >conftest.$ac_ext <<_ACEOF
14556/* confdefs.h. */
14557_ACEOF
14558cat confdefs.h >>conftest.$ac_ext
14559cat >>conftest.$ac_ext <<_ACEOF
14560/* end confdefs.h. */
14561#include <opagent.h>
14562_ACEOF
14563if { (ac_try="$ac_cpp conftest.$ac_ext"
14564case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567esac
14568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } >/dev/null; then
14576 if test -s conftest.err; then
14577 ac_cpp_err=$ac_c_preproc_warn_flag
14578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14579 else
14580 ac_cpp_err=
14581 fi
14582else
14583 ac_cpp_err=yes
14584fi
14585if test -z "$ac_cpp_err"; then
14586 ac_header_preproc=yes
14587else
14588 echo "$as_me: failed program was:" >&5
14589sed 's/^/| /' conftest.$ac_ext >&5
14590
14591 ac_header_preproc=no
14592fi
14593
14594rm -f conftest.err conftest.$ac_ext
14595{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14596echo "${ECHO_T}$ac_header_preproc" >&6; }
14597
14598# So? What about this header?
14599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14600 yes:no: )
14601 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14602echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14604echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14605 ac_header_preproc=yes
14606 ;;
14607 no:yes:* )
14608 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14609echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14611echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14613echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14615echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14616 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14617echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14619echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14620 ( cat <<\_ASBOX
14621## ----------------------------------- ##
14622## Report this to llvmbugs@cs.uiuc.edu ##
14623## ----------------------------------- ##
14624_ASBOX
14625 ) | sed "s/^/$as_me: WARNING: /" >&2
14626 ;;
14627esac
14628{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14629echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14630if test "${ac_cv_header_opagent_h+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633 ac_cv_header_opagent_h=$ac_header_preproc
14634fi
14635{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14636echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14637
14638fi
14639if test $ac_cv_header_opagent_h = yes; then
14640 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014641else
14642
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014643 echo "Error! You need to have opagent.h around."
14644 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014645
14646fi
14647
14648
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014649 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014650
14651else
14652
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014653 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014654
14655
14656fi
14657
14658
14659cat >>confdefs.h <<_ACEOF
14660#define USE_OPROFILE $USE_OPROFILE
14661_ACEOF
14662
14663
14664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014665
14666
14667
14668
14669
Reid Spencer59473af2004-12-25 07:31:29 +000014670ac_header_dirent=no
14671for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014672 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14673{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14674echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014678 cat >conftest.$ac_ext <<_ACEOF
14679/* confdefs.h. */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014683/* end confdefs.h. */
14684#include <sys/types.h>
14685#include <$ac_hdr>
14686
14687int
14688main ()
14689{
14690if ((DIR *) 0)
14691return 0;
14692 ;
14693 return 0;
14694}
14695_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014696rm -f conftest.$ac_objext
14697if { (ac_try="$ac_compile"
14698case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701esac
14702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_compile") 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14711 { (case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14714esac
14715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_try") 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (case "(($ac_try" in
14722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 *) ac_try_echo=$ac_try;;
14724esac
14725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726 (eval "$ac_try") 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014730 eval "$as_ac_Header=yes"
14731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014732 echo "$as_me: failed program was:" >&5
14733sed 's/^/| /' conftest.$ac_ext >&5
14734
14735 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014737
Reid Spencera773bd52006-08-04 18:18:08 +000014738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014739fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014740ac_res=`eval echo '${'$as_ac_Header'}'`
14741 { echo "$as_me:$LINENO: result: $ac_res" >&5
14742echo "${ECHO_T}$ac_res" >&6; }
14743if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014744 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014745#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014746_ACEOF
14747
14748ac_header_dirent=$ac_hdr; break
14749fi
14750
14751done
14752# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14753if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014754 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14755echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14756if test "${ac_cv_search_opendir+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014758else
14759 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014760cat >conftest.$ac_ext <<_ACEOF
14761/* confdefs.h. */
14762_ACEOF
14763cat confdefs.h >>conftest.$ac_ext
14764cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014765/* end confdefs.h. */
14766
Reid Spencera773bd52006-08-04 18:18:08 +000014767/* Override any GCC internal prototype to avoid an error.
14768 Use char because int might match the return type of a GCC
14769 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014770#ifdef __cplusplus
14771extern "C"
14772#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014773char opendir ();
14774int
14775main ()
14776{
Reid Spencera773bd52006-08-04 18:18:08 +000014777return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014778 ;
14779 return 0;
14780}
14781_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014782for ac_lib in '' dir; do
14783 if test -z "$ac_lib"; then
14784 ac_res="none required"
14785 else
14786 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014788 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014789 rm -f conftest.$ac_objext conftest$ac_exeext
14790if { (ac_try="$ac_link"
14791case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_link") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14804 { (case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807esac
14808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_try") 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
14814 { (case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817esac
14818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_try") 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014823 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014824else
14825 echo "$as_me: failed program was:" >&5
14826sed 's/^/| /' conftest.$ac_ext >&5
14827
14828
Reid Spencer59473af2004-12-25 07:31:29 +000014829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014830
Bill Wendlingebcceee2009-04-18 11:20:33 +000014831rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014832 conftest$ac_exeext
14833 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014834 break
Reid Spencer59473af2004-12-25 07:31:29 +000014835fi
Reid Spencera773bd52006-08-04 18:18:08 +000014836done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014837if test "${ac_cv_search_opendir+set}" = set; then
14838 :
Reid Spencera773bd52006-08-04 18:18:08 +000014839else
14840 ac_cv_search_opendir=no
14841fi
14842rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014843LIBS=$ac_func_search_save_LIBS
14844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014845{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14846echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014847ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014848if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014850
14851fi
14852
14853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014854 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14855echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14856if test "${ac_cv_search_opendir+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014858else
14859 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014860cat >conftest.$ac_ext <<_ACEOF
14861/* confdefs.h. */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014865/* end confdefs.h. */
14866
Reid Spencera773bd52006-08-04 18:18:08 +000014867/* Override any GCC internal prototype to avoid an error.
14868 Use char because int might match the return type of a GCC
14869 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014870#ifdef __cplusplus
14871extern "C"
14872#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014873char opendir ();
14874int
14875main ()
14876{
Reid Spencera773bd52006-08-04 18:18:08 +000014877return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014878 ;
14879 return 0;
14880}
14881_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014882for ac_lib in '' x; do
14883 if test -z "$ac_lib"; then
14884 ac_res="none required"
14885 else
14886 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014888 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014889 rm -f conftest.$ac_objext conftest$ac_exeext
14890if { (ac_try="$ac_link"
14891case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14894esac
14895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_link") 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904 { (case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907esac
14908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_try") 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; } &&
14913 { ac_try='test -s conftest$ac_exeext'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917esac
14918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014923 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014924else
14925 echo "$as_me: failed program was:" >&5
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
14928
Reid Spencer59473af2004-12-25 07:31:29 +000014929fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014930
Bill Wendlingebcceee2009-04-18 11:20:33 +000014931rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014932 conftest$ac_exeext
14933 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014934 break
Reid Spencer59473af2004-12-25 07:31:29 +000014935fi
Reid Spencera773bd52006-08-04 18:18:08 +000014936done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014937if test "${ac_cv_search_opendir+set}" = set; then
14938 :
Reid Spencera773bd52006-08-04 18:18:08 +000014939else
14940 ac_cv_search_opendir=no
14941fi
14942rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014943LIBS=$ac_func_search_save_LIBS
14944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014945{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14946echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014947ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014948if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014950
14951fi
14952
14953fi
14954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014955{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14956echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14957if test "${ac_cv_header_mmap_anon+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014959else
14960 ac_ext=c
14961ac_cpp='$CPP $CPPFLAGS'
14962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14964ac_compiler_gnu=$ac_cv_c_compiler_gnu
14965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014966 cat >conftest.$ac_ext <<_ACEOF
14967/* confdefs.h. */
14968_ACEOF
14969cat confdefs.h >>conftest.$ac_ext
14970cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014971/* end confdefs.h. */
14972#include <sys/mman.h>
14973#include <unistd.h>
14974#include <fcntl.h>
14975int
14976main ()
14977{
14978mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14979 ;
14980 return 0;
14981}
14982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014983rm -f conftest.$ac_objext
14984if { (ac_try="$ac_compile"
14985case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988esac
14989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001esac
15002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015017 ac_cv_header_mmap_anon=yes
15018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015024
Reid Spencera773bd52006-08-04 18:18:08 +000015025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015026 ac_ext=c
15027ac_cpp='$CPP $CPPFLAGS'
15028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15030ac_compiler_gnu=$ac_cv_c_compiler_gnu
15031
15032
15033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015034{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15035echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015036if test "$ac_cv_header_mmap_anon" = yes; then
15037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015038cat >>confdefs.h <<\_ACEOF
15039#define HAVE_MMAP_ANONYMOUS 1
15040_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015041
15042fi
15043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015044{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15045echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15046if test "${ac_cv_header_stat_broken+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049 cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015054/* end confdefs.h. */
15055#include <sys/types.h>
15056#include <sys/stat.h>
15057
Reid Spencera773bd52006-08-04 18:18:08 +000015058#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015059# if S_ISBLK (S_IFDIR)
15060You lose.
15061# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015062#endif
15063
Reid Spencera773bd52006-08-04 18:18:08 +000015064#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015065# if S_ISBLK (S_IFCHR)
15066You lose.
15067# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015068#endif
15069
Reid Spencera773bd52006-08-04 18:18:08 +000015070#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015071# if S_ISLNK (S_IFREG)
15072You lose.
15073# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015074#endif
15075
Reid Spencera773bd52006-08-04 18:18:08 +000015076#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015077# if S_ISSOCK (S_IFREG)
15078You lose.
15079# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015080#endif
15081
15082_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15084 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015085 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015086else
15087 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015088fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015089rm -f conftest*
15090
Reid Spencer59473af2004-12-25 07:31:29 +000015091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015092{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15093echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015094if test $ac_cv_header_stat_broken = yes; then
15095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015096cat >>confdefs.h <<\_ACEOF
15097#define STAT_MACROS_BROKEN 1
15098_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015099
15100fi
15101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015102{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15103echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15104if test "${ac_cv_header_stdc+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015107 cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015112/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015113#include <stdlib.h>
15114#include <stdarg.h>
15115#include <string.h>
15116#include <float.h>
15117
John Criswell0c38eaf2003-09-10 15:17:25 +000015118int
15119main ()
15120{
15121
15122 ;
15123 return 0;
15124}
John Criswell7a73b802003-06-30 21:59:07 +000015125_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015126rm -f conftest.$ac_objext
15127if { (ac_try="$ac_compile"
15128case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131esac
15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_compile") 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141 { (case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15144esac
15145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_try") 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154esac
15155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_try") 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015160 ac_cv_header_stdc=yes
15161else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015162 echo "$as_me: failed program was:" >&5
15163sed 's/^/| /' conftest.$ac_ext >&5
15164
15165 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015167
Reid Spencera773bd52006-08-04 18:18:08 +000015168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015169
15170if test $ac_cv_header_stdc = yes; then
15171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015172 cat >conftest.$ac_ext <<_ACEOF
15173/* confdefs.h. */
15174_ACEOF
15175cat confdefs.h >>conftest.$ac_ext
15176cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015177/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015178#include <string.h>
15179
15180_ACEOF
15181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015182 $EGREP "memchr" >/dev/null 2>&1; then
15183 :
John Criswell7a73b802003-06-30 21:59:07 +000015184else
15185 ac_cv_header_stdc=no
15186fi
15187rm -f conftest*
15188
15189fi
15190
15191if test $ac_cv_header_stdc = yes; then
15192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015193 cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015199#include <stdlib.h>
15200
15201_ACEOF
15202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015203 $EGREP "free" >/dev/null 2>&1; then
15204 :
John Criswell7a73b802003-06-30 21:59:07 +000015205else
15206 ac_cv_header_stdc=no
15207fi
15208rm -f conftest*
15209
15210fi
15211
15212if test $ac_cv_header_stdc = yes; then
15213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015214 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015215 :
15216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015217 cat >conftest.$ac_ext <<_ACEOF
15218/* confdefs.h. */
15219_ACEOF
15220cat confdefs.h >>conftest.$ac_ext
15221cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015222/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015223#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015224#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015225#if ((' ' & 0x0FF) == 0x020)
15226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15228#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015229# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015230 (('a' <= (c) && (c) <= 'i') \
15231 || ('j' <= (c) && (c) <= 'r') \
15232 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15234#endif
15235
15236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15237int
15238main ()
15239{
15240 int i;
15241 for (i = 0; i < 256; i++)
15242 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015243 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015244 return 2;
15245 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015246}
15247_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248rm -f conftest$ac_exeext
15249if { (ac_try="$ac_link"
15250case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253esac
15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_link") 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15259 { (case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262esac
15263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_try") 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 :
John Criswell7a73b802003-06-30 21:59:07 +000015269else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015270 echo "$as_me: program exited with status $ac_status" >&5
15271echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
15274( exit $ac_status )
15275ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015277rm -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 +000015278fi
15279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015280
John Criswell7a73b802003-06-30 21:59:07 +000015281fi
15282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015283{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15284echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015285if test $ac_cv_header_stdc = yes; then
15286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015287cat >>confdefs.h <<\_ACEOF
15288#define STDC_HEADERS 1
15289_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015290
15291fi
15292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015293{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15294echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15295if test "${ac_cv_header_sys_wait_h+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015298 cat >conftest.$ac_ext <<_ACEOF
15299/* confdefs.h. */
15300_ACEOF
15301cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015304#include <sys/types.h>
15305#include <sys/wait.h>
15306#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015307# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015308#endif
15309#ifndef WIFEXITED
15310# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15311#endif
15312
John Criswell7a73b802003-06-30 21:59:07 +000015313int
15314main ()
15315{
15316 int s;
15317 wait (&s);
15318 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15319 ;
15320 return 0;
15321}
15322_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015323rm -f conftest.$ac_objext
15324if { (ac_try="$ac_compile"
15325case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328esac
15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_compile") 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15341esac
15342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015357 ac_cv_header_sys_wait_h=yes
15358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015359 echo "$as_me: failed program was:" >&5
15360sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015364
Reid Spencera773bd52006-08-04 18:18:08 +000015365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015367{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15368echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015369if test $ac_cv_header_sys_wait_h = yes; then
15370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015371cat >>confdefs.h <<\_ACEOF
15372#define HAVE_SYS_WAIT_H 1
15373_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015374
15375fi
15376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015377{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15378echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15379if test "${ac_cv_header_time+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015382 cat >conftest.$ac_ext <<_ACEOF
15383/* confdefs.h. */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015387/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015388#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015389#include <sys/time.h>
15390#include <time.h>
15391
15392int
15393main ()
15394{
15395if ((struct tm *) 0)
15396return 0;
15397 ;
15398 return 0;
15399}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015400_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015401rm -f conftest.$ac_objext
15402if { (ac_try="$ac_compile"
15403case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406esac
15407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_compile") 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419esac
15420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429esac
15430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015435 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015437 echo "$as_me: failed program was:" >&5
15438sed 's/^/| /' conftest.$ac_ext >&5
15439
15440 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015442
Reid Spencera773bd52006-08-04 18:18:08 +000015443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015445{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15446echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015447if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015449cat >>confdefs.h <<\_ACEOF
15450#define TIME_WITH_SYS_TIME 1
15451_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015452
15453fi
15454
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015456
15457
15458
15459
15460
15461
Reid Spencer59473af2004-12-25 07:31:29 +000015462for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015463do
15464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15470fi
15471ac_res=`eval echo '${'$as_ac_Header'}'`
15472 { echo "$as_me:$LINENO: result: $ac_res" >&5
15473echo "${ECHO_T}$ac_res" >&6; }
15474else
15475 # Is the header compilable?
15476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15478cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484$ac_includes_default
15485#include <$ac_header>
15486_ACEOF
15487rm -f conftest.$ac_objext
15488if { (ac_try="$ac_compile"
15489case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15492esac
15493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_compile") 2>conftest.er1
15495 ac_status=$?
15496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15502 { (case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15505esac
15506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_try") 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest.$ac_objext'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515esac
15516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 ac_header_compiler=yes
15522else
15523 echo "$as_me: failed program was:" >&5
15524sed 's/^/| /' conftest.$ac_ext >&5
15525
15526 ac_header_compiler=no
15527fi
15528
15529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531echo "${ECHO_T}$ac_header_compiler" >&6; }
15532
15533# Is the header present?
15534{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h. */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h. */
15542#include <$ac_header>
15543_ACEOF
15544if { (ac_try="$ac_cpp conftest.$ac_ext"
15545case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548esac
15549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } >/dev/null; then
15557 if test -s conftest.err; then
15558 ac_cpp_err=$ac_c_preproc_warn_flag
15559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15560 else
15561 ac_cpp_err=
15562 fi
15563else
15564 ac_cpp_err=yes
15565fi
15566if test -z "$ac_cpp_err"; then
15567 ac_header_preproc=yes
15568else
15569 echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572 ac_header_preproc=no
15573fi
15574
15575rm -f conftest.err conftest.$ac_ext
15576{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15577echo "${ECHO_T}$ac_header_preproc" >&6; }
15578
15579# So? What about this header?
15580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15581 yes:no: )
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15586 ac_header_preproc=yes
15587 ;;
15588 no:yes:* )
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15601 ( cat <<\_ASBOX
15602## ----------------------------------- ##
15603## Report this to llvmbugs@cs.uiuc.edu ##
15604## ----------------------------------- ##
15605_ASBOX
15606 ) | sed "s/^/$as_me: WARNING: /" >&2
15607 ;;
15608esac
15609{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15613else
15614 eval "$as_ac_Header=\$ac_header_preproc"
15615fi
15616ac_res=`eval echo '${'$as_ac_Header'}'`
15617 { echo "$as_me:$LINENO: result: $ac_res" >&5
15618echo "${ECHO_T}$ac_res" >&6; }
15619
15620fi
15621if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015622 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015624_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015625
15626fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015627
Reid Spencer59473af2004-12-25 07:31:29 +000015628done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015630
15631
15632
15633
15634
15635
Douglas Gregor071d73d2009-05-18 17:21:34 +000015636for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015637do
15638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15644fi
15645ac_res=`eval echo '${'$as_ac_Header'}'`
15646 { echo "$as_me:$LINENO: result: $ac_res" >&5
15647echo "${ECHO_T}$ac_res" >&6; }
15648else
15649 # Is the header compilable?
15650{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15652cat >conftest.$ac_ext <<_ACEOF
15653/* confdefs.h. */
15654_ACEOF
15655cat confdefs.h >>conftest.$ac_ext
15656cat >>conftest.$ac_ext <<_ACEOF
15657/* end confdefs.h. */
15658$ac_includes_default
15659#include <$ac_header>
15660_ACEOF
15661rm -f conftest.$ac_objext
15662if { (ac_try="$ac_compile"
15663case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666esac
15667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_compile") 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15679esac
15680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
15686 { (case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15689esac
15690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_try") 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_header_compiler=yes
15696else
15697 echo "$as_me: failed program was:" >&5
15698sed 's/^/| /' conftest.$ac_ext >&5
15699
15700 ac_header_compiler=no
15701fi
15702
15703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15705echo "${ECHO_T}$ac_header_compiler" >&6; }
15706
15707# Is the header present?
15708{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15710cat >conftest.$ac_ext <<_ACEOF
15711/* confdefs.h. */
15712_ACEOF
15713cat confdefs.h >>conftest.$ac_ext
15714cat >>conftest.$ac_ext <<_ACEOF
15715/* end confdefs.h. */
15716#include <$ac_header>
15717_ACEOF
15718if { (ac_try="$ac_cpp conftest.$ac_ext"
15719case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722esac
15723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } >/dev/null; then
15731 if test -s conftest.err; then
15732 ac_cpp_err=$ac_c_preproc_warn_flag
15733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15734 else
15735 ac_cpp_err=
15736 fi
15737else
15738 ac_cpp_err=yes
15739fi
15740if test -z "$ac_cpp_err"; then
15741 ac_header_preproc=yes
15742else
15743 echo "$as_me: failed program was:" >&5
15744sed 's/^/| /' conftest.$ac_ext >&5
15745
15746 ac_header_preproc=no
15747fi
15748
15749rm -f conftest.err conftest.$ac_ext
15750{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15751echo "${ECHO_T}$ac_header_preproc" >&6; }
15752
15753# So? What about this header?
15754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15755 yes:no: )
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15757echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15759echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15760 ac_header_preproc=yes
15761 ;;
15762 no:yes:* )
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15764echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15766echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15768echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15770echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15774echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15775 ( cat <<\_ASBOX
15776## ----------------------------------- ##
15777## Report this to llvmbugs@cs.uiuc.edu ##
15778## ----------------------------------- ##
15779_ASBOX
15780 ) | sed "s/^/$as_me: WARNING: /" >&2
15781 ;;
15782esac
15783{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787else
15788 eval "$as_ac_Header=\$ac_header_preproc"
15789fi
15790ac_res=`eval echo '${'$as_ac_Header'}'`
15791 { echo "$as_me:$LINENO: result: $ac_res" >&5
15792echo "${ECHO_T}$ac_res" >&6; }
15793
15794fi
15795if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015796 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015798_ACEOF
15799
15800fi
15801
15802done
15803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015804
15805
Douglas Gregor071d73d2009-05-18 17:21:34 +000015806for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015807do
15808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15814fi
15815ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result: $ac_res" >&5
15817echo "${ECHO_T}$ac_res" >&6; }
15818else
15819 # Is the header compilable?
15820{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15822cat >conftest.$ac_ext <<_ACEOF
15823/* confdefs.h. */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h. */
15828$ac_includes_default
15829#include <$ac_header>
15830_ACEOF
15831rm -f conftest.$ac_objext
15832if { (ac_try="$ac_compile"
15833case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836esac
15837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_compile") 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849esac
15850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859esac
15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 ac_header_compiler=yes
15866else
15867 echo "$as_me: failed program was:" >&5
15868sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 ac_header_compiler=no
15871fi
15872
15873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15875echo "${ECHO_T}$ac_header_compiler" >&6; }
15876
15877# Is the header present?
15878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15880cat >conftest.$ac_ext <<_ACEOF
15881/* confdefs.h. */
15882_ACEOF
15883cat confdefs.h >>conftest.$ac_ext
15884cat >>conftest.$ac_ext <<_ACEOF
15885/* end confdefs.h. */
15886#include <$ac_header>
15887_ACEOF
15888if { (ac_try="$ac_cpp conftest.$ac_ext"
15889case "(($ac_try" in
15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891 *) ac_try_echo=$ac_try;;
15892esac
15893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } >/dev/null; then
15901 if test -s conftest.err; then
15902 ac_cpp_err=$ac_c_preproc_warn_flag
15903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15904 else
15905 ac_cpp_err=
15906 fi
15907else
15908 ac_cpp_err=yes
15909fi
15910if test -z "$ac_cpp_err"; then
15911 ac_header_preproc=yes
15912else
15913 echo "$as_me: failed program was:" >&5
15914sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_header_preproc=no
15917fi
15918
15919rm -f conftest.err conftest.$ac_ext
15920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15921echo "${ECHO_T}$ac_header_preproc" >&6; }
15922
15923# So? What about this header?
15924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15925 yes:no: )
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15930 ac_header_preproc=yes
15931 ;;
15932 no:yes:* )
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15945 ( cat <<\_ASBOX
15946## ----------------------------------- ##
15947## Report this to llvmbugs@cs.uiuc.edu ##
15948## ----------------------------------- ##
15949_ASBOX
15950 ) | sed "s/^/$as_me: WARNING: /" >&2
15951 ;;
15952esac
15953{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15957else
15958 eval "$as_ac_Header=\$ac_header_preproc"
15959fi
15960ac_res=`eval echo '${'$as_ac_Header'}'`
15961 { echo "$as_me:$LINENO: result: $ac_res" >&5
15962echo "${ECHO_T}$ac_res" >&6; }
15963
15964fi
15965if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015966 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015968_ACEOF
15969
15970fi
15971
15972done
Reid Spencer59473af2004-12-25 07:31:29 +000015973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015974
15975
15976
15977
Reid Spencerbe3e4192007-08-17 05:45:26 +000015978for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015979do
15980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986fi
15987ac_res=`eval echo '${'$as_ac_Header'}'`
15988 { echo "$as_me:$LINENO: result: $ac_res" >&5
15989echo "${ECHO_T}$ac_res" >&6; }
15990else
15991 # Is the header compilable?
15992{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15994cat >conftest.$ac_ext <<_ACEOF
15995/* confdefs.h. */
15996_ACEOF
15997cat confdefs.h >>conftest.$ac_ext
15998cat >>conftest.$ac_ext <<_ACEOF
15999/* end confdefs.h. */
16000$ac_includes_default
16001#include <$ac_header>
16002_ACEOF
16003rm -f conftest.$ac_objext
16004if { (ac_try="$ac_compile"
16005case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16008esac
16009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_compile") 2>conftest.er1
16011 ac_status=$?
16012 grep -v '^ *+' conftest.er1 >conftest.err
16013 rm -f conftest.er1
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16018 { (case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16021esac
16022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_try") 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
16028 { (case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16031esac
16032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_try") 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }; then
16037 ac_header_compiler=yes
16038else
16039 echo "$as_me: failed program was:" >&5
16040sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 ac_header_compiler=no
16043fi
16044
16045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16047echo "${ECHO_T}$ac_header_compiler" >&6; }
16048
16049# Is the header present?
16050{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16052cat >conftest.$ac_ext <<_ACEOF
16053/* confdefs.h. */
16054_ACEOF
16055cat confdefs.h >>conftest.$ac_ext
16056cat >>conftest.$ac_ext <<_ACEOF
16057/* end confdefs.h. */
16058#include <$ac_header>
16059_ACEOF
16060if { (ac_try="$ac_cpp conftest.$ac_ext"
16061case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064esac
16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } >/dev/null; then
16073 if test -s conftest.err; then
16074 ac_cpp_err=$ac_c_preproc_warn_flag
16075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16076 else
16077 ac_cpp_err=
16078 fi
16079else
16080 ac_cpp_err=yes
16081fi
16082if test -z "$ac_cpp_err"; then
16083 ac_header_preproc=yes
16084else
16085 echo "$as_me: failed program was:" >&5
16086sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 ac_header_preproc=no
16089fi
16090
16091rm -f conftest.err conftest.$ac_ext
16092{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16093echo "${ECHO_T}$ac_header_preproc" >&6; }
16094
16095# So? What about this header?
16096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16097 yes:no: )
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16101echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16102 ac_header_preproc=yes
16103 ;;
16104 no:yes:* )
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16106echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16108echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16110echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16112echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16116echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16117 ( cat <<\_ASBOX
16118## ----------------------------------- ##
16119## Report this to llvmbugs@cs.uiuc.edu ##
16120## ----------------------------------- ##
16121_ASBOX
16122 ) | sed "s/^/$as_me: WARNING: /" >&2
16123 ;;
16124esac
16125{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130 eval "$as_ac_Header=\$ac_header_preproc"
16131fi
16132ac_res=`eval echo '${'$as_ac_Header'}'`
16133 { echo "$as_me:$LINENO: result: $ac_res" >&5
16134echo "${ECHO_T}$ac_res" >&6; }
16135
16136fi
16137if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016138 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016140_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016141
16142fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016143
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016144done
16145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016146
16147
16148
16149
Douglas Gregor01746742009-05-11 18:05:52 +000016150for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016151do
16152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158fi
16159ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result: $ac_res" >&5
16161echo "${ECHO_T}$ac_res" >&6; }
16162else
16163 # Is the header compilable?
16164{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16166cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h. */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h. */
16172$ac_includes_default
16173#include <$ac_header>
16174_ACEOF
16175rm -f conftest.$ac_objext
16176if { (ac_try="$ac_compile"
16177case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180esac
16181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
16189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16190 { (case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193esac
16194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_try") 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203esac
16204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_header_compiler=yes
16210else
16211 echo "$as_me: failed program was:" >&5
16212sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ac_header_compiler=no
16215fi
16216
16217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16219echo "${ECHO_T}$ac_header_compiler" >&6; }
16220
16221# Is the header present?
16222{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16224cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230#include <$ac_header>
16231_ACEOF
16232if { (ac_try="$ac_cpp conftest.$ac_ext"
16233case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16239 ac_status=$?
16240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } >/dev/null; then
16245 if test -s conftest.err; then
16246 ac_cpp_err=$ac_c_preproc_warn_flag
16247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16248 else
16249 ac_cpp_err=
16250 fi
16251else
16252 ac_cpp_err=yes
16253fi
16254if test -z "$ac_cpp_err"; then
16255 ac_header_preproc=yes
16256else
16257 echo "$as_me: failed program was:" >&5
16258sed 's/^/| /' conftest.$ac_ext >&5
16259
16260 ac_header_preproc=no
16261fi
16262
16263rm -f conftest.err conftest.$ac_ext
16264{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16265echo "${ECHO_T}$ac_header_preproc" >&6; }
16266
16267# So? What about this header?
16268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16269 yes:no: )
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16271echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16273echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16274 ac_header_preproc=yes
16275 ;;
16276 no:yes:* )
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16280echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16282echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16284echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16288echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16289 ( cat <<\_ASBOX
16290## ----------------------------------- ##
16291## Report this to llvmbugs@cs.uiuc.edu ##
16292## ----------------------------------- ##
16293_ASBOX
16294 ) | sed "s/^/$as_me: WARNING: /" >&2
16295 ;;
16296esac
16297{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301else
16302 eval "$as_ac_Header=\$ac_header_preproc"
16303fi
16304ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306echo "${ECHO_T}$ac_res" >&6; }
16307
16308fi
16309if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016310 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016312_ACEOF
16313
16314fi
16315
16316done
16317
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016318
16319for ac_header in valgrind/valgrind.h
16320do
16321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16327fi
16328ac_res=`eval echo '${'$as_ac_Header'}'`
16329 { echo "$as_me:$LINENO: result: $ac_res" >&5
16330echo "${ECHO_T}$ac_res" >&6; }
16331else
16332 # Is the header compilable?
16333{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16335cat >conftest.$ac_ext <<_ACEOF
16336/* confdefs.h. */
16337_ACEOF
16338cat confdefs.h >>conftest.$ac_ext
16339cat >>conftest.$ac_ext <<_ACEOF
16340/* end confdefs.h. */
16341$ac_includes_default
16342#include <$ac_header>
16343_ACEOF
16344rm -f conftest.$ac_objext
16345if { (ac_try="$ac_compile"
16346case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16349esac
16350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_compile") 2>conftest.er1
16352 ac_status=$?
16353 grep -v '^ *+' conftest.er1 >conftest.err
16354 rm -f conftest.er1
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16359 { (case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_try") 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; } &&
16368 { ac_try='test -s conftest.$ac_objext'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372esac
16373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_header_compiler=yes
16379else
16380 echo "$as_me: failed program was:" >&5
16381sed 's/^/| /' conftest.$ac_ext >&5
16382
16383 ac_header_compiler=no
16384fi
16385
16386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16388echo "${ECHO_T}$ac_header_compiler" >&6; }
16389
16390# Is the header present?
16391{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16393cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h. */
16399#include <$ac_header>
16400_ACEOF
16401if { (ac_try="$ac_cpp conftest.$ac_ext"
16402case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405esac
16406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16408 ac_status=$?
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } >/dev/null; then
16414 if test -s conftest.err; then
16415 ac_cpp_err=$ac_c_preproc_warn_flag
16416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16417 else
16418 ac_cpp_err=
16419 fi
16420else
16421 ac_cpp_err=yes
16422fi
16423if test -z "$ac_cpp_err"; then
16424 ac_header_preproc=yes
16425else
16426 echo "$as_me: failed program was:" >&5
16427sed 's/^/| /' conftest.$ac_ext >&5
16428
16429 ac_header_preproc=no
16430fi
16431
16432rm -f conftest.err conftest.$ac_ext
16433{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16434echo "${ECHO_T}$ac_header_preproc" >&6; }
16435
16436# So? What about this header?
16437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16438 yes:no: )
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16443 ac_header_preproc=yes
16444 ;;
16445 no:yes:* )
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16458 ( cat <<\_ASBOX
16459## ----------------------------------- ##
16460## Report this to llvmbugs@cs.uiuc.edu ##
16461## ----------------------------------- ##
16462_ASBOX
16463 ) | sed "s/^/$as_me: WARNING: /" >&2
16464 ;;
16465esac
16466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16470else
16471 eval "$as_ac_Header=\$ac_header_preproc"
16472fi
16473ac_res=`eval echo '${'$as_ac_Header'}'`
16474 { echo "$as_me:$LINENO: result: $ac_res" >&5
16475echo "${ECHO_T}$ac_res" >&6; }
16476
16477fi
16478if test `eval echo '${'$as_ac_Header'}'` = yes; then
16479 cat >>confdefs.h <<_ACEOF
16480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16481_ACEOF
16482
16483fi
16484
16485done
16486
Reid Spencer0a262ba2005-08-24 10:07:20 +000016487if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016488
16489for ac_header in pthread.h
16490do
16491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497fi
16498ac_res=`eval echo '${'$as_ac_Header'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500echo "${ECHO_T}$ac_res" >&6; }
16501else
16502 # Is the header compilable?
16503{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16505cat >conftest.$ac_ext <<_ACEOF
16506/* confdefs.h. */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h. */
16511$ac_includes_default
16512#include <$ac_header>
16513_ACEOF
16514rm -f conftest.$ac_objext
16515if { (ac_try="$ac_compile"
16516case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519esac
16520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542esac
16543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_header_compiler=yes
16549else
16550 echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553 ac_header_compiler=no
16554fi
16555
16556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16558echo "${ECHO_T}$ac_header_compiler" >&6; }
16559
16560# Is the header present?
16561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16563cat >conftest.$ac_ext <<_ACEOF
16564/* confdefs.h. */
16565_ACEOF
16566cat confdefs.h >>conftest.$ac_ext
16567cat >>conftest.$ac_ext <<_ACEOF
16568/* end confdefs.h. */
16569#include <$ac_header>
16570_ACEOF
16571if { (ac_try="$ac_cpp conftest.$ac_ext"
16572case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575esac
16576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16578 ac_status=$?
16579 grep -v '^ *+' conftest.er1 >conftest.err
16580 rm -f conftest.er1
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } >/dev/null; then
16584 if test -s conftest.err; then
16585 ac_cpp_err=$ac_c_preproc_warn_flag
16586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16587 else
16588 ac_cpp_err=
16589 fi
16590else
16591 ac_cpp_err=yes
16592fi
16593if test -z "$ac_cpp_err"; then
16594 ac_header_preproc=yes
16595else
16596 echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599 ac_header_preproc=no
16600fi
16601
16602rm -f conftest.err conftest.$ac_ext
16603{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16604echo "${ECHO_T}$ac_header_preproc" >&6; }
16605
16606# So? What about this header?
16607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16608 yes:no: )
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16613 ac_header_preproc=yes
16614 ;;
16615 no:yes:* )
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16628 ( cat <<\_ASBOX
16629## ----------------------------------- ##
16630## Report this to llvmbugs@cs.uiuc.edu ##
16631## ----------------------------------- ##
16632_ASBOX
16633 ) | sed "s/^/$as_me: WARNING: /" >&2
16634 ;;
16635esac
16636{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640else
16641 eval "$as_ac_Header=\$ac_header_preproc"
16642fi
16643ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645echo "${ECHO_T}$ac_res" >&6; }
16646
16647fi
16648if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016649 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016651_ACEOF
16652 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016653
16654else
16655 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016656
16657fi
16658
Reid Spencerbe3e4192007-08-17 05:45:26 +000016659done
Reid Spencer1000b732006-12-01 00:37:14 +000016660
16661else
16662 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016663
16664fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016665
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016666if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016667
16668
16669for ac_header in ffi.h ffi/ffi.h
16670do
16671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677fi
16678ac_res=`eval echo '${'$as_ac_Header'}'`
16679 { echo "$as_me:$LINENO: result: $ac_res" >&5
16680echo "${ECHO_T}$ac_res" >&6; }
16681else
16682 # Is the header compilable?
16683{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16685cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
16691$ac_includes_default
16692#include <$ac_header>
16693_ACEOF
16694rm -f conftest.$ac_objext
16695if { (ac_try="$ac_compile"
16696case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699esac
16700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_compile") 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709 { (case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16712esac
16713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_try") 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722esac
16723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 ac_header_compiler=yes
16729else
16730 echo "$as_me: failed program was:" >&5
16731sed 's/^/| /' conftest.$ac_ext >&5
16732
16733 ac_header_compiler=no
16734fi
16735
16736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16738echo "${ECHO_T}$ac_header_compiler" >&6; }
16739
16740# Is the header present?
16741{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16743cat >conftest.$ac_ext <<_ACEOF
16744/* confdefs.h. */
16745_ACEOF
16746cat confdefs.h >>conftest.$ac_ext
16747cat >>conftest.$ac_ext <<_ACEOF
16748/* end confdefs.h. */
16749#include <$ac_header>
16750_ACEOF
16751if { (ac_try="$ac_cpp conftest.$ac_ext"
16752case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755esac
16756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } >/dev/null; then
16764 if test -s conftest.err; then
16765 ac_cpp_err=$ac_c_preproc_warn_flag
16766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16767 else
16768 ac_cpp_err=
16769 fi
16770else
16771 ac_cpp_err=yes
16772fi
16773if test -z "$ac_cpp_err"; then
16774 ac_header_preproc=yes
16775else
16776 echo "$as_me: failed program was:" >&5
16777sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 ac_header_preproc=no
16780fi
16781
16782rm -f conftest.err conftest.$ac_ext
16783{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16784echo "${ECHO_T}$ac_header_preproc" >&6; }
16785
16786# So? What about this header?
16787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16788 yes:no: )
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16793 ac_header_preproc=yes
16794 ;;
16795 no:yes:* )
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16808 ( cat <<\_ASBOX
16809## ----------------------------------- ##
16810## Report this to llvmbugs@cs.uiuc.edu ##
16811## ----------------------------------- ##
16812_ASBOX
16813 ) | sed "s/^/$as_me: WARNING: /" >&2
16814 ;;
16815esac
16816{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820else
16821 eval "$as_ac_Header=\$ac_header_preproc"
16822fi
16823ac_res=`eval echo '${'$as_ac_Header'}'`
16824 { echo "$as_me:$LINENO: result: $ac_res" >&5
16825echo "${ECHO_T}$ac_res" >&6; }
16826
16827fi
16828if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016829 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016831_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016832
16833fi
16834
16835done
16836
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016837fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016838
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016839
Reid Spencer8085cff2005-01-16 02:58:39 +000016840
Torok Edwin871384f2010-01-26 08:50:50 +000016841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016842 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16843echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16844if test "${ac_cv_huge_val_sanity+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016846else
16847
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016848 ac_ext=cpp
16849ac_cpp='$CXXCPP $CPPFLAGS'
16850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016853
Eric Christopherc7718502010-03-02 05:06:54 +000016854 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016855 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016856 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016857 ac_cv_huge_val_sanity=yes
16858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016859 cat >conftest.$ac_ext <<_ACEOF
16860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016864/* end confdefs.h. */
16865#include <math.h>
16866int
16867main ()
16868{
16869double x = HUGE_VAL; return x != x;
16870 ;
16871 return 0;
16872}
16873_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016874rm -f conftest$ac_exeext
16875if { (ac_try="$ac_link"
16876case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_link") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16888esac
16889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016894 ac_cv_huge_val_sanity=yes
16895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016896 echo "$as_me: program exited with status $ac_status" >&5
16897echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
16900( exit $ac_status )
16901ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016903rm -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 +000016904fi
16905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016906
Eric Christopherc7718502010-03-02 05:06:54 +000016907 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016908 ac_ext=c
16909ac_cpp='$CPP $CPPFLAGS'
16910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16912ac_compiler_gnu=$ac_cv_c_compiler_gnu
16913
16914
16915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016916{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16917echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016918 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16919
16920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016921{ echo "$as_me:$LINENO: checking for pid_t" >&5
16922echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16923if test "${ac_cv_type_pid_t+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925else
16926 cat >conftest.$ac_ext <<_ACEOF
16927/* confdefs.h. */
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h. */
16932$ac_includes_default
16933typedef pid_t ac__type_new_;
16934int
16935main ()
16936{
16937if ((ac__type_new_ *) 0)
16938 return 0;
16939if (sizeof (ac__type_new_))
16940 return 0;
16941 ;
16942 return 0;
16943}
16944_ACEOF
16945rm -f conftest.$ac_objext
16946if { (ac_try="$ac_compile"
16947case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950esac
16951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } &&
16959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16960 { (case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16963esac
16964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_try") 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
16970 { (case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16973esac
16974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_try") 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_cv_type_pid_t=yes
16980else
16981 echo "$as_me: failed program was:" >&5
16982sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016984 ac_cv_type_pid_t=no
16985fi
16986
16987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988fi
16989{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16990echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16991if test $ac_cv_type_pid_t = yes; then
16992 :
John Criswell7a73b802003-06-30 21:59:07 +000016993else
16994
16995cat >>confdefs.h <<_ACEOF
16996#define pid_t int
16997_ACEOF
16998
16999fi
17000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017001{ echo "$as_me:$LINENO: checking for size_t" >&5
17002echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17003if test "${ac_cv_type_size_t+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005else
17006 cat >conftest.$ac_ext <<_ACEOF
17007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
17012$ac_includes_default
17013typedef size_t ac__type_new_;
17014int
17015main ()
17016{
17017if ((ac__type_new_ *) 0)
17018 return 0;
17019if (sizeof (ac__type_new_))
17020 return 0;
17021 ;
17022 return 0;
17023}
17024_ACEOF
17025rm -f conftest.$ac_objext
17026if { (ac_try="$ac_compile"
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_compile") 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); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043esac
17044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest.$ac_objext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17053esac
17054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 ac_cv_type_size_t=yes
17060else
17061 echo "$as_me: failed program was:" >&5
17062sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017064 ac_cv_type_size_t=no
17065fi
17066
17067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17068fi
17069{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17070echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17071if test $ac_cv_type_size_t = yes; then
17072 :
John Criswell7a73b802003-06-30 21:59:07 +000017073else
17074
17075cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017076#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017077_ACEOF
17078
17079fi
17080
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017081
17082cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017083#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017084_ACEOF
17085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017086{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17087echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17088if test "${ac_cv_struct_tm+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017091 cat >conftest.$ac_ext <<_ACEOF
17092/* confdefs.h. */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017096/* end confdefs.h. */
17097#include <sys/types.h>
17098#include <time.h>
17099
17100int
17101main ()
17102{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017103struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017104 ;
17105 return 0;
17106}
17107_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017108rm -f conftest.$ac_objext
17109if { (ac_try="$ac_compile"
17110case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17113esac
17114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123 { (case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126esac
17127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_try") 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17136esac
17137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_try") 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017142 ac_cv_struct_tm=time.h
17143else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
17147 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017149
Reid Spencera773bd52006-08-04 18:18:08 +000017150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017152{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17153echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017154if test $ac_cv_struct_tm = sys/time.h; then
17155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017156cat >>confdefs.h <<\_ACEOF
17157#define TM_IN_SYS_TIME 1
17158_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017159
17160fi
17161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017162{ echo "$as_me:$LINENO: checking for int64_t" >&5
17163echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17164if test "${ac_cv_type_int64_t+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166else
17167 cat >conftest.$ac_ext <<_ACEOF
17168/* confdefs.h. */
17169_ACEOF
17170cat confdefs.h >>conftest.$ac_ext
17171cat >>conftest.$ac_ext <<_ACEOF
17172/* end confdefs.h. */
17173$ac_includes_default
17174typedef int64_t ac__type_new_;
17175int
17176main ()
17177{
17178if ((ac__type_new_ *) 0)
17179 return 0;
17180if (sizeof (ac__type_new_))
17181 return 0;
17182 ;
17183 return 0;
17184}
17185_ACEOF
17186rm -f conftest.$ac_objext
17187if { (ac_try="$ac_compile"
17188case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17191esac
17192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_compile") 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17204esac
17205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest.$ac_objext'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214esac
17215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 ac_cv_type_int64_t=yes
17221else
17222 echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225 ac_cv_type_int64_t=no
17226fi
17227
17228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229fi
17230{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17231echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17232if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017233
17234cat >>confdefs.h <<_ACEOF
17235#define HAVE_INT64_T 1
17236_ACEOF
17237
17238
17239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017240 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17241echo "$as_me: error: Type int64_t required but not found" >&2;}
17242 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017243fi
17244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017245{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17246echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17247if test "${ac_cv_type_uint64_t+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249else
17250 cat >conftest.$ac_ext <<_ACEOF
17251/* confdefs.h. */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h. */
17256$ac_includes_default
17257typedef uint64_t ac__type_new_;
17258int
17259main ()
17260{
17261if ((ac__type_new_ *) 0)
17262 return 0;
17263if (sizeof (ac__type_new_))
17264 return 0;
17265 ;
17266 return 0;
17267}
17268_ACEOF
17269rm -f conftest.$ac_objext
17270if { (ac_try="$ac_compile"
17271case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17274esac
17275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17277 ac_status=$?
17278 grep -v '^ *+' conftest.er1 >conftest.err
17279 rm -f conftest.er1
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } &&
17283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287esac
17288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_try") 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_cv_type_uint64_t=yes
17304else
17305 echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308 ac_cv_type_uint64_t=no
17309fi
17310
17311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312fi
17313{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17314echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17315if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017316
17317cat >>confdefs.h <<_ACEOF
17318#define HAVE_UINT64_T 1
17319_ACEOF
17320
17321
17322else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017323 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17324echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17325if test "${ac_cv_type_u_int64_t+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327else
17328 cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h. */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h. */
17334$ac_includes_default
17335typedef u_int64_t ac__type_new_;
17336int
17337main ()
17338{
17339if ((ac__type_new_ *) 0)
17340 return 0;
17341if (sizeof (ac__type_new_))
17342 return 0;
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext
17348if { (ac_try="$ac_compile"
17349case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_compile") 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17362 { (case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_try") 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest.$ac_objext'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17375esac
17376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 ac_cv_type_u_int64_t=yes
17382else
17383 echo "$as_me: failed program was:" >&5
17384sed 's/^/| /' conftest.$ac_ext >&5
17385
17386 ac_cv_type_u_int64_t=no
17387fi
17388
17389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17390fi
17391{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17392echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17393if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017394
17395cat >>confdefs.h <<_ACEOF
17396#define HAVE_U_INT64_T 1
17397_ACEOF
17398
17399
Misha Brukmanceca9042004-09-02 23:02:30 +000017400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017401 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17402echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17403 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017404fi
17405
John Criswell679ff312004-09-02 18:44:44 +000017406fi
17407
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017408
17409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017410
17411
17412
17413
17414
17415
17416
Reid Spencerdf3be822006-01-23 08:15:53 +000017417for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017418do
17419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17420{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17424else
17425 cat >conftest.$ac_ext <<_ACEOF
17426/* confdefs.h. */
17427_ACEOF
17428cat confdefs.h >>conftest.$ac_ext
17429cat >>conftest.$ac_ext <<_ACEOF
17430/* end confdefs.h. */
17431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17433#define $ac_func innocuous_$ac_func
17434
17435/* System header to define __stub macros and hopefully few prototypes,
17436 which can conflict with char $ac_func (); below.
17437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17438 <limits.h> exists even on freestanding compilers. */
17439
17440#ifdef __STDC__
17441# include <limits.h>
17442#else
17443# include <assert.h>
17444#endif
17445
17446#undef $ac_func
17447
17448/* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17451#ifdef __cplusplus
17452extern "C"
17453#endif
17454char $ac_func ();
17455/* The GNU C library defines this for functions which it implements
17456 to always fail with ENOSYS. Some functions are actually named
17457 something starting with __ and the normal name is an alias. */
17458#if defined __stub_$ac_func || defined __stub___$ac_func
17459choke me
17460#endif
17461
17462int
17463main ()
17464{
17465return $ac_func ();
17466 ;
17467 return 0;
17468}
17469_ACEOF
17470rm -f conftest.$ac_objext conftest$ac_exeext
17471if { (ac_try="$ac_link"
17472case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475esac
17476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_link") 2>conftest.er1
17478 ac_status=$?
17479 grep -v '^ *+' conftest.er1 >conftest.err
17480 rm -f conftest.er1
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17485 { (case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_try") 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; } &&
17494 { ac_try='test -s conftest$ac_exeext'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498esac
17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 eval "$as_ac_var=yes"
17505else
17506 echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
17509 eval "$as_ac_var=no"
17510fi
17511
17512rm -f core conftest.err conftest.$ac_objext \
17513 conftest$ac_exeext conftest.$ac_ext
17514fi
17515ac_res=`eval echo '${'$as_ac_var'}'`
17516 { echo "$as_me:$LINENO: result: $ac_res" >&5
17517echo "${ECHO_T}$ac_res" >&6; }
17518if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017519 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017521_ACEOF
17522
17523fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017524done
John Criswell7a73b802003-06-30 21:59:07 +000017525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017526
17527
17528
17529
Reid Spencer96cf5872007-07-13 10:05:30 +000017530for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017531do
17532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17533{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17535if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537else
17538 cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h. */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h. */
17544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17546#define $ac_func innocuous_$ac_func
17547
17548/* System header to define __stub macros and hopefully few prototypes,
17549 which can conflict with char $ac_func (); below.
17550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17551 <limits.h> exists even on freestanding compilers. */
17552
17553#ifdef __STDC__
17554# include <limits.h>
17555#else
17556# include <assert.h>
17557#endif
17558
17559#undef $ac_func
17560
17561/* Override any GCC internal prototype to avoid an error.
17562 Use char because int might match the return type of a GCC
17563 builtin and then its argument prototype would still apply. */
17564#ifdef __cplusplus
17565extern "C"
17566#endif
17567char $ac_func ();
17568/* The GNU C library defines this for functions which it implements
17569 to always fail with ENOSYS. Some functions are actually named
17570 something starting with __ and the normal name is an alias. */
17571#if defined __stub_$ac_func || defined __stub___$ac_func
17572choke me
17573#endif
17574
17575int
17576main ()
17577{
17578return $ac_func ();
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext conftest$ac_exeext
17584if { (ac_try="$ac_link"
17585case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588esac
17589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17591 ac_status=$?
17592 grep -v '^ *+' conftest.er1 >conftest.err
17593 rm -f conftest.er1
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601esac
17602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; } &&
17607 { ac_try='test -s conftest$ac_exeext'
17608 { (case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611esac
17612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_try") 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 eval "$as_ac_var=yes"
17618else
17619 echo "$as_me: failed program was:" >&5
17620sed 's/^/| /' conftest.$ac_ext >&5
17621
17622 eval "$as_ac_var=no"
17623fi
17624
17625rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627fi
17628ac_res=`eval echo '${'$as_ac_var'}'`
17629 { echo "$as_me:$LINENO: result: $ac_res" >&5
17630echo "${ECHO_T}$ac_res" >&6; }
17631if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017632 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017634_ACEOF
17635
17636fi
17637done
17638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017639
17640
17641
17642
17643
Reid Spencerb90645c2007-02-16 19:17:20 +000017644for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017645do
17646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17647{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17649if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651else
17652 cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17660#define $ac_func innocuous_$ac_func
17661
17662/* System header to define __stub macros and hopefully few prototypes,
17663 which can conflict with char $ac_func (); below.
17664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17665 <limits.h> exists even on freestanding compilers. */
17666
17667#ifdef __STDC__
17668# include <limits.h>
17669#else
17670# include <assert.h>
17671#endif
17672
17673#undef $ac_func
17674
17675/* Override any GCC internal prototype to avoid an error.
17676 Use char because int might match the return type of a GCC
17677 builtin and then its argument prototype would still apply. */
17678#ifdef __cplusplus
17679extern "C"
17680#endif
17681char $ac_func ();
17682/* The GNU C library defines this for functions which it implements
17683 to always fail with ENOSYS. Some functions are actually named
17684 something starting with __ and the normal name is an alias. */
17685#if defined __stub_$ac_func || defined __stub___$ac_func
17686choke me
17687#endif
17688
17689int
17690main ()
17691{
17692return $ac_func ();
17693 ;
17694 return 0;
17695}
17696_ACEOF
17697rm -f conftest.$ac_objext conftest$ac_exeext
17698if { (ac_try="$ac_link"
17699case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17702esac
17703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_link") 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715esac
17716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_try") 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest$ac_exeext'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 eval "$as_ac_var=yes"
17732else
17733 echo "$as_me: failed program was:" >&5
17734sed 's/^/| /' conftest.$ac_ext >&5
17735
17736 eval "$as_ac_var=no"
17737fi
17738
17739rm -f core conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17741fi
17742ac_res=`eval echo '${'$as_ac_var'}'`
17743 { echo "$as_me:$LINENO: result: $ac_res" >&5
17744echo "${ECHO_T}$ac_res" >&6; }
17745if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017746 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017748_ACEOF
17749
17750fi
17751done
17752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017753
17754
17755
Reid Spencerb90645c2007-02-16 19:17:20 +000017756for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017757do
17758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17759{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763else
17764 cat >conftest.$ac_ext <<_ACEOF
17765/* confdefs.h. */
17766_ACEOF
17767cat confdefs.h >>conftest.$ac_ext
17768cat >>conftest.$ac_ext <<_ACEOF
17769/* end confdefs.h. */
17770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17772#define $ac_func innocuous_$ac_func
17773
17774/* System header to define __stub macros and hopefully few prototypes,
17775 which can conflict with char $ac_func (); below.
17776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777 <limits.h> exists even on freestanding compilers. */
17778
17779#ifdef __STDC__
17780# include <limits.h>
17781#else
17782# include <assert.h>
17783#endif
17784
17785#undef $ac_func
17786
17787/* Override any GCC internal prototype to avoid an error.
17788 Use char because int might match the return type of a GCC
17789 builtin and then its argument prototype would still apply. */
17790#ifdef __cplusplus
17791extern "C"
17792#endif
17793char $ac_func ();
17794/* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797#if defined __stub_$ac_func || defined __stub___$ac_func
17798choke me
17799#endif
17800
17801int
17802main ()
17803{
17804return $ac_func ();
17805 ;
17806 return 0;
17807}
17808_ACEOF
17809rm -f conftest.$ac_objext conftest$ac_exeext
17810if { (ac_try="$ac_link"
17811case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17814esac
17815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_link") 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827esac
17828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest$ac_exeext'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837esac
17838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 eval "$as_ac_var=yes"
17844else
17845 echo "$as_me: failed program was:" >&5
17846sed 's/^/| /' conftest.$ac_ext >&5
17847
17848 eval "$as_ac_var=no"
17849fi
17850
17851rm -f core conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17853fi
17854ac_res=`eval echo '${'$as_ac_var'}'`
17855 { echo "$as_me:$LINENO: result: $ac_res" >&5
17856echo "${ECHO_T}$ac_res" >&6; }
17857if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017858 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017860_ACEOF
17861
17862fi
17863done
17864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017865
17866
17867
17868
17869
Eric Christophere4291822010-04-16 05:14:21 +000017870
17871for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017872do
17873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17874{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17878else
17879 cat >conftest.$ac_ext <<_ACEOF
17880/* confdefs.h. */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h. */
17885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17887#define $ac_func innocuous_$ac_func
17888
17889/* System header to define __stub macros and hopefully few prototypes,
17890 which can conflict with char $ac_func (); below.
17891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17892 <limits.h> exists even on freestanding compilers. */
17893
17894#ifdef __STDC__
17895# include <limits.h>
17896#else
17897# include <assert.h>
17898#endif
17899
17900#undef $ac_func
17901
17902/* Override any GCC internal prototype to avoid an error.
17903 Use char because int might match the return type of a GCC
17904 builtin and then its argument prototype would still apply. */
17905#ifdef __cplusplus
17906extern "C"
17907#endif
17908char $ac_func ();
17909/* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912#if defined __stub_$ac_func || defined __stub___$ac_func
17913choke me
17914#endif
17915
17916int
17917main ()
17918{
17919return $ac_func ();
17920 ;
17921 return 0;
17922}
17923_ACEOF
17924rm -f conftest.$ac_objext conftest$ac_exeext
17925if { (ac_try="$ac_link"
17926case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929esac
17930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_link") 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17952esac
17953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 eval "$as_ac_var=yes"
17959else
17960 echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963 eval "$as_ac_var=no"
17964fi
17965
17966rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17968fi
17969ac_res=`eval echo '${'$as_ac_var'}'`
17970 { echo "$as_me:$LINENO: result: $ac_res" >&5
17971echo "${ECHO_T}$ac_res" >&6; }
17972if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017973 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017975_ACEOF
17976
17977fi
17978done
Reid Spencerdf3be822006-01-23 08:15:53 +000017979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017980
17981
17982
17983
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017984for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017985do
17986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17987{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17989if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17991else
17992 cat >conftest.$ac_ext <<_ACEOF
17993/* confdefs.h. */
17994_ACEOF
17995cat confdefs.h >>conftest.$ac_ext
17996cat >>conftest.$ac_ext <<_ACEOF
17997/* end confdefs.h. */
17998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18000#define $ac_func innocuous_$ac_func
18001
18002/* System header to define __stub macros and hopefully few prototypes,
18003 which can conflict with char $ac_func (); below.
18004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18005 <limits.h> exists even on freestanding compilers. */
18006
18007#ifdef __STDC__
18008# include <limits.h>
18009#else
18010# include <assert.h>
18011#endif
18012
18013#undef $ac_func
18014
18015/* Override any GCC internal prototype to avoid an error.
18016 Use char because int might match the return type of a GCC
18017 builtin and then its argument prototype would still apply. */
18018#ifdef __cplusplus
18019extern "C"
18020#endif
18021char $ac_func ();
18022/* The GNU C library defines this for functions which it implements
18023 to always fail with ENOSYS. Some functions are actually named
18024 something starting with __ and the normal name is an alias. */
18025#if defined __stub_$ac_func || defined __stub___$ac_func
18026choke me
18027#endif
18028
18029int
18030main ()
18031{
18032return $ac_func ();
18033 ;
18034 return 0;
18035}
18036_ACEOF
18037rm -f conftest.$ac_objext conftest$ac_exeext
18038if { (ac_try="$ac_link"
18039case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18042esac
18043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_link") 2>conftest.er1
18045 ac_status=$?
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18061 { ac_try='test -s conftest$ac_exeext'
18062 { (case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18065esac
18066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_try") 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 eval "$as_ac_var=yes"
18072else
18073 echo "$as_me: failed program was:" >&5
18074sed 's/^/| /' conftest.$ac_ext >&5
18075
18076 eval "$as_ac_var=no"
18077fi
18078
18079rm -f core conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18081fi
18082ac_res=`eval echo '${'$as_ac_var'}'`
18083 { echo "$as_me:$LINENO: result: $ac_res" >&5
18084echo "${ECHO_T}$ac_res" >&6; }
18085if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018086 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018088_ACEOF
18089
18090fi
18091done
18092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018093
18094
18095
18096
Chris Lattner511f11d2005-11-14 07:25:50 +000018097for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018098do
18099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18100{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18102if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18104else
18105 cat >conftest.$ac_ext <<_ACEOF
18106/* confdefs.h. */
18107_ACEOF
18108cat confdefs.h >>conftest.$ac_ext
18109cat >>conftest.$ac_ext <<_ACEOF
18110/* end confdefs.h. */
18111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113#define $ac_func innocuous_$ac_func
18114
18115/* System header to define __stub macros and hopefully few prototypes,
18116 which can conflict with char $ac_func (); below.
18117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118 <limits.h> exists even on freestanding compilers. */
18119
18120#ifdef __STDC__
18121# include <limits.h>
18122#else
18123# include <assert.h>
18124#endif
18125
18126#undef $ac_func
18127
18128/* Override any GCC internal prototype to avoid an error.
18129 Use char because int might match the return type of a GCC
18130 builtin and then its argument prototype would still apply. */
18131#ifdef __cplusplus
18132extern "C"
18133#endif
18134char $ac_func ();
18135/* The GNU C library defines this for functions which it implements
18136 to always fail with ENOSYS. Some functions are actually named
18137 something starting with __ and the normal name is an alias. */
18138#if defined __stub_$ac_func || defined __stub___$ac_func
18139choke me
18140#endif
18141
18142int
18143main ()
18144{
18145return $ac_func ();
18146 ;
18147 return 0;
18148}
18149_ACEOF
18150rm -f conftest.$ac_objext conftest$ac_exeext
18151if { (ac_try="$ac_link"
18152case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18155esac
18156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_link") 2>conftest.er1
18158 ac_status=$?
18159 grep -v '^ *+' conftest.er1 >conftest.err
18160 rm -f conftest.er1
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165 { (case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18168esac
18169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_try") 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest$ac_exeext'
18175 { (case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18178esac
18179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_try") 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 eval "$as_ac_var=yes"
18185else
18186 echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
18189 eval "$as_ac_var=no"
18190fi
18191
18192rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18194fi
18195ac_res=`eval echo '${'$as_ac_var'}'`
18196 { echo "$as_me:$LINENO: result: $ac_res" >&5
18197echo "${ECHO_T}$ac_res" >&6; }
18198if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018199 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018201_ACEOF
18202
18203fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018204done
John Criswell7a73b802003-06-30 21:59:07 +000018205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018206
18207
18208
18209
Reid Spencerafa22e22006-12-10 23:29:19 +000018210for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018211do
18212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18213{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217else
18218 cat >conftest.$ac_ext <<_ACEOF
18219/* confdefs.h. */
18220_ACEOF
18221cat confdefs.h >>conftest.$ac_ext
18222cat >>conftest.$ac_ext <<_ACEOF
18223/* end confdefs.h. */
18224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18226#define $ac_func innocuous_$ac_func
18227
18228/* System header to define __stub macros and hopefully few prototypes,
18229 which can conflict with char $ac_func (); below.
18230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18231 <limits.h> exists even on freestanding compilers. */
18232
18233#ifdef __STDC__
18234# include <limits.h>
18235#else
18236# include <assert.h>
18237#endif
18238
18239#undef $ac_func
18240
18241/* Override any GCC internal prototype to avoid an error.
18242 Use char because int might match the return type of a GCC
18243 builtin and then its argument prototype would still apply. */
18244#ifdef __cplusplus
18245extern "C"
18246#endif
18247char $ac_func ();
18248/* The GNU C library defines this for functions which it implements
18249 to always fail with ENOSYS. Some functions are actually named
18250 something starting with __ and the normal name is an alias. */
18251#if defined __stub_$ac_func || defined __stub___$ac_func
18252choke me
18253#endif
18254
18255int
18256main ()
18257{
18258return $ac_func ();
18259 ;
18260 return 0;
18261}
18262_ACEOF
18263rm -f conftest.$ac_objext conftest$ac_exeext
18264if { (ac_try="$ac_link"
18265case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268esac
18269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281esac
18282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 eval "$as_ac_var=yes"
18298else
18299 echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302 eval "$as_ac_var=no"
18303fi
18304
18305rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18307fi
18308ac_res=`eval echo '${'$as_ac_var'}'`
18309 { echo "$as_me:$LINENO: result: $ac_res" >&5
18310echo "${ECHO_T}$ac_res" >&6; }
18311if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018312 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018314_ACEOF
18315
18316fi
18317done
18318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018319{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18320echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18321if test "${llvm_cv_c_printf_a+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018323else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018324 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018325ac_cpp='$CPP $CPPFLAGS'
18326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328ac_compiler_gnu=$ac_cv_c_compiler_gnu
18329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018330 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018331 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018333 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018335 /* confdefs.h. */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
18339/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018340
John Criswella0137d32003-10-13 16:22:01 +000018341#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018342#include <stdlib.h>
18343
John Criswella0137d32003-10-13 16:22:01 +000018344int
18345main ()
18346{
18347
Reid Spencer2706f8c2004-09-19 23:53:36 +000018348volatile double A, B;
18349char Buffer[100];
18350A = 1;
18351A /= 10.0;
18352sprintf(Buffer, "%a", A);
18353B = atof(Buffer);
18354if (A != B)
18355 return (1);
18356if (A != 0x1.999999999999ap-4)
18357 return (1);
18358return (0);
John Criswella0137d32003-10-13 16:22:01 +000018359 ;
18360 return 0;
18361}
18362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018363rm -f conftest$ac_exeext
18364if { (ac_try="$ac_link"
18365case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18368esac
18369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_link") 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18374 { (case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377esac
18378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_try") 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018383 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018385 echo "$as_me: program exited with status $ac_status" >&5
18386echo "$as_me: failed program was:" >&5
18387sed 's/^/| /' conftest.$ac_ext >&5
18388
18389( exit $ac_status )
18390llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018392rm -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 +000018393fi
Reid Spencera773bd52006-08-04 18:18:08 +000018394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018395
Reid Spencer2706f8c2004-09-19 23:53:36 +000018396 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018397ac_cpp='$CPP $CPPFLAGS'
18398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400ac_compiler_gnu=$ac_cv_c_compiler_gnu
18401
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018403{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18404echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018405 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018407cat >>confdefs.h <<\_ACEOF
18408#define HAVE_PRINTF_A 1
18409_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018410
Reid Spencer2706f8c2004-09-19 23:53:36 +000018411 fi
John Criswella0137d32003-10-13 16:22:01 +000018412
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018414{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18415echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18416if test "${ac_cv_func_rand48+set}" = set; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018418else
Reid Spencera773bd52006-08-04 18:18:08 +000018419 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018420ac_cpp='$CXXCPP $CPPFLAGS'
18421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018425 cat >conftest.$ac_ext <<_ACEOF
18426/* confdefs.h. */
18427_ACEOF
18428cat confdefs.h >>conftest.$ac_ext
18429cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018430/* end confdefs.h. */
18431#include <stdlib.h>
18432int
18433main ()
18434{
18435srand48(0);lrand48();drand48();
18436 ;
18437 return 0;
18438}
18439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018440rm -f conftest.$ac_objext
18441if { (ac_try="$ac_compile"
18442case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_compile") 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468esac
18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018474 ac_cv_func_rand48=yes
18475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018476 echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018481
Reid Spencera773bd52006-08-04 18:18:08 +000018482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018483 ac_ext=c
18484ac_cpp='$CPP $CPPFLAGS'
18485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487ac_compiler_gnu=$ac_cv_c_compiler_gnu
18488
18489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018490{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18491echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018492
18493if test "$ac_cv_func_rand48" = "yes" ; then
18494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018495cat >>confdefs.h <<\_ACEOF
18496#define HAVE_RAND48 1
18497_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018498
18499fi
John Criswell0021c312004-02-13 21:57:29 +000018500
18501
Torok Edwin871384f2010-01-26 08:50:50 +000018502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018503{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18504echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18505if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018507else
Reid Spencera773bd52006-08-04 18:18:08 +000018508 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018509ac_cpp='$CXXCPP $CPPFLAGS'
18510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018514 cat >conftest.$ac_ext <<_ACEOF
18515/* confdefs.h. */
18516_ACEOF
18517cat confdefs.h >>conftest.$ac_ext
18518cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018519/* end confdefs.h. */
18520#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018521int
18522main ()
18523{
18524float f; isnan(f);
18525 ;
18526 return 0;
18527}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018528_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018529rm -f conftest.$ac_objext
18530if { (ac_try="$ac_compile"
18531case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534esac
18535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_compile") 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18544 { (case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18547esac
18548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_try") 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest.$ac_objext'
18554 { (case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18557esac
18558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_try") 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018563 ac_cv_func_isnan_in_math_h=yes
18564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018565 echo "$as_me: failed program was:" >&5
18566sed 's/^/| /' conftest.$ac_ext >&5
18567
18568 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018570
Reid Spencera773bd52006-08-04 18:18:08 +000018571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018572 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018573ac_cpp='$CPP $CPPFLAGS'
18574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576ac_compiler_gnu=$ac_cv_c_compiler_gnu
18577
18578fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018579{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18580echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018581
18582
18583if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018585cat >>confdefs.h <<\_ACEOF
18586#define HAVE_ISNAN_IN_MATH_H 1
18587_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018588
Reid Spencerabec8f92004-10-27 23:03:44 +000018589fi
18590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018591{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18592echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18593if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018595else
Reid Spencera773bd52006-08-04 18:18:08 +000018596 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018597ac_cpp='$CXXCPP $CPPFLAGS'
18598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018602 cat >conftest.$ac_ext <<_ACEOF
18603/* confdefs.h. */
18604_ACEOF
18605cat confdefs.h >>conftest.$ac_ext
18606cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018607/* end confdefs.h. */
18608#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018609int
18610main ()
18611{
18612float f; isnan(f);
18613 ;
18614 return 0;
18615}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018616_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018617rm -f conftest.$ac_objext
18618if { (ac_try="$ac_compile"
18619case "(($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_compile") 2>conftest.er1
18625 ac_status=$?
18626 grep -v '^ *+' conftest.er1 >conftest.err
18627 rm -f conftest.er1
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635esac
18636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
18642 { (case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18645esac
18646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_try") 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018651 ac_cv_func_isnan_in_cmath=yes
18652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018653 echo "$as_me: failed program was:" >&5
18654sed 's/^/| /' conftest.$ac_ext >&5
18655
18656 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018657fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018658
Reid Spencera773bd52006-08-04 18:18:08 +000018659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018660 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018661ac_cpp='$CPP $CPPFLAGS'
18662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664ac_compiler_gnu=$ac_cv_c_compiler_gnu
18665
18666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018667{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18668echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018669
18670if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018672cat >>confdefs.h <<\_ACEOF
18673#define HAVE_ISNAN_IN_CMATH 1
18674_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018675
Reid Spencerabec8f92004-10-27 23:03:44 +000018676fi
18677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018678{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18679echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18680if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018682else
Reid Spencera773bd52006-08-04 18:18:08 +000018683 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018684ac_cpp='$CXXCPP $CPPFLAGS'
18685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018689 cat >conftest.$ac_ext <<_ACEOF
18690/* confdefs.h. */
18691_ACEOF
18692cat confdefs.h >>conftest.$ac_ext
18693cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018694/* end confdefs.h. */
18695#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018696int
18697main ()
18698{
18699float f; std::isnan(f);
18700 ;
18701 return 0;
18702}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018703_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018704rm -f conftest.$ac_objext
18705if { (ac_try="$ac_compile"
18706case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18709esac
18710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_compile") 2>conftest.er1
18712 ac_status=$?
18713 grep -v '^ *+' conftest.er1 >conftest.err
18714 rm -f conftest.er1
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18719 { (case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722esac
18723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_try") 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest.$ac_objext'
18729 { (case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18732esac
18733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_try") 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018738 ac_cv_func_std_isnan_in_cmath=yes
18739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018740 echo "$as_me: failed program was:" >&5
18741sed 's/^/| /' conftest.$ac_ext >&5
18742
18743 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018745
Reid Spencera773bd52006-08-04 18:18:08 +000018746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018747 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018748ac_cpp='$CPP $CPPFLAGS'
18749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18751ac_compiler_gnu=$ac_cv_c_compiler_gnu
18752
18753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018754{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18755echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018756
18757if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018759cat >>confdefs.h <<\_ACEOF
18760#define HAVE_STD_ISNAN_IN_CMATH 1
18761_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018762
Reid Spencerabec8f92004-10-27 23:03:44 +000018763fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018764
18765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018766{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18767echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18768if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18769 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018770else
Reid Spencera773bd52006-08-04 18:18:08 +000018771 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018772ac_cpp='$CXXCPP $CPPFLAGS'
18773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018777 cat >conftest.$ac_ext <<_ACEOF
18778/* confdefs.h. */
18779_ACEOF
18780cat confdefs.h >>conftest.$ac_ext
18781cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018782/* end confdefs.h. */
18783#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018784int
18785main ()
18786{
18787float f; isinf(f);
18788 ;
18789 return 0;
18790}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018791_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018792rm -f conftest.$ac_objext
18793if { (ac_try="$ac_compile"
18794case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797esac
18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_compile") 2>conftest.er1
18800 ac_status=$?
18801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18807 { (case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18810esac
18811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; } &&
18816 { ac_try='test -s conftest.$ac_objext'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18820esac
18821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018826 ac_cv_func_isinf_in_math_h=yes
18827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018828 echo "$as_me: failed program was:" >&5
18829sed 's/^/| /' conftest.$ac_ext >&5
18830
18831 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018832fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018833
Reid Spencera773bd52006-08-04 18:18:08 +000018834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018835 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018836ac_cpp='$CPP $CPPFLAGS'
18837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18839ac_compiler_gnu=$ac_cv_c_compiler_gnu
18840
18841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018842{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18843echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018844
18845if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018847cat >>confdefs.h <<\_ACEOF
18848#define HAVE_ISINF_IN_MATH_H 1
18849_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018850
Reid Spencerabec8f92004-10-27 23:03:44 +000018851fi
18852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018853{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18854echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18855if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018857else
Reid Spencera773bd52006-08-04 18:18:08 +000018858 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018859ac_cpp='$CXXCPP $CPPFLAGS'
18860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018864 cat >conftest.$ac_ext <<_ACEOF
18865/* confdefs.h. */
18866_ACEOF
18867cat confdefs.h >>conftest.$ac_ext
18868cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018869/* end confdefs.h. */
18870#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018871int
18872main ()
18873{
18874float f; isinf(f);
18875 ;
18876 return 0;
18877}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018878_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018879rm -f conftest.$ac_objext
18880if { (ac_try="$ac_compile"
18881case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884esac
18885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_compile") 2>conftest.er1
18887 ac_status=$?
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18894 { (case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18897esac
18898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_try") 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; } &&
18903 { ac_try='test -s conftest.$ac_objext'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907esac
18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_try") 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018913 ac_cv_func_isinf_in_cmath=yes
18914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018915 echo "$as_me: failed program was:" >&5
18916sed 's/^/| /' conftest.$ac_ext >&5
18917
18918 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018920
Reid Spencera773bd52006-08-04 18:18:08 +000018921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018922 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018923ac_cpp='$CPP $CPPFLAGS'
18924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926ac_compiler_gnu=$ac_cv_c_compiler_gnu
18927
18928fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018929{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18930echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018931
18932if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018934cat >>confdefs.h <<\_ACEOF
18935#define HAVE_ISINF_IN_CMATH 1
18936_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018937
Reid Spencerabec8f92004-10-27 23:03:44 +000018938fi
18939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018940{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18941echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18942if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018944else
Reid Spencera773bd52006-08-04 18:18:08 +000018945 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018946ac_cpp='$CXXCPP $CPPFLAGS'
18947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018951 cat >conftest.$ac_ext <<_ACEOF
18952/* confdefs.h. */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018956/* end confdefs.h. */
18957#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018958int
18959main ()
18960{
18961float f; std::isinf(f)}
18962 ;
18963 return 0;
18964}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018965_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018966rm -f conftest.$ac_objext
18967if { (ac_try="$ac_compile"
18968case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18971esac
18972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_compile") 2>conftest.er1
18974 ac_status=$?
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984esac
18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; } &&
18990 { ac_try='test -s conftest.$ac_objext'
18991 { (case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994esac
18995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_try") 2>&5
18997 ac_status=$?
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019000 ac_cv_func_std_isinf_in_cmath=yes
19001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019002 echo "$as_me: failed program was:" >&5
19003sed 's/^/| /' conftest.$ac_ext >&5
19004
19005 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019007
Reid Spencera773bd52006-08-04 18:18:08 +000019008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019009 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019010ac_cpp='$CPP $CPPFLAGS'
19011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19013ac_compiler_gnu=$ac_cv_c_compiler_gnu
19014
19015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019016{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19017echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019018
19019if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019021cat >>confdefs.h <<\_ACEOF
19022#define HAVE_STD_ISINF_IN_CMATH 1
19023_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019024
Reid Spencerabec8f92004-10-27 23:03:44 +000019025fi
19026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019027{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19028echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19029if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019031else
Reid Spencera773bd52006-08-04 18:18:08 +000019032 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019033ac_cpp='$CXXCPP $CPPFLAGS'
19034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019038 cat >conftest.$ac_ext <<_ACEOF
19039/* confdefs.h. */
19040_ACEOF
19041cat confdefs.h >>conftest.$ac_ext
19042cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019043/* end confdefs.h. */
19044#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019045int
19046main ()
19047{
19048float f; finite(f);
19049 ;
19050 return 0;
19051}
Brian Gaeked59a6472004-07-21 03:33:58 +000019052_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019053rm -f conftest.$ac_objext
19054if { (ac_try="$ac_compile"
19055case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058esac
19059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_compile") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19068 { (case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071esac
19072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_try") 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
19078 { (case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081esac
19082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_try") 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019087 ac_cv_func_finite_in_ieeefp_h=yes
19088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019089 echo "$as_me: failed program was:" >&5
19090sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019094
Reid Spencera773bd52006-08-04 18:18:08 +000019095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019096 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019097ac_cpp='$CPP $CPPFLAGS'
19098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101
19102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019103{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19104echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019105
Brian Gaeke6802b552004-10-28 05:06:45 +000019106if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019108cat >>confdefs.h <<\_ACEOF
19109#define HAVE_FINITE_IN_IEEEFP_H 1
19110_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019111
Reid Spencerabec8f92004-10-27 23:03:44 +000019112fi
19113
19114
19115
Reid Spencer30fe5262007-01-20 07:48:49 +000019116if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019117
19118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019119for ac_header in stdlib.h unistd.h
19120do
19121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19127fi
19128ac_res=`eval echo '${'$as_ac_Header'}'`
19129 { echo "$as_me:$LINENO: result: $ac_res" >&5
19130echo "${ECHO_T}$ac_res" >&6; }
19131else
19132 # Is the header compilable?
19133{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19135cat >conftest.$ac_ext <<_ACEOF
19136/* confdefs.h. */
19137_ACEOF
19138cat confdefs.h >>conftest.$ac_ext
19139cat >>conftest.$ac_ext <<_ACEOF
19140/* end confdefs.h. */
19141$ac_includes_default
19142#include <$ac_header>
19143_ACEOF
19144rm -f conftest.$ac_objext
19145if { (ac_try="$ac_compile"
19146case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19149esac
19150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_compile") 2>conftest.er1
19152 ac_status=$?
19153 grep -v '^ *+' conftest.er1 >conftest.err
19154 rm -f conftest.er1
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } &&
19158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19159 { (case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19162esac
19163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_try") 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try='test -s conftest.$ac_objext'
19169 { (case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172esac
19173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_try") 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_header_compiler=yes
19179else
19180 echo "$as_me: failed program was:" >&5
19181sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019183 ac_header_compiler=no
19184fi
19185
19186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19188echo "${ECHO_T}$ac_header_compiler" >&6; }
19189
19190# Is the header present?
19191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19193cat >conftest.$ac_ext <<_ACEOF
19194/* confdefs.h. */
19195_ACEOF
19196cat confdefs.h >>conftest.$ac_ext
19197cat >>conftest.$ac_ext <<_ACEOF
19198/* end confdefs.h. */
19199#include <$ac_header>
19200_ACEOF
19201if { (ac_try="$ac_cpp conftest.$ac_ext"
19202case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19205esac
19206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19208 ac_status=$?
19209 grep -v '^ *+' conftest.er1 >conftest.err
19210 rm -f conftest.er1
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } >/dev/null; then
19214 if test -s conftest.err; then
19215 ac_cpp_err=$ac_c_preproc_warn_flag
19216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19217 else
19218 ac_cpp_err=
19219 fi
19220else
19221 ac_cpp_err=yes
19222fi
19223if test -z "$ac_cpp_err"; then
19224 ac_header_preproc=yes
19225else
19226 echo "$as_me: failed program was:" >&5
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 ac_header_preproc=no
19230fi
19231
19232rm -f conftest.err conftest.$ac_ext
19233{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19234echo "${ECHO_T}$ac_header_preproc" >&6; }
19235
19236# So? What about this header?
19237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19238 yes:no: )
19239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19243 ac_header_preproc=yes
19244 ;;
19245 no:yes:* )
19246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19253echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19258 ( cat <<\_ASBOX
19259## ----------------------------------- ##
19260## Report this to llvmbugs@cs.uiuc.edu ##
19261## ----------------------------------- ##
19262_ASBOX
19263 ) | sed "s/^/$as_me: WARNING: /" >&2
19264 ;;
19265esac
19266{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270else
19271 eval "$as_ac_Header=\$ac_header_preproc"
19272fi
19273ac_res=`eval echo '${'$as_ac_Header'}'`
19274 { echo "$as_me:$LINENO: result: $ac_res" >&5
19275echo "${ECHO_T}$ac_res" >&6; }
19276
19277fi
19278if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019279 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019281_ACEOF
19282
19283fi
19284
19285done
19286
19287
19288for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019289do
19290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19295else
19296 cat >conftest.$ac_ext <<_ACEOF
19297/* confdefs.h. */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h. */
19302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19304#define $ac_func innocuous_$ac_func
19305
19306/* System header to define __stub macros and hopefully few prototypes,
19307 which can conflict with char $ac_func (); below.
19308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309 <limits.h> exists even on freestanding compilers. */
19310
19311#ifdef __STDC__
19312# include <limits.h>
19313#else
19314# include <assert.h>
19315#endif
19316
19317#undef $ac_func
19318
19319/* Override any GCC internal prototype to avoid an error.
19320 Use char because int might match the return type of a GCC
19321 builtin and then its argument prototype would still apply. */
19322#ifdef __cplusplus
19323extern "C"
19324#endif
19325char $ac_func ();
19326/* The GNU C library defines this for functions which it implements
19327 to always fail with ENOSYS. Some functions are actually named
19328 something starting with __ and the normal name is an alias. */
19329#if defined __stub_$ac_func || defined __stub___$ac_func
19330choke me
19331#endif
19332
19333int
19334main ()
19335{
19336return $ac_func ();
19337 ;
19338 return 0;
19339}
19340_ACEOF
19341rm -f conftest.$ac_objext conftest$ac_exeext
19342if { (ac_try="$ac_link"
19343case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19346esac
19347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_link") 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19356 { (case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19359esac
19360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_try") 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369esac
19370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_try") 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 eval "$as_ac_var=yes"
19376else
19377 echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
19380 eval "$as_ac_var=no"
19381fi
19382
19383rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19385fi
19386ac_res=`eval echo '${'$as_ac_var'}'`
19387 { echo "$as_me:$LINENO: result: $ac_res" >&5
19388echo "${ECHO_T}$ac_res" >&6; }
19389if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019390 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019392_ACEOF
19393
19394fi
19395done
19396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019397{ echo "$as_me:$LINENO: checking for working mmap" >&5
19398echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19399if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019402 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019403 ac_cv_func_mmap_fixed_mapped=no
19404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019405 cat >conftest.$ac_ext <<_ACEOF
19406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019411$ac_includes_default
19412/* malloc might have been renamed as rpl_malloc. */
19413#undef malloc
19414
19415/* Thanks to Mike Haertel and Jim Avera for this test.
19416 Here is a matrix of mmap possibilities:
19417 mmap private not fixed
19418 mmap private fixed at somewhere currently unmapped
19419 mmap private fixed at somewhere already mapped
19420 mmap shared not fixed
19421 mmap shared fixed at somewhere currently unmapped
19422 mmap shared fixed at somewhere already mapped
19423 For private mappings, we should verify that changes cannot be read()
19424 back from the file, nor mmap's back from the file at a different
19425 address. (There have been systems where private was not correctly
19426 implemented like the infamous i386 svr4.0, and systems where the
19427 VM page cache was not coherent with the file system buffer cache
19428 like early versions of FreeBSD and possibly contemporary NetBSD.)
19429 For shared mappings, we should conversely verify that changes get
19430 propagated back to all the places they're supposed to be.
19431
19432 Grep wants private fixed already mapped.
19433 The main things grep needs to know about mmap are:
19434 * does it exist and is it safe to write into the mmap'd area
19435 * how to use it (BSD variants) */
19436
19437#include <fcntl.h>
19438#include <sys/mman.h>
19439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019440#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019441char *malloc ();
19442#endif
19443
19444/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019445#if !HAVE_GETPAGESIZE
19446/* Assume that all systems that can run configure have sys/param.h. */
19447# if !HAVE_SYS_PARAM_H
19448# define HAVE_SYS_PARAM_H 1
19449# endif
19450
John Criswell7a73b802003-06-30 21:59:07 +000019451# ifdef _SC_PAGESIZE
19452# define getpagesize() sysconf(_SC_PAGESIZE)
19453# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019454# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019455# include <sys/param.h>
19456# ifdef EXEC_PAGESIZE
19457# define getpagesize() EXEC_PAGESIZE
19458# else /* no EXEC_PAGESIZE */
19459# ifdef NBPG
19460# define getpagesize() NBPG * CLSIZE
19461# ifndef CLSIZE
19462# define CLSIZE 1
19463# endif /* no CLSIZE */
19464# else /* no NBPG */
19465# ifdef NBPC
19466# define getpagesize() NBPC
19467# else /* no NBPC */
19468# ifdef PAGESIZE
19469# define getpagesize() PAGESIZE
19470# endif /* PAGESIZE */
19471# endif /* no NBPC */
19472# endif /* no NBPG */
19473# endif /* no EXEC_PAGESIZE */
19474# else /* no HAVE_SYS_PARAM_H */
19475# define getpagesize() 8192 /* punt totally */
19476# endif /* no HAVE_SYS_PARAM_H */
19477# endif /* no _SC_PAGESIZE */
19478
19479#endif /* no HAVE_GETPAGESIZE */
19480
19481int
19482main ()
19483{
19484 char *data, *data2, *data3;
19485 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019486 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019487
19488 pagesize = getpagesize ();
19489
19490 /* First, make a file with some known garbage in it. */
19491 data = (char *) malloc (pagesize);
19492 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019493 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019494 for (i = 0; i < pagesize; ++i)
19495 *(data + i) = rand ();
19496 umask (0);
19497 fd = creat ("conftest.mmap", 0600);
19498 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019499 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019500 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019501 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019502 close (fd);
19503
19504 /* Next, try to mmap the file at a fixed address which already has
19505 something else allocated at it. If we can, also make sure that
19506 we see the same garbage. */
19507 fd = open ("conftest.mmap", O_RDWR);
19508 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019509 return 1;
19510 data2 = (char *) malloc (2 * pagesize);
19511 if (!data2)
19512 return 1;
19513 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019514 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019515 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019516 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019517 for (i = 0; i < pagesize; ++i)
19518 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019519 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019520
19521 /* Finally, make sure that changes to the mapped area do not
19522 percolate back to the file as seen by read(). (This is a bug on
19523 some variants of i386 svr4.0.) */
19524 for (i = 0; i < pagesize; ++i)
19525 *(data2 + i) = *(data2 + i) + 1;
19526 data3 = (char *) malloc (pagesize);
19527 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019528 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019529 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019530 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019531 for (i = 0; i < pagesize; ++i)
19532 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019533 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019534 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019535 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019536}
19537_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019538rm -f conftest$ac_exeext
19539if { (ac_try="$ac_link"
19540case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543esac
19544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_link") 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552esac
19553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019558 ac_cv_func_mmap_fixed_mapped=yes
19559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019560 echo "$as_me: program exited with status $ac_status" >&5
19561echo "$as_me: failed program was:" >&5
19562sed 's/^/| /' conftest.$ac_ext >&5
19563
19564( exit $ac_status )
19565ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019566fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019567rm -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 +000019568fi
Reid Spencera773bd52006-08-04 18:18:08 +000019569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570
John Criswell7a73b802003-06-30 21:59:07 +000019571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019572{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19573echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019574if test $ac_cv_func_mmap_fixed_mapped = yes; then
19575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019576cat >>confdefs.h <<\_ACEOF
19577#define HAVE_MMAP 1
19578_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019579
19580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019581rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019583 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19584echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19585if test "${ac_cv_func_mmap_file+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019587else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019588 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019589ac_cpp='$CPP $CPPFLAGS'
19590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592ac_compiler_gnu=$ac_cv_c_compiler_gnu
19593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019594 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019595 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019597 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019599 /* confdefs.h. */
19600_ACEOF
19601cat confdefs.h >>conftest.$ac_ext
19602cat >>conftest.$ac_ext <<_ACEOF
19603/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019604
John Criswell7a73b802003-06-30 21:59:07 +000019605#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019606#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019607#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019608
19609int
19610main ()
19611{
John Criswell7a73b802003-06-30 21:59:07 +000019612
19613 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019614 fd = creat ("foo",0777);
19615 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19616 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019617 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019618 ;
19619 return 0;
19620}
John Criswell7a73b802003-06-30 21:59:07 +000019621_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019622rm -f conftest$ac_exeext
19623if { (ac_try="$ac_link"
19624case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_link") 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636esac
19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019642 ac_cv_func_mmap_file=yes
19643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019644 echo "$as_me: program exited with status $ac_status" >&5
19645echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648( exit $ac_status )
19649ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019651rm -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 +000019652fi
Reid Spencera773bd52006-08-04 18:18:08 +000019653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019654
John Criswell7a73b802003-06-30 21:59:07 +000019655 ac_ext=c
19656ac_cpp='$CPP $CPPFLAGS'
19657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659ac_compiler_gnu=$ac_cv_c_compiler_gnu
19660
19661
19662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019663{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19664echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019665if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019667cat >>confdefs.h <<\_ACEOF
19668#define HAVE_MMAP_FILE
19669_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019670
19671 MMAP_FILE=yes
19672
19673fi
19674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019675 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19676echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19677if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019679else
Reid Spencer582a23c2004-12-29 07:07:57 +000019680 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019681 ac_cv_need_dev_zero_for_mmap=yes
19682 else
19683 ac_cv_need_dev_zero_for_mmap=no
19684 fi
19685
19686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019687{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19688echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019689if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019691cat >>confdefs.h <<\_ACEOF
19692#define NEED_DEV_ZERO_FOR_MMAP 1
19693_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019694
19695fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019696
Reid Spencer30fe5262007-01-20 07:48:49 +000019697 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19698 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019699 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19700echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019701 fi
19702 if test "$ac_cv_func_mmap_file" = "no"
19703 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019704 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19705echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019706 fi
John Criswellb13092b2003-07-22 21:00:24 +000019707fi
John Criswell7a73b802003-06-30 21:59:07 +000019708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019709{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19710echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19711cat >conftest.$ac_ext <<_ACEOF
19712/* confdefs.h. */
19713_ACEOF
19714cat confdefs.h >>conftest.$ac_ext
19715cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019716/* end confdefs.h. */
19717int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019718 volatile unsigned long val = 1;
19719 __sync_synchronize();
19720 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019721 __sync_add_and_fetch(&val, 1);
19722 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019723 return 0;
19724 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019725
19726_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019727rm -f conftest.$ac_objext conftest$ac_exeext
19728if { (ac_try="$ac_link"
19729case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732esac
19733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_link") 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } &&
19741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19742 { (case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19745esac
19746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_try") 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest$ac_exeext'
19752 { (case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19755esac
19756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_try") 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 { echo "$as_me:$LINENO: result: yes" >&5
19762echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019764cat >>confdefs.h <<\_ACEOF
19765#define LLVM_MULTITHREADED 1
19766_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019767
Owen Andersond4b272b2009-05-18 23:58:51 +000019768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019769 echo "$as_me: failed program was:" >&5
19770sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019772 { echo "$as_me:$LINENO: result: no" >&5
19773echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019775cat >>confdefs.h <<\_ACEOF
19776#define LLVM_MULTITHREADED 0
19777_ACEOF
19778
19779 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19780echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019781fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019782
Owen Andersond4b272b2009-05-18 23:58:51 +000019783rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019784 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019785
19786
John Criswell7a73b802003-06-30 21:59:07 +000019787
Nick Lewycky4372e692009-09-29 06:18:23 +000019788if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019789 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19790echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19791if test "${llvm_cv_linux_mixed+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019793else
19794 ac_ext=c
19795ac_cpp='$CPP $CPPFLAGS'
19796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798ac_compiler_gnu=$ac_cv_c_compiler_gnu
19799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019800 cat >conftest.$ac_ext <<_ACEOF
19801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019805/* end confdefs.h. */
19806#ifndef __x86_64__
19807 error: Not x86-64 even if uname says so!
19808 #endif
19809
19810int
19811main ()
19812{
19813
19814 ;
19815 return 0;
19816}
19817_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019818rm -f conftest.$ac_objext
19819if { (ac_try="$ac_compile"
19820case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_compile") 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836esac
19837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
19843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846esac
19847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019852 llvm_cv_linux_mixed=no
19853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019854 echo "$as_me: failed program was:" >&5
19855sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019859
Nick Lewycky4372e692009-09-29 06:18:23 +000019860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861 ac_ext=c
19862ac_cpp='$CPP $CPPFLAGS'
19863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_c_compiler_gnu
19866
19867
19868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019869{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19870echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019871
19872 if test "$llvm_cv_linux_mixed" = "yes"; then
19873 llvm_cv_target_arch="x86"
19874 ARCH="x86"
19875 fi
19876fi
19877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019878
Reid Spencer9372f152007-07-30 20:13:24 +000019879for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019880do
19881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886else
19887 cat >conftest.$ac_ext <<_ACEOF
19888/* confdefs.h. */
19889_ACEOF
19890cat confdefs.h >>conftest.$ac_ext
19891cat >>conftest.$ac_ext <<_ACEOF
19892/* end confdefs.h. */
19893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19895#define $ac_func innocuous_$ac_func
19896
19897/* System header to define __stub macros and hopefully few prototypes,
19898 which can conflict with char $ac_func (); below.
19899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19900 <limits.h> exists even on freestanding compilers. */
19901
19902#ifdef __STDC__
19903# include <limits.h>
19904#else
19905# include <assert.h>
19906#endif
19907
19908#undef $ac_func
19909
19910/* Override any GCC internal prototype to avoid an error.
19911 Use char because int might match the return type of a GCC
19912 builtin and then its argument prototype would still apply. */
19913#ifdef __cplusplus
19914extern "C"
19915#endif
19916char $ac_func ();
19917/* The GNU C library defines this for functions which it implements
19918 to always fail with ENOSYS. Some functions are actually named
19919 something starting with __ and the normal name is an alias. */
19920#if defined __stub_$ac_func || defined __stub___$ac_func
19921choke me
19922#endif
19923
19924int
19925main ()
19926{
19927return $ac_func ();
19928 ;
19929 return 0;
19930}
19931_ACEOF
19932rm -f conftest.$ac_objext conftest$ac_exeext
19933if { (ac_try="$ac_link"
19934case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937esac
19938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_link") 2>conftest.er1
19940 ac_status=$?
19941 grep -v '^ *+' conftest.er1 >conftest.err
19942 rm -f conftest.er1
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19947 { (case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19950esac
19951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_try") 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; } &&
19956 { ac_try='test -s conftest$ac_exeext'
19957 { (case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960esac
19961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_try") 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
19966 eval "$as_ac_var=yes"
19967else
19968 echo "$as_me: failed program was:" >&5
19969sed 's/^/| /' conftest.$ac_ext >&5
19970
19971 eval "$as_ac_var=no"
19972fi
19973
19974rm -f core conftest.err conftest.$ac_objext \
19975 conftest$ac_exeext conftest.$ac_ext
19976fi
19977ac_res=`eval echo '${'$as_ac_var'}'`
19978 { echo "$as_me:$LINENO: result: $ac_res" >&5
19979echo "${ECHO_T}$ac_res" >&6; }
19980if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019981 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019983_ACEOF
19984
19985fi
19986done
19987
19988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019989{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19990echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19991if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019993else
19994 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019995if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019996 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019997 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19998 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019999 if test $? -eq 0 ; then
20000 llvm_cv_llvmgcc_sanity="yes"
20001 fi
20002 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020003fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020005{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20006echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020007
20008if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020009 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20010echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020011 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020012 LLVMCC1=$llvmcc1path
20013
Reid Spencer502935f2004-12-22 05:56:56 +000020014 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020015 LLVMCC1PLUS=$llvmcc1pluspath
20016
Reid Spencer502935f2004-12-22 05:56:56 +000020017 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20018 LLVMGCCDIR=$llvmgccdir
20019
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020020 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020021 LLVMGCC_LANGS=$llvmgcclangs
20022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020023 { echo "$as_me:$LINENO: result: ok" >&5
20024echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020025fi
20026
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020027SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020028
20029
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020030SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20031
20032
Reid Spencere9de0912004-08-20 09:03:57 +000020033# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020034# information into substitutions that will end up in Makefile.config.in
20035# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020036if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020037 prefix="/usr/local"
20038fi
Reid Spencere9de0912004-08-20 09:03:57 +000020039eval LLVM_PREFIX="${prefix}";
20040eval LLVM_BINDIR="${prefix}/bin";
20041eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020042eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020043eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020044eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020045eval LLVM_INCLUDEDIR="${prefix}/include";
20046eval LLVM_INFODIR="${prefix}/info";
20047eval LLVM_MANDIR="${prefix}/man";
20048LLVM_CONFIGTIME=`date`
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020060# Place the various directores into the config.h file as #defines so that we
20061# can know about the installation paths within LLVM.
20062
Reid Spencere9de0912004-08-20 09:03:57 +000020063cat >>confdefs.h <<_ACEOF
20064#define LLVM_PREFIX "$LLVM_PREFIX"
20065_ACEOF
20066
20067
20068cat >>confdefs.h <<_ACEOF
20069#define LLVM_BINDIR "$LLVM_BINDIR"
20070_ACEOF
20071
20072
20073cat >>confdefs.h <<_ACEOF
20074#define LLVM_LIBDIR "$LLVM_LIBDIR"
20075_ACEOF
20076
20077
20078cat >>confdefs.h <<_ACEOF
20079#define LLVM_DATADIR "$LLVM_DATADIR"
20080_ACEOF
20081
20082
20083cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020084#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020085_ACEOF
20086
20087
20088cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020089#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020090_ACEOF
20091
20092
20093cat >>confdefs.h <<_ACEOF
20094#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20095_ACEOF
20096
20097
20098cat >>confdefs.h <<_ACEOF
20099#define LLVM_INFODIR "$LLVM_INFODIR"
20100_ACEOF
20101
20102
20103cat >>confdefs.h <<_ACEOF
20104#define LLVM_MANDIR "$LLVM_MANDIR"
20105_ACEOF
20106
20107
20108cat >>confdefs.h <<_ACEOF
20109#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20110_ACEOF
20111
20112
Eric Christopher790e11c2007-12-01 00:34:39 +000020113cat >>confdefs.h <<_ACEOF
20114#define LLVM_HOSTTRIPLE "$host"
20115_ACEOF
20116
20117
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020118# Determine which bindings to build.
20119if test "$BINDINGS_TO_BUILD" = auto ; then
20120 BINDINGS_TO_BUILD=""
20121 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20122 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20123 fi
20124fi
20125BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20126
20127
20128# This isn't really configurey, but it avoids having to repeat the list in
20129# other files.
20130ALL_BINDINGS=ocaml
20131
20132
Gordon Henriksenf0915682007-10-02 16:42:22 +000020133# Do any work necessary to ensure that bindings have what they need.
20134binding_prereqs_failed=0
20135for a_binding in $BINDINGS_TO_BUILD ; do
20136 case "$a_binding" in
20137 ocaml)
20138 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020139 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20140echo "$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 +000020141 binding_prereqs_failed=1
20142 fi
20143 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020144 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20145echo "$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 +000020146 binding_prereqs_failed=1
20147 fi
20148 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020149 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20150echo "$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 +000020151 fi
20152 if test "x$with_ocaml_libdir" != xauto ; then
20153 OCAML_LIBDIR=$with_ocaml_libdir
20154
20155 else
20156 ocaml_stdlib="`"$OCAMLC" -where`"
20157 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20158 then
20159 # ocaml stdlib is beneath our prefix; use stdlib
20160 OCAML_LIBDIR=$ocaml_stdlib
20161
20162 else
20163 # ocaml stdlib is outside our prefix; use libdir/ocaml
20164 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20165
20166 fi
20167 fi
20168 ;;
20169 esac
20170done
20171if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020172 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20173echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20174 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020175fi
20176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020177{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20178echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20179if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020181else
20182 ac_ext=cpp
20183ac_cpp='$CXXCPP $CPPFLAGS'
20184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20187
20188 oldcxxflags="$CXXFLAGS"
20189 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020190 cat >conftest.$ac_ext <<_ACEOF
20191/* confdefs.h. */
20192_ACEOF
20193cat confdefs.h >>conftest.$ac_ext
20194cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020195/* end confdefs.h. */
20196
20197int
20198main ()
20199{
20200
20201 ;
20202 return 0;
20203}
20204_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020205rm -f conftest.$ac_objext
20206if { (ac_try="$ac_compile"
20207case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210esac
20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_compile") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } &&
20219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20220 { (case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223esac
20224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_try") 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233esac
20234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_try") 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020239 llvm_cv_cxx_visibility_inlines_hidden=yes
20240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020241 echo "$as_me: failed program was:" >&5
20242sed 's/^/| /' conftest.$ac_ext >&5
20243
20244 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020246
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 CXXFLAGS="$oldcxxflags"
20249 ac_ext=c
20250ac_cpp='$CPP $CPPFLAGS'
20251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20253ac_compiler_gnu=$ac_cv_c_compiler_gnu
20254
20255
20256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020257{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20258echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020259if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20260 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20261
20262else
20263 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20264
20265fi
20266
Gordon Henriksenf0915682007-10-02 16:42:22 +000020267
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020268if test "$llvm_cv_link_use_r" = "yes" ; then
20269 RPATH="-Wl,-R"
20270else
20271 RPATH="-Wl,-rpath"
20272fi
20273
20274
20275if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20276 RDYNAMIC="-Wl,-export-dynamic"
20277else
20278 RDYNAMIC=""
20279fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020280
20281
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020282
Reid Spencera773bd52006-08-04 18:18:08 +000020283ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020284
Douglas Gregor1555a232009-06-16 20:12:29 +000020285ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20286
20287ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20288
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020289ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20290
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020291ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20292
Chandler Carruth8b67f772009-10-26 01:35:46 +000020293ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020294
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020295
Reid Spencera773bd52006-08-04 18:18:08 +000020296ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020297
20298
Reid Spencerea949cf2006-08-16 00:45:38 +000020299ac_config_files="$ac_config_files llvm.spec"
20300
20301
Reid Spencera773bd52006-08-04 18:18:08 +000020302ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000020303
20304
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020305ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20306
20307
Reid Spencera773bd52006-08-04 18:18:08 +000020308ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020309
20310
Reid Spencera773bd52006-08-04 18:18:08 +000020311ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020312
Reid Spencera773bd52006-08-04 18:18:08 +000020313ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020314
20315
Reid Spencera773bd52006-08-04 18:18:08 +000020316ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020317
20318
Reid Spencera773bd52006-08-04 18:18:08 +000020319ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020320
20321
Reid Spencera773bd52006-08-04 18:18:08 +000020322ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020323
20324
Reid Spencer8b2e1412006-11-17 03:32:33 +000020325ac_config_commands="$ac_config_commands runtime/Makefile"
20326
20327
Reid Spencera773bd52006-08-04 18:18:08 +000020328ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020329
20330
Reid Spencera773bd52006-08-04 18:18:08 +000020331ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020332
20333
Bill Wendlingf24eb392009-01-04 23:12:30 +000020334ac_config_commands="$ac_config_commands unittests/Makefile"
20335
20336
Reid Spencera773bd52006-08-04 18:18:08 +000020337ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020338
20339
Reid Spencera773bd52006-08-04 18:18:08 +000020340ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020341
20342
Reid Spencera773bd52006-08-04 18:18:08 +000020343ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020344
20345
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020346ac_config_commands="$ac_config_commands bindings/Makefile"
20347
20348
20349ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20350
20351
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020352
John Criswell7a73b802003-06-30 21:59:07 +000020353cat >confcache <<\_ACEOF
20354# This file is a shell script that caches the results of configure
20355# tests run on this system so they can be shared between configure
20356# scripts and configure runs, see configure's option --config-cache.
20357# It is not useful on other systems. If it contains results you don't
20358# want to keep, you may remove or edit it.
20359#
20360# config.status only pays attention to the cache file if you give it
20361# the --recheck option to rerun configure.
20362#
John Criswell0c38eaf2003-09-10 15:17:25 +000020363# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020364# loading this file, other *unset* `ac_cv_foo' will be assigned the
20365# following values.
20366
20367_ACEOF
20368
20369# The following way of writing the cache mishandles newlines in values,
20370# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020371# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020372# Ultrix sh set writes to stderr and can't be redirected directly,
20373# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020374(
20375 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20376 eval ac_val=\$$ac_var
20377 case $ac_val in #(
20378 *${as_nl}*)
20379 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020380 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20381echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020382 esac
20383 case $ac_var in #(
20384 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020386 esac ;;
20387 esac
20388 done
20389
John Criswell7a73b802003-06-30 21:59:07 +000020390 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20392 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020393 # `set' does not quote correctly, so add quotes (double-quote
20394 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020395 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020396 "s/'/'\\\\''/g;
20397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020398 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020399 *)
20400 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020402 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020403 esac |
20404 sort
20405) |
John Criswell7a73b802003-06-30 21:59:07 +000020406 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020407 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020408 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020409 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20411 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20413 :end' >>confcache
20414if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20415 if test -w "$cache_file"; then
20416 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020417 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20418echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020419 cat confcache >$cache_file
20420 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020421 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20422echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020423 fi
20424fi
20425rm -f confcache
20426
20427test "x$prefix" = xNONE && prefix=$ac_default_prefix
20428# Let make expand exec_prefix.
20429test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20430
John Criswell7a73b802003-06-30 21:59:07 +000020431DEFS=-DHAVE_CONFIG_H
20432
John Criswell0c38eaf2003-09-10 15:17:25 +000020433ac_libobjs=
20434ac_ltlibobjs=
20435for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20436 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020438 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20440 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020441 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20442 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020443done
20444LIBOBJS=$ac_libobjs
20445
20446LTLIBOBJS=$ac_ltlibobjs
20447
20448
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020449if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020450 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20451Usually this means the macro was only invoked conditionally." >&5
20452echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20453Usually this means the macro was only invoked conditionally." >&2;}
20454 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020455fi
20456if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20458Usually this means the macro was only invoked conditionally." >&5
20459echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20460Usually this means the macro was only invoked conditionally." >&2;}
20461 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020462fi
John Criswell7a73b802003-06-30 21:59:07 +000020463
20464: ${CONFIG_STATUS=./config.status}
20465ac_clean_files_save=$ac_clean_files
20466ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020467{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20468echo "$as_me: creating $CONFIG_STATUS" >&6;}
20469cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020470#! $SHELL
20471# Generated by $as_me.
20472# Run this file to recreate the current configuration.
20473# Compiler output produced by configure, useful for debugging
20474# configure, is in config.log if it exists.
20475
20476debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020477ac_cs_recheck=false
20478ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020479SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020480_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020482cat >>$CONFIG_STATUS <<\_ACEOF
20483## --------------------- ##
20484## M4sh Initialization. ##
20485## --------------------- ##
20486
20487# Be Bourne compatible
20488if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020489 emulate sh
20490 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020491 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020492 # is contrary to our usage. Disable this feature.
20493 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020494 setopt NO_GLOB_SUBST
20495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020496 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020497fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020498BIN_SH=xpg4; export BIN_SH # for Tru64
20499DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020500
John Criswell7a73b802003-06-30 21:59:07 +000020501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020502# PATH needs CR
20503# Avoid depending upon Character Ranges.
20504as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20505as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20506as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20507as_cr_digits='0123456789'
20508as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020509
20510# The user is always right.
20511if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020512 echo "#! /bin/sh" >conf$$.sh
20513 echo "exit 0" >>conf$$.sh
20514 chmod +x conf$$.sh
20515 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20516 PATH_SEPARATOR=';'
20517 else
20518 PATH_SEPARATOR=:
20519 fi
20520 rm -f conf$$.sh
20521fi
20522
20523# Support unset when possible.
20524if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20525 as_unset=unset
20526else
20527 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020528fi
John Criswell7a73b802003-06-30 21:59:07 +000020529
Reid Spencera773bd52006-08-04 18:18:08 +000020530
20531# IFS
20532# We need space, tab and new line, in precisely that order. Quoting is
20533# there to prevent editors from complaining about space-tab.
20534# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20535# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536as_nl='
20537'
Reid Spencera773bd52006-08-04 18:18:08 +000020538IFS=" "" $as_nl"
20539
20540# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020542 *[\\/]* ) as_myself=$0 ;;
20543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020544for as_dir in $PATH
20545do
20546 IFS=$as_save_IFS
20547 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20549done
Reid Spencera773bd52006-08-04 18:18:08 +000020550IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020551
Reid Spencera773bd52006-08-04 18:18:08 +000020552 ;;
20553esac
20554# We did not find ourselves, most probably we were run as `sh COMMAND'
20555# in which case we are not to be found in the path.
20556if test "x$as_myself" = x; then
20557 as_myself=$0
20558fi
20559if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20561 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020562fi
20563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020564# Work around bugs in pre-3.0 UWIN ksh.
20565for as_var in ENV MAIL MAILPATH
20566do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020567done
20568PS1='$ '
20569PS2='> '
20570PS4='+ '
20571
20572# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573for as_var in \
20574 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20575 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20576 LC_TELEPHONE LC_TIME
20577do
20578 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20579 eval $as_var=C; export $as_var
20580 else
20581 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020582 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020583done
Torok Edwin871384f2010-01-26 08:50:50 +000020584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020585# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020586if expr a : '\(a\)' >/dev/null 2>&1 &&
20587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20588 as_expr=expr
20589else
20590 as_expr=false
20591fi
20592
20593if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20594 as_basename=basename
20595else
20596 as_basename=false
20597fi
20598
20599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020601as_me=`$as_basename -- "$0" ||
20602$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20603 X"$0" : 'X\(//\)$' \| \
20604 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020605echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020606 sed '/^.*\/\([^/][^/]*\)\/*$/{
20607 s//\1/
20608 q
20609 }
20610 /^X\/\(\/\/\)$/{
20611 s//\1/
20612 q
20613 }
20614 /^X\/\(\/\).*/{
20615 s//\1/
20616 q
20617 }
20618 s/.*/./; q'`
20619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020620# CDPATH.
20621$as_unset CDPATH
20622
20623
20624
20625 as_lineno_1=$LINENO
20626 as_lineno_2=$LINENO
20627 test "x$as_lineno_1" != "x$as_lineno_2" &&
20628 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20629
20630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20631 # uniformly replaced by the line number. The first 'sed' inserts a
20632 # line-number line after each line using $LINENO; the second 'sed'
20633 # does the real work. The second script uses 'N' to pair each
20634 # line-number line with the line containing $LINENO, and appends
20635 # trailing '-' during substitution so that $LINENO is not a special
20636 # case at line end.
20637 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20638 # scripts with optimization help from Paolo Bonzini. Blame Lee
20639 # E. McMahon (1931-1989) for sed's syntax. :-)
20640 sed -n '
20641 p
20642 /[$]LINENO/=
20643 ' <$as_myself |
20644 sed '
20645 s/[$]LINENO.*/&-/
20646 t lineno
20647 b
20648 :lineno
20649 N
20650 :loop
20651 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20652 t loop
20653 s/-\n.*//
20654 ' >$as_me.lineno &&
20655 chmod +x "$as_me.lineno" ||
20656 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20657 { (exit 1); exit 1; }; }
20658
20659 # Don't try to exec as it changes $[0], causing all sort of problems
20660 # (the dirname of $[0] is not the place where we might find the
20661 # original and so on. Autoconf is especially sensitive to this).
20662 . "./$as_me.lineno"
20663 # Exit status is that of the last command.
20664 exit
20665}
20666
20667
20668if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20669 as_dirname=dirname
20670else
20671 as_dirname=false
20672fi
Reid Spencera773bd52006-08-04 18:18:08 +000020673
20674ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020675case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020676-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020677 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020678 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020679 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020680 esac;;
20681*)
20682 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020683esac
20684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020685if expr a : '\(a\)' >/dev/null 2>&1 &&
20686 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20687 as_expr=expr
20688else
20689 as_expr=false
20690fi
20691
John Criswell7a73b802003-06-30 21:59:07 +000020692rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020693if test -d conf$$.dir; then
20694 rm -f conf$$.dir/conf$$.file
20695else
20696 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020697 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020699echo >conf$$.file
20700if ln -s conf$$.file conf$$ 2>/dev/null; then
20701 as_ln_s='ln -s'
20702 # ... but there are two gotchas:
20703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20705 # In both cases, we have to default to `cp -p'.
20706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020707 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020708elif ln conf$$.file conf$$ 2>/dev/null; then
20709 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020710else
20711 as_ln_s='cp -p'
20712fi
Reid Spencera773bd52006-08-04 18:18:08 +000020713rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20714rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020715
John Criswell0c38eaf2003-09-10 15:17:25 +000020716if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020717 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020718else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020719 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020720 as_mkdir_p=false
20721fi
20722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020723# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20724# systems may use methods other than mode bits to determine executability.
20725cat >conf$$.file <<_ASEOF
20726#! /bin/sh
20727exit 0
20728_ASEOF
20729chmod +x conf$$.file
20730if test -x conf$$.file >/dev/null 2>&1; then
20731 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020732else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020733 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020735rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020736
20737# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020738as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020739
20740# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020741as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020742
20743
John Criswell7a73b802003-06-30 21:59:07 +000020744exec 6>&1
20745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020746# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020747# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020748# values after options handling.
20749ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020750This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020751generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020752
20753 CONFIG_FILES = $CONFIG_FILES
20754 CONFIG_HEADERS = $CONFIG_HEADERS
20755 CONFIG_LINKS = $CONFIG_LINKS
20756 CONFIG_COMMANDS = $CONFIG_COMMANDS
20757 $ $0 $@
20758
Reid Spencera773bd52006-08-04 18:18:08 +000020759on `(hostname || uname -n) 2>/dev/null | sed 1q`
20760"
20761
John Criswell7a73b802003-06-30 21:59:07 +000020762_ACEOF
20763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020764cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020765# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020766config_files="$ac_config_files"
20767config_headers="$ac_config_headers"
20768config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020769
Reid Spencera773bd52006-08-04 18:18:08 +000020770_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020772cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020773ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774\`$as_me' instantiates files from templates according to the
20775current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020777Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020778
20779 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020780 -V, --version print version number, then exit
20781 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020782 -d, --debug don't remove temporary files
20783 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020784 --file=FILE[:TEMPLATE]
20785 instantiate the configuration file FILE
20786 --header=FILE[:TEMPLATE]
20787 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020788
20789Configuration files:
20790$config_files
20791
20792Configuration headers:
20793$config_headers
20794
John Criswellc764fbc2003-09-06 15:17:13 +000020795Configuration commands:
20796$config_commands
20797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020798Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020799
Reid Spencera773bd52006-08-04 18:18:08 +000020800_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020801cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020802ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020803llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020804configured by $0, generated by GNU Autoconf 2.60,
20805 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020807Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020808This config.status script is free software; the Free Software Foundation
20809gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020810
20811ac_pwd='$ac_pwd'
20812srcdir='$srcdir'
20813INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020814_ACEOF
20815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020816cat >>$CONFIG_STATUS <<\_ACEOF
20817# If no file are specified by the user, then we need to provide default
20818# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020819ac_need_defaults=:
20820while test $# != 0
20821do
20822 case $1 in
20823 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20825 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020826 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020827 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020828 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020829 ac_option=$1
20830 ac_optarg=$2
20831 ac_shift=shift
20832 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020833 esac
20834
John Criswell0c38eaf2003-09-10 15:17:25 +000020835 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020836 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20838 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020840 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020841 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020842 debug=: ;;
20843 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020844 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020845 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020846 ac_need_defaults=false;;
20847 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020848 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020849 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020850 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020851 --he | --h)
20852 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020853 { echo "$as_me: error: ambiguous option: $1
20854Try \`$0 --help' for more information." >&2
20855 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020856 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020857 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20860 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020861
20862 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020863 -*) { echo "$as_me: error: unrecognized option: $1
20864Try \`$0 --help' for more information." >&2
20865 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020867 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020868 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020869
20870 esac
20871 shift
20872done
20873
John Criswell0c38eaf2003-09-10 15:17:25 +000020874ac_configure_extra_args=
20875
20876if $ac_cs_silent; then
20877 exec 6>/dev/null
20878 ac_configure_extra_args="$ac_configure_extra_args --silent"
20879fi
20880
20881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020882cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020883if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020884 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20885 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020886 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020888fi
20889
John Criswell7a73b802003-06-30 21:59:07 +000020890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020891cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020892exec 5>>config.log
20893{
20894 echo
20895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20896## Running $as_me. ##
20897_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020899} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020900
Reid Spencera773bd52006-08-04 18:18:08 +000020901_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020902cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020903#
Reid Spencera773bd52006-08-04 18:18:08 +000020904# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020905#
Reid Spencerc0682832005-02-24 19:05:19 +000020906llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020907
20908_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020910cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020911
20912# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020913for ac_config_target in $ac_config_targets
20914do
Reid Spencera773bd52006-08-04 18:18:08 +000020915 case $ac_config_target in
20916 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020917 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20918 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020919 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020920 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020921 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020922 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020923 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020924 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020925 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020926 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20927 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20928 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20929 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20930 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20931 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020932 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020933 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20934 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020935 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020936 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20937 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20938 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020939 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20940 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020942 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20943echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20944 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020945 esac
20946done
20947
Reid Spencera773bd52006-08-04 18:18:08 +000020948
John Criswell7a73b802003-06-30 21:59:07 +000020949# If the user did not use the arguments to specify the items to instantiate,
20950# then the envvar interface is used. Set only those that are not.
20951# We use the long form for the default assignment because of an extremely
20952# bizarre bug on SunOS 4.1.3.
20953if $ac_need_defaults; then
20954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20955 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020956 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020957fi
20958
John Criswell0c38eaf2003-09-10 15:17:25 +000020959# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020960# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020961# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020962# Hook for its removal unless debugging.
20963# Note that there is a small window in which the directory will not be cleaned:
20964# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020965$debug ||
20966{
Reid Spencera773bd52006-08-04 18:18:08 +000020967 tmp=
20968 trap 'exit_status=$?
20969 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20970' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020971 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020972}
John Criswell7a73b802003-06-30 21:59:07 +000020973# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020974
John Criswell7a73b802003-06-30 21:59:07 +000020975{
Reid Spencera773bd52006-08-04 18:18:08 +000020976 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020977 test -n "$tmp" && test -d "$tmp"
20978} ||
20979{
Reid Spencera773bd52006-08-04 18:18:08 +000020980 tmp=./conf$$-$RANDOM
20981 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020982} ||
20983{
20984 echo "$me: cannot create a temporary directory in ." >&2
20985 { (exit 1); exit 1; }
20986}
John Criswell7a73b802003-06-30 21:59:07 +000020987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020988#
20989# Set up the sed scripts for CONFIG_FILES section.
20990#
20991
20992# No need to generate the scripts if there are no CONFIG_FILES.
20993# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020994if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020995
20996_ACEOF
20997
Reid Spencera773bd52006-08-04 18:18:08 +000020998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020999
Reid Spencera773bd52006-08-04 18:18:08 +000021000ac_delim='%!_!# '
21001for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021002 cat >conf$$subs.sed <<_ACEOF
21003SHELL!$SHELL$ac_delim
21004PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21005PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21006PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21007PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21008PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21009PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21010exec_prefix!$exec_prefix$ac_delim
21011prefix!$prefix$ac_delim
21012program_transform_name!$program_transform_name$ac_delim
21013bindir!$bindir$ac_delim
21014sbindir!$sbindir$ac_delim
21015libexecdir!$libexecdir$ac_delim
21016datarootdir!$datarootdir$ac_delim
21017datadir!$datadir$ac_delim
21018sysconfdir!$sysconfdir$ac_delim
21019sharedstatedir!$sharedstatedir$ac_delim
21020localstatedir!$localstatedir$ac_delim
21021includedir!$includedir$ac_delim
21022oldincludedir!$oldincludedir$ac_delim
21023docdir!$docdir$ac_delim
21024infodir!$infodir$ac_delim
21025htmldir!$htmldir$ac_delim
21026dvidir!$dvidir$ac_delim
21027pdfdir!$pdfdir$ac_delim
21028psdir!$psdir$ac_delim
21029libdir!$libdir$ac_delim
21030localedir!$localedir$ac_delim
21031mandir!$mandir$ac_delim
21032DEFS!$DEFS$ac_delim
21033ECHO_C!$ECHO_C$ac_delim
21034ECHO_N!$ECHO_N$ac_delim
21035ECHO_T!$ECHO_T$ac_delim
21036LIBS!$LIBS$ac_delim
21037build_alias!$build_alias$ac_delim
21038host_alias!$host_alias$ac_delim
21039target_alias!$target_alias$ac_delim
21040LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21041subdirs!$subdirs$ac_delim
21042build!$build$ac_delim
21043build_cpu!$build_cpu$ac_delim
21044build_vendor!$build_vendor$ac_delim
21045build_os!$build_os$ac_delim
21046host!$host$ac_delim
21047host_cpu!$host_cpu$ac_delim
21048host_vendor!$host_vendor$ac_delim
21049host_os!$host_os$ac_delim
21050target!$target$ac_delim
21051target_cpu!$target_cpu$ac_delim
21052target_vendor!$target_vendor$ac_delim
21053target_os!$target_os$ac_delim
21054OS!$OS$ac_delim
21055HOST_OS!$HOST_OS$ac_delim
21056TARGET_OS!$TARGET_OS$ac_delim
21057LINKALL!$LINKALL$ac_delim
21058NOLINKALL!$NOLINKALL$ac_delim
21059LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21060LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21061ARCH!$ARCH$ac_delim
21062ENDIAN!$ENDIAN$ac_delim
21063CC!$CC$ac_delim
21064CFLAGS!$CFLAGS$ac_delim
21065LDFLAGS!$LDFLAGS$ac_delim
21066CPPFLAGS!$CPPFLAGS$ac_delim
21067ac_ct_CC!$ac_ct_CC$ac_delim
21068EXEEXT!$EXEEXT$ac_delim
21069OBJEXT!$OBJEXT$ac_delim
21070CPP!$CPP$ac_delim
21071GREP!$GREP$ac_delim
21072EGREP!$EGREP$ac_delim
21073LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21074BUILD_CC!$BUILD_CC$ac_delim
21075BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21076BUILD_CXX!$BUILD_CXX$ac_delim
21077CVSBUILD!$CVSBUILD$ac_delim
21078ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21079ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21080DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21081ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21082EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21083DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21084DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21085JIT!$JIT$ac_delim
21086TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21087ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21088ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21089ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021090ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021091TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21092LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21093LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21094LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21095LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21096ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021097CLANGPATH!$CLANGPATH$ac_delim
21098CLANGXXPATH!$CLANGXXPATH$ac_delim
21099ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021100_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021102 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021103 break
21104 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021105 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21106echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21107 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021108 else
21109 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021110 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021111done
21112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021113ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21114if test -n "$ac_eof"; then
21115 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21116 ac_eof=`expr $ac_eof + 1`
21117fi
21118
21119cat >>$CONFIG_STATUS <<_ACEOF
21120cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21121/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021123sed '
21124s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21125s/^/s,@/; s/!/@,|#_!!_#|/
21126:n
21127t n
21128s/'"$ac_delim"'$/,g/; t
21129s/$/\\/; p
21130N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21131' >>$CONFIG_STATUS <conf$$subs.sed
21132rm -f conf$$subs.sed
21133cat >>$CONFIG_STATUS <<_ACEOF
21134CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021135_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021136
21137
21138ac_delim='%!_!# '
21139for ac_last_try in false false false false false :; do
21140 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021141OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021142EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21143BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21144ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021145ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21146CXX!$CXX$ac_delim
21147CXXFLAGS!$CXXFLAGS$ac_delim
21148ac_ct_CXX!$ac_ct_CXX$ac_delim
21149NM!$NM$ac_delim
21150ifGNUmake!$ifGNUmake$ac_delim
21151LN_S!$LN_S$ac_delim
21152CMP!$CMP$ac_delim
21153CP!$CP$ac_delim
21154DATE!$DATE$ac_delim
21155FIND!$FIND$ac_delim
21156MKDIR!$MKDIR$ac_delim
21157MV!$MV$ac_delim
21158RANLIB!$RANLIB$ac_delim
21159AR!$AR$ac_delim
21160RM!$RM$ac_delim
21161SED!$SED$ac_delim
21162TAR!$TAR$ac_delim
21163BINPWD!$BINPWD$ac_delim
21164GRAPHVIZ!$GRAPHVIZ$ac_delim
21165DOT!$DOT$ac_delim
21166FDP!$FDP$ac_delim
21167NEATO!$NEATO$ac_delim
21168TWOPI!$TWOPI$ac_delim
21169CIRCO!$CIRCO$ac_delim
21170GV!$GV$ac_delim
21171DOTTY!$DOTTY$ac_delim
21172PERL!$PERL$ac_delim
21173HAVE_PERL!$HAVE_PERL$ac_delim
21174INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21175INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21176INSTALL_DATA!$INSTALL_DATA$ac_delim
21177BZIP2!$BZIP2$ac_delim
21178DOXYGEN!$DOXYGEN$ac_delim
21179GROFF!$GROFF$ac_delim
21180GZIP!$GZIP$ac_delim
21181POD2HTML!$POD2HTML$ac_delim
21182POD2MAN!$POD2MAN$ac_delim
21183RUNTEST!$RUNTEST$ac_delim
21184TCLSH!$TCLSH$ac_delim
21185ZIP!$ZIP$ac_delim
21186OCAMLC!$OCAMLC$ac_delim
21187OCAMLOPT!$OCAMLOPT$ac_delim
21188OCAMLDEP!$OCAMLDEP$ac_delim
21189OCAMLDOC!$OCAMLDOC$ac_delim
21190GAS!$GAS$ac_delim
Dan Gohman391569c2010-04-16 22:59:06 +000021191HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021192INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21193INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21194CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21195CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21196LIBADD_DL!$LIBADD_DL$ac_delim
21197LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21198LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21199LLVMGCC!$LLVMGCC$ac_delim
21200LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021201LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021202NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21203NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21204USE_UDIS86!$USE_UDIS86$ac_delim
21205USE_OPROFILE!$USE_OPROFILE$ac_delim
21206HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21207HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21208MMAP_FILE!$MMAP_FILE$ac_delim
21209LLVMCC1!$LLVMCC1$ac_delim
21210LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21211LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021212LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21213SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021214SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021215LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21216LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21217LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21218LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21219LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21220LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21221LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21222LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21223LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21224LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21225BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21226ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21227OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21228ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21229RPATH!$RPATH$ac_delim
21230RDYNAMIC!$RDYNAMIC$ac_delim
21231LIBOBJS!$LIBOBJS$ac_delim
21232LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021233_ACEOF
21234
Dan Gohman391569c2010-04-16 22:59:06 +000021235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236 break
21237 elif $ac_last_try; then
21238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21239echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21240 { (exit 1); exit 1; }; }
21241 else
21242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21243 fi
21244done
21245
21246ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21247if test -n "$ac_eof"; then
21248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21249 ac_eof=`expr $ac_eof + 1`
21250fi
21251
21252cat >>$CONFIG_STATUS <<_ACEOF
21253cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21254/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21255_ACEOF
21256sed '
21257s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21258s/^/s,@/; s/!/@,|#_!!_#|/
21259:n
21260t n
21261s/'"$ac_delim"'$/,g/; t
21262s/$/\\/; p
21263N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21264' >>$CONFIG_STATUS <conf$$subs.sed
21265rm -f conf$$subs.sed
21266cat >>$CONFIG_STATUS <<_ACEOF
21267:end
21268s/|#_!!_#|//g
21269CEOF$ac_eof
21270_ACEOF
21271
21272
Reid Spencera773bd52006-08-04 18:18:08 +000021273# VPATH may cause trouble with some makes, so we remove $(srcdir),
21274# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21275# trailing colons and then remove the whole line if VPATH becomes empty
21276# (actually we leave an empty line to preserve line numbers).
21277if test "x$srcdir" = x.; then
21278 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21279s/:*\$(srcdir):*/:/
21280s/:*\${srcdir}:*/:/
21281s/:*@srcdir@:*/:/
21282s/^\([^=]*=[ ]*\):*/\1/
21283s/:*$//
21284s/^[^=]*=[ ]*$//
21285}'
21286fi
21287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021288cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021289fi # test -n "$CONFIG_FILES"
21290
Reid Spencera773bd52006-08-04 18:18:08 +000021291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021292for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021293do
21294 case $ac_tag in
21295 :[FHLC]) ac_mode=$ac_tag; continue;;
21296 esac
21297 case $ac_mode$ac_tag in
21298 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021299 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21300echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21301 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021302 :[FH]-) ac_tag=-:-;;
21303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21304 esac
21305 ac_save_IFS=$IFS
21306 IFS=:
21307 set x $ac_tag
21308 IFS=$ac_save_IFS
21309 shift
21310 ac_file=$1
21311 shift
21312
21313 case $ac_mode in
21314 :L) ac_source=$1;;
21315 :[FH])
21316 ac_file_inputs=
21317 for ac_f
21318 do
21319 case $ac_f in
21320 -) ac_f="$tmp/stdin";;
21321 *) # Look for the file first in the build tree, then in the source tree
21322 # (if the path is not absolute). The absolute path cannot be DOS-style,
21323 # because $ac_f cannot contain `:'.
21324 test -f "$ac_f" ||
21325 case $ac_f in
21326 [\\/$]*) false;;
21327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21328 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021329 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21330echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21331 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021332 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021333 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021334 done
21335
21336 # Let's still pretend it is `configure' which instantiates (i.e., don't
21337 # use $as_me), people would be surprised to read:
21338 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021339 configure_input="Generated from "`IFS=:
21340 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021341 if test x"$ac_file" != x-; then
21342 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021343 { echo "$as_me:$LINENO: creating $ac_file" >&5
21344echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021345 fi
21346
21347 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021348 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021349 esac
21350 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021351 esac
21352
Reid Spencera773bd52006-08-04 18:18:08 +000021353 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021354$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021355 X"$ac_file" : 'X\(//\)[^/]' \| \
21356 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021358echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21360 s//\1/
21361 q
21362 }
21363 /^X\(\/\/\)[^/].*/{
21364 s//\1/
21365 q
21366 }
21367 /^X\(\/\/\)$/{
21368 s//\1/
21369 q
21370 }
21371 /^X\(\/\).*/{
21372 s//\1/
21373 q
21374 }
21375 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021376 { as_dir="$ac_dir"
21377 case $as_dir in #(
21378 -*) as_dir=./$as_dir;;
21379 esac
21380 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21381 as_dirs=
21382 while :; do
21383 case $as_dir in #(
21384 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21385 *) as_qdir=$as_dir;;
21386 esac
21387 as_dirs="'$as_qdir' $as_dirs"
21388 as_dir=`$as_dirname -- "$as_dir" ||
21389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21390 X"$as_dir" : 'X\(//\)[^/]' \| \
21391 X"$as_dir" : 'X\(//\)$' \| \
21392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21393echo X"$as_dir" |
21394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21395 s//\1/
21396 q
21397 }
21398 /^X\(\/\/\)[^/].*/{
21399 s//\1/
21400 q
21401 }
21402 /^X\(\/\/\)$/{
21403 s//\1/
21404 q
21405 }
21406 /^X\(\/\).*/{
21407 s//\1/
21408 q
21409 }
21410 s/.*/./; q'`
21411 test -d "$as_dir" && break
21412 done
21413 test -z "$as_dirs" || eval "mkdir $as_dirs"
21414 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21415echo "$as_me: error: cannot create directory $as_dir" >&2;}
21416 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021417 ac_builddir=.
21418
Reid Spencera773bd52006-08-04 18:18:08 +000021419case "$ac_dir" in
21420.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21421*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021423 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021424 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021425 case $ac_top_builddir_sub in
21426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21428 esac ;;
21429esac
21430ac_abs_top_builddir=$ac_pwd
21431ac_abs_builddir=$ac_pwd$ac_dir_suffix
21432# for backward compatibility:
21433ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021434
21435case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021436 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021437 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021438 ac_top_srcdir=$ac_top_builddir_sub
21439 ac_abs_top_srcdir=$ac_pwd ;;
21440 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021441 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021442 ac_top_srcdir=$srcdir
21443 ac_abs_top_srcdir=$srcdir ;;
21444 *) # Relative name.
21445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21446 ac_top_srcdir=$ac_top_build_prefix$srcdir
21447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021448esac
Reid Spencera773bd52006-08-04 18:18:08 +000021449ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021450
John Criswell7a73b802003-06-30 21:59:07 +000021451
Reid Spencera773bd52006-08-04 18:18:08 +000021452 case $ac_mode in
21453 :F)
21454 #
21455 # CONFIG_FILE
21456 #
John Criswell7a73b802003-06-30 21:59:07 +000021457
21458 case $INSTALL in
21459 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021460 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021461 esac
John Criswell7a73b802003-06-30 21:59:07 +000021462_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021464cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021465# If the template does not know about datarootdir, expand it.
21466# FIXME: This hack should be removed a few years after 2.60.
21467ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021468
21469case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021470 p
21471 q
21472}
21473/@datadir@/p
21474/@docdir@/p
21475/@infodir@/p
21476/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021477/@mandir@/p
21478' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021479*datarootdir*) ac_datarootdir_seen=yes;;
21480*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021481 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21482echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021483_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021484cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021485 ac_datarootdir_hack='
21486 s&@datadir@&$datadir&g
21487 s&@docdir@&$docdir&g
21488 s&@infodir@&$infodir&g
21489 s&@localedir@&$localedir&g
21490 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021491 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021492esac
21493_ACEOF
21494
21495# Neutralize VPATH when `$srcdir' = `.'.
21496# Shell code in configure.ac might set extrasub.
21497# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021498cat >>$CONFIG_STATUS <<_ACEOF
21499 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021500$extrasub
21501_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021502cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021503:t
21504/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021506s&@top_builddir@&$ac_top_builddir_sub&;t t
21507s&@srcdir@&$ac_srcdir&;t t
21508s&@abs_srcdir@&$ac_abs_srcdir&;t t
21509s&@top_srcdir@&$ac_top_srcdir&;t t
21510s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21511s&@builddir@&$ac_builddir&;t t
21512s&@abs_builddir@&$ac_abs_builddir&;t t
21513s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21514s&@INSTALL@&$ac_INSTALL&;t t
21515$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021517
Reid Spencera773bd52006-08-04 18:18:08 +000021518test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21519 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021521 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021522which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021524which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021525
Reid Spencera773bd52006-08-04 18:18:08 +000021526 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021527 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021528 -) cat "$tmp/out"; rm -f "$tmp/out";;
21529 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21530 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021531 ;;
21532 :H)
21533 #
21534 # CONFIG_HEADER
21535 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536_ACEOF
21537
21538# Transform confdefs.h into a sed script `conftest.defines', that
21539# substitutes the proper values into config.h.in to produce config.h.
21540rm -f conftest.defines conftest.tail
21541# First, append a space to every undef/define line, to ease matching.
21542echo 's/$/ /' >conftest.defines
21543# Then, protect against being on the right side of a sed subst, or in
21544# an unquoted here document, in config.status. If some macros were
21545# called several times there might be several #defines for the same
21546# symbol, which is useless. But do not sort them, since the last
21547# AC_DEFINE must be honored.
21548ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21549# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21550# NAME is the cpp macro being defined, VALUE is the value it is being given.
21551# PARAMS is the parameter list in the macro definition--in most cases, it's
21552# just an empty string.
21553ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21554ac_dB='\\)[ (].*,\\1define\\2'
21555ac_dC=' '
21556ac_dD=' ,'
21557
21558uniq confdefs.h |
21559 sed -n '
21560 t rset
21561 :rset
21562 s/^[ ]*#[ ]*define[ ][ ]*//
21563 t ok
21564 d
21565 :ok
21566 s/[\\&,]/\\&/g
21567 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21568 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21569 ' >>conftest.defines
21570
21571# Remove the space that was appended to ease matching.
21572# Then replace #undef with comments. This is necessary, for
21573# example, in the case of _POSIX_SOURCE, which is predefined and required
21574# on some systems where configure will not decide to define it.
21575# (The regexp can be short, since the line contains either #define or #undef.)
21576echo 's/ $//
21577s,^[ #]*u.*,/* & */,' >>conftest.defines
21578
21579# Break up conftest.defines:
21580ac_max_sed_lines=50
21581
21582# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21583# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21584# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21585# et cetera.
21586ac_in='$ac_file_inputs'
21587ac_out='"$tmp/out1"'
21588ac_nxt='"$tmp/out2"'
21589
21590while :
21591do
21592 # Write a here document:
21593 cat >>$CONFIG_STATUS <<_ACEOF
21594 # First, check the format of the line:
21595 cat >"\$tmp/defines.sed" <<\\CEOF
21596/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21597/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21598b
21599:def
21600_ACEOF
21601 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21602 echo 'CEOF
21603 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21604 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21605 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21606 grep . conftest.tail >/dev/null || break
21607 rm -f conftest.defines
21608 mv conftest.tail conftest.defines
21609done
21610rm -f conftest.defines conftest.tail
21611
21612echo "ac_result=$ac_in" >>$CONFIG_STATUS
21613cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021614 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021615 echo "/* $configure_input */" >"$tmp/config.h"
21616 cat "$ac_result" >>"$tmp/config.h"
21617 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21619echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021620 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021621 rm -f $ac_file
21622 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021623 fi
21624 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625 echo "/* $configure_input */"
21626 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021627 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021628 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021629 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021631 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21632echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021633 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021634 esac
John Criswell7a73b802003-06-30 21:59:07 +000021635
Reid Spencera773bd52006-08-04 18:18:08 +000021636
21637 case $ac_file$ac_mode in
21638 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021640 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021642 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021644 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021646 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021647 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021648 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021650 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021651 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021652 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021653 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021654 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021655 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021656 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021657 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021658 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021659 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021660 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021662 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021663 ${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 +000021664
21665 esac
21666done # for ac_tag
21667
John Criswell7a73b802003-06-30 21:59:07 +000021668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021669{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021670_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021671chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021672ac_clean_files=$ac_clean_files_save
21673
21674
21675# configure is writing to config.log, and then calls config.status.
21676# config.status does its own redirection, appending to config.log.
21677# Unfortunately, on DOS this fails, as config.log is still kept open
21678# by configure, so config.status won't be able to write to it; its
21679# output is simply discarded. So we exec the FD to /dev/null,
21680# effectively closing config.log, so it can be properly (re)opened and
21681# appended to by config.status. When coming back to configure, we
21682# need to make the FD available again.
21683if test "$no_create" != yes; then
21684 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021685 ac_config_status_args=
21686 test "$silent" = yes &&
21687 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021688 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021689 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021690 exec 5>>config.log
21691 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21692 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021693 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021694fi
21695
John Criswell12399a12003-09-30 15:55:44 +000021696#
21697# CONFIG_SUBDIRS section.
21698#
21699if test "$no_recursion" != yes; then
21700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021701 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021702 ac_sub_configure_args=
21703 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021704 eval "set x $ac_configure_args"
21705 shift
21706 for ac_arg
21707 do
John Criswell12399a12003-09-30 15:55:44 +000021708 if test -n "$ac_prev"; then
21709 ac_prev=
21710 continue
21711 fi
21712 case $ac_arg in
21713 -cache-file | --cache-file | --cache-fil | --cache-fi \
21714 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21715 ac_prev=cache_file ;;
21716 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21717 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21718 | --c=*)
21719 ;;
21720 --config-cache | -C)
21721 ;;
21722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21723 ac_prev=srcdir ;;
21724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21725 ;;
21726 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21727 ac_prev=prefix ;;
21728 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21729 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021730 *)
21731 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021732 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021733 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021734 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021735 esac
21736 done
21737
21738 # Always prepend --prefix to ensure using the same prefix
21739 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021740 ac_arg="--prefix=$prefix"
21741 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021742 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021743 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021744 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021745
21746 ac_popdir=`pwd`
21747 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21748
21749 # Do not complain, so a configure script can configure whichever
21750 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021751 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021752
Reid Spencera773bd52006-08-04 18:18:08 +000021753 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754 echo "$as_me:$LINENO: $ac_msg" >&5
21755 echo "$ac_msg" >&6
21756 { as_dir="$ac_dir"
21757 case $as_dir in #(
21758 -*) as_dir=./$as_dir;;
21759 esac
21760 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21761 as_dirs=
21762 while :; do
21763 case $as_dir in #(
21764 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21765 *) as_qdir=$as_dir;;
21766 esac
21767 as_dirs="'$as_qdir' $as_dirs"
21768 as_dir=`$as_dirname -- "$as_dir" ||
21769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770 X"$as_dir" : 'X\(//\)[^/]' \| \
21771 X"$as_dir" : 'X\(//\)$' \| \
21772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21773echo X"$as_dir" |
21774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21775 s//\1/
21776 q
21777 }
21778 /^X\(\/\/\)[^/].*/{
21779 s//\1/
21780 q
21781 }
21782 /^X\(\/\/\)$/{
21783 s//\1/
21784 q
21785 }
21786 /^X\(\/\).*/{
21787 s//\1/
21788 q
21789 }
21790 s/.*/./; q'`
21791 test -d "$as_dir" && break
21792 done
21793 test -z "$as_dirs" || eval "mkdir $as_dirs"
21794 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21795echo "$as_me: error: cannot create directory $as_dir" >&2;}
21796 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021797 ac_builddir=.
21798
Reid Spencera773bd52006-08-04 18:18:08 +000021799case "$ac_dir" in
21800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21801*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021803 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021805 case $ac_top_builddir_sub in
21806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21808 esac ;;
21809esac
21810ac_abs_top_builddir=$ac_pwd
21811ac_abs_builddir=$ac_pwd$ac_dir_suffix
21812# for backward compatibility:
21813ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021814
21815case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021816 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021817 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021818 ac_top_srcdir=$ac_top_builddir_sub
21819 ac_abs_top_srcdir=$ac_pwd ;;
21820 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021821 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021822 ac_top_srcdir=$srcdir
21823 ac_abs_top_srcdir=$srcdir ;;
21824 *) # Relative name.
21825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21826 ac_top_srcdir=$ac_top_build_prefix$srcdir
21827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021828esac
Reid Spencera773bd52006-08-04 18:18:08 +000021829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021830
21831
Reid Spencera773bd52006-08-04 18:18:08 +000021832 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021833
21834 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021835 if test -f "$ac_srcdir/configure.gnu"; then
21836 ac_sub_configure=$ac_srcdir/configure.gnu
21837 elif test -f "$ac_srcdir/configure"; then
21838 ac_sub_configure=$ac_srcdir/configure
21839 elif test -f "$ac_srcdir/configure.in"; then
21840 # This should be Cygnus configure.
21841 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021842 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021843 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21844echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021845 ac_sub_configure=
21846 fi
21847
21848 # The recursion is here.
21849 if test -n "$ac_sub_configure"; then
21850 # Make the cache file name correct relative to the subdirectory.
21851 case $cache_file in
21852 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021853 *) # Relative name.
21854 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021855 esac
21856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021857 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21858echo "$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 +000021859 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021860 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21861 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021862 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21863echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21864 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021865 fi
21866
Reid Spencera773bd52006-08-04 18:18:08 +000021867 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021868 done
21869fi
21870