blob: 3e5ad9cd5af172bac37cf1cfccac1b9e9a55f60a [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 Dunbarf9138782010-04-30 17:12:26 +00005173 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005174 MingW) optimize_option=-O2 ;;
5175 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005176 esac ;;
5177 *) optimize_option="$withval" ;;
5178esac
5179OPTIMIZE_OPTION=$optimize_option
5180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005181{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5182echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005183
5184
Reid Spencera773bd52006-08-04 18:18:08 +00005185# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005186if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005187 withval=$with_extra_options;
5188else
5189 withval=default
5190fi
5191
5192case "$withval" in
5193 default) EXTRA_OPTIONS= ;;
5194 *) EXTRA_OPTIONS=$withval ;;
5195esac
5196EXTRA_OPTIONS=$EXTRA_OPTIONS
5197
5198
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005199# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005200if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005201 enableval=$enable_bindings;
5202else
5203 enableval=default
5204fi
5205
5206BINDINGS_TO_BUILD=""
5207case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005208 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005209 all ) BINDINGS_TO_BUILD="ocaml" ;;
5210 none | no) BINDINGS_TO_BUILD="" ;;
5211 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5212 case "$a_binding" in
5213 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005214 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5215echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5216 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005217 esac
5218 done
5219 ;;
5220esac
5221
Reid Spencera773bd52006-08-04 18:18:08 +00005222
Gordon Henriksenf0915682007-10-02 16:42:22 +00005223# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005224if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005225 withval=$with_ocaml_libdir;
5226else
5227 withval=auto
5228fi
5229
5230case "$withval" in
5231 auto) with_ocaml_libdir="$withval" ;;
5232 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005233 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5234echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5235 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005236esac
5237
5238
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005239# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005240if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005241 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005242else
5243 withval=""
5244fi
5245
5246
5247cat >>confdefs.h <<_ACEOF
5248#define C_INCLUDE_DIRS "$withval"
5249_ACEOF
5250
5251
5252
Rafael Espindola420d23c2009-11-16 19:46:55 +00005253# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005254if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005255 withval=$with_cxx_include_root;
5256else
5257 withval=""
5258fi
5259
5260
5261cat >>confdefs.h <<_ACEOF
5262#define CXX_INCLUDE_ROOT "$withval"
5263_ACEOF
5264
5265
5266
5267# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005268if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005269 withval=$with_cxx_include_arch;
5270else
5271 withval=""
5272fi
5273
5274
5275cat >>confdefs.h <<_ACEOF
5276#define CXX_INCLUDE_ARCH "$withval"
5277_ACEOF
5278
5279
5280
5281# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005282if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005283 withval=$with_cxx_include_32bit_dir;
5284else
5285 withval=""
5286fi
5287
5288
5289cat >>confdefs.h <<_ACEOF
5290#define CXX_INCLUDE_32BIT_DIR "$withval"
5291_ACEOF
5292
5293
5294
5295# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005296if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005297 withval=$with_cxx_include_64bit_dir;
5298else
5299 withval=""
5300fi
5301
5302
5303cat >>confdefs.h <<_ACEOF
5304#define CXX_INCLUDE_64BIT_DIR "$withval"
5305_ACEOF
5306
5307
5308
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005309# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005310if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005311 withval=$with_binutils_include;
5312else
5313 withval=default
5314fi
5315
5316case "$withval" in
5317 default) WITH_BINUTILS_INCDIR=default ;;
5318 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005319 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5320echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5321 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005322esac
5323if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5324 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5325
5326 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5327 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005328 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5329echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5330 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005331 fi
5332fi
5333
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005334# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005335if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005336 enableval=$enable_libffi; case "$enableval" in
5337 yes) llvm_cv_enable_libffi="yes" ;;
5338 no) llvm_cv_enable_libffi="no" ;;
5339 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005340echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5341 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005342 esac
5343else
5344 llvm_cv_enable_libffi=no
5345fi
5346
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005347
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005348if test "$llvm_cv_os_type" = "Win32" ; then
5349 llvmc_dynamic="yes"
5350else
5351 llvmc_dynamic="no"
5352fi
5353
5354# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005355if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005356 enableval=$enable_llvmc_dynamic;
5357else
5358 enableval=$llvmc_dynamic
5359fi
5360
5361if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5362 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5363
5364else
5365 ENABLE_LLVMC_DYNAMIC=
5366
5367fi
5368
5369# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005370if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005371 enableval=$enable_llvmc_dynamic_plugins;
5372else
5373 enableval=yes
5374fi
5375
5376if test ${enableval} = "yes" ; then
5377 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5378
5379else
5380 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5381
5382fi
5383
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005384
Reid Spencera773bd52006-08-04 18:18:08 +00005385ac_ext=c
5386ac_cpp='$CPP $CPPFLAGS'
5387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005390{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5391echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005392# On Suns, sometimes $CPP names a directory.
5393if test -n "$CPP" && test -d "$CPP"; then
5394 CPP=
5395fi
5396if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005397 if test "${ac_cv_prog_CPP+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005399else
5400 # Double quotes because CPP needs to be expanded
5401 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5402 do
5403 ac_preproc_ok=false
5404for ac_c_preproc_warn_flag in '' yes
5405do
5406 # Use a header file that comes with gcc, so configuring glibc
5407 # with a fresh cross-compiler works.
5408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5409 # <limits.h> exists even on freestanding compilers.
5410 # On the NeXT, cc -E runs the code through the compiler's parser,
5411 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005412 cat >conftest.$ac_ext <<_ACEOF
5413/* confdefs.h. */
5414_ACEOF
5415cat confdefs.h >>conftest.$ac_ext
5416cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005417/* end confdefs.h. */
5418#ifdef __STDC__
5419# include <limits.h>
5420#else
5421# include <assert.h>
5422#endif
5423 Syntax error
5424_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005425if { (ac_try="$ac_cpp conftest.$ac_ext"
5426case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev/null; then
5438 if test -s conftest.err; then
5439 ac_cpp_err=$ac_c_preproc_warn_flag
5440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5441 else
5442 ac_cpp_err=
5443 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005445 ac_cpp_err=yes
5446fi
5447if test -z "$ac_cpp_err"; then
5448 :
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
Reid Spencera773bd52006-08-04 18:18:08 +00005453 # Broken: fails on valid input.
5454continue
5455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005456
Reid Spencera773bd52006-08-04 18:18:08 +00005457rm -f conftest.err conftest.$ac_ext
5458
5459 # OK, works on sane cases. Now check whether nonexistent headers
5460 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005461 cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h. */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005466/* end confdefs.h. */
5467#include <ac_nonexistent.h>
5468_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005469if { (ac_try="$ac_cpp conftest.$ac_ext"
5470case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } >/dev/null; then
5482 if test -s conftest.err; then
5483 ac_cpp_err=$ac_c_preproc_warn_flag
5484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485 else
5486 ac_cpp_err=
5487 fi
5488else
5489 ac_cpp_err=yes
5490fi
5491if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005492 # Broken: success on invalid input.
5493continue
5494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005495 echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
Reid Spencera773bd52006-08-04 18:18:08 +00005498 # Passes both tests.
5499ac_preproc_ok=:
5500break
5501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005502
Reid Spencera773bd52006-08-04 18:18:08 +00005503rm -f conftest.err conftest.$ac_ext
5504
5505done
5506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5507rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005508if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005509 break
5510fi
5511
5512 done
5513 ac_cv_prog_CPP=$CPP
5514
5515fi
5516 CPP=$ac_cv_prog_CPP
5517else
5518 ac_cv_prog_CPP=$CPP
5519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005520{ echo "$as_me:$LINENO: result: $CPP" >&5
5521echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005522ac_preproc_ok=false
5523for ac_c_preproc_warn_flag in '' yes
5524do
5525 # Use a header file that comes with gcc, so configuring glibc
5526 # with a fresh cross-compiler works.
5527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528 # <limits.h> exists even on freestanding compilers.
5529 # On the NeXT, cc -E runs the code through the compiler's parser,
5530 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005531 cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h. */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005536/* end confdefs.h. */
5537#ifdef __STDC__
5538# include <limits.h>
5539#else
5540# include <assert.h>
5541#endif
5542 Syntax error
5543_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005544if { (ac_try="$ac_cpp conftest.$ac_ext"
5545case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548esac
5549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null; then
5557 if test -s conftest.err; then
5558 ac_cpp_err=$ac_c_preproc_warn_flag
5559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5560 else
5561 ac_cpp_err=
5562 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005564 ac_cpp_err=yes
5565fi
5566if test -z "$ac_cpp_err"; then
5567 :
5568else
5569 echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
Reid Spencera773bd52006-08-04 18:18:08 +00005572 # Broken: fails on valid input.
5573continue
5574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005575
Reid Spencera773bd52006-08-04 18:18:08 +00005576rm -f conftest.err conftest.$ac_ext
5577
5578 # OK, works on sane cases. Now check whether nonexistent headers
5579 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005580 cat >conftest.$ac_ext <<_ACEOF
5581/* confdefs.h. */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005585/* end confdefs.h. */
5586#include <ac_nonexistent.h>
5587_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005588if { (ac_try="$ac_cpp conftest.$ac_ext"
5589case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592esac
5593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } >/dev/null; then
5601 if test -s conftest.err; then
5602 ac_cpp_err=$ac_c_preproc_warn_flag
5603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5604 else
5605 ac_cpp_err=
5606 fi
5607else
5608 ac_cpp_err=yes
5609fi
5610if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005611 # Broken: success on invalid input.
5612continue
5613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
Reid Spencera773bd52006-08-04 18:18:08 +00005617 # Passes both tests.
5618ac_preproc_ok=:
5619break
5620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621
Reid Spencera773bd52006-08-04 18:18:08 +00005622rm -f conftest.err conftest.$ac_ext
5623
5624done
5625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005627if $ac_preproc_ok; then
5628 :
Reid Spencera773bd52006-08-04 18:18:08 +00005629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5631See \`config.log' for more details." >&5
5632echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5633See \`config.log' for more details." >&2;}
5634 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005635fi
5636
5637ac_ext=c
5638ac_cpp='$CPP $CPPFLAGS'
5639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642
5643ac_ext=c
5644ac_cpp='$CPP $CPPFLAGS'
5645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647ac_compiler_gnu=$ac_cv_c_compiler_gnu
5648if test -n "$ac_tool_prefix"; then
5649 for ac_prog in gcc
5650 do
5651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5655if test "${ac_cv_prog_CC+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005657else
5658 if test -n "$CC"; then
5659 ac_cv_prog_CC="$CC" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 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 +00005668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005670 break 2
5671 fi
5672done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005673done
Reid Spencera773bd52006-08-04 18:18:08 +00005674IFS=$as_save_IFS
5675
5676fi
5677fi
5678CC=$ac_cv_prog_CC
5679if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005680 { echo "$as_me:$LINENO: result: $CC" >&5
5681echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005682else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005683 { echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005685fi
5686
5687
5688 test -n "$CC" && break
5689 done
5690fi
5691if test -z "$CC"; then
5692 ac_ct_CC=$CC
5693 for ac_prog in gcc
5694do
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005701else
5702 if test -n "$ac_ct_CC"; then
5703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 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 +00005712 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005714 break 2
5715 fi
5716done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005717done
Reid Spencera773bd52006-08-04 18:18:08 +00005718IFS=$as_save_IFS
5719
5720fi
5721fi
5722ac_ct_CC=$ac_cv_prog_ac_ct_CC
5723if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5725echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005727 { echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005729fi
5730
5731
5732 test -n "$ac_ct_CC" && break
5733done
5734
5735 if test "x$ac_ct_CC" = x; then
5736 CC=""
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005740{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5741whose name does not start with the host triplet. If you think this
5742configuration is useful to you, please write to autoconf@gnu.org." >&5
5743echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5744whose name does not start with the host triplet. If you think this
5745configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005746ac_tool_warned=yes ;;
5747esac
5748 CC=$ac_ct_CC
5749 fi
5750fi
5751
5752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005753test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5754See \`config.log' for more details." >&5
5755echo "$as_me: error: no acceptable C compiler found in \$PATH
5756See \`config.log' for more details." >&2;}
5757 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005758
5759# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005760echo "$as_me:$LINENO: checking for C compiler version" >&5
5761ac_compiler=`set X $ac_compile; echo $2`
5762{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005763case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005769 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }
5772{ (ac_try="$ac_compiler -v >&5"
5773case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776esac
5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compiler -v >&5") 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }
5782{ (ac_try="$ac_compiler -V >&5"
5783case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786esac
5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_compiler -V >&5") 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005793{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5794echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5795if test "${ac_cv_c_compiler_gnu+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005798 cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h. */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005803/* end confdefs.h. */
5804
5805int
5806main ()
5807{
5808#ifndef __GNUC__
5809 choke me
5810#endif
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816rm -f conftest.$ac_objext
5817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005850 ac_compiler_gnu=yes
5851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857
Reid Spencera773bd52006-08-04 18:18:08 +00005858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859ac_cv_c_compiler_gnu=$ac_compiler_gnu
5860
5861fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5863echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5864GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005865ac_test_CFLAGS=${CFLAGS+set}
5866ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005867{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5868echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5869if test "${ac_cv_prog_cc_g+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005871else
5872 ac_save_c_werror_flag=$ac_c_werror_flag
5873 ac_c_werror_flag=yes
5874 ac_cv_prog_cc_g=no
5875 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876 cat >conftest.$ac_ext <<_ACEOF
5877/* confdefs.h. */
5878_ACEOF
5879cat confdefs.h >>conftest.$ac_ext
5880cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005881/* end confdefs.h. */
5882
5883int
5884main ()
5885{
5886
5887 ;
5888 return 0;
5889}
5890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891rm -f conftest.$ac_objext
5892if { (ac_try="$ac_compile"
5893case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5906 { (case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_try") 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919esac
5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_try") 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005925 ac_cv_prog_cc_g=yes
5926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927 echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 CFLAGS=""
5931 cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h. */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005936/* end confdefs.h. */
5937
5938int
5939main ()
5940{
5941
5942 ;
5943 return 0;
5944}
5945_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946rm -f conftest.$ac_objext
5947if { (ac_try="$ac_compile"
5948case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951esac
5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964esac
5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try='test -s conftest.$ac_objext'
5971 { (case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974esac
5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_try") 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 :
Torok Edwin871384f2010-01-26 08:50:50 +00005981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982 echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005986 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005987 cat >conftest.$ac_ext <<_ACEOF
5988/* confdefs.h. */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005992/* end confdefs.h. */
5993
5994int
5995main ()
5996{
5997
5998 ;
5999 return 0;
6000}
6001_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002rm -f conftest.$ac_objext
6003if { (ac_try="$ac_compile"
6004case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_compile") 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6017 { (case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020esac
6021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_try") 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest.$ac_objext'
6027 { (case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030esac
6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_try") 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006036 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037else
6038 echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041
Reid Spencera773bd52006-08-04 18:18:08 +00006042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043
Reid Spencera773bd52006-08-04 18:18:08 +00006044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006046
Reid Spencera773bd52006-08-04 18:18:08 +00006047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006049
Reid Spencera773bd52006-08-04 18:18:08 +00006050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 ac_c_werror_flag=$ac_save_c_werror_flag
6052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006053{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6054echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006055if test "$ac_test_CFLAGS" = set; then
6056 CFLAGS=$ac_save_CFLAGS
6057elif test $ac_cv_prog_cc_g = yes; then
6058 if test "$GCC" = yes; then
6059 CFLAGS="-g -O2"
6060 else
6061 CFLAGS="-g"
6062 fi
6063else
6064 if test "$GCC" = yes; then
6065 CFLAGS="-O2"
6066 else
6067 CFLAGS=
6068 fi
6069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6071echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6072if test "${ac_cv_prog_cc_c89+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006074else
6075 ac_cv_prog_cc_c89=no
6076ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006077cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h. */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006082/* end confdefs.h. */
6083#include <stdarg.h>
6084#include <stdio.h>
6085#include <sys/types.h>
6086#include <sys/stat.h>
6087/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6088struct buf { int x; };
6089FILE * (*rcsopen) (struct buf *, struct stat *, int);
6090static char *e (p, i)
6091 char **p;
6092 int i;
6093{
6094 return p[i];
6095}
6096static char *f (char * (*g) (char **, int), char **p, ...)
6097{
6098 char *s;
6099 va_list v;
6100 va_start (v,p);
6101 s = g (p, va_arg (v,int));
6102 va_end (v);
6103 return s;
6104}
6105
6106/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6107 function prototypes and stuff, but not '\xHH' hex character constants.
6108 These don't provoke an error unfortunately, instead are silently treated
6109 as 'x'. The following induces an error, until -std is added to get
6110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6111 array size at least. It's necessary to write '\x00'==0 to get something
6112 that's true only with -std. */
6113int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6114
6115/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6116 inside strings and character constants. */
6117#define FOO(x) 'x'
6118int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6119
6120int test (int i, double x);
6121struct s1 {int (*f) (int a);};
6122struct s2 {int (*f) (double a);};
6123int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6124int argc;
6125char **argv;
6126int
6127main ()
6128{
6129return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6130 ;
6131 return 0;
6132}
6133_ACEOF
6134for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6136do
6137 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006138 rm -f conftest.$ac_objext
6139if { (ac_try="$ac_compile"
6140case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143esac
6144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_compile") 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_try") 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006172 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006173else
6174 echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
6176
6177
Reid Spencera773bd52006-08-04 18:18:08 +00006178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179
Reid Spencera773bd52006-08-04 18:18:08 +00006180rm -f core conftest.err conftest.$ac_objext
6181 test "x$ac_cv_prog_cc_c89" != "xno" && break
6182done
6183rm -f conftest.$ac_ext
6184CC=$ac_save_CC
6185
6186fi
6187# AC_CACHE_VAL
6188case "x$ac_cv_prog_cc_c89" in
6189 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006190 { echo "$as_me:$LINENO: result: none needed" >&5
6191echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006192 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193 { echo "$as_me:$LINENO: result: unsupported" >&5
6194echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006195 *)
6196 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006197 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6198echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006199esac
6200
6201
6202ac_ext=c
6203ac_cpp='$CPP $CPPFLAGS'
6204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207
6208ac_ext=cpp
6209ac_cpp='$CXXCPP $CPPFLAGS'
6210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6213if test -z "$CXX"; then
6214 if test -n "$CCC"; then
6215 CXX=$CCC
6216 else
6217 if test -n "$ac_tool_prefix"; then
6218 for ac_prog in g++
6219 do
6220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224if test "${ac_cv_prog_CXX+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006226else
6227 if test -n "$CXX"; then
6228 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6229else
6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 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 +00006237 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006239 break 2
6240 fi
6241done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242done
Reid Spencera773bd52006-08-04 18:18:08 +00006243IFS=$as_save_IFS
6244
6245fi
6246fi
6247CXX=$ac_cv_prog_CXX
6248if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006249 { echo "$as_me:$LINENO: result: $CXX" >&5
6250echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252 { echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006254fi
6255
6256
6257 test -n "$CXX" && break
6258 done
6259fi
6260if test -z "$CXX"; then
6261 ac_ct_CXX=$CXX
6262 for ac_prog in g++
6263do
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006270else
6271 if test -n "$ac_ct_CXX"; then
6272 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 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 +00006281 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006283 break 2
6284 fi
6285done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006286done
Reid Spencera773bd52006-08-04 18:18:08 +00006287IFS=$as_save_IFS
6288
6289fi
6290fi
6291ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6292if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6294echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006296 { echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006298fi
6299
6300
6301 test -n "$ac_ct_CXX" && break
6302done
6303
6304 if test "x$ac_ct_CXX" = x; then
6305 CXX="g++"
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6310whose name does not start with the host triplet. If you think this
6311configuration is useful to you, please write to autoconf@gnu.org." >&5
6312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6313whose name does not start with the host triplet. If you think this
6314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006315ac_tool_warned=yes ;;
6316esac
6317 CXX=$ac_ct_CXX
6318 fi
6319fi
6320
6321 fi
6322fi
6323# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6325ac_compiler=`set X $ac_compile; echo $2`
6326{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006327case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6330esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006333 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }
6336{ (ac_try="$ac_compiler -v >&5"
6337case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340esac
6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compiler -v >&5") 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }
6346{ (ac_try="$ac_compiler -V >&5"
6347case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350esac
6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_compiler -V >&5") 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006357{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6358echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6359if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362 cat >conftest.$ac_ext <<_ACEOF
6363/* confdefs.h. */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006367/* end confdefs.h. */
6368
6369int
6370main ()
6371{
6372#ifndef __GNUC__
6373 choke me
6374#endif
6375
6376 ;
6377 return 0;
6378}
6379_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380rm -f conftest.$ac_objext
6381if { (ac_try="$ac_compile"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006414 ac_compiler_gnu=yes
6415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006416 echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421
Reid Spencera773bd52006-08-04 18:18:08 +00006422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6424
6425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006426{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6427echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6428GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006429ac_test_CXXFLAGS=${CXXFLAGS+set}
6430ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6432echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6433if test "${ac_cv_prog_cxx_g+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006435else
6436 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6437 ac_cxx_werror_flag=yes
6438 ac_cv_prog_cxx_g=no
6439 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006440 cat >conftest.$ac_ext <<_ACEOF
6441/* confdefs.h. */
6442_ACEOF
6443cat confdefs.h >>conftest.$ac_ext
6444cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006445/* end confdefs.h. */
6446
6447int
6448main ()
6449{
6450
6451 ;
6452 return 0;
6453}
6454_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455rm -f conftest.$ac_objext
6456if { (ac_try="$ac_compile"
6457case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460esac
6461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6470 { (case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_try") 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483esac
6484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_try") 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006489 ac_cv_prog_cxx_g=yes
6490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006491 echo "$as_me: failed program was:" >&5
6492sed 's/^/| /' conftest.$ac_ext >&5
6493
6494 CXXFLAGS=""
6495 cat >conftest.$ac_ext <<_ACEOF
6496/* confdefs.h. */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006500/* end confdefs.h. */
6501
6502int
6503main ()
6504{
6505
6506 ;
6507 return 0;
6508}
6509_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510rm -f conftest.$ac_objext
6511if { (ac_try="$ac_compile"
6512case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515esac
6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_compile") 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528esac
6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_try") 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 :
Torok Edwin871384f2010-01-26 08:50:50 +00006545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546 echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006550 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006551 cat >conftest.$ac_ext <<_ACEOF
6552/* confdefs.h. */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006556/* end confdefs.h. */
6557
6558int
6559main ()
6560{
6561
6562 ;
6563 return 0;
6564}
6565_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566rm -f conftest.$ac_objext
6567if { (ac_try="$ac_compile"
6568case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571esac
6572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6581 { (case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6584esac
6585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_try") 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest.$ac_objext'
6591 { (case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594esac
6595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_try") 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006600 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601else
6602 echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605
Reid Spencera773bd52006-08-04 18:18:08 +00006606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006607
Reid Spencera773bd52006-08-04 18:18:08 +00006608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006610
Reid Spencera773bd52006-08-04 18:18:08 +00006611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006613
Reid Spencera773bd52006-08-04 18:18:08 +00006614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006617{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6618echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006619if test "$ac_test_CXXFLAGS" = set; then
6620 CXXFLAGS=$ac_save_CXXFLAGS
6621elif test $ac_cv_prog_cxx_g = yes; then
6622 if test "$GXX" = yes; then
6623 CXXFLAGS="-g -O2"
6624 else
6625 CXXFLAGS="-g"
6626 fi
6627else
6628 if test "$GXX" = yes; then
6629 CXXFLAGS="-O2"
6630 else
6631 CXXFLAGS=
6632 fi
6633fi
6634ac_ext=c
6635ac_cpp='$CPP $CPPFLAGS'
6636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639
Reid Spencera773bd52006-08-04 18:18:08 +00006640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006641{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6642echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6643if test "${lt_cv_path_NM+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006645else
6646 if test -n "$NM"; then
6647 # Let the user override the test.
6648 lt_cv_path_NM="$NM"
6649else
6650 lt_nm_to_check="${ac_tool_prefix}nm"
6651 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6652 lt_nm_to_check="$lt_nm_to_check nm"
6653 fi
6654 for lt_tmp_nm in $lt_nm_to_check; do
6655 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6656 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6657 IFS="$lt_save_ifs"
6658 test -z "$ac_dir" && ac_dir=.
6659 tmp_nm="$ac_dir/$lt_tmp_nm"
6660 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6661 # Check to see if the nm accepts a BSD-compat flag.
6662 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6663 # nm: unknown option "B" ignored
6664 # Tru64's nm complains that /dev/null is an invalid object file
6665 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6666 */dev/null* | *'Invalid file or object type'*)
6667 lt_cv_path_NM="$tmp_nm -B"
6668 break
6669 ;;
6670 *)
6671 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6672 */dev/null*)
6673 lt_cv_path_NM="$tmp_nm -p"
6674 break
6675 ;;
6676 *)
6677 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6678 continue # so that we can try to find one that supports BSD flags
6679 ;;
6680 esac
6681 ;;
6682 esac
6683 fi
6684 done
6685 IFS="$lt_save_ifs"
6686 done
6687 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6688fi
6689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006690{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6691echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006692NM="$lt_cv_path_NM"
6693
6694
6695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696{ echo "$as_me:$LINENO: checking for GNU make" >&5
6697echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6698if test "${llvm_cv_gnu_make_command+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006700else
6701 llvm_cv_gnu_make_command=''
6702 for a in "$MAKE" make gmake gnumake ; do
6703 if test -z "$a" ; then continue ; fi ;
6704 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6705 then
6706 llvm_cv_gnu_make_command=$a ;
6707 break;
6708 fi
6709 done
6710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6712echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006713 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6714 ifGNUmake='' ;
6715 else
6716 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6718echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006719 fi
6720
6721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006722{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6723echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006724LN_S=$as_ln_s
6725if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726 { echo "$as_me:$LINENO: result: yes" >&5
6727echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006728else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6730echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006731fi
6732
6733# Extract the first word of "cmp", so it can be a program name with args.
6734set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737if test "${ac_cv_path_CMP+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006739else
6740 case $CMP in
6741 [\\/]* | ?:[\\/]*)
6742 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6743 ;;
6744 *)
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 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 +00006752 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006754 break 2
6755 fi
6756done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757done
Reid Spencera773bd52006-08-04 18:18:08 +00006758IFS=$as_save_IFS
6759
6760 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6761 ;;
6762esac
6763fi
6764CMP=$ac_cv_path_CMP
6765if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766 { echo "$as_me:$LINENO: result: $CMP" >&5
6767echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769 { echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006771fi
6772
6773
6774# Extract the first word of "cp", so it can be a program name with args.
6775set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778if test "${ac_cv_path_CP+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006780else
6781 case $CP in
6782 [\\/]* | ?:[\\/]*)
6783 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6784 ;;
6785 *)
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 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 +00006793 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006795 break 2
6796 fi
6797done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006798done
Reid Spencera773bd52006-08-04 18:18:08 +00006799IFS=$as_save_IFS
6800
6801 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6802 ;;
6803esac
6804fi
6805CP=$ac_cv_path_CP
6806if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807 { echo "$as_me:$LINENO: result: $CP" >&5
6808echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006810 { echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006812fi
6813
6814
6815# Extract the first word of "date", so it can be a program name with args.
6816set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819if test "${ac_cv_path_DATE+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006821else
6822 case $DATE in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6825 ;;
6826 *)
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 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 +00006834 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006836 break 2
6837 fi
6838done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839done
Reid Spencera773bd52006-08-04 18:18:08 +00006840IFS=$as_save_IFS
6841
6842 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6843 ;;
6844esac
6845fi
6846DATE=$ac_cv_path_DATE
6847if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848 { echo "$as_me:$LINENO: result: $DATE" >&5
6849echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006850else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006851 { echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006853fi
6854
6855
6856# Extract the first word of "find", so it can be a program name with args.
6857set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860if test "${ac_cv_path_FIND+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006862else
6863 case $FIND in
6864 [\\/]* | ?:[\\/]*)
6865 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6866 ;;
6867 *)
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 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 +00006875 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006877 break 2
6878 fi
6879done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880done
Reid Spencera773bd52006-08-04 18:18:08 +00006881IFS=$as_save_IFS
6882
6883 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6884 ;;
6885esac
6886fi
6887FIND=$ac_cv_path_FIND
6888if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006889 { echo "$as_me:$LINENO: result: $FIND" >&5
6890echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006892 { echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006894fi
6895
6896
6897# Extract the first word of "grep", so it can be a program name with args.
6898set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901if test "${ac_cv_path_GREP+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006903else
6904 case $GREP in
6905 [\\/]* | ?:[\\/]*)
6906 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6907 ;;
6908 *)
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 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 +00006916 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006918 break 2
6919 fi
6920done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921done
Reid Spencera773bd52006-08-04 18:18:08 +00006922IFS=$as_save_IFS
6923
6924 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6925 ;;
6926esac
6927fi
6928GREP=$ac_cv_path_GREP
6929if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930 { echo "$as_me:$LINENO: result: $GREP" >&5
6931echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933 { echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006935fi
6936
6937
6938# Extract the first word of "mkdir", so it can be a program name with args.
6939set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942if test "${ac_cv_path_MKDIR+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006944else
6945 case $MKDIR in
6946 [\\/]* | ?:[\\/]*)
6947 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6948 ;;
6949 *)
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 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 +00006957 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006959 break 2
6960 fi
6961done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962done
Reid Spencera773bd52006-08-04 18:18:08 +00006963IFS=$as_save_IFS
6964
6965 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6966 ;;
6967esac
6968fi
6969MKDIR=$ac_cv_path_MKDIR
6970if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006971 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6972echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006973else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006974 { echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006976fi
6977
6978
6979# Extract the first word of "mv", so it can be a program name with args.
6980set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983if test "${ac_cv_path_MV+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006985else
6986 case $MV in
6987 [\\/]* | ?:[\\/]*)
6988 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6989 ;;
6990 *)
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 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 +00006998 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007000 break 2
7001 fi
7002done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003done
Reid Spencera773bd52006-08-04 18:18:08 +00007004IFS=$as_save_IFS
7005
7006 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7007 ;;
7008esac
7009fi
7010MV=$ac_cv_path_MV
7011if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007012 { echo "$as_me:$LINENO: result: $MV" >&5
7013echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007015 { echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007017fi
7018
7019
7020if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025if test "${ac_cv_prog_RANLIB+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007027else
7028 if test -n "$RANLIB"; then
7029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 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 +00007038 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007040 break 2
7041 fi
7042done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007043done
Reid Spencera773bd52006-08-04 18:18:08 +00007044IFS=$as_save_IFS
7045
7046fi
7047fi
7048RANLIB=$ac_cv_prog_RANLIB
7049if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007050 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7051echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007053 { echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007055fi
7056
7057
7058fi
7059if test -z "$ac_cv_prog_RANLIB"; then
7060 ac_ct_RANLIB=$RANLIB
7061 # Extract the first word of "ranlib", so it can be a program name with args.
7062set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007067else
7068 if test -n "$ac_ct_RANLIB"; then
7069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 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 +00007078 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007080 break 2
7081 fi
7082done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083done
Reid Spencera773bd52006-08-04 18:18:08 +00007084IFS=$as_save_IFS
7085
7086fi
7087fi
7088ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7089if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7091echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007092else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007093 { echo "$as_me:$LINENO: result: no" >&5
7094echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007095fi
7096
7097 if test "x$ac_ct_RANLIB" = x; then
7098 RANLIB=":"
7099 else
7100 case $cross_compiling:$ac_tool_warned in
7101yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7103whose name does not start with the host triplet. If you think this
7104configuration is useful to you, please write to autoconf@gnu.org." >&5
7105echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7106whose name does not start with the host triplet. If you think this
7107configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007108ac_tool_warned=yes ;;
7109esac
7110 RANLIB=$ac_ct_RANLIB
7111 fi
7112else
7113 RANLIB="$ac_cv_prog_RANLIB"
7114fi
7115
Torok Edwin871384f2010-01-26 08:50:50 +00007116if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7118set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121if test "${ac_cv_prog_AR+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007123else
7124 if test -n "$AR"; then
7125 ac_cv_prog_AR="$AR" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 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 +00007134 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007136 break 2
7137 fi
7138done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139done
Torok Edwin871384f2010-01-26 08:50:50 +00007140IFS=$as_save_IFS
7141
7142fi
7143fi
7144AR=$ac_cv_prog_AR
7145if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146 { echo "$as_me:$LINENO: result: $AR" >&5
7147echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007149 { echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007151fi
7152
7153
7154fi
7155if test -z "$ac_cv_prog_AR"; then
7156 ac_ct_AR=$AR
7157 # Extract the first word of "ar", so it can be a program name with args.
7158set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007163else
7164 if test -n "$ac_ct_AR"; then
7165 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7166else
7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168for as_dir in $PATH
7169do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 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 +00007174 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007176 break 2
7177 fi
7178done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179done
Torok Edwin871384f2010-01-26 08:50:50 +00007180IFS=$as_save_IFS
7181
7182fi
7183fi
7184ac_ct_AR=$ac_cv_prog_ac_ct_AR
7185if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7187echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007189 { echo "$as_me:$LINENO: result: no" >&5
7190echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007191fi
7192
7193 if test "x$ac_ct_AR" = x; then
7194 AR="false"
7195 else
7196 case $cross_compiling:$ac_tool_warned in
7197yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007198{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7199whose name does not start with the host triplet. If you think this
7200configuration is useful to you, please write to autoconf@gnu.org." >&5
7201echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7202whose name does not start with the host triplet. If you think this
7203configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007204ac_tool_warned=yes ;;
7205esac
7206 AR=$ac_ct_AR
7207 fi
7208else
7209 AR="$ac_cv_prog_AR"
7210fi
7211
Reid Spencera773bd52006-08-04 18:18:08 +00007212# Extract the first word of "rm", so it can be a program name with args.
7213set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216if test "${ac_cv_path_RM+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007218else
7219 case $RM in
7220 [\\/]* | ?:[\\/]*)
7221 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7222 ;;
7223 *)
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 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 +00007231 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007233 break 2
7234 fi
7235done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236done
Reid Spencera773bd52006-08-04 18:18:08 +00007237IFS=$as_save_IFS
7238
7239 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7240 ;;
7241esac
7242fi
7243RM=$ac_cv_path_RM
7244if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007245 { echo "$as_me:$LINENO: result: $RM" >&5
7246echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007248 { echo "$as_me:$LINENO: result: no" >&5
7249echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007250fi
7251
7252
7253# Extract the first word of "sed", so it can be a program name with args.
7254set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257if test "${ac_cv_path_SED+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007259else
7260 case $SED in
7261 [\\/]* | ?:[\\/]*)
7262 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7263 ;;
7264 *)
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 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 +00007272 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007274 break 2
7275 fi
7276done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277done
Reid Spencera773bd52006-08-04 18:18:08 +00007278IFS=$as_save_IFS
7279
7280 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7281 ;;
7282esac
7283fi
7284SED=$ac_cv_path_SED
7285if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286 { echo "$as_me:$LINENO: result: $SED" >&5
7287echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007289 { echo "$as_me:$LINENO: result: no" >&5
7290echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007291fi
7292
7293
7294# Extract the first word of "tar", so it can be a program name with args.
7295set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298if test "${ac_cv_path_TAR+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007300else
7301 case $TAR in
7302 [\\/]* | ?:[\\/]*)
7303 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7304 ;;
7305 *)
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 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 +00007313 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007315 break 2
7316 fi
7317done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318done
Reid Spencera773bd52006-08-04 18:18:08 +00007319IFS=$as_save_IFS
7320
7321 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7322 ;;
7323esac
7324fi
7325TAR=$ac_cv_path_TAR
7326if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327 { echo "$as_me:$LINENO: result: $TAR" >&5
7328echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007329else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007330 { echo "$as_me:$LINENO: result: no" >&5
7331echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007332fi
7333
7334
7335# Extract the first word of "pwd", so it can be a program name with args.
7336set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339if test "${ac_cv_path_BINPWD+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007341else
7342 case $BINPWD in
7343 [\\/]* | ?:[\\/]*)
7344 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7345 ;;
7346 *)
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 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 +00007354 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007356 break 2
7357 fi
7358done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007359done
Reid Spencera773bd52006-08-04 18:18:08 +00007360IFS=$as_save_IFS
7361
7362 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7363 ;;
7364esac
7365fi
7366BINPWD=$ac_cv_path_BINPWD
7367if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7369echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007371 { echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007373fi
7374
7375
7376
7377# Extract the first word of "Graphviz", so it can be a program name with args.
7378set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007383else
7384 case $GRAPHVIZ in
7385 [\\/]* | ?:[\\/]*)
7386 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7387 ;;
7388 *)
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 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 +00007396 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007398 break 2
7399 fi
7400done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401done
Reid Spencera773bd52006-08-04 18:18:08 +00007402IFS=$as_save_IFS
7403
7404 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7405 ;;
7406esac
7407fi
7408GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7409if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7411echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007413 { echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007415fi
7416
7417
7418if test "$GRAPHVIZ" != "echo Graphviz" ; then
7419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420cat >>confdefs.h <<\_ACEOF
7421#define HAVE_GRAPHVIZ 1
7422_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007423
Jeff Cohen28783c32007-01-12 18:22:38 +00007424 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007425 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7426 fi
7427
7428cat >>confdefs.h <<_ACEOF
7429#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7430_ACEOF
7431
7432fi
7433# Extract the first word of "dot", so it can be a program name with args.
7434set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437if test "${ac_cv_path_DOT+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007439else
7440 case $DOT in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7443 ;;
7444 *)
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 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 +00007452 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007454 break 2
7455 fi
7456done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457done
Reid Spencera773bd52006-08-04 18:18:08 +00007458IFS=$as_save_IFS
7459
7460 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7461 ;;
7462esac
7463fi
7464DOT=$ac_cv_path_DOT
7465if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466 { echo "$as_me:$LINENO: result: $DOT" >&5
7467echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007468else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469 { echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007471fi
7472
7473
7474if test "$DOT" != "echo dot" ; then
7475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476cat >>confdefs.h <<\_ACEOF
7477#define HAVE_DOT 1
7478_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007479
Jeff Cohen28783c32007-01-12 18:22:38 +00007480 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007481 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7482 fi
7483
7484cat >>confdefs.h <<_ACEOF
7485#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7486_ACEOF
7487
7488fi
David Greenef0b9eff2009-07-09 17:16:26 +00007489# Extract the first word of "fdp", so it can be a program name with args.
7490set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493if test "${ac_cv_path_FDP+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007495else
7496 case $FDP in
7497 [\\/]* | ?:[\\/]*)
7498 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7499 ;;
7500 *)
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 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 +00007508 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007510 break 2
7511 fi
7512done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513done
David Greenef0b9eff2009-07-09 17:16:26 +00007514IFS=$as_save_IFS
7515
7516 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7517 ;;
7518esac
7519fi
7520FDP=$ac_cv_path_FDP
7521if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007522 { echo "$as_me:$LINENO: result: $FDP" >&5
7523echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525 { echo "$as_me:$LINENO: result: no" >&5
7526echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007527fi
7528
7529
7530if test "$FDP" != "echo fdp" ; then
7531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532cat >>confdefs.h <<\_ACEOF
7533#define HAVE_FDP 1
7534_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007535
7536 if test "$llvm_cv_os_type" = "MingW" ; then
7537 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7538 fi
7539
7540cat >>confdefs.h <<_ACEOF
7541#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7542_ACEOF
7543
7544fi
7545# Extract the first word of "neato", so it can be a program name with args.
7546set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549if test "${ac_cv_path_NEATO+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007551else
7552 case $NEATO in
7553 [\\/]* | ?:[\\/]*)
7554 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7555 ;;
7556 *)
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 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 +00007564 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007566 break 2
7567 fi
7568done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569done
David Greenef0b9eff2009-07-09 17:16:26 +00007570IFS=$as_save_IFS
7571
7572 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7573 ;;
7574esac
7575fi
7576NEATO=$ac_cv_path_NEATO
7577if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007578 { echo "$as_me:$LINENO: result: $NEATO" >&5
7579echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007580else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581 { echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007583fi
7584
7585
7586if test "$NEATO" != "echo neato" ; then
7587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588cat >>confdefs.h <<\_ACEOF
7589#define HAVE_NEATO 1
7590_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007591
7592 if test "$llvm_cv_os_type" = "MingW" ; then
7593 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7594 fi
7595
7596cat >>confdefs.h <<_ACEOF
7597#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7598_ACEOF
7599
7600fi
7601# Extract the first word of "twopi", so it can be a program name with args.
7602set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7605if test "${ac_cv_path_TWOPI+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007607else
7608 case $TWOPI in
7609 [\\/]* | ?:[\\/]*)
7610 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7611 ;;
7612 *)
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 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 +00007620 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007622 break 2
7623 fi
7624done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625done
David Greenef0b9eff2009-07-09 17:16:26 +00007626IFS=$as_save_IFS
7627
7628 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7629 ;;
7630esac
7631fi
7632TWOPI=$ac_cv_path_TWOPI
7633if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007634 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7635echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007637 { echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007639fi
7640
7641
7642if test "$TWOPI" != "echo twopi" ; then
7643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644cat >>confdefs.h <<\_ACEOF
7645#define HAVE_TWOPI 1
7646_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007647
7648 if test "$llvm_cv_os_type" = "MingW" ; then
7649 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7650 fi
7651
7652cat >>confdefs.h <<_ACEOF
7653#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7654_ACEOF
7655
7656fi
7657# Extract the first word of "circo", so it can be a program name with args.
7658set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7661if test "${ac_cv_path_CIRCO+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007663else
7664 case $CIRCO in
7665 [\\/]* | ?:[\\/]*)
7666 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7667 ;;
7668 *)
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 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 +00007676 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007678 break 2
7679 fi
7680done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681done
David Greenef0b9eff2009-07-09 17:16:26 +00007682IFS=$as_save_IFS
7683
7684 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7685 ;;
7686esac
7687fi
7688CIRCO=$ac_cv_path_CIRCO
7689if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007690 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7691echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007692else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693 { echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007695fi
7696
7697
7698if test "$CIRCO" != "echo circo" ; then
7699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700cat >>confdefs.h <<\_ACEOF
7701#define HAVE_CIRCO 1
7702_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007703
7704 if test "$llvm_cv_os_type" = "MingW" ; then
7705 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7706 fi
7707
7708cat >>confdefs.h <<_ACEOF
7709#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7710_ACEOF
7711
7712fi
Reid Spencera773bd52006-08-04 18:18:08 +00007713for ac_prog in gv gsview32
7714do
7715 # Extract the first word of "$ac_prog", so it can be a program name with args.
7716set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719if test "${ac_cv_path_GV+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007721else
7722 case $GV in
7723 [\\/]* | ?:[\\/]*)
7724 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7725 ;;
7726 *)
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 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 +00007734 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007736 break 2
7737 fi
7738done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739done
Reid Spencera773bd52006-08-04 18:18:08 +00007740IFS=$as_save_IFS
7741
7742 ;;
7743esac
7744fi
7745GV=$ac_cv_path_GV
7746if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747 { echo "$as_me:$LINENO: result: $GV" >&5
7748echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007750 { echo "$as_me:$LINENO: result: no" >&5
7751echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007752fi
7753
7754
7755 test -n "$GV" && break
7756done
7757test -n "$GV" || GV="echo gv"
7758
7759if test "$GV" != "echo gv" ; then
7760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007761cat >>confdefs.h <<\_ACEOF
7762#define HAVE_GV 1
7763_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007764
Jeff Cohen28783c32007-01-12 18:22:38 +00007765 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007766 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7767 fi
7768
7769cat >>confdefs.h <<_ACEOF
7770#define LLVM_PATH_GV "$GV${EXEEXT}"
7771_ACEOF
7772
7773fi
7774# Extract the first word of "dotty", so it can be a program name with args.
7775set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7778if test "${ac_cv_path_DOTTY+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007780else
7781 case $DOTTY in
7782 [\\/]* | ?:[\\/]*)
7783 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7784 ;;
7785 *)
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 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 +00007793 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007795 break 2
7796 fi
7797done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798done
Reid Spencera773bd52006-08-04 18:18:08 +00007799IFS=$as_save_IFS
7800
7801 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7802 ;;
7803esac
7804fi
7805DOTTY=$ac_cv_path_DOTTY
7806if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007807 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7808echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007810 { echo "$as_me:$LINENO: result: no" >&5
7811echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007812fi
7813
7814
7815if test "$DOTTY" != "echo dotty" ; then
7816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007817cat >>confdefs.h <<\_ACEOF
7818#define HAVE_DOTTY 1
7819_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007820
Jeff Cohen28783c32007-01-12 18:22:38 +00007821 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007822 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7823 fi
7824
7825cat >>confdefs.h <<_ACEOF
7826#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7827_ACEOF
7828
7829fi
7830
7831
7832# Extract the first word of "perl", so it can be a program name with args.
7833set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836if test "${ac_cv_path_PERL+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007838else
7839 case $PERL in
7840 [\\/]* | ?:[\\/]*)
7841 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7842 ;;
7843 *)
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 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 +00007851 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007853 break 2
7854 fi
7855done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856done
Reid Spencera773bd52006-08-04 18:18:08 +00007857IFS=$as_save_IFS
7858
7859 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7860 ;;
7861esac
7862fi
7863PERL=$ac_cv_path_PERL
7864if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 { echo "$as_me:$LINENO: result: $PERL" >&5
7866echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 { echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007870fi
7871
7872
7873if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007874 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7875echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007876 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007877 { echo "$as_me:$LINENO: result: yes" >&5
7878echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007879 else
7880 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881 { echo "$as_me:$LINENO: result: not found" >&5
7882echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007883 fi
7884fi
7885
7886
7887if test x"$PERL" = xnone; then
7888 HAVE_PERL=0
7889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007890 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7891echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7892 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007893else
7894 HAVE_PERL=1
7895
7896fi
7897
7898# Find a good install program. We prefer a C program (faster),
7899# so one script is as good as another. But avoid the broken or
7900# incompatible versions:
7901# SysV /etc/install, /usr/sbin/install
7902# SunOS /usr/etc/install
7903# IRIX /sbin/install
7904# AIX /bin/install
7905# AmigaOS /C/install, which installs bootblocks on floppy discs
7906# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7907# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7908# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7909# OS/2's system install, which has a completely different semantic
7910# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007911{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7912echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007913if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007914if test "${ac_cv_path_install+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007916else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918for as_dir in $PATH
7919do
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007922 # Account for people who put trailing slashes in PATH elements.
7923case $as_dir/ in
7924 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007926 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007927 /usr/ucb/* ) ;;
7928 *)
7929 # OSF1 and SCO ODT 3.0 have their own names for install.
7930 # Don't use installbsd from OSF since it installs stuff as root
7931 # by default.
7932 for ac_prog in ginstall scoinst install; do
7933 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007934 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 +00007935 if test $ac_prog = install &&
7936 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7937 # AIX install. It has an incompatible calling convention.
7938 :
7939 elif test $ac_prog = install &&
7940 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7941 # program-specific install script used by HP pwplus--don't use.
7942 :
7943 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7945 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007946 fi
7947 fi
7948 done
7949 done
7950 ;;
7951esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007952done
Reid Spencera773bd52006-08-04 18:18:08 +00007953IFS=$as_save_IFS
7954
7955
7956fi
7957 if test "${ac_cv_path_install+set}" = set; then
7958 INSTALL=$ac_cv_path_install
7959 else
7960 # As a last resort, use the slow shell script. Don't cache a
7961 # value for INSTALL within a source directory, because that will
7962 # break other packages using the cache if that directory is
7963 # removed, or if the value is a relative name.
7964 INSTALL=$ac_install_sh
7965 fi
7966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007967{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7968echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007969
7970# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7971# It thinks the first close brace ends the variable substitution.
7972test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7973
7974test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7975
7976test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7977
7978
7979# Extract the first word of "bzip2", so it can be a program name with args.
7980set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7983if test "${ac_cv_path_BZIP2+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007985else
7986 case $BZIP2 in
7987 [\\/]* | ?:[\\/]*)
7988 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7989 ;;
7990 *)
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 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 +00007998 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008000 break 2
8001 fi
8002done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008003done
Reid Spencera773bd52006-08-04 18:18:08 +00008004IFS=$as_save_IFS
8005
Reid Spencera773bd52006-08-04 18:18:08 +00008006 ;;
8007esac
8008fi
8009BZIP2=$ac_cv_path_BZIP2
8010if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008011 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8012echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008013else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014 { echo "$as_me:$LINENO: result: no" >&5
8015echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008016fi
8017
8018
8019# Extract the first word of "doxygen", so it can be a program name with args.
8020set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8023if test "${ac_cv_path_DOXYGEN+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008025else
8026 case $DOXYGEN in
8027 [\\/]* | ?:[\\/]*)
8028 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8029 ;;
8030 *)
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 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 +00008038 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008040 break 2
8041 fi
8042done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008043done
Reid Spencera773bd52006-08-04 18:18:08 +00008044IFS=$as_save_IFS
8045
Reid Spencera773bd52006-08-04 18:18:08 +00008046 ;;
8047esac
8048fi
8049DOXYGEN=$ac_cv_path_DOXYGEN
8050if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008051 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8052echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008054 { echo "$as_me:$LINENO: result: no" >&5
8055echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008056fi
8057
8058
Reid Spencera773bd52006-08-04 18:18:08 +00008059# Extract the first word of "groff", so it can be a program name with args.
8060set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8063if test "${ac_cv_path_GROFF+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008065else
8066 case $GROFF in
8067 [\\/]* | ?:[\\/]*)
8068 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8069 ;;
8070 *)
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072for as_dir in $PATH
8073do
8074 IFS=$as_save_IFS
8075 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 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 +00008078 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008080 break 2
8081 fi
8082done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083done
Reid Spencera773bd52006-08-04 18:18:08 +00008084IFS=$as_save_IFS
8085
Reid Spencera773bd52006-08-04 18:18:08 +00008086 ;;
8087esac
8088fi
8089GROFF=$ac_cv_path_GROFF
8090if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008091 { echo "$as_me:$LINENO: result: $GROFF" >&5
8092echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008094 { echo "$as_me:$LINENO: result: no" >&5
8095echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008096fi
8097
8098
8099# Extract the first word of "gzip", so it can be a program name with args.
8100set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103if test "${ac_cv_path_GZIP+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008105else
8106 case $GZIP in
8107 [\\/]* | ?:[\\/]*)
8108 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8109 ;;
8110 *)
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 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 +00008118 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008120 break 2
8121 fi
8122done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123done
Reid Spencera773bd52006-08-04 18:18:08 +00008124IFS=$as_save_IFS
8125
Reid Spencera773bd52006-08-04 18:18:08 +00008126 ;;
8127esac
8128fi
8129GZIP=$ac_cv_path_GZIP
8130if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131 { echo "$as_me:$LINENO: result: $GZIP" >&5
8132echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008134 { echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008136fi
8137
8138
8139# Extract the first word of "pod2html", so it can be a program name with args.
8140set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8143if test "${ac_cv_path_POD2HTML+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008145else
8146 case $POD2HTML in
8147 [\\/]* | ?:[\\/]*)
8148 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8149 ;;
8150 *)
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 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 +00008158 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008160 break 2
8161 fi
8162done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008163done
Reid Spencera773bd52006-08-04 18:18:08 +00008164IFS=$as_save_IFS
8165
Reid Spencera773bd52006-08-04 18:18:08 +00008166 ;;
8167esac
8168fi
8169POD2HTML=$ac_cv_path_POD2HTML
8170if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008171 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8172echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174 { echo "$as_me:$LINENO: result: no" >&5
8175echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008176fi
8177
8178
8179# Extract the first word of "pod2man", so it can be a program name with args.
8180set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183if test "${ac_cv_path_POD2MAN+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008185else
8186 case $POD2MAN in
8187 [\\/]* | ?:[\\/]*)
8188 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8189 ;;
8190 *)
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192for as_dir in $PATH
8193do
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 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 +00008198 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008200 break 2
8201 fi
8202done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008203done
Reid Spencera773bd52006-08-04 18:18:08 +00008204IFS=$as_save_IFS
8205
Reid Spencera773bd52006-08-04 18:18:08 +00008206 ;;
8207esac
8208fi
8209POD2MAN=$ac_cv_path_POD2MAN
8210if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008211 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8212echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214 { echo "$as_me:$LINENO: result: no" >&5
8215echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008216fi
8217
8218
8219# Extract the first word of "runtest", so it can be a program name with args.
8220set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8223if test "${ac_cv_path_RUNTEST+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008225else
8226 case $RUNTEST in
8227 [\\/]* | ?:[\\/]*)
8228 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8229 ;;
8230 *)
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 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 +00008238 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008240 break 2
8241 fi
8242done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243done
Reid Spencera773bd52006-08-04 18:18:08 +00008244IFS=$as_save_IFS
8245
Reid Spencera773bd52006-08-04 18:18:08 +00008246 ;;
8247esac
8248fi
8249RUNTEST=$ac_cv_path_RUNTEST
8250if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8252echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254 { echo "$as_me:$LINENO: result: no" >&5
8255echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008256fi
8257
8258
8259
8260no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8262echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008263
8264# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008265if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008266 withval=$with_tclinclude; with_tclinclude=${withval}
8267else
8268 with_tclinclude=''
8269fi
8270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008271if test "${ac_cv_path_tclsh+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008273else
8274
8275if test x"${with_tclinclude}" != x ; then
8276 if test -f ${with_tclinclude}/tclsh ; then
8277 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8278 elif test -f ${with_tclinclude}/src/tclsh ; then
8279 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8280 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008281 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8282echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8283 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008284 fi
8285fi
Torok Edwin871384f2010-01-26 08:50:50 +00008286fi
8287
Reid Spencera773bd52006-08-04 18:18:08 +00008288
8289if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008290 { echo "$as_me:$LINENO: result: none" >&5
8291echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008292 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
8293do
8294 # Extract the first word of "$ac_prog", so it can be a program name with args.
8295set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298if test "${ac_cv_path_TCLSH+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008300else
8301 case $TCLSH in
8302 [\\/]* | ?:[\\/]*)
8303 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8304 ;;
8305 *)
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008313 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008315 break 2
8316 fi
8317done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318done
Reid Spencera773bd52006-08-04 18:18:08 +00008319IFS=$as_save_IFS
8320
8321 ;;
8322esac
8323fi
8324TCLSH=$ac_cv_path_TCLSH
8325if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8327echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 { echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008331fi
8332
8333
8334 test -n "$TCLSH" && break
8335done
8336
8337 if test x"${TCLSH}" = x ; then
8338 ac_cv_path_tclsh='';
8339 else
8340 ac_cv_path_tclsh="${TCLSH}";
8341 fi
8342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8344echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008345 TCLSH="${ac_cv_path_tclsh}"
8346
8347fi
8348
Reid Spencera773bd52006-08-04 18:18:08 +00008349# Extract the first word of "zip", so it can be a program name with args.
8350set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8353if test "${ac_cv_path_ZIP+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008355else
8356 case $ZIP in
8357 [\\/]* | ?:[\\/]*)
8358 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8359 ;;
8360 *)
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 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 +00008368 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008370 break 2
8371 fi
8372done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008373done
Reid Spencera773bd52006-08-04 18:18:08 +00008374IFS=$as_save_IFS
8375
Reid Spencera773bd52006-08-04 18:18:08 +00008376 ;;
8377esac
8378fi
8379ZIP=$ac_cv_path_ZIP
8380if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008381 { echo "$as_me:$LINENO: result: $ZIP" >&5
8382echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008384 { echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008386fi
8387
8388
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008389for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008390do
8391 # Extract the first word of "$ac_prog", so it can be a program name with args.
8392set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8395if test "${ac_cv_path_OCAMLC+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008397else
8398 case $OCAMLC in
8399 [\\/]* | ?:[\\/]*)
8400 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8401 ;;
8402 *)
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 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 +00008410 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008412 break 2
8413 fi
8414done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008415done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008416IFS=$as_save_IFS
8417
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008418 ;;
8419esac
8420fi
8421OCAMLC=$ac_cv_path_OCAMLC
8422if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008423 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8424echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426 { echo "$as_me:$LINENO: result: no" >&5
8427echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008428fi
8429
8430
Gordon Henriksene7072162008-03-07 18:20:01 +00008431 test -n "$OCAMLC" && break
8432done
8433
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008434for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008435do
8436 # Extract the first word of "$ac_prog", so it can be a program name with args.
8437set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8440if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008442else
8443 case $OCAMLOPT in
8444 [\\/]* | ?:[\\/]*)
8445 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8446 ;;
8447 *)
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 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 +00008455 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008457 break 2
8458 fi
8459done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008460done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008461IFS=$as_save_IFS
8462
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008463 ;;
8464esac
8465fi
8466OCAMLOPT=$ac_cv_path_OCAMLOPT
8467if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008468 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8469echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008471 { echo "$as_me:$LINENO: result: no" >&5
8472echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008473fi
8474
8475
Gordon Henriksene7072162008-03-07 18:20:01 +00008476 test -n "$OCAMLOPT" && break
8477done
8478
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008479for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008480do
8481 # Extract the first word of "$ac_prog", so it can be a program name with args.
8482set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8485if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008487else
8488 case $OCAMLDEP in
8489 [\\/]* | ?:[\\/]*)
8490 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8491 ;;
8492 *)
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 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 +00008500 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008502 break 2
8503 fi
8504done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008505done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008506IFS=$as_save_IFS
8507
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008508 ;;
8509esac
8510fi
8511OCAMLDEP=$ac_cv_path_OCAMLDEP
8512if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8514echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008516 { echo "$as_me:$LINENO: result: no" >&5
8517echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008518fi
8519
8520
Gordon Henriksene7072162008-03-07 18:20:01 +00008521 test -n "$OCAMLDEP" && break
8522done
8523
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008524for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008525do
8526 # Extract the first word of "$ac_prog", so it can be a program name with args.
8527set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008532else
8533 case $OCAMLDOC in
8534 [\\/]* | ?:[\\/]*)
8535 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8536 ;;
8537 *)
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539for as_dir in $PATH
8540do
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 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 +00008545 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008547 break 2
8548 fi
8549done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008550done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008551IFS=$as_save_IFS
8552
8553 ;;
8554esac
8555fi
8556OCAMLDOC=$ac_cv_path_OCAMLDOC
8557if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8559echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008561 { echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008563fi
8564
8565
8566 test -n "$OCAMLDOC" && break
8567done
8568
Torok Edwincc499a42008-10-22 09:56:27 +00008569for ac_prog in gas as
8570do
8571 # Extract the first word of "$ac_prog", so it can be a program name with args.
8572set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8575if test "${ac_cv_path_GAS+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008577else
8578 case $GAS in
8579 [\\/]* | ?:[\\/]*)
8580 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8581 ;;
8582 *)
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 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 +00008590 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008592 break 2
8593 fi
8594done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008595done
Torok Edwincc499a42008-10-22 09:56:27 +00008596IFS=$as_save_IFS
8597
8598 ;;
8599esac
8600fi
8601GAS=$ac_cv_path_GAS
8602if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008603 { echo "$as_me:$LINENO: result: $GAS" >&5
8604echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008606 { echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008608fi
8609
8610
8611 test -n "$GAS" && break
8612done
8613
Reid Spencera773bd52006-08-04 18:18:08 +00008614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008615{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8616echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8617if test "${llvm_cv_link_use_r+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008619else
8620 ac_ext=c
8621ac_cpp='$CPP $CPPFLAGS'
8622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8624ac_compiler_gnu=$ac_cv_c_compiler_gnu
8625
8626 oldcflags="$CFLAGS"
8627 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008628 cat >conftest.$ac_ext <<_ACEOF
8629/* confdefs.h. */
8630_ACEOF
8631cat confdefs.h >>conftest.$ac_ext
8632cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008633/* end confdefs.h. */
8634
8635int
8636main ()
8637{
Dan Gohman39ed6782010-04-25 00:12:20 +00008638
Reid Spencera773bd52006-08-04 18:18:08 +00008639 ;
8640 return 0;
8641}
8642_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008643rm -f conftest.$ac_objext conftest$ac_exeext
8644if { (ac_try="$ac_link"
8645case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648esac
8649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_link") 2>conftest.er1
8651 ac_status=$?
8652 grep -v '^ *+' conftest.er1 >conftest.err
8653 rm -f conftest.er1
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8658 { (case "(($ac_try" in
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8661esac
8662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_try") 2>&5
8664 ac_status=$?
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest$ac_exeext'
8668 { (case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8671esac
8672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_try") 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008677 llvm_cv_link_use_r=yes
8678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008679 echo "$as_me: failed program was:" >&5
8680sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008684
Bill Wendlingebcceee2009-04-18 11:20:33 +00008685rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008686 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008687 CFLAGS="$oldcflags"
8688 ac_ext=c
8689ac_cpp='$CPP $CPPFLAGS'
8690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692ac_compiler_gnu=$ac_cv_c_compiler_gnu
8693
8694
8695fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8697echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008698if test "$llvm_cv_link_use_r" = yes ; then
8699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008700cat >>confdefs.h <<\_ACEOF
8701#define HAVE_LINK_R 1
8702_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008703
8704 fi
8705
8706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008707{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8708echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8709if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008711else
8712 ac_ext=c
8713ac_cpp='$CPP $CPPFLAGS'
8714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716ac_compiler_gnu=$ac_cv_c_compiler_gnu
8717
8718 oldcflags="$CFLAGS"
8719 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008720 cat >conftest.$ac_ext <<_ACEOF
8721/* confdefs.h. */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008725/* end confdefs.h. */
8726
8727int
8728main ()
8729{
Dan Gohman39ed6782010-04-25 00:12:20 +00008730
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008731 ;
8732 return 0;
8733}
8734_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008735rm -f conftest.$ac_objext conftest$ac_exeext
8736if { (ac_try="$ac_link"
8737case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740esac
8741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_link") 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8750 { (case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753esac
8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_try") 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try='test -s conftest$ac_exeext'
8760 { (case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763esac
8764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_try") 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008769 llvm_cv_link_use_export_dynamic=yes
8770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008771 echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008775fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008776
Bill Wendlingebcceee2009-04-18 11:20:33 +00008777rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008778 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008779 CFLAGS="$oldcflags"
8780 ac_ext=c
8781ac_cpp='$CPP $CPPFLAGS'
8782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8784ac_compiler_gnu=$ac_cv_c_compiler_gnu
8785
8786
8787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008788{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8789echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008790if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008792cat >>confdefs.h <<\_ACEOF
8793#define HAVE_LINK_EXPORT_DYNAMIC 1
8794_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008795
8796 fi
8797
8798
Dan Gohman391569c2010-04-16 22:59:06 +00008799{ echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8800echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8801if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803else
8804 ac_ext=c
8805ac_cpp='$CPP $CPPFLAGS'
8806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808ac_compiler_gnu=$ac_cv_c_compiler_gnu
8809
8810 oldcflags="$CFLAGS"
8811
8812 # The following code is from the autoconf manual,
8813 # "11.13: Limitations of Usual Tools".
8814 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8815 # Use mktemp if possible; otherwise fall back on mkdir,
8816 # with $RANDOM to make collisions less likely.
8817 : ${TMPDIR=/tmp}
8818 {
8819 tmp=`
8820 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8821 ` &&
8822 test -n "$tmp" && test -d "$tmp"
8823 } || {
8824 tmp=$TMPDIR/foo$$-$RANDOM
8825 (umask 077 && mkdir "$tmp")
8826 } || exit $?
8827
8828 echo "main" > "$tmp/exports"
8829
8830 CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8831 cat >conftest.$ac_ext <<_ACEOF
8832/* confdefs.h. */
8833_ACEOF
8834cat confdefs.h >>conftest.$ac_ext
8835cat >>conftest.$ac_ext <<_ACEOF
8836/* end confdefs.h. */
8837
8838int
8839main ()
8840{
Dan Gohman39ed6782010-04-25 00:12:20 +00008841
Dan Gohman391569c2010-04-16 22:59:06 +00008842 ;
8843 return 0;
8844}
8845_ACEOF
8846rm -f conftest.$ac_objext conftest$ac_exeext
8847if { (ac_try="$ac_link"
8848case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851esac
8852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_link") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861 { (case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864esac
8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_try") 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; } &&
8870 { ac_try='test -s conftest$ac_exeext'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874esac
8875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 llvm_cv_link_use_retain_symbols_file=yes
8881else
8882 echo "$as_me: failed program was:" >&5
8883sed 's/^/| /' conftest.$ac_ext >&5
8884
8885 llvm_cv_link_use_retain_symbols_file=no
8886fi
8887
8888rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 rm "$tmp/exports"
8891 rmdir "$tmp"
8892 CFLAGS="$oldcflags"
8893 ac_ext=c
8894ac_cpp='$CPP $CPPFLAGS'
8895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8897ac_compiler_gnu=$ac_cv_c_compiler_gnu
8898
8899
8900fi
8901{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
8902echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8903if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8904 HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8905
8906 fi
8907
8908
Reid Spencera773bd52006-08-04 18:18:08 +00008909
8910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008911{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8912echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8913if test "${ac_cv_c_const+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008916 cat >conftest.$ac_ext <<_ACEOF
8917/* confdefs.h. */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008921/* end confdefs.h. */
8922
8923int
8924main ()
8925{
8926/* FIXME: Include the comments suggested by Paul. */
8927#ifndef __cplusplus
8928 /* Ultrix mips cc rejects this. */
8929 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008930 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008931 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008932 char const *const *ccp;
8933 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008934 /* NEC SVR4.0.2 mips cc rejects this. */
8935 struct point {int x, y;};
8936 static struct point const zero = {0,0};
8937 /* AIX XL C 1.02.0.0 rejects this.
8938 It does not let you subtract one const X* pointer from another in
8939 an arm of an if-expression whose if-part is not a constant
8940 expression */
8941 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008942 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008943 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008944 ++ccp;
8945 p = (char**) ccp;
8946 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008947 { /* SCO 3.2v4 cc rejects this. */
8948 char *t;
8949 char const *s = 0 ? (char *) 0 : (char const *) 0;
8950
8951 *t++ = 0;
8952 if (s) return 0;
8953 }
8954 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8955 int x[] = {25, 17};
8956 const int *foo = &x[0];
8957 ++foo;
8958 }
8959 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8960 typedef const int *iptr;
8961 iptr p = 0;
8962 ++p;
8963 }
8964 { /* AIX XL C 1.02.0.0 rejects this saying
8965 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8966 struct s { int j; const int *ap[3]; };
8967 struct s *b; b->j = 5;
8968 }
8969 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8970 const int foo = 10;
8971 if (!foo) return 0;
8972 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008973 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008974#endif
8975
8976 ;
8977 return 0;
8978}
8979_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008980rm -f conftest.$ac_objext
8981if { (ac_try="$ac_compile"
8982case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8985esac
8986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_compile") 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8995 { (case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8998esac
8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_try") 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try='test -s conftest.$ac_objext'
9005 { (case "(($ac_try" in
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9008esac
9009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_try") 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009014 ac_cv_c_const=yes
9015else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009016 echo "$as_me: failed program was:" >&5
9017sed 's/^/| /' conftest.$ac_ext >&5
9018
9019 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009021
Reid Spencera773bd52006-08-04 18:18:08 +00009022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009024{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9025echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009026if test $ac_cv_c_const = no; then
9027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009028cat >>confdefs.h <<\_ACEOF
9029#define const
9030_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009031
9032fi
9033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009034
9035
9036
9037
9038
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009039ac_header_dirent=no
9040for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009041 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9042{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9043echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009047 cat >conftest.$ac_ext <<_ACEOF
9048/* confdefs.h. */
9049_ACEOF
9050cat confdefs.h >>conftest.$ac_ext
9051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009052/* end confdefs.h. */
9053#include <sys/types.h>
9054#include <$ac_hdr>
9055
9056int
9057main ()
9058{
9059if ((DIR *) 0)
9060return 0;
9061 ;
9062 return 0;
9063}
9064_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009065rm -f conftest.$ac_objext
9066if { (ac_try="$ac_compile"
9067case "(($ac_try" in
9068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069 *) ac_try_echo=$ac_try;;
9070esac
9071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072 (eval "$ac_compile") 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9080 { (case "(($ac_try" in
9081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082 *) ac_try_echo=$ac_try;;
9083esac
9084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085 (eval "$ac_try") 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest.$ac_objext'
9090 { (case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9093esac
9094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_try") 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009099 eval "$as_ac_Header=yes"
9100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009101 echo "$as_me: failed program was:" >&5
9102sed 's/^/| /' conftest.$ac_ext >&5
9103
9104 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009106
Reid Spencera773bd52006-08-04 18:18:08 +00009107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009109ac_res=`eval echo '${'$as_ac_Header'}'`
9110 { echo "$as_me:$LINENO: result: $ac_res" >&5
9111echo "${ECHO_T}$ac_res" >&6; }
9112if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009113 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009114#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009115_ACEOF
9116
9117ac_header_dirent=$ac_hdr; break
9118fi
9119
9120done
9121# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9122if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009123 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9124echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9125if test "${ac_cv_search_opendir+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009127else
9128 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009129cat >conftest.$ac_ext <<_ACEOF
9130/* confdefs.h. */
9131_ACEOF
9132cat confdefs.h >>conftest.$ac_ext
9133cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134/* end confdefs.h. */
9135
Reid Spencera773bd52006-08-04 18:18:08 +00009136/* Override any GCC internal prototype to avoid an error.
9137 Use char because int might match the return type of a GCC
9138 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009139#ifdef __cplusplus
9140extern "C"
9141#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009142char opendir ();
9143int
9144main ()
9145{
Reid Spencera773bd52006-08-04 18:18:08 +00009146return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009147 ;
9148 return 0;
9149}
9150_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009151for ac_lib in '' dir; do
9152 if test -z "$ac_lib"; then
9153 ac_res="none required"
9154 else
9155 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009157 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009158 rm -f conftest.$ac_objext conftest$ac_exeext
9159if { (ac_try="$ac_link"
9160case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163esac
9164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_link") 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9173 { (case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176esac
9177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_try") 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest$ac_exeext'
9183 { (case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_try") 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009192 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009193else
9194 echo "$as_me: failed program was:" >&5
9195sed 's/^/| /' conftest.$ac_ext >&5
9196
9197
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009198fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009199
Bill Wendlingebcceee2009-04-18 11:20:33 +00009200rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009201 conftest$ac_exeext
9202 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009203 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009204fi
John Criswell7a73b802003-06-30 21:59:07 +00009205done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009206if test "${ac_cv_search_opendir+set}" = set; then
9207 :
Reid Spencera773bd52006-08-04 18:18:08 +00009208else
9209 ac_cv_search_opendir=no
9210fi
9211rm conftest.$ac_ext
9212LIBS=$ac_func_search_save_LIBS
9213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009214{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9215echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009216ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009217if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009219
Reid Spencera773bd52006-08-04 18:18:08 +00009220fi
9221
9222else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009223 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9224echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9225if test "${ac_cv_search_opendir+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009227else
9228 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009234/* end confdefs.h. */
9235
9236/* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9239#ifdef __cplusplus
9240extern "C"
9241#endif
9242char opendir ();
9243int
9244main ()
9245{
9246return opendir ();
9247 ;
9248 return 0;
9249}
9250_ACEOF
9251for ac_lib in '' x; do
9252 if test -z "$ac_lib"; then
9253 ac_res="none required"
9254 else
9255 ac_res=-l$ac_lib
9256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9257 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009258 rm -f conftest.$ac_objext conftest$ac_exeext
9259if { (ac_try="$ac_link"
9260case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263esac
9264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_link") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273 { (case "(($ac_try" in
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9276esac
9277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278 (eval "$ac_try") 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (case "(($ac_try" in
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9286esac
9287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288 (eval "$ac_try") 2>&5
9289 ac_status=$?
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009292 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009293else
9294 echo "$as_me: failed program was:" >&5
9295sed 's/^/| /' conftest.$ac_ext >&5
9296
9297
Reid Spencera773bd52006-08-04 18:18:08 +00009298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009299
Bill Wendlingebcceee2009-04-18 11:20:33 +00009300rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009301 conftest$ac_exeext
9302 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009303 break
9304fi
9305done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009306if test "${ac_cv_search_opendir+set}" = set; then
9307 :
Reid Spencera773bd52006-08-04 18:18:08 +00009308else
9309 ac_cv_search_opendir=no
9310fi
9311rm conftest.$ac_ext
9312LIBS=$ac_func_search_save_LIBS
9313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009314{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9315echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009316ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009317if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9319
9320fi
9321
9322fi
John Criswell7a73b802003-06-30 21:59:07 +00009323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009324
John Criswell7a73b802003-06-30 21:59:07 +00009325for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009326do
9327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9333fi
9334ac_res=`eval echo '${'$as_ac_Header'}'`
9335 { echo "$as_me:$LINENO: result: $ac_res" >&5
9336echo "${ECHO_T}$ac_res" >&6; }
9337else
9338 # Is the header compilable?
9339{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9341cat >conftest.$ac_ext <<_ACEOF
9342/* confdefs.h. */
9343_ACEOF
9344cat confdefs.h >>conftest.$ac_ext
9345cat >>conftest.$ac_ext <<_ACEOF
9346/* end confdefs.h. */
9347$ac_includes_default
9348#include <$ac_header>
9349_ACEOF
9350rm -f conftest.$ac_objext
9351if { (ac_try="$ac_compile"
9352case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9355esac
9356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_compile") 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9365 { (case "(($ac_try" in
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9368esac
9369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_try") 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; } &&
9374 { ac_try='test -s conftest.$ac_objext'
9375 { (case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378esac
9379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_try") 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 ac_header_compiler=yes
9385else
9386 echo "$as_me: failed program was:" >&5
9387sed 's/^/| /' conftest.$ac_ext >&5
9388
9389 ac_header_compiler=no
9390fi
9391
9392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9394echo "${ECHO_T}$ac_header_compiler" >&6; }
9395
9396# Is the header present?
9397{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9399cat >conftest.$ac_ext <<_ACEOF
9400/* confdefs.h. */
9401_ACEOF
9402cat confdefs.h >>conftest.$ac_ext
9403cat >>conftest.$ac_ext <<_ACEOF
9404/* end confdefs.h. */
9405#include <$ac_header>
9406_ACEOF
9407if { (ac_try="$ac_cpp conftest.$ac_ext"
9408case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9411esac
9412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } >/dev/null; then
9420 if test -s conftest.err; then
9421 ac_cpp_err=$ac_c_preproc_warn_flag
9422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9423 else
9424 ac_cpp_err=
9425 fi
9426else
9427 ac_cpp_err=yes
9428fi
9429if test -z "$ac_cpp_err"; then
9430 ac_header_preproc=yes
9431else
9432 echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435 ac_header_preproc=no
9436fi
9437
9438rm -f conftest.err conftest.$ac_ext
9439{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9440echo "${ECHO_T}$ac_header_preproc" >&6; }
9441
9442# So? What about this header?
9443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9444 yes:no: )
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9449 ac_header_preproc=yes
9450 ;;
9451 no:yes:* )
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9464 ( cat <<\_ASBOX
9465## ----------------------------------- ##
9466## Report this to llvmbugs@cs.uiuc.edu ##
9467## ----------------------------------- ##
9468_ASBOX
9469 ) | sed "s/^/$as_me: WARNING: /" >&2
9470 ;;
9471esac
9472{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476else
9477 eval "$as_ac_Header=\$ac_header_preproc"
9478fi
9479ac_res=`eval echo '${'$as_ac_Header'}'`
9480 { echo "$as_me:$LINENO: result: $ac_res" >&5
9481echo "${ECHO_T}$ac_res" >&6; }
9482
9483fi
9484if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009485 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009487_ACEOF
9488
9489fi
9490
9491done
9492
Reid Spencera773bd52006-08-04 18:18:08 +00009493# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009494if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009495 enableval=$enable_ltdl_install;
9496fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009499
9500
9501if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502 INSTALL_LTDL_TRUE=
9503 INSTALL_LTDL_FALSE='#'
9504else
9505 INSTALL_LTDL_TRUE='#'
9506 INSTALL_LTDL_FALSE=
9507fi
9508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509
9510
9511if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512 CONVENIENCE_LTDL_TRUE=
9513 CONVENIENCE_LTDL_FALSE='#'
9514else
9515 CONVENIENCE_LTDL_TRUE='#'
9516 CONVENIENCE_LTDL_FALSE=
9517fi
9518
9519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009520{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9521echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522library_names_spec=
9523libname_spec='lib$name'
9524soname_spec=
9525shrext_cmds=".so"
9526postinstall_cmds=
9527postuninstall_cmds=
9528finish_cmds=
9529finish_eval=
9530shlibpath_var=
9531shlibpath_overrides_runpath=unknown
9532version_type=none
9533dynamic_linker="$host_os ld.so"
9534sys_lib_dlsearch_path_spec="/lib /usr/lib"
9535if test "$GCC" = yes; then
9536 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9537 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9538 # if the path contains ";" then we assume it to be the separator
9539 # otherwise default to the standard path separator (i.e. ":") - it is
9540 # assumed that no part of a normal pathname contains ";" but that should
9541 # okay in the real world where ";" in dirpaths is itself problematic.
9542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9543 else
9544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9545 fi
9546else
9547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9548fi
9549need_lib_prefix=unknown
9550hardcode_into_libs=no
9551
9552# when you set need_version to no, make sure it does not cause -set_version
9553# flags to be left without arguments
9554need_version=unknown
9555
9556case $host_os in
9557aix3*)
9558 version_type=linux
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9560 shlibpath_var=LIBPATH
9561
9562 # AIX 3 has no versioning support, so we append a major version to the name.
9563 soname_spec='${libname}${release}${shared_ext}$major'
9564 ;;
9565
9566aix4* | aix5*)
9567 version_type=linux
9568 need_lib_prefix=no
9569 need_version=no
9570 hardcode_into_libs=yes
9571 if test "$host_cpu" = ia64; then
9572 # AIX 5 supports IA64
9573 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 else
9576 # With GCC up to 2.95.x, collect2 would create an import file
9577 # for dependence libraries. The import file would start with
9578 # the line `#! .'. This would cause the generated library to
9579 # depend on `.', always an invalid library. This was fixed in
9580 # development snapshots of GCC prior to 3.0.
9581 case $host_os in
9582 aix4 | aix4.[01] | aix4.[01].*)
9583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9584 echo ' yes '
9585 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9586 :
9587 else
9588 can_build_shared=no
9589 fi
9590 ;;
9591 esac
9592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9593 # soname into executable. Probably we can add versioning support to
9594 # collect2, so additional links can be useful in future.
9595 if test "$aix_use_runtimelinking" = yes; then
9596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9597 # instead of lib<name>.a to let people know that these are not
9598 # typical AIX shared libraries.
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600 else
9601 # We preserve .a as extension for shared libraries through AIX4.2
9602 # and later when we are not doing run time linking.
9603 library_names_spec='${libname}${release}.a $libname.a'
9604 soname_spec='${libname}${release}${shared_ext}$major'
9605 fi
9606 shlibpath_var=LIBPATH
9607 fi
9608 ;;
9609
9610amigaos*)
9611 library_names_spec='$libname.ixlibrary $libname.a'
9612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9613 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'
9614 ;;
9615
9616beos*)
9617 library_names_spec='${libname}${shared_ext}'
9618 dynamic_linker="$host_os ld.so"
9619 shlibpath_var=LIBRARY_PATH
9620 ;;
9621
9622bsdi[45]*)
9623 version_type=linux
9624 need_version=no
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9630 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9631 # the default ld.so.conf also contains /usr/contrib/lib and
9632 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9633 # libtool to hard-code these into programs
9634 ;;
9635
9636cygwin* | mingw* | pw32*)
9637 version_type=windows
9638 shrext_cmds=".dll"
9639 need_version=no
9640 need_lib_prefix=no
9641
9642 case $GCC,$host_os in
9643 yes,cygwin* | yes,mingw* | yes,pw32*)
9644 library_names_spec='$libname.dll.a'
9645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9646 postinstall_cmds='base_file=`basename \${file}`~
9647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9648 dldir=$destdir/`dirname \$dlpath`~
9649 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009650 $install_prog $dir/$dlname \$dldir/$dlname~
9651 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9653 dlpath=$dir/\$dldll~
9654 $rm \$dlpath'
9655 shlibpath_overrides_runpath=yes
9656
9657 case $host_os in
9658 cygwin*)
9659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9660 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9661 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9662 ;;
9663 mingw*)
9664 # MinGW DLLs use traditional 'lib' prefix
9665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9667 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9668 # It is most probably a Windows format PATH printed by
9669 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9670 # path with ; separators, and with drive letters. We can handle the
9671 # drive letters (cygwin fileutils understands them), so leave them,
9672 # especially as we might pass files found there to a mingw objdump,
9673 # which wouldn't understand a cygwinified path. Ahh.
9674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9675 else
9676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9677 fi
9678 ;;
9679 pw32*)
9680 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009681 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 +00009682 ;;
9683 esac
9684 ;;
9685
9686 *)
9687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9688 ;;
9689 esac
9690 dynamic_linker='Win32 ld.exe'
9691 # FIXME: first we should search . and the directory the executable is in
9692 shlibpath_var=PATH
9693 ;;
9694
9695darwin* | rhapsody*)
9696 dynamic_linker="$host_os dyld"
9697 version_type=darwin
9698 need_lib_prefix=no
9699 need_version=no
9700 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9701 soname_spec='${libname}${release}${major}$shared_ext'
9702 shlibpath_overrides_runpath=yes
9703 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009704 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9706 if test "$GCC" = yes; then
9707 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"`
9708 else
9709 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9710 fi
9711 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9712 ;;
9713
9714dgux*)
9715 version_type=linux
9716 need_lib_prefix=no
9717 need_version=no
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9719 soname_spec='${libname}${release}${shared_ext}$major'
9720 shlibpath_var=LD_LIBRARY_PATH
9721 ;;
9722
9723freebsd1*)
9724 dynamic_linker=no
9725 ;;
9726
9727kfreebsd*-gnu)
9728 version_type=linux
9729 need_lib_prefix=no
9730 need_version=no
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 shlibpath_overrides_runpath=no
9735 hardcode_into_libs=yes
9736 dynamic_linker='GNU ld.so'
9737 ;;
9738
Reid Spencera773bd52006-08-04 18:18:08 +00009739freebsd* | dragonfly*)
9740 # DragonFly does not have aout. When/if they implement a new
9741 # versioning mechanism, adjust this.
9742 if test -x /usr/bin/objformat; then
9743 objformat=`/usr/bin/objformat`
9744 else
9745 case $host_os in
9746 freebsd[123]*) objformat=aout ;;
9747 *) objformat=elf ;;
9748 esac
9749 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750 version_type=freebsd-$objformat
9751 case $version_type in
9752 freebsd-elf*)
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9754 need_version=no
9755 need_lib_prefix=no
9756 ;;
9757 freebsd-*)
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9759 need_version=yes
9760 ;;
9761 esac
9762 shlibpath_var=LD_LIBRARY_PATH
9763 case $host_os in
9764 freebsd2*)
9765 shlibpath_overrides_runpath=yes
9766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009767 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768 shlibpath_overrides_runpath=yes
9769 hardcode_into_libs=yes
9770 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009771 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9772 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773 shlibpath_overrides_runpath=no
9774 hardcode_into_libs=yes
9775 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009776 freebsd*) # from 4.6 on
9777 shlibpath_overrides_runpath=yes
9778 hardcode_into_libs=yes
9779 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780 esac
9781 ;;
9782
9783gnu*)
9784 version_type=linux
9785 need_lib_prefix=no
9786 need_version=no
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 hardcode_into_libs=yes
9791 ;;
9792
9793hpux9* | hpux10* | hpux11*)
9794 # Give a soname corresponding to the major version so that dld.sl refuses to
9795 # link against other versions.
9796 version_type=sunos
9797 need_lib_prefix=no
9798 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009799 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800 ia64*)
9801 shrext_cmds='.so'
9802 hardcode_into_libs=yes
9803 dynamic_linker="$host_os dld.so"
9804 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 soname_spec='${libname}${release}${shared_ext}$major'
9808 if test "X$HPUX_IA64_MODE" = X32; then
9809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9810 else
9811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9812 fi
9813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9814 ;;
9815 hppa*64*)
9816 shrext_cmds='.sl'
9817 hardcode_into_libs=yes
9818 dynamic_linker="$host_os dld.sl"
9819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9825 ;;
9826 *)
9827 shrext_cmds='.sl'
9828 dynamic_linker="$host_os dld.sl"
9829 shlibpath_var=SHLIB_PATH
9830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832 soname_spec='${libname}${release}${shared_ext}$major'
9833 ;;
9834 esac
9835 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9836 postinstall_cmds='chmod 555 $lib'
9837 ;;
9838
Reid Spencera773bd52006-08-04 18:18:08 +00009839interix3*)
9840 version_type=linux
9841 need_lib_prefix=no
9842 need_version=no
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 shlibpath_overrides_runpath=no
9848 hardcode_into_libs=yes
9849 ;;
9850
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851irix5* | irix6* | nonstopux*)
9852 case $host_os in
9853 nonstopux*) version_type=nonstopux ;;
9854 *)
9855 if test "$lt_cv_prog_gnu_ld" = yes; then
9856 version_type=linux
9857 else
9858 version_type=irix
9859 fi ;;
9860 esac
9861 need_lib_prefix=no
9862 need_version=no
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9865 case $host_os in
9866 irix5* | nonstopux*)
9867 libsuff= shlibsuff=
9868 ;;
9869 *)
9870 case $LD in # libtool.m4 will add one of these switches to LD
9871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9872 libsuff= shlibsuff= libmagic=32-bit;;
9873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9874 libsuff=32 shlibsuff=N32 libmagic=N32;;
9875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9876 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9877 *) libsuff= shlibsuff= libmagic=never-match;;
9878 esac
9879 ;;
9880 esac
9881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9882 shlibpath_overrides_runpath=no
9883 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9884 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9885 hardcode_into_libs=yes
9886 ;;
9887
9888# No shared lib support for Linux oldld, aout, or coff.
9889linux*oldld* | linux*aout* | linux*coff*)
9890 dynamic_linker=no
9891 ;;
9892
9893# This must be Linux ELF.
9894linux*)
9895 version_type=linux
9896 need_lib_prefix=no
9897 need_version=no
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 soname_spec='${libname}${release}${shared_ext}$major'
9900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9901 shlibpath_var=LD_LIBRARY_PATH
9902 shlibpath_overrides_runpath=no
9903 # This implies no fast_install, which is unacceptable.
9904 # Some rework will be needed to allow for fast_install
9905 # before this can be enabled.
9906 hardcode_into_libs=yes
9907
9908 # Append ld.so.conf contents to the search path
9909 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009910 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 +00009911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9912 fi
9913
9914 # We used to test for /lib/ld.so.1 and disable shared libraries on
9915 # powerpc, because MkLinux only supported shared libraries with the
9916 # GNU dynamic linker. Since this was broken with cross compilers,
9917 # most powerpc-linux boxes support dynamic linking these days and
9918 # people can always --disable-shared, the test was removed, and we
9919 # assume the GNU/Linux dynamic linker is in use.
9920 dynamic_linker='GNU/Linux ld.so'
9921 ;;
9922
9923knetbsd*-gnu)
9924 version_type=linux
9925 need_lib_prefix=no
9926 need_version=no
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 shlibpath_overrides_runpath=no
9931 hardcode_into_libs=yes
9932 dynamic_linker='GNU ld.so'
9933 ;;
9934
9935netbsd*)
9936 version_type=sunos
9937 need_lib_prefix=no
9938 need_version=no
9939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942 dynamic_linker='NetBSD (a.out) ld.so'
9943 else
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 dynamic_linker='NetBSD ld.elf_so'
9947 fi
9948 shlibpath_var=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath=yes
9950 hardcode_into_libs=yes
9951 ;;
9952
9953newsos6)
9954 version_type=linux
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=yes
9958 ;;
9959
9960nto-qnx*)
9961 version_type=linux
9962 need_lib_prefix=no
9963 need_version=no
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=yes
9968 ;;
9969
9970openbsd*)
9971 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009972 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9975 case $host_os in
9976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9977 *) need_version=no ;;
9978 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9983 case $host_os in
9984 openbsd2.[89] | openbsd2.[89].*)
9985 shlibpath_overrides_runpath=no
9986 ;;
9987 *)
9988 shlibpath_overrides_runpath=yes
9989 ;;
9990 esac
9991 else
9992 shlibpath_overrides_runpath=yes
9993 fi
9994 ;;
9995
9996os2*)
9997 libname_spec='$name'
9998 shrext_cmds=".dll"
9999 need_lib_prefix=no
10000 library_names_spec='$libname${shared_ext} $libname.a'
10001 dynamic_linker='OS/2 ld.exe'
10002 shlibpath_var=LIBPATH
10003 ;;
10004
10005osf3* | osf4* | osf5*)
10006 version_type=osf
10007 need_lib_prefix=no
10008 need_version=no
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10014 ;;
10015
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016solaris*)
10017 version_type=linux
10018 need_lib_prefix=no
10019 need_version=no
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 shlibpath_overrides_runpath=yes
10024 hardcode_into_libs=yes
10025 # ldd complains unless libraries are executable
10026 postinstall_cmds='chmod +x $lib'
10027 ;;
10028
10029sunos4*)
10030 version_type=sunos
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 shlibpath_overrides_runpath=yes
10035 if test "$with_gnu_ld" = yes; then
10036 need_lib_prefix=no
10037 fi
10038 need_version=yes
10039 ;;
10040
Reid Spencera773bd52006-08-04 18:18:08 +000010041sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042 version_type=linux
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 case $host_vendor in
10047 sni)
10048 shlibpath_overrides_runpath=no
10049 need_lib_prefix=no
10050 export_dynamic_flag_spec='${wl}-Blargedynsym'
10051 runpath_var=LD_RUN_PATH
10052 ;;
10053 siemens)
10054 need_lib_prefix=no
10055 ;;
10056 motorola)
10057 need_lib_prefix=no
10058 need_version=no
10059 shlibpath_overrides_runpath=no
10060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10061 ;;
10062 esac
10063 ;;
10064
10065sysv4*MP*)
10066 if test -d /usr/nec ;then
10067 version_type=linux
10068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10069 soname_spec='$libname${shared_ext}.$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 fi
10072 ;;
10073
Reid Spencera773bd52006-08-04 18:18:08 +000010074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10075 version_type=freebsd-elf
10076 need_lib_prefix=no
10077 need_version=no
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10079 soname_spec='${libname}${release}${shared_ext}$major'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 hardcode_into_libs=yes
10082 if test "$with_gnu_ld" = yes; then
10083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10084 shlibpath_overrides_runpath=no
10085 else
10086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10087 shlibpath_overrides_runpath=yes
10088 case $host_os in
10089 sco3.2v5*)
10090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10091 ;;
10092 esac
10093 fi
10094 sys_lib_dlsearch_path_spec='/usr/lib'
10095 ;;
10096
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097uts4*)
10098 version_type=linux
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100 soname_spec='${libname}${release}${shared_ext}$major'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 ;;
10103
10104*)
10105 dynamic_linker=no
10106 ;;
10107esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010108{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10109echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110test "$dynamic_linker" = no && can_build_shared=no
10111
Reid Spencera773bd52006-08-04 18:18:08 +000010112variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10113if test "$GCC" = yes; then
10114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10115fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010116
Reid Spencera773bd52006-08-04 18:18:08 +000010117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010118{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10119echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10120if test "${libltdl_cv_shlibext+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122else
10123
10124module=yes
10125eval libltdl_cv_shlibext=$shrext_cmds
10126
10127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010128{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10129echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010130if test -n "$libltdl_cv_shlibext"; then
10131
10132cat >>confdefs.h <<_ACEOF
10133#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10134_ACEOF
10135
10136fi
10137
10138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010139{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10140echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10141if test "${libltdl_cv_shlibpath_var+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010143else
10144 libltdl_cv_shlibpath_var="$shlibpath_var"
10145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010146{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10147echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010148if test -n "$libltdl_cv_shlibpath_var"; then
10149
10150cat >>confdefs.h <<_ACEOF
10151#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10152_ACEOF
10153
10154fi
10155
10156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010157{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10158echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10159if test "${libltdl_cv_sys_search_path+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161else
10162 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10163fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010164{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10165echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166if test -n "$libltdl_cv_sys_search_path"; then
10167 sys_search_path=
10168 for dir in $libltdl_cv_sys_search_path; do
10169 if test -z "$sys_search_path"; then
10170 sys_search_path="$dir"
10171 else
10172 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10173 fi
10174 done
10175
10176cat >>confdefs.h <<_ACEOF
10177#define LTDL_SYSSEARCHPATH "$sys_search_path"
10178_ACEOF
10179
10180fi
10181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010182{ echo "$as_me:$LINENO: checking for objdir" >&5
10183echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10184if test "${libltdl_cv_objdir+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186else
10187 libltdl_cv_objdir="$objdir"
10188 if test -n "$objdir"; then
10189 :
10190 else
10191 rm -f .libs 2>/dev/null
10192 mkdir .libs 2>/dev/null
10193 if test -d .libs; then
10194 libltdl_cv_objdir=.libs
10195 else
10196 # MS-DOS does not allow filenames that begin with a dot.
10197 libltdl_cv_objdir=_libs
10198 fi
10199 rmdir .libs 2>/dev/null
10200 fi
10201
10202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010203{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10204echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010205
10206cat >>confdefs.h <<_ACEOF
10207#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10208_ACEOF
10209
10210
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211
10212
10213
10214
10215# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010216{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10217echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10218if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220else
10221
10222# These are sane defaults that work on at least a few old systems.
10223# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10224
10225# Character class describing NM global symbol codes.
10226symcode='[BCDEGRST]'
10227
10228# Regexp to match symbols that can be accessed directly from C.
10229sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10230
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231# Transform an extracted symbol line into a proper C declaration
10232lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10233
10234# Transform an extracted symbol line into symbol name and symbol address
10235lt_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'"
10236
10237# Define system-specific variables.
10238case $host_os in
10239aix*)
10240 symcode='[BCDT]'
10241 ;;
10242cygwin* | mingw* | pw32*)
10243 symcode='[ABCDGISTW]'
10244 ;;
10245hpux*) # Its linker distinguishes data from code symbols
10246 if test "$host_cpu" = ia64; then
10247 symcode='[ABCDEGRST]'
10248 fi
10249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10250 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'"
10251 ;;
10252linux*)
10253 if test "$host_cpu" = ia64; then
10254 symcode='[ABCDGIRSTW]'
10255 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10256 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'"
10257 fi
10258 ;;
10259irix* | nonstopux*)
10260 symcode='[BCDEGRST]'
10261 ;;
10262osf*)
10263 symcode='[BCDEGQRST]'
10264 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010265solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266 symcode='[BDRT]'
10267 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010268sco3.2v5*)
10269 symcode='[DT]'
10270 ;;
10271sysv4.2uw2*)
10272 symcode='[DT]'
10273 ;;
10274sysv5* | sco5v6* | unixware* | OpenUNIX*)
10275 symcode='[ABDT]'
10276 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277sysv4)
10278 symcode='[DFNSTU]'
10279 ;;
10280esac
10281
10282# Handle CRLF in mingw tool chain
10283opt_cr=
10284case $build_os in
10285mingw*)
10286 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10287 ;;
10288esac
10289
10290# If we're using GNU nm, then use its standard symbol codes.
10291case `$NM -V 2>&1` in
10292*GNU* | *'with BFD'*)
10293 symcode='[ABCDGIRSTW]' ;;
10294esac
10295
10296# Try without a prefix undercore, then with it.
10297for ac_symprfx in "" "_"; do
10298
Reid Spencera773bd52006-08-04 18:18:08 +000010299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10300 symxfrm="\\1 $ac_symprfx\\2 \\2"
10301
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010303 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 +000010304
10305 # Check to see that the pipe works correctly.
10306 pipe_works=no
10307
10308 rm -f conftest*
10309 cat > conftest.$ac_ext <<EOF
10310#ifdef __cplusplus
10311extern "C" {
10312#endif
10313char nm_test_var;
10314void nm_test_func(){}
10315#ifdef __cplusplus
10316}
10317#endif
10318int main(){nm_test_var='a';nm_test_func();return(0);}
10319EOF
10320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322 (eval $ac_compile) 2>&5
10323 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010326 # Now try to grab the symbols.
10327 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010328 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 +000010329 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10330 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333 # Try sorting and uniquifying the output.
10334 if sort "$nlist" | uniq > "$nlist"T; then
10335 mv -f "$nlist"T "$nlist"
10336 else
10337 rm -f "$nlist"T
10338 fi
10339
10340 # Make sure that we snagged all the symbols we need.
10341 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10342 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10343 cat <<EOF > conftest.$ac_ext
10344#ifdef __cplusplus
10345extern "C" {
10346#endif
10347
10348EOF
10349 # Now generate the symbol file.
10350 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10351
10352 cat <<EOF >> conftest.$ac_ext
10353#if defined (__STDC__) && __STDC__
10354# define lt_ptr_t void *
10355#else
10356# define lt_ptr_t char *
10357# define const
10358#endif
10359
10360/* The mapping between symbol names and symbols. */
10361const struct {
10362 const char *name;
10363 lt_ptr_t address;
10364}
10365lt_preloaded_symbols[] =
10366{
10367EOF
10368 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10369 cat <<\EOF >> conftest.$ac_ext
10370 {0, (lt_ptr_t) 0}
10371};
10372
10373#ifdef __cplusplus
10374}
10375#endif
10376EOF
10377 # Now try linking the two files.
10378 mv conftest.$ac_objext conftstm.$ac_objext
10379 lt_save_LIBS="$LIBS"
10380 lt_save_CFLAGS="$CFLAGS"
10381 LIBS="conftstm.$ac_objext"
10382 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384 (eval $ac_link) 2>&5
10385 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388 pipe_works=yes
10389 fi
10390 LIBS="$lt_save_LIBS"
10391 CFLAGS="$lt_save_CFLAGS"
10392 else
10393 echo "cannot find nm_test_func in $nlist" >&5
10394 fi
10395 else
10396 echo "cannot find nm_test_var in $nlist" >&5
10397 fi
10398 else
10399 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10400 fi
10401 else
10402 echo "$progname: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 fi
10405 rm -f conftest* conftst*
10406
10407 # Do not use the global_symbol_pipe unless it works.
10408 if test "$pipe_works" = yes; then
10409 break
10410 else
10411 lt_cv_sys_global_symbol_pipe=
10412 fi
10413done
10414
10415fi
10416
10417if test -z "$lt_cv_sys_global_symbol_pipe"; then
10418 lt_cv_sys_global_symbol_to_cdecl=
10419fi
10420if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421 { echo "$as_me:$LINENO: result: failed" >&5
10422echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010424 { echo "$as_me:$LINENO: result: ok" >&5
10425echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426fi
10427
10428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010429{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10430echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10431if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433else
10434 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10435 libltdl_cv_preloaded_symbols=yes
10436 else
10437 libltdl_cv_preloaded_symbols=no
10438 fi
10439
10440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010441{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10442echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010445cat >>confdefs.h <<\_ACEOF
10446#define HAVE_PRELOADED_SYMBOLS 1
10447_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448
10449fi
10450
10451LIBADD_DL=
10452
10453ac_ext=c
10454ac_cpp='$CPP $CPPFLAGS'
10455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10457ac_compiler_gnu=$ac_cv_c_compiler_gnu
10458
10459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010460{ echo "$as_me:$LINENO: checking for shl_load" >&5
10461echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10462if test "${ac_cv_func_shl_load+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10464else
10465 cat >conftest.$ac_ext <<_ACEOF
10466/* confdefs.h. */
10467_ACEOF
10468cat confdefs.h >>conftest.$ac_ext
10469cat >>conftest.$ac_ext <<_ACEOF
10470/* end confdefs.h. */
10471/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10473#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010475/* System header to define __stub macros and hopefully few prototypes,
10476 which can conflict with char shl_load (); below.
10477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10478 <limits.h> exists even on freestanding compilers. */
10479
10480#ifdef __STDC__
10481# include <limits.h>
10482#else
10483# include <assert.h>
10484#endif
10485
10486#undef shl_load
10487
10488/* Override any GCC internal prototype to avoid an error.
10489 Use char because int might match the return type of a GCC
10490 builtin and then its argument prototype would still apply. */
10491#ifdef __cplusplus
10492extern "C"
10493#endif
10494char shl_load ();
10495/* The GNU C library defines this for functions which it implements
10496 to always fail with ENOSYS. Some functions are actually named
10497 something starting with __ and the normal name is an alias. */
10498#if defined __stub_shl_load || defined __stub___shl_load
10499choke me
10500#endif
10501
10502int
10503main ()
10504{
10505return shl_load ();
10506 ;
10507 return 0;
10508}
10509_ACEOF
10510rm -f conftest.$ac_objext conftest$ac_exeext
10511if { (ac_try="$ac_link"
10512case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
10516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>conftest.er1
10518 ac_status=$?
10519 grep -v '^ *+' conftest.er1 >conftest.err
10520 rm -f conftest.er1
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528esac
10529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_try") 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538esac
10539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_try") 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_func_shl_load=yes
10545else
10546 echo "$as_me: failed program was:" >&5
10547sed 's/^/| /' conftest.$ac_ext >&5
10548
10549 ac_cv_func_shl_load=no
10550fi
10551
10552rm -f core conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10554fi
10555{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10556echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10557if test $ac_cv_func_shl_load = yes; then
10558
10559cat >>confdefs.h <<\_ACEOF
10560#define HAVE_SHL_LOAD 1
10561_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562
10563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010564 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10565echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10566if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568else
10569 ac_check_lib_save_LIBS=$LIBS
10570LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010571cat >conftest.$ac_ext <<_ACEOF
10572/* confdefs.h. */
10573_ACEOF
10574cat confdefs.h >>conftest.$ac_ext
10575cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576/* end confdefs.h. */
10577
Reid Spencera773bd52006-08-04 18:18:08 +000010578/* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581#ifdef __cplusplus
10582extern "C"
10583#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010584char shl_load ();
10585int
10586main ()
10587{
Reid Spencera773bd52006-08-04 18:18:08 +000010588return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589 ;
10590 return 0;
10591}
10592_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010593rm -f conftest.$ac_objext conftest$ac_exeext
10594if { (ac_try="$ac_link"
10595case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598esac
10599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest$ac_exeext'
10618 { (case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10621esac
10622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_try") 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010627 ac_cv_lib_dld_shl_load=yes
10628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010629 echo "$as_me: failed program was:" >&5
10630sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010634
Bill Wendlingebcceee2009-04-18 11:20:33 +000010635rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010636 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637LIBS=$ac_check_lib_save_LIBS
10638fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010639{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10640echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10641if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010643cat >>confdefs.h <<\_ACEOF
10644#define HAVE_SHL_LOAD 1
10645_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646
10647 LIBADD_DL="$LIBADD_DL -ldld"
10648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010649 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10650echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10651if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010653else
10654 ac_check_lib_save_LIBS=$LIBS
10655LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010656cat >conftest.$ac_ext <<_ACEOF
10657/* confdefs.h. */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010661/* end confdefs.h. */
10662
Reid Spencera773bd52006-08-04 18:18:08 +000010663/* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666#ifdef __cplusplus
10667extern "C"
10668#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010669char dlopen ();
10670int
10671main ()
10672{
Reid Spencera773bd52006-08-04 18:18:08 +000010673return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674 ;
10675 return 0;
10676}
10677_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010678rm -f conftest.$ac_objext conftest$ac_exeext
10679if { (ac_try="$ac_link"
10680case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683esac
10684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_link") 2>conftest.er1
10686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10696esac
10697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706esac
10707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712 ac_cv_lib_dl_dlopen=yes
10713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010714 echo "$as_me: failed program was:" >&5
10715sed 's/^/| /' conftest.$ac_ext >&5
10716
10717 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010719
Bill Wendlingebcceee2009-04-18 11:20:33 +000010720rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010721 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010722LIBS=$ac_check_lib_save_LIBS
10723fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010724{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10725echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10726if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010728cat >>confdefs.h <<\_ACEOF
10729#define HAVE_LIBDL 1
10730_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731
10732 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010734 cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h. */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739/* end confdefs.h. */
10740#if HAVE_DLFCN_H
10741# include <dlfcn.h>
10742#endif
10743
10744int
10745main ()
10746{
10747dlopen(0, 0);
10748 ;
10749 return 0;
10750}
10751_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010752rm -f conftest.$ac_objext conftest$ac_exeext
10753if { (ac_try="$ac_link"
10754case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757esac
10758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_link") 2>conftest.er1
10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10767 { (case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10770esac
10771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_try") 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try='test -s conftest$ac_exeext'
10777 { (case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780esac
10781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_try") 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010787cat >>confdefs.h <<\_ACEOF
10788#define HAVE_LIBDL 1
10789_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790 libltdl_cv_func_dlopen="yes"
10791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010792 echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
10795 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10796echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10797if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799else
10800 ac_check_lib_save_LIBS=$LIBS
10801LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h. */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807/* end confdefs.h. */
10808
Reid Spencera773bd52006-08-04 18:18:08 +000010809/* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010812#ifdef __cplusplus
10813extern "C"
10814#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815char dlopen ();
10816int
10817main ()
10818{
Reid Spencera773bd52006-08-04 18:18:08 +000010819return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010820 ;
10821 return 0;
10822}
10823_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010824rm -f conftest.$ac_objext conftest$ac_exeext
10825if { (ac_try="$ac_link"
10826case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829esac
10830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839 { (case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842esac
10843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_try") 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; } &&
10848 { ac_try='test -s conftest$ac_exeext'
10849 { (case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852esac
10853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_try") 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858 ac_cv_lib_svld_dlopen=yes
10859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010860 echo "$as_me: failed program was:" >&5
10861sed 's/^/| /' conftest.$ac_ext >&5
10862
10863 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010864fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010865
Bill Wendlingebcceee2009-04-18 11:20:33 +000010866rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010867 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868LIBS=$ac_check_lib_save_LIBS
10869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010870{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10871echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10872if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010874cat >>confdefs.h <<\_ACEOF
10875#define HAVE_LIBDL 1
10876_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877
10878 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010880 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10881echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10882if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884else
10885 ac_check_lib_save_LIBS=$LIBS
10886LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010887cat >conftest.$ac_ext <<_ACEOF
10888/* confdefs.h. */
10889_ACEOF
10890cat confdefs.h >>conftest.$ac_ext
10891cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892/* end confdefs.h. */
10893
Reid Spencera773bd52006-08-04 18:18:08 +000010894/* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897#ifdef __cplusplus
10898extern "C"
10899#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900char dld_link ();
10901int
10902main ()
10903{
Reid Spencera773bd52006-08-04 18:18:08 +000010904return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905 ;
10906 return 0;
10907}
10908_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010909rm -f conftest.$ac_objext conftest$ac_exeext
10910if { (ac_try="$ac_link"
10911case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914esac
10915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_link") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10924 { (case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927esac
10928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_try") 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest$ac_exeext'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943 ac_cv_lib_dld_dld_link=yes
10944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010945 echo "$as_me: failed program was:" >&5
10946sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010950
Bill Wendlingebcceee2009-04-18 11:20:33 +000010951rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010952 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953LIBS=$ac_check_lib_save_LIBS
10954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010955{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10956echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10957if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010959cat >>confdefs.h <<\_ACEOF
10960#define HAVE_DLD 1
10961_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962
10963 LIBADD_DL="$LIBADD_DL -ldld"
10964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010965 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10966echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10967if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969else
10970 cat >conftest.$ac_ext <<_ACEOF
10971/* confdefs.h. */
10972_ACEOF
10973cat confdefs.h >>conftest.$ac_ext
10974cat >>conftest.$ac_ext <<_ACEOF
10975/* end confdefs.h. */
10976/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10978#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010980/* System header to define __stub macros and hopefully few prototypes,
10981 which can conflict with char _dyld_func_lookup (); below.
10982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10983 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010985#ifdef __STDC__
10986# include <limits.h>
10987#else
10988# include <assert.h>
10989#endif
10990
10991#undef _dyld_func_lookup
10992
10993/* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996#ifdef __cplusplus
10997extern "C"
10998#endif
10999char _dyld_func_lookup ();
11000/* The GNU C library defines this for functions which it implements
11001 to always fail with ENOSYS. Some functions are actually named
11002 something starting with __ and the normal name is an alias. */
11003#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11004choke me
11005#endif
11006
11007int
11008main ()
11009{
11010return _dyld_func_lookup ();
11011 ;
11012 return 0;
11013}
11014_ACEOF
11015rm -f conftest.$ac_objext conftest$ac_exeext
11016if { (ac_try="$ac_link"
11017case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020esac
11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_link") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033esac
11034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest$ac_exeext'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_func__dyld_func_lookup=yes
11050else
11051 echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055fi
Reid Spencera773bd52006-08-04 18:18:08 +000011056
Bill Wendlingebcceee2009-04-18 11:20:33 +000011057rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011058 conftest$ac_exeext conftest.$ac_ext
11059fi
11060{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11061echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11062if test $ac_cv_func__dyld_func_lookup = yes; then
11063
11064cat >>confdefs.h <<\_ACEOF
11065#define HAVE_DYLD 1
11066_ACEOF
11067
11068fi
11069
11070
11071fi
11072
11073
11074fi
11075
11076
11077fi
11078
11079rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081
11082fi
11083
11084
11085fi
11086
11087
11088fi
11089
11090
11091if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11092then
11093 lt_save_LIBS="$LIBS"
11094 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011095
11096for ac_func in dlerror
11097do
11098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103else
11104 cat >conftest.$ac_ext <<_ACEOF
11105/* confdefs.h. */
11106_ACEOF
11107cat confdefs.h >>conftest.$ac_ext
11108cat >>conftest.$ac_ext <<_ACEOF
11109/* end confdefs.h. */
11110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11112#define $ac_func innocuous_$ac_func
11113
11114/* System header to define __stub macros and hopefully few prototypes,
11115 which can conflict with char $ac_func (); below.
11116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117 <limits.h> exists even on freestanding compilers. */
11118
11119#ifdef __STDC__
11120# include <limits.h>
11121#else
11122# include <assert.h>
11123#endif
11124
11125#undef $ac_func
11126
11127/* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11130#ifdef __cplusplus
11131extern "C"
11132#endif
11133char $ac_func ();
11134/* The GNU C library defines this for functions which it implements
11135 to always fail with ENOSYS. Some functions are actually named
11136 something starting with __ and the normal name is an alias. */
11137#if defined __stub_$ac_func || defined __stub___$ac_func
11138choke me
11139#endif
11140
11141int
11142main ()
11143{
11144return $ac_func ();
11145 ;
11146 return 0;
11147}
11148_ACEOF
11149rm -f conftest.$ac_objext conftest$ac_exeext
11150if { (ac_try="$ac_link"
11151case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154esac
11155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_link") 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest$ac_exeext'
11174 { (case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177esac
11178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_try") 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 eval "$as_ac_var=yes"
11184else
11185 echo "$as_me: failed program was:" >&5
11186sed 's/^/| /' conftest.$ac_ext >&5
11187
11188 eval "$as_ac_var=no"
11189fi
11190
11191rm -f core conftest.err conftest.$ac_objext \
11192 conftest$ac_exeext conftest.$ac_ext
11193fi
11194ac_res=`eval echo '${'$as_ac_var'}'`
11195 { echo "$as_me:$LINENO: result: $ac_res" >&5
11196echo "${ECHO_T}$ac_res" >&6; }
11197if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011198 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200_ACEOF
11201
11202fi
11203done
11204
11205 LIBS="$lt_save_LIBS"
11206fi
11207ac_ext=c
11208ac_cpp='$CPP $CPPFLAGS'
11209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11211ac_compiler_gnu=$ac_cv_c_compiler_gnu
11212
11213
11214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011215{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11216echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11217if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011219else
11220 ac_cv_sys_symbol_underscore=no
11221 cat > conftest.$ac_ext <<EOF
11222void nm_test_func(){}
11223int main(){nm_test_func;return 0;}
11224EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226 (eval $ac_compile) 2>&5
11227 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230 # Now try to grab the symbols.
11231 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011232 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 +000011233 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11234 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 # See whether the symbols have a leading underscore.
11238 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11239 ac_cv_sys_symbol_underscore=yes
11240 else
11241 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11242 :
11243 else
11244 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11245 fi
11246 fi
11247 else
11248 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11249 fi
11250 else
11251 echo "configure: failed program was:" >&5
11252 cat conftest.c >&5
11253 fi
11254 rm -rf conftest*
11255
11256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011257{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11258echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011259
11260
11261if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11262 if test x"$libltdl_cv_func_dlopen" = xyes ||
11263 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011264 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11265echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11266if test "${libltdl_cv_need_uscore+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268else
11269 libltdl_cv_need_uscore=unknown
11270 save_LIBS="$LIBS"
11271 LIBS="$LIBS $LIBADD_DL"
11272 if test "$cross_compiling" = yes; then :
11273 libltdl_cv_need_uscore=cross
11274else
11275 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11276 lt_status=$lt_dlunknown
11277 cat > conftest.$ac_ext <<EOF
Daniel Dunbarf9138782010-04-30 17:12:26 +000011278#line 11278 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279#include "confdefs.h"
11280
11281#if HAVE_DLFCN_H
11282#include <dlfcn.h>
11283#endif
11284
11285#include <stdio.h>
11286
11287#ifdef RTLD_GLOBAL
11288# define LT_DLGLOBAL RTLD_GLOBAL
11289#else
11290# ifdef DL_GLOBAL
11291# define LT_DLGLOBAL DL_GLOBAL
11292# else
11293# define LT_DLGLOBAL 0
11294# endif
11295#endif
11296
11297/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11298 find out it does not work in some platform. */
11299#ifndef LT_DLLAZY_OR_NOW
11300# ifdef RTLD_LAZY
11301# define LT_DLLAZY_OR_NOW RTLD_LAZY
11302# else
11303# ifdef DL_LAZY
11304# define LT_DLLAZY_OR_NOW DL_LAZY
11305# else
11306# ifdef RTLD_NOW
11307# define LT_DLLAZY_OR_NOW RTLD_NOW
11308# else
11309# ifdef DL_NOW
11310# define LT_DLLAZY_OR_NOW DL_NOW
11311# else
11312# define LT_DLLAZY_OR_NOW 0
11313# endif
11314# endif
11315# endif
11316# endif
11317#endif
11318
11319#ifdef __cplusplus
11320extern "C" void exit (int);
11321#endif
11322
11323void fnord() { int i=42;}
11324int main ()
11325{
11326 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11327 int status = $lt_dlunknown;
11328
11329 if (self)
11330 {
11331 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11332 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11333 /* dlclose (self); */
11334 }
Reid Spencera773bd52006-08-04 18:18:08 +000011335 else
11336 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011337
11338 exit (status);
11339}
11340EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011342 (eval $ac_link) 2>&5
11343 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011346 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011347 lt_status=$?
11348 case x$lt_status in
11349 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11350 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011351 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011352 esac
11353 else :
11354 # compilation failed
11355
11356 fi
11357fi
11358rm -fr conftest*
11359
11360 LIBS="$save_LIBS"
11361
11362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011363{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11364echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011365 fi
11366fi
11367
11368if test x"$libltdl_cv_need_uscore" = xyes; then
11369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011370cat >>confdefs.h <<\_ACEOF
11371#define NEED_USCORE 1
11372_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373
11374fi
11375
11376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011377{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11378echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11379if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381else
11382 # PORTME does your system automatically load deplibs for dlopen?
11383 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11384 # For now, we just catch OSes we know something about -- in the
11385 # future, we'll try test this programmatically.
11386 libltdl_cv_sys_dlopen_deplibs=unknown
11387 case "$host_os" in
11388 aix3*|aix4.1.*|aix4.2.*)
11389 # Unknown whether this is true for these versions of AIX, but
11390 # we want this `case' here to explicitly catch those versions.
11391 libltdl_cv_sys_dlopen_deplibs=unknown
11392 ;;
11393 aix[45]*)
11394 libltdl_cv_sys_dlopen_deplibs=yes
11395 ;;
11396 darwin*)
11397 # Assuming the user has installed a libdl from somewhere, this is true
11398 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11399 libltdl_cv_sys_dlopen_deplibs=yes
11400 ;;
11401 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11402 # GNU and its variants, using gnu ld.so (Glibc)
11403 libltdl_cv_sys_dlopen_deplibs=yes
11404 ;;
11405 hpux10*|hpux11*)
11406 libltdl_cv_sys_dlopen_deplibs=yes
11407 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011408 interix*)
11409 libltdl_cv_sys_dlopen_deplibs=yes
11410 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411 irix[12345]*|irix6.[01]*)
11412 # Catch all versions of IRIX before 6.2, and indicate that we don't
11413 # know how it worked for any of those versions.
11414 libltdl_cv_sys_dlopen_deplibs=unknown
11415 ;;
11416 irix*)
11417 # The case above catches anything before 6.2, and it's known that
11418 # at 6.2 and later dlopen does load deplibs.
11419 libltdl_cv_sys_dlopen_deplibs=yes
11420 ;;
11421 netbsd*)
11422 libltdl_cv_sys_dlopen_deplibs=yes
11423 ;;
11424 openbsd*)
11425 libltdl_cv_sys_dlopen_deplibs=yes
11426 ;;
11427 osf[1234]*)
11428 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11429 # it did *not* use an RPATH in a shared library to find objects the
11430 # library depends on, so we explictly say `no'.
11431 libltdl_cv_sys_dlopen_deplibs=no
11432 ;;
11433 osf5.0|osf5.0a|osf5.1)
11434 # dlopen *does* load deplibs and with the right loader patch applied
11435 # it even uses RPATH in a shared library to search for shared objects
11436 # that the library depends on, but there's no easy way to know if that
11437 # patch is installed. Since this is the case, all we can really
11438 # say is unknown -- it depends on the patch being installed. If
11439 # it is, this changes to `yes'. Without it, it would be `no'.
11440 libltdl_cv_sys_dlopen_deplibs=unknown
11441 ;;
11442 osf*)
11443 # the two cases above should catch all versions of osf <= 5.1. Read
11444 # the comments above for what we know about them.
11445 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11446 # is used to find them so we can finally say `yes'.
11447 libltdl_cv_sys_dlopen_deplibs=yes
11448 ;;
11449 solaris*)
11450 libltdl_cv_sys_dlopen_deplibs=yes
11451 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11453 libltdl_cv_sys_dlopen_deplibs=yes
11454 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 esac
11456
11457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011458{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11459echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011462cat >>confdefs.h <<\_ACEOF
11463#define LTDL_DLOPEN_DEPLIBS 1
11464_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011465
11466fi
11467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011468
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011470do
11471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477fi
11478ac_res=`eval echo '${'$as_ac_Header'}'`
11479 { echo "$as_me:$LINENO: result: $ac_res" >&5
11480echo "${ECHO_T}$ac_res" >&6; }
11481else
11482 # Is the header compilable?
11483{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11485cat >conftest.$ac_ext <<_ACEOF
11486/* confdefs.h. */
11487_ACEOF
11488cat confdefs.h >>conftest.$ac_ext
11489cat >>conftest.$ac_ext <<_ACEOF
11490/* end confdefs.h. */
11491$ac_includes_default
11492#include <$ac_header>
11493_ACEOF
11494rm -f conftest.$ac_objext
11495if { (ac_try="$ac_compile"
11496case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499esac
11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_compile") 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11509 { (case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512esac
11513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_try") 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; } &&
11518 { ac_try='test -s conftest.$ac_objext'
11519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 ac_header_compiler=yes
11529else
11530 echo "$as_me: failed program was:" >&5
11531sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 ac_header_compiler=no
11534fi
11535
11536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11538echo "${ECHO_T}$ac_header_compiler" >&6; }
11539
11540# Is the header present?
11541{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11543cat >conftest.$ac_ext <<_ACEOF
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
11549#include <$ac_header>
11550_ACEOF
11551if { (ac_try="$ac_cpp conftest.$ac_ext"
11552case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555esac
11556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11558 ac_status=$?
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } >/dev/null; then
11564 if test -s conftest.err; then
11565 ac_cpp_err=$ac_c_preproc_warn_flag
11566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11567 else
11568 ac_cpp_err=
11569 fi
11570else
11571 ac_cpp_err=yes
11572fi
11573if test -z "$ac_cpp_err"; then
11574 ac_header_preproc=yes
11575else
11576 echo "$as_me: failed program was:" >&5
11577sed 's/^/| /' conftest.$ac_ext >&5
11578
11579 ac_header_preproc=no
11580fi
11581
11582rm -f conftest.err conftest.$ac_ext
11583{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584echo "${ECHO_T}$ac_header_preproc" >&6; }
11585
11586# So? What about this header?
11587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11588 yes:no: )
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11593 ac_header_preproc=yes
11594 ;;
11595 no:yes:* )
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11603echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11608 ( cat <<\_ASBOX
11609## ----------------------------------- ##
11610## Report this to llvmbugs@cs.uiuc.edu ##
11611## ----------------------------------- ##
11612_ASBOX
11613 ) | sed "s/^/$as_me: WARNING: /" >&2
11614 ;;
11615esac
11616{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621 eval "$as_ac_Header=\$ac_header_preproc"
11622fi
11623ac_res=`eval echo '${'$as_ac_Header'}'`
11624 { echo "$as_me:$LINENO: result: $ac_res" >&5
11625echo "${ECHO_T}$ac_res" >&6; }
11626
11627fi
11628if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631_ACEOF
11632
11633fi
11634
11635done
11636
11637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011638{ echo "$as_me:$LINENO: checking for error_t" >&5
11639echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11640if test "${ac_cv_type_error_t+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642else
11643 cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650# include <argz.h>
11651#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011652
11653typedef error_t ac__type_new_;
11654int
11655main ()
11656{
11657if ((ac__type_new_ *) 0)
11658 return 0;
11659if (sizeof (ac__type_new_))
11660 return 0;
11661 ;
11662 return 0;
11663}
11664_ACEOF
11665rm -f conftest.$ac_objext
11666if { (ac_try="$ac_compile"
11667case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670esac
11671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_compile") 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11680 { (case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683esac
11684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_try") 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; } &&
11689 { ac_try='test -s conftest.$ac_objext'
11690 { (case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693esac
11694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_try") 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
11699 ac_cv_type_error_t=yes
11700else
11701 echo "$as_me: failed program was:" >&5
11702sed 's/^/| /' conftest.$ac_ext >&5
11703
11704 ac_cv_type_error_t=no
11705fi
11706
11707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708fi
11709{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11710echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11711if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712
11713cat >>confdefs.h <<_ACEOF
11714#define HAVE_ERROR_T 1
11715_ACEOF
11716
11717
11718else
11719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011720cat >>confdefs.h <<\_ACEOF
11721#define error_t int
11722_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011723
11724fi
11725
11726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011727
11728
11729
11730
11731
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011733do
11734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11735{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11737if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 cat >conftest.$ac_ext <<_ACEOF
11741/* confdefs.h. */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h. */
11746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11748#define $ac_func innocuous_$ac_func
11749
11750/* System header to define __stub macros and hopefully few prototypes,
11751 which can conflict with char $ac_func (); below.
11752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11753 <limits.h> exists even on freestanding compilers. */
11754
11755#ifdef __STDC__
11756# include <limits.h>
11757#else
11758# include <assert.h>
11759#endif
11760
11761#undef $ac_func
11762
11763/* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11766#ifdef __cplusplus
11767extern "C"
11768#endif
11769char $ac_func ();
11770/* The GNU C library defines this for functions which it implements
11771 to always fail with ENOSYS. Some functions are actually named
11772 something starting with __ and the normal name is an alias. */
11773#if defined __stub_$ac_func || defined __stub___$ac_func
11774choke me
11775#endif
11776
11777int
11778main ()
11779{
11780return $ac_func ();
11781 ;
11782 return 0;
11783}
11784_ACEOF
11785rm -f conftest.$ac_objext conftest$ac_exeext
11786if { (ac_try="$ac_link"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_link") 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest$ac_exeext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813esac
11814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 eval "$as_ac_var=yes"
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 eval "$as_ac_var=no"
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829fi
11830ac_res=`eval echo '${'$as_ac_var'}'`
11831 { echo "$as_me:$LINENO: result: $ac_res" >&5
11832echo "${ECHO_T}$ac_res" >&6; }
11833if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011834 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011836_ACEOF
11837
11838fi
11839done
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011860
11861
11862
11863
11864
11865
11866
11867
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011868for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11869 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011870do
11871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877fi
11878ac_res=`eval echo '${'$as_ac_Header'}'`
11879 { echo "$as_me:$LINENO: result: $ac_res" >&5
11880echo "${ECHO_T}$ac_res" >&6; }
11881else
11882 # Is the header compilable?
11883{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11885cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
11891$ac_includes_default
11892#include <$ac_header>
11893_ACEOF
11894rm -f conftest.$ac_objext
11895if { (ac_try="$ac_compile"
11896case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899esac
11900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_compile") 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11909 { (case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912esac
11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_try") 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest.$ac_objext'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922esac
11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 ac_header_compiler=yes
11929else
11930 echo "$as_me: failed program was:" >&5
11931sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 ac_header_compiler=no
11934fi
11935
11936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938echo "${ECHO_T}$ac_header_compiler" >&6; }
11939
11940# Is the header present?
11941{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11943cat >conftest.$ac_ext <<_ACEOF
11944/* confdefs.h. */
11945_ACEOF
11946cat confdefs.h >>conftest.$ac_ext
11947cat >>conftest.$ac_ext <<_ACEOF
11948/* end confdefs.h. */
11949#include <$ac_header>
11950_ACEOF
11951if { (ac_try="$ac_cpp conftest.$ac_ext"
11952case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955esac
11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } >/dev/null; then
11964 if test -s conftest.err; then
11965 ac_cpp_err=$ac_c_preproc_warn_flag
11966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11967 else
11968 ac_cpp_err=
11969 fi
11970else
11971 ac_cpp_err=yes
11972fi
11973if test -z "$ac_cpp_err"; then
11974 ac_header_preproc=yes
11975else
11976 echo "$as_me: failed program was:" >&5
11977sed 's/^/| /' conftest.$ac_ext >&5
11978
11979 ac_header_preproc=no
11980fi
11981
11982rm -f conftest.err conftest.$ac_ext
11983{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11984echo "${ECHO_T}$ac_header_preproc" >&6; }
11985
11986# So? What about this header?
11987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11988 yes:no: )
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11993 ac_header_preproc=yes
11994 ;;
11995 no:yes:* )
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11999echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12003echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12008 ( cat <<\_ASBOX
12009## ----------------------------------- ##
12010## Report this to llvmbugs@cs.uiuc.edu ##
12011## ----------------------------------- ##
12012_ASBOX
12013 ) | sed "s/^/$as_me: WARNING: /" >&2
12014 ;;
12015esac
12016{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
12021 eval "$as_ac_Header=\$ac_header_preproc"
12022fi
12023ac_res=`eval echo '${'$as_ac_Header'}'`
12024 { echo "$as_me:$LINENO: result: $ac_res" >&5
12025echo "${ECHO_T}$ac_res" >&6; }
12026
12027fi
12028if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012031_ACEOF
12032
12033fi
12034
12035done
12036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012037
12038
12039
12040
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012041for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012042do
12043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049fi
12050ac_res=`eval echo '${'$as_ac_Header'}'`
12051 { echo "$as_me:$LINENO: result: $ac_res" >&5
12052echo "${ECHO_T}$ac_res" >&6; }
12053else
12054 # Is the header compilable?
12055{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12057cat >conftest.$ac_ext <<_ACEOF
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
12063$ac_includes_default
12064#include <$ac_header>
12065_ACEOF
12066rm -f conftest.$ac_objext
12067if { (ac_try="$ac_compile"
12068case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071esac
12072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_compile") 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12084esac
12085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094esac
12095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_try") 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_header_compiler=yes
12101else
12102 echo "$as_me: failed program was:" >&5
12103sed 's/^/| /' conftest.$ac_ext >&5
12104
12105 ac_header_compiler=no
12106fi
12107
12108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12110echo "${ECHO_T}$ac_header_compiler" >&6; }
12111
12112# Is the header present?
12113{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12115cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
12121#include <$ac_header>
12122_ACEOF
12123if { (ac_try="$ac_cpp conftest.$ac_ext"
12124case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127esac
12128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } >/dev/null; then
12136 if test -s conftest.err; then
12137 ac_cpp_err=$ac_c_preproc_warn_flag
12138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12139 else
12140 ac_cpp_err=
12141 fi
12142else
12143 ac_cpp_err=yes
12144fi
12145if test -z "$ac_cpp_err"; then
12146 ac_header_preproc=yes
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 ac_header_preproc=no
12152fi
12153
12154rm -f conftest.err conftest.$ac_ext
12155{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12156echo "${ECHO_T}$ac_header_preproc" >&6; }
12157
12158# So? What about this header?
12159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12160 yes:no: )
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12165 ac_header_preproc=yes
12166 ;;
12167 no:yes:* )
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12180 ( cat <<\_ASBOX
12181## ----------------------------------- ##
12182## Report this to llvmbugs@cs.uiuc.edu ##
12183## ----------------------------------- ##
12184_ASBOX
12185 ) | sed "s/^/$as_me: WARNING: /" >&2
12186 ;;
12187esac
12188{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193 eval "$as_ac_Header=\$ac_header_preproc"
12194fi
12195ac_res=`eval echo '${'$as_ac_Header'}'`
12196 { echo "$as_me:$LINENO: result: $ac_res" >&5
12197echo "${ECHO_T}$ac_res" >&6; }
12198
12199fi
12200if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012201 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012203_ACEOF
12204
12205fi
12206
12207done
12208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012209
12210
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012212do
12213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219fi
12220ac_res=`eval echo '${'$as_ac_Header'}'`
12221 { echo "$as_me:$LINENO: result: $ac_res" >&5
12222echo "${ECHO_T}$ac_res" >&6; }
12223else
12224 # Is the header compilable?
12225{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12227cat >conftest.$ac_ext <<_ACEOF
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
12232/* end confdefs.h. */
12233$ac_includes_default
12234#include <$ac_header>
12235_ACEOF
12236rm -f conftest.$ac_objext
12237if { (ac_try="$ac_compile"
12238case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
12242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_compile") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12254esac
12255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest.$ac_objext'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264esac
12265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_header_compiler=yes
12271else
12272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 ac_header_compiler=no
12276fi
12277
12278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12280echo "${ECHO_T}$ac_header_compiler" >&6; }
12281
12282# Is the header present?
12283{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12285cat >conftest.$ac_ext <<_ACEOF
12286/* confdefs.h. */
12287_ACEOF
12288cat confdefs.h >>conftest.$ac_ext
12289cat >>conftest.$ac_ext <<_ACEOF
12290/* end confdefs.h. */
12291#include <$ac_header>
12292_ACEOF
12293if { (ac_try="$ac_cpp conftest.$ac_ext"
12294case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297esac
12298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } >/dev/null; then
12306 if test -s conftest.err; then
12307 ac_cpp_err=$ac_c_preproc_warn_flag
12308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12309 else
12310 ac_cpp_err=
12311 fi
12312else
12313 ac_cpp_err=yes
12314fi
12315if test -z "$ac_cpp_err"; then
12316 ac_header_preproc=yes
12317else
12318 echo "$as_me: failed program was:" >&5
12319sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_header_preproc=no
12322fi
12323
12324rm -f conftest.err conftest.$ac_ext
12325{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12326echo "${ECHO_T}$ac_header_preproc" >&6; }
12327
12328# So? What about this header?
12329case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12330 yes:no: )
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12334echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12335 ac_header_preproc=yes
12336 ;;
12337 no:yes:* )
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12341echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12343echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12345echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12347echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12349echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12350 ( cat <<\_ASBOX
12351## ----------------------------------- ##
12352## Report this to llvmbugs@cs.uiuc.edu ##
12353## ----------------------------------- ##
12354_ASBOX
12355 ) | sed "s/^/$as_me: WARNING: /" >&2
12356 ;;
12357esac
12358{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12362else
12363 eval "$as_ac_Header=\$ac_header_preproc"
12364fi
12365ac_res=`eval echo '${'$as_ac_Header'}'`
12366 { echo "$as_me:$LINENO: result: $ac_res" >&5
12367echo "${ECHO_T}$ac_res" >&6; }
12368
12369fi
12370if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012371 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012372#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012373_ACEOF
12374 break
12375fi
12376
12377done
12378
12379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012380
12381
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012383do
12384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12385{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12389else
12390 cat >conftest.$ac_ext <<_ACEOF
12391/* confdefs.h. */
12392_ACEOF
12393cat confdefs.h >>conftest.$ac_ext
12394cat >>conftest.$ac_ext <<_ACEOF
12395/* end confdefs.h. */
12396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12398#define $ac_func innocuous_$ac_func
12399
12400/* System header to define __stub macros and hopefully few prototypes,
12401 which can conflict with char $ac_func (); below.
12402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12403 <limits.h> exists even on freestanding compilers. */
12404
12405#ifdef __STDC__
12406# include <limits.h>
12407#else
12408# include <assert.h>
12409#endif
12410
12411#undef $ac_func
12412
12413/* Override any GCC internal prototype to avoid an error.
12414 Use char because int might match the return type of a GCC
12415 builtin and then its argument prototype would still apply. */
12416#ifdef __cplusplus
12417extern "C"
12418#endif
12419char $ac_func ();
12420/* The GNU C library defines this for functions which it implements
12421 to always fail with ENOSYS. Some functions are actually named
12422 something starting with __ and the normal name is an alias. */
12423#if defined __stub_$ac_func || defined __stub___$ac_func
12424choke me
12425#endif
12426
12427int
12428main ()
12429{
12430return $ac_func ();
12431 ;
12432 return 0;
12433}
12434_ACEOF
12435rm -f conftest.$ac_objext conftest$ac_exeext
12436if { (ac_try="$ac_link"
12437case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440esac
12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_link") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453esac
12454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463esac
12464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 eval "$as_ac_var=yes"
12470else
12471 echo "$as_me: failed program was:" >&5
12472sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 eval "$as_ac_var=no"
12475fi
12476
12477rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479fi
12480ac_res=`eval echo '${'$as_ac_var'}'`
12481 { echo "$as_me:$LINENO: result: $ac_res" >&5
12482echo "${ECHO_T}$ac_res" >&6; }
12483if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012484 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012486_ACEOF
12487 break
12488fi
12489done
12490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012491
12492
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012493for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012494do
12495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12496{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500else
12501 cat >conftest.$ac_ext <<_ACEOF
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12509#define $ac_func innocuous_$ac_func
12510
12511/* System header to define __stub macros and hopefully few prototypes,
12512 which can conflict with char $ac_func (); below.
12513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12514 <limits.h> exists even on freestanding compilers. */
12515
12516#ifdef __STDC__
12517# include <limits.h>
12518#else
12519# include <assert.h>
12520#endif
12521
12522#undef $ac_func
12523
12524/* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply. */
12527#ifdef __cplusplus
12528extern "C"
12529#endif
12530char $ac_func ();
12531/* The GNU C library defines this for functions which it implements
12532 to always fail with ENOSYS. Some functions are actually named
12533 something starting with __ and the normal name is an alias. */
12534#if defined __stub_$ac_func || defined __stub___$ac_func
12535choke me
12536#endif
12537
12538int
12539main ()
12540{
12541return $ac_func ();
12542 ;
12543 return 0;
12544}
12545_ACEOF
12546rm -f conftest.$ac_objext conftest$ac_exeext
12547if { (ac_try="$ac_link"
12548case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551esac
12552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_link") 2>conftest.er1
12554 ac_status=$?
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12561 { (case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12564esac
12565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_try") 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try='test -s conftest$ac_exeext'
12571 { (case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_try") 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 eval "$as_ac_var=yes"
12581else
12582 echo "$as_me: failed program was:" >&5
12583sed 's/^/| /' conftest.$ac_ext >&5
12584
12585 eval "$as_ac_var=no"
12586fi
12587
12588rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12590fi
12591ac_res=`eval echo '${'$as_ac_var'}'`
12592 { echo "$as_me:$LINENO: result: $ac_res" >&5
12593echo "${ECHO_T}$ac_res" >&6; }
12594if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012595 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597_ACEOF
12598 break
12599fi
12600done
12601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012602
12603
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012604for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012605do
12606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12611else
12612 cat >conftest.$ac_ext <<_ACEOF
12613/* confdefs.h. */
12614_ACEOF
12615cat confdefs.h >>conftest.$ac_ext
12616cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */
12618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12620#define $ac_func innocuous_$ac_func
12621
12622/* System header to define __stub macros and hopefully few prototypes,
12623 which can conflict with char $ac_func (); below.
12624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12625 <limits.h> exists even on freestanding compilers. */
12626
12627#ifdef __STDC__
12628# include <limits.h>
12629#else
12630# include <assert.h>
12631#endif
12632
12633#undef $ac_func
12634
12635/* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12638#ifdef __cplusplus
12639extern "C"
12640#endif
12641char $ac_func ();
12642/* The GNU C library defines this for functions which it implements
12643 to always fail with ENOSYS. Some functions are actually named
12644 something starting with __ and the normal name is an alias. */
12645#if defined __stub_$ac_func || defined __stub___$ac_func
12646choke me
12647#endif
12648
12649int
12650main ()
12651{
12652return $ac_func ();
12653 ;
12654 return 0;
12655}
12656_ACEOF
12657rm -f conftest.$ac_objext conftest$ac_exeext
12658if { (ac_try="$ac_link"
12659case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662esac
12663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_link") 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12672 { (case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675esac
12676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_try") 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest$ac_exeext'
12682 { (case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685esac
12686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_try") 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 eval "$as_ac_var=yes"
12692else
12693 echo "$as_me: failed program was:" >&5
12694sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 eval "$as_ac_var=no"
12697fi
12698
12699rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701fi
12702ac_res=`eval echo '${'$as_ac_var'}'`
12703 { echo "$as_me:$LINENO: result: $ac_res" >&5
12704echo "${ECHO_T}$ac_res" >&6; }
12705if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012706 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708_ACEOF
12709 break
12710fi
12711done
12712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012713
12714
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012715for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012716do
12717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722else
12723 cat >conftest.$ac_ext <<_ACEOF
12724/* confdefs.h. */
12725_ACEOF
12726cat confdefs.h >>conftest.$ac_ext
12727cat >>conftest.$ac_ext <<_ACEOF
12728/* end confdefs.h. */
12729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12731#define $ac_func innocuous_$ac_func
12732
12733/* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below.
12735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 <limits.h> exists even on freestanding compilers. */
12737
12738#ifdef __STDC__
12739# include <limits.h>
12740#else
12741# include <assert.h>
12742#endif
12743
12744#undef $ac_func
12745
12746/* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749#ifdef __cplusplus
12750extern "C"
12751#endif
12752char $ac_func ();
12753/* The GNU C library defines this for functions which it implements
12754 to always fail with ENOSYS. Some functions are actually named
12755 something starting with __ and the normal name is an alias. */
12756#if defined __stub_$ac_func || defined __stub___$ac_func
12757choke me
12758#endif
12759
12760int
12761main ()
12762{
12763return $ac_func ();
12764 ;
12765 return 0;
12766}
12767_ACEOF
12768rm -f conftest.$ac_objext conftest$ac_exeext
12769if { (ac_try="$ac_link"
12770case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773esac
12774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_link") 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786esac
12787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 eval "$as_ac_var=yes"
12803else
12804 echo "$as_me: failed program was:" >&5
12805sed 's/^/| /' conftest.$ac_ext >&5
12806
12807 eval "$as_ac_var=no"
12808fi
12809
12810rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12812fi
12813ac_res=`eval echo '${'$as_ac_var'}'`
12814 { echo "$as_me:$LINENO: result: $ac_res" >&5
12815echo "${ECHO_T}$ac_res" >&6; }
12816if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012817 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012819_ACEOF
12820
12821fi
12822done
12823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824
12825
12826
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828do
12829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12830{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12832if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834else
12835 cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12843#define $ac_func innocuous_$ac_func
12844
12845/* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char $ac_func (); below.
12847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848 <limits.h> exists even on freestanding compilers. */
12849
12850#ifdef __STDC__
12851# include <limits.h>
12852#else
12853# include <assert.h>
12854#endif
12855
12856#undef $ac_func
12857
12858/* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12861#ifdef __cplusplus
12862extern "C"
12863#endif
12864char $ac_func ();
12865/* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868#if defined __stub_$ac_func || defined __stub___$ac_func
12869choke me
12870#endif
12871
12872int
12873main ()
12874{
12875return $ac_func ();
12876 ;
12877 return 0;
12878}
12879_ACEOF
12880rm -f conftest.$ac_objext conftest$ac_exeext
12881if { (ac_try="$ac_link"
12882case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12908esac
12909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_var=yes"
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 eval "$as_ac_var=no"
12920fi
12921
12922rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12924fi
12925ac_res=`eval echo '${'$as_ac_var'}'`
12926 { echo "$as_me:$LINENO: result: $ac_res" >&5
12927echo "${ECHO_T}$ac_res" >&6; }
12928if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012929 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012931_ACEOF
12932
12933fi
12934done
12935
12936
Douglas Gregor01746742009-05-11 18:05:52 +000012937
Reid Spencer7931a782004-12-27 06:15:02 +000012938if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012939 LLVMGCC="llvm-gcc${EXEEXT}"
12940 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012941 LLVMGCCCOMMAND="$LLVMGCC"
12942 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012943 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12944
12945 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12946
Reid Spencerc84492c2005-06-02 22:34:49 +000012947 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12948set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12951if test "${ac_cv_path_LLVMGCC+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012953else
12954 case $LLVMGCC in
12955 [\\/]* | ?:[\\/]*)
12956 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12957 ;;
12958 *)
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960for as_dir in $PATH
12961do
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 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 +000012966 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012968 break 2
12969 fi
12970done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012971done
Reid Spencera773bd52006-08-04 18:18:08 +000012972IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012973
Reid Spencer59473af2004-12-25 07:31:29 +000012974 ;;
12975esac
12976fi
12977LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012978if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012979 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12980echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012982 { echo "$as_me:$LINENO: result: no" >&5
12983echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012984fi
12985
Reid Spencera773bd52006-08-04 18:18:08 +000012986
Reid Spencerc84492c2005-06-02 22:34:49 +000012987 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12988set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12991if test "${ac_cv_path_LLVMGXX+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012993else
12994 case $LLVMGXX in
12995 [\\/]* | ?:[\\/]*)
12996 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12997 ;;
12998 *)
12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000for as_dir in $PATH
13001do
13002 IFS=$as_save_IFS
13003 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013004 for ac_exec_ext in '' $ac_executable_extensions; do
13005 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 +000013006 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013008 break 2
13009 fi
13010done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013011done
Reid Spencera773bd52006-08-04 18:18:08 +000013012IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013013
Reid Spencer59473af2004-12-25 07:31:29 +000013014 ;;
13015esac
13016fi
13017LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013018if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013019 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13020echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013022 { echo "$as_me:$LINENO: result: no" >&5
13023echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013024fi
13025
Reid Spencera773bd52006-08-04 18:18:08 +000013026
Reid Spencer59473af2004-12-25 07:31:29 +000013027else
Devang Patel5d28b882007-12-04 22:54:47 +000013028 if test -z "$LLVMGCC"; then
13029 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013030 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013031 fi
13032 if test -z "$LLVMGXX"; then
13033 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013034 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013035 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013036
Reid Spencer59473af2004-12-25 07:31:29 +000013037 LLVMGCC=$LLVMGCC
13038
13039 LLVMGXX=$LLVMGXX
13040
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013041 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13042
13043 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13044
Reid Spencer59473af2004-12-25 07:31:29 +000013045fi
13046
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013047
Daniel Dunbar98515672010-02-23 10:00:49 +000013048# Check whether --with-llvmcc was given.
13049if test "${with_llvmcc+set}" = set; then
13050 withval=$with_llvmcc;
13051else
13052 with_llvmcc=check
13053fi
13054
13055{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13056echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13057if test "$with_llvmcc" != "check"; then
13058 if (test "$with_llvmcc" != "llvm-gcc" &&
13059 test "$with_llvmcc" != "clang" &&
13060 test "$with_llvmcc" != "none"); then
13061 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13062echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13063 { (exit 1); exit 1; }; }
13064 fi
13065 WITH_LLVMCC="$with_llvmcc"
13066elif test -n "$LLVMGCC"; then
13067 WITH_LLVMCC=llvm-gcc
13068elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13069 WITH_LLVMCC=clang
13070else
13071 WITH_LLVMCC=none
13072fi
13073{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13074echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13075LLVMCC_OPTION=$WITH_LLVMCC
13076
13077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013078{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13079echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013080
Reid Spencer86901802004-12-08 23:07:27 +000013081ICC=no
13082IXX=no
13083case $CC in
13084 icc*|icpc*)
13085 ICC=yes
13086 IXX=yes
13087 ;;
13088 *)
13089 ;;
13090esac
13091
Duraid Madina937c60a2006-02-15 07:57:42 +000013092if test "$GCC" != "yes" && test "$ICC" != "yes"
13093then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013094 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13095echo "$as_me: error: gcc|icc required but not found" >&2;}
13096 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013097fi
13098
13099if test "$GXX" != "yes" && test "$IXX" != "yes"
13100then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013101 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13102echo "$as_me: error: g++|icc required but not found" >&2;}
13103 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013104fi
13105
Reid Spencer86901802004-12-08 23:07:27 +000013106if test "$GCC" = "yes"
13107then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013108 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013109#if !defined(__GNUC__) || __GNUC__ < 3
13110#error Unsupported GCC version
13111#endif
13112
13113_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013114rm -f conftest.$ac_objext
13115if { (ac_try="$ac_compile"
13116case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119esac
13120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_compile") 2>conftest.er1
13122 ac_status=$?
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest.$ac_objext'
13139 { (case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13142esac
13143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_try") 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013150 echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
13152
13153 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13154echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13155 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013156fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013157
Chris Lattner399c7c72008-02-05 19:43:53 +000013158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013159fi
13160
13161if test -z "$llvm_cv_gnu_make_command"
13162then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13164echo "$as_me: error: GNU Make required but not found" >&2;}
13165 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013166fi
13167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013168{ echo "$as_me:$LINENO: result: ok" >&5
13169echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013171{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13172echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013173NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13174
13175NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013177{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13178echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013179
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013181
13182{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13183echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13184if test "${ac_cv_lib_m_sin+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013186else
13187 ac_check_lib_save_LIBS=$LIBS
13188LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013189cat >conftest.$ac_ext <<_ACEOF
13190/* confdefs.h. */
13191_ACEOF
13192cat confdefs.h >>conftest.$ac_ext
13193cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013194/* end confdefs.h. */
13195
Reid Spencera773bd52006-08-04 18:18:08 +000013196/* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013199#ifdef __cplusplus
13200extern "C"
13201#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013202char sin ();
13203int
13204main ()
13205{
Reid Spencera773bd52006-08-04 18:18:08 +000013206return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013207 ;
13208 return 0;
13209}
13210_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211rm -f conftest.$ac_objext conftest$ac_exeext
13212if { (ac_try="$ac_link"
13213case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216esac
13217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_link") 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13226 { (case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229esac
13230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_try") 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; } &&
13235 { ac_try='test -s conftest$ac_exeext'
13236 { (case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239esac
13240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_try") 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013245 ac_cv_lib_m_sin=yes
13246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013247 echo "$as_me: failed program was:" >&5
13248sed 's/^/| /' conftest.$ac_ext >&5
13249
13250 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013252
Bill Wendlingebcceee2009-04-18 11:20:33 +000013253rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013255LIBS=$ac_check_lib_save_LIBS
13256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013257{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13258echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13259if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013260 cat >>confdefs.h <<_ACEOF
13261#define HAVE_LIBM 1
13262_ACEOF
13263
13264 LIBS="-lm $LIBS"
13265
13266fi
13267
Jeff Cohen28783c32007-01-12 18:22:38 +000013268if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013269
13270{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13271echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13272if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013274else
13275 ac_check_lib_save_LIBS=$LIBS
13276LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013282/* end confdefs.h. */
13283
Reid Spencer48fdf912006-06-01 19:03:21 +000013284
Reid Spencer484fc8e2006-06-01 16:55:59 +000013285int
13286main ()
13287{
Reid Spencera773bd52006-08-04 18:18:08 +000013288return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013289 ;
13290 return 0;
13291}
13292_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293rm -f conftest.$ac_objext conftest$ac_exeext
13294if { (ac_try="$ac_link"
13295case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13298esac
13299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308 { (case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311esac
13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_try") 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest$ac_exeext'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13321esac
13322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013327 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013329 echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013334
Bill Wendlingebcceee2009-04-18 11:20:33 +000013335rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013336 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013337LIBS=$ac_check_lib_save_LIBS
13338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013339{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13340echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13341if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013342 cat >>confdefs.h <<_ACEOF
13343#define HAVE_LIBIMAGEHLP 1
13344_ACEOF
13345
13346 LIBS="-limagehlp $LIBS"
13347
13348fi
13349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013350
13351{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13352echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13353if test "${ac_cv_lib_psapi_main+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013355else
13356 ac_check_lib_save_LIBS=$LIBS
13357LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013358cat >conftest.$ac_ext <<_ACEOF
13359/* confdefs.h. */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013363/* end confdefs.h. */
13364
Reid Spencer48fdf912006-06-01 19:03:21 +000013365
Reid Spencer484fc8e2006-06-01 16:55:59 +000013366int
13367main ()
13368{
Reid Spencera773bd52006-08-04 18:18:08 +000013369return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013370 ;
13371 return 0;
13372}
13373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013374rm -f conftest.$ac_objext conftest$ac_exeext
13375if { (ac_try="$ac_link"
13376case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13379esac
13380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_link") 2>conftest.er1
13382 ac_status=$?
13383 grep -v '^ *+' conftest.er1 >conftest.err
13384 rm -f conftest.er1
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392esac
13393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest$ac_exeext'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402esac
13403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013408 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013410 echo "$as_me: failed program was:" >&5
13411sed 's/^/| /' conftest.$ac_ext >&5
13412
13413 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415
Bill Wendlingebcceee2009-04-18 11:20:33 +000013416rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013417 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013418LIBS=$ac_check_lib_save_LIBS
13419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013420{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13421echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13422if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013423 cat >>confdefs.h <<_ACEOF
13424#define HAVE_LIBPSAPI 1
13425_ACEOF
13426
13427 LIBS="-lpsapi $LIBS"
13428
13429fi
13430
13431fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13434echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13435if test "${ac_cv_search_dlopen+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013437else
13438 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013439cat >conftest.$ac_ext <<_ACEOF
13440/* confdefs.h. */
13441_ACEOF
13442cat confdefs.h >>conftest.$ac_ext
13443cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013445
Reid Spencera773bd52006-08-04 18:18:08 +000013446/* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013449#ifdef __cplusplus
13450extern "C"
13451#endif
John Criswell7a73b802003-06-30 21:59:07 +000013452char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013453int
13454main ()
13455{
Reid Spencera773bd52006-08-04 18:18:08 +000013456return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013457 ;
13458 return 0;
13459}
13460_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013461for ac_lib in '' dl; do
13462 if test -z "$ac_lib"; then
13463 ac_res="none required"
13464 else
13465 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013467 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013468 rm -f conftest.$ac_objext conftest$ac_exeext
13469if { (ac_try="$ac_link"
13470case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13473esac
13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_link") 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013502 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503else
13504 echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507
John Criswell7a73b802003-06-30 21:59:07 +000013508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013509
Bill Wendlingebcceee2009-04-18 11:20:33 +000013510rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013511 conftest$ac_exeext
13512 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013513 break
John Criswell7a73b802003-06-30 21:59:07 +000013514fi
Reid Spencera773bd52006-08-04 18:18:08 +000013515done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516if test "${ac_cv_search_dlopen+set}" = set; then
13517 :
Reid Spencera773bd52006-08-04 18:18:08 +000013518else
13519 ac_cv_search_dlopen=no
13520fi
13521rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013522LIBS=$ac_func_search_save_LIBS
13523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013524{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13525echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013526ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013527if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013530cat >>confdefs.h <<\_ACEOF
13531#define HAVE_DLOPEN 1
13532_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013533
13534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013535 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13536echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013537fi
13538
13539
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013540if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013541 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13542echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13543if test "${ac_cv_search_ffi_call+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013545else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013546 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013547cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013552/* end confdefs.h. */
13553
13554/* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557#ifdef __cplusplus
13558extern "C"
13559#endif
13560char ffi_call ();
13561int
13562main ()
13563{
13564return ffi_call ();
13565 ;
13566 return 0;
13567}
13568_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013569for ac_lib in '' ffi; do
13570 if test -z "$ac_lib"; then
13571 ac_res="none required"
13572 else
13573 ac_res=-l$ac_lib
13574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13575 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013576 rm -f conftest.$ac_objext conftest$ac_exeext
13577if { (ac_try="$ac_link"
13578case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581esac
13582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_link") 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13591 { (case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13594esac
13595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_try") 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; } &&
13600 { ac_try='test -s conftest$ac_exeext'
13601 { (case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604esac
13605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_try") 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013610 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013611else
13612 echo "$as_me: failed program was:" >&5
13613sed 's/^/| /' conftest.$ac_ext >&5
13614
13615
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013617
Bill Wendlingebcceee2009-04-18 11:20:33 +000013618rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013619 conftest$ac_exeext
13620 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013621 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013622fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013623done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013624if test "${ac_cv_search_ffi_call+set}" = set; then
13625 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013626else
13627 ac_cv_search_ffi_call=no
13628fi
13629rm conftest.$ac_ext
13630LIBS=$ac_func_search_save_LIBS
13631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013632{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13633echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013634ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013635if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013638cat >>confdefs.h <<\_ACEOF
13639#define HAVE_FFI_CALL 1
13640_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013641
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013642else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013643 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13644echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13645 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013646fi
13647
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013648fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013650{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13651echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13652if test "${ac_cv_search_mallinfo+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013654else
13655 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013656cat >conftest.$ac_ext <<_ACEOF
13657/* confdefs.h. */
13658_ACEOF
13659cat confdefs.h >>conftest.$ac_ext
13660cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013662
Reid Spencera773bd52006-08-04 18:18:08 +000013663/* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013666#ifdef __cplusplus
13667extern "C"
13668#endif
John Criswell7a73b802003-06-30 21:59:07 +000013669char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013670int
13671main ()
13672{
Reid Spencera773bd52006-08-04 18:18:08 +000013673return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013674 ;
13675 return 0;
13676}
13677_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013678for ac_lib in '' malloc; do
13679 if test -z "$ac_lib"; then
13680 ac_res="none required"
13681 else
13682 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013684 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013685 rm -f conftest.$ac_objext conftest$ac_exeext
13686if { (ac_try="$ac_link"
13687case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690esac
13691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_link") 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703esac
13704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest$ac_exeext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013719 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013720else
13721 echo "$as_me: failed program was:" >&5
13722sed 's/^/| /' conftest.$ac_ext >&5
13723
13724
John Criswell7a73b802003-06-30 21:59:07 +000013725fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013726
Bill Wendlingebcceee2009-04-18 11:20:33 +000013727rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013728 conftest$ac_exeext
13729 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013730 break
John Criswell7a73b802003-06-30 21:59:07 +000013731fi
Reid Spencera773bd52006-08-04 18:18:08 +000013732done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013733if test "${ac_cv_search_mallinfo+set}" = set; then
13734 :
Reid Spencera773bd52006-08-04 18:18:08 +000013735else
13736 ac_cv_search_mallinfo=no
13737fi
13738rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013739LIBS=$ac_func_search_save_LIBS
13740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013741{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13742echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013743ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013744if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013747cat >>confdefs.h <<\_ACEOF
13748#define HAVE_MALLINFO 1
13749_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013750
13751fi
13752
13753
Reid Spencer0a262ba2005-08-24 10:07:20 +000013754if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013755
13756{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13757echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13758if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013760else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013761 ac_check_lib_save_LIBS=$LIBS
13762LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013763cat >conftest.$ac_ext <<_ACEOF
13764/* confdefs.h. */
13765_ACEOF
13766cat confdefs.h >>conftest.$ac_ext
13767cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013768/* end confdefs.h. */
13769
Reid Spencera773bd52006-08-04 18:18:08 +000013770/* Override any GCC internal prototype to avoid an error.
13771 Use char because int might match the return type of a GCC
13772 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013773#ifdef __cplusplus
13774extern "C"
13775#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013776char pthread_mutex_init ();
13777int
13778main ()
13779{
Reid Spencera773bd52006-08-04 18:18:08 +000013780return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013781 ;
13782 return 0;
13783}
13784_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013785rm -f conftest.$ac_objext conftest$ac_exeext
13786if { (ac_try="$ac_link"
13787case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790esac
13791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13793 ac_status=$?
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800 { (case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13803esac
13804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_try") 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813esac
13814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013819 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013821 echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013826
Bill Wendlingebcceee2009-04-18 11:20:33 +000013827rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013828 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013829LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013831{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13832echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13833if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013834 cat >>confdefs.h <<_ACEOF
13835#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013836_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013837
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013838 LIBS="-lpthread $LIBS"
13839
Reid Spencer22177fe2005-07-12 15:24:20 +000013840fi
13841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013842 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13843echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13844if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013846else
13847 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013848cat >conftest.$ac_ext <<_ACEOF
13849/* confdefs.h. */
13850_ACEOF
13851cat confdefs.h >>conftest.$ac_ext
13852cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013853/* end confdefs.h. */
13854
Reid Spencera773bd52006-08-04 18:18:08 +000013855/* Override any GCC internal prototype to avoid an error.
13856 Use char because int might match the return type of a GCC
13857 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013858#ifdef __cplusplus
13859extern "C"
13860#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013861char pthread_mutex_lock ();
13862int
13863main ()
13864{
Reid Spencera773bd52006-08-04 18:18:08 +000013865return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013866 ;
13867 return 0;
13868}
13869_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013870for ac_lib in '' pthread; do
13871 if test -z "$ac_lib"; then
13872 ac_res="none required"
13873 else
13874 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013876 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013877 rm -f conftest.$ac_objext conftest$ac_exeext
13878if { (ac_try="$ac_link"
13879case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_link") 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892 { (case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895esac
13896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905esac
13906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013911 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013912else
13913 echo "$as_me: failed program was:" >&5
13914sed 's/^/| /' conftest.$ac_ext >&5
13915
13916
Brian Gaeke5f268f72003-12-05 19:29:01 +000013917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013918
Bill Wendlingebcceee2009-04-18 11:20:33 +000013919rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920 conftest$ac_exeext
13921 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013922 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013923fi
Reid Spencera773bd52006-08-04 18:18:08 +000013924done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013925if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13926 :
Reid Spencera773bd52006-08-04 18:18:08 +000013927else
13928 ac_cv_search_pthread_mutex_lock=no
13929fi
13930rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013931LIBS=$ac_func_search_save_LIBS
13932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013933{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13934echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013935ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013936if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013939cat >>confdefs.h <<\_ACEOF
13940#define HAVE_PTHREAD_MUTEX_LOCK 1
13941_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013942
13943fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013945 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13946echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13947if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013949else
13950 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013951cat >conftest.$ac_ext <<_ACEOF
13952/* confdefs.h. */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013956/* end confdefs.h. */
13957
13958/* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13961#ifdef __cplusplus
13962extern "C"
13963#endif
13964char pthread_rwlock_init ();
13965int
13966main ()
13967{
13968return pthread_rwlock_init ();
13969 ;
13970 return 0;
13971}
13972_ACEOF
13973for ac_lib in '' pthread; do
13974 if test -z "$ac_lib"; then
13975 ac_res="none required"
13976 else
13977 ac_res=-l$ac_lib
13978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13979 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013980 rm -f conftest.$ac_objext conftest$ac_exeext
13981if { (ac_try="$ac_link"
13982case "(($ac_try" in
13983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984 *) ac_try_echo=$ac_try;;
13985esac
13986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_link") 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995 { (case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998esac
13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_try") 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest$ac_exeext'
14005 { (case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14008esac
14009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_try") 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014014 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014015else
14016 echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
14018
14019
Owen Andersonde8aed22009-06-16 18:20:20 +000014020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014021
Owen Andersonde8aed22009-06-16 18:20:20 +000014022rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023 conftest$ac_exeext
14024 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014025 break
14026fi
14027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14029 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014030else
14031 ac_cv_search_pthread_rwlock_init=no
14032fi
14033rm conftest.$ac_ext
14034LIBS=$ac_func_search_save_LIBS
14035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014036{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14037echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014038ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014039if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014042cat >>confdefs.h <<\_ACEOF
14043#define HAVE_PTHREAD_RWLOCK_INIT 1
14044_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014045
14046fi
14047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14049echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14050if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014052else
14053 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054cat >conftest.$ac_ext <<_ACEOF
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014059/* end confdefs.h. */
14060
14061/* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14064#ifdef __cplusplus
14065extern "C"
14066#endif
14067char pthread_getspecific ();
14068int
14069main ()
14070{
14071return pthread_getspecific ();
14072 ;
14073 return 0;
14074}
14075_ACEOF
14076for ac_lib in '' pthread; do
14077 if test -z "$ac_lib"; then
14078 ac_res="none required"
14079 else
14080 ac_res=-l$ac_lib
14081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14082 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014083 rm -f conftest.$ac_objext conftest$ac_exeext
14084if { (ac_try="$ac_link"
14085case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088esac
14089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_link") 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111esac
14112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_try") 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014117 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118else
14119 echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122
Owen Anderson27fcfe12009-06-25 23:10:26 +000014123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124
Owen Anderson27fcfe12009-06-25 23:10:26 +000014125rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126 conftest$ac_exeext
14127 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014128 break
14129fi
14130done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014131if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14132 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014133else
14134 ac_cv_search_pthread_getspecific=no
14135fi
14136rm conftest.$ac_ext
14137LIBS=$ac_func_search_save_LIBS
14138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014139{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14140echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014141ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014145cat >>confdefs.h <<\_ACEOF
14146#define HAVE_PTHREAD_GETSPECIFIC 1
14147_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014148
14149fi
14150
Reid Spencer0a262ba2005-08-24 10:07:20 +000014151fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014152
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014153
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014154# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014155if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014156 withval=$with_udis86;
14157 USE_UDIS86=1
14158
14159 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014160 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014161 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14162 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163
14164{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14165echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14166if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014168else
14169 ac_check_lib_save_LIBS=$LIBS
14170LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014171cat >conftest.$ac_ext <<_ACEOF
14172/* confdefs.h. */
14173_ACEOF
14174cat confdefs.h >>conftest.$ac_ext
14175cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014176/* end confdefs.h. */
14177
14178/* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14181#ifdef __cplusplus
14182extern "C"
14183#endif
14184char ud_init ();
14185int
14186main ()
14187{
14188return ud_init ();
14189 ;
14190 return 0;
14191}
14192_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014193rm -f conftest.$ac_objext conftest$ac_exeext
14194if { (ac_try="$ac_link"
14195case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198esac
14199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14208 { (case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_try") 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest$ac_exeext'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221esac
14222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014227 ac_cv_lib_udis86_ud_init=yes
14228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229 echo "$as_me: failed program was:" >&5
14230sed 's/^/| /' conftest.$ac_ext >&5
14231
14232 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234
Bill Wendlingebcceee2009-04-18 11:20:33 +000014235rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014236 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014237LIBS=$ac_check_lib_save_LIBS
14238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014239{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14240echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14241if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014242 cat >>confdefs.h <<_ACEOF
14243#define HAVE_LIBUDIS86 1
14244_ACEOF
14245
14246 LIBS="-ludis86 $LIBS"
14247
14248else
14249
14250 echo "Error! You need to have libudis86 around."
14251 exit -1
14252
14253fi
14254
14255
14256else
14257 USE_UDIS86=0
14258
14259fi
14260
14261
14262cat >>confdefs.h <<_ACEOF
14263#define USE_UDIS86 $USE_UDIS86
14264_ACEOF
14265
14266
14267
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014268# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014269if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014270 withval=$with_oprofile;
14271 USE_OPROFILE=1
14272
14273 case "$withval" in
14274 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014275 no) llvm_cv_oppath=
14276 USE_OPROFILE=0
14277 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014278 *) llvm_cv_oppath="${withval}/lib/oprofile"
14279 CPPFLAGS="-I${withval}/include";;
14280 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014281 if test -n "$llvm_cv_oppath" ; then
14282 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014283 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14284echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14285if test "${ac_cv_search_bfd_init+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014287else
14288 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014289cat >conftest.$ac_ext <<_ACEOF
14290/* confdefs.h. */
14291_ACEOF
14292cat confdefs.h >>conftest.$ac_ext
14293cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014294/* end confdefs.h. */
14295
14296/* Override any GCC internal prototype to avoid an error.
14297 Use char because int might match the return type of a GCC
14298 builtin and then its argument prototype would still apply. */
14299#ifdef __cplusplus
14300extern "C"
14301#endif
14302char bfd_init ();
14303int
14304main ()
14305{
14306return bfd_init ();
14307 ;
14308 return 0;
14309}
14310_ACEOF
14311for ac_lib in '' bfd; do
14312 if test -z "$ac_lib"; then
14313 ac_res="none required"
14314 else
14315 ac_res=-l$ac_lib
14316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14317 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318 rm -f conftest.$ac_objext conftest$ac_exeext
14319if { (ac_try="$ac_link"
14320case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323esac
14324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_link") 2>conftest.er1
14326 ac_status=$?
14327 grep -v '^ *+' conftest.er1 >conftest.err
14328 rm -f conftest.er1
14329 cat conftest.err >&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } &&
14332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14333 { (case "(($ac_try" in
14334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335 *) ac_try_echo=$ac_try;;
14336esac
14337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14338 (eval "$ac_try") 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest$ac_exeext'
14343 { (case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346esac
14347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_try") 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014352 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014353else
14354 echo "$as_me: failed program was:" >&5
14355sed 's/^/| /' conftest.$ac_ext >&5
14356
14357
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014359
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014360rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014361 conftest$ac_exeext
14362 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014363 break
14364fi
14365done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014366if test "${ac_cv_search_bfd_init+set}" = set; then
14367 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014368else
14369 ac_cv_search_bfd_init=no
14370fi
14371rm conftest.$ac_ext
14372LIBS=$ac_func_search_save_LIBS
14373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014374{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14375echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014376ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014377if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14379
14380fi
14381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14383echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14384if test "${ac_cv_search_op_open_agent+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014386else
14387 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014388cat >conftest.$ac_ext <<_ACEOF
14389/* confdefs.h. */
14390_ACEOF
14391cat confdefs.h >>conftest.$ac_ext
14392cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014393/* end confdefs.h. */
14394
14395/* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14398#ifdef __cplusplus
14399extern "C"
14400#endif
14401char op_open_agent ();
14402int
14403main ()
14404{
14405return op_open_agent ();
14406 ;
14407 return 0;
14408}
14409_ACEOF
14410for ac_lib in '' opagent; do
14411 if test -z "$ac_lib"; then
14412 ac_res="none required"
14413 else
14414 ac_res=-l$ac_lib
14415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14416 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014417 rm -f conftest.$ac_objext conftest$ac_exeext
14418if { (ac_try="$ac_link"
14419case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14422esac
14423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_link") 2>conftest.er1
14425 ac_status=$?
14426 grep -v '^ *+' conftest.er1 >conftest.err
14427 rm -f conftest.er1
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14432 { (case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14435esac
14436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_try") 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest$ac_exeext'
14442 { (case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445esac
14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_try") 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014451 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014452else
14453 echo "$as_me: failed program was:" >&5
14454sed 's/^/| /' conftest.$ac_ext >&5
14455
14456
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014458
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014459rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014460 conftest$ac_exeext
14461 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014462 break
14463fi
14464done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014465if test "${ac_cv_search_op_open_agent+set}" = set; then
14466 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014467else
14468 ac_cv_search_op_open_agent=no
14469fi
14470rm conftest.$ac_ext
14471LIBS=$ac_func_search_save_LIBS
14472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014473{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14474echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014475ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14478
14479else
14480
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014481 echo "Error! You need to have libopagent around."
14482 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014483
14484fi
14485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014486 if test "${ac_cv_header_opagent_h+set}" = set; then
14487 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14488echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14489if test "${ac_cv_header_opagent_h+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491fi
14492{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14493echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14494else
14495 # Is the header compilable?
14496{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14497echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14498cat >conftest.$ac_ext <<_ACEOF
14499/* confdefs.h. */
14500_ACEOF
14501cat confdefs.h >>conftest.$ac_ext
14502cat >>conftest.$ac_ext <<_ACEOF
14503/* end confdefs.h. */
14504$ac_includes_default
14505#include <opagent.h>
14506_ACEOF
14507rm -f conftest.$ac_objext
14508if { (ac_try="$ac_compile"
14509case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14512esac
14513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_compile") 2>conftest.er1
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
14521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14522 { (case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525esac
14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_try") 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535esac
14536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_try") 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_header_compiler=yes
14542else
14543 echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014546 ac_header_compiler=no
14547fi
14548
14549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14551echo "${ECHO_T}$ac_header_compiler" >&6; }
14552
14553# Is the header present?
14554{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14555echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14556cat >conftest.$ac_ext <<_ACEOF
14557/* confdefs.h. */
14558_ACEOF
14559cat confdefs.h >>conftest.$ac_ext
14560cat >>conftest.$ac_ext <<_ACEOF
14561/* end confdefs.h. */
14562#include <opagent.h>
14563_ACEOF
14564if { (ac_try="$ac_cpp conftest.$ac_ext"
14565case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14568esac
14569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } >/dev/null; then
14577 if test -s conftest.err; then
14578 ac_cpp_err=$ac_c_preproc_warn_flag
14579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14580 else
14581 ac_cpp_err=
14582 fi
14583else
14584 ac_cpp_err=yes
14585fi
14586if test -z "$ac_cpp_err"; then
14587 ac_header_preproc=yes
14588else
14589 echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 ac_header_preproc=no
14593fi
14594
14595rm -f conftest.err conftest.$ac_ext
14596{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14597echo "${ECHO_T}$ac_header_preproc" >&6; }
14598
14599# So? What about this header?
14600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14601 yes:no: )
14602 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14603echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14605echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14606 ac_header_preproc=yes
14607 ;;
14608 no:yes:* )
14609 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14610echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14612echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14614echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14616echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14618echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14620echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14621 ( cat <<\_ASBOX
14622## ----------------------------------- ##
14623## Report this to llvmbugs@cs.uiuc.edu ##
14624## ----------------------------------- ##
14625_ASBOX
14626 ) | sed "s/^/$as_me: WARNING: /" >&2
14627 ;;
14628esac
14629{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14630echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14631if test "${ac_cv_header_opagent_h+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633else
14634 ac_cv_header_opagent_h=$ac_header_preproc
14635fi
14636{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14637echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14638
14639fi
14640if test $ac_cv_header_opagent_h = yes; then
14641 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014642else
14643
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014644 echo "Error! You need to have opagent.h around."
14645 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014646
14647fi
14648
14649
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014650 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014651
14652else
14653
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014654 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014655
14656
14657fi
14658
14659
14660cat >>confdefs.h <<_ACEOF
14661#define USE_OPROFILE $USE_OPROFILE
14662_ACEOF
14663
14664
14665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014666
14667
14668
14669
14670
Reid Spencer59473af2004-12-25 07:31:29 +000014671ac_header_dirent=no
14672for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014673 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14674{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14675echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014679 cat >conftest.$ac_ext <<_ACEOF
14680/* confdefs.h. */
14681_ACEOF
14682cat confdefs.h >>conftest.$ac_ext
14683cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014684/* end confdefs.h. */
14685#include <sys/types.h>
14686#include <$ac_hdr>
14687
14688int
14689main ()
14690{
14691if ((DIR *) 0)
14692return 0;
14693 ;
14694 return 0;
14695}
14696_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014697rm -f conftest.$ac_objext
14698if { (ac_try="$ac_compile"
14699case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702esac
14703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_compile") 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712 { (case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715esac
14716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_try") 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725esac
14726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014731 eval "$as_ac_Header=yes"
14732else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014733 echo "$as_me: failed program was:" >&5
14734sed 's/^/| /' conftest.$ac_ext >&5
14735
14736 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014737fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014738
Reid Spencera773bd52006-08-04 18:18:08 +000014739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014741ac_res=`eval echo '${'$as_ac_Header'}'`
14742 { echo "$as_me:$LINENO: result: $ac_res" >&5
14743echo "${ECHO_T}$ac_res" >&6; }
14744if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014745 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014746#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014747_ACEOF
14748
14749ac_header_dirent=$ac_hdr; break
14750fi
14751
14752done
14753# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14754if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014755 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14756echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14757if test "${ac_cv_search_opendir+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014759else
14760 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014761cat >conftest.$ac_ext <<_ACEOF
14762/* confdefs.h. */
14763_ACEOF
14764cat confdefs.h >>conftest.$ac_ext
14765cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014766/* end confdefs.h. */
14767
Reid Spencera773bd52006-08-04 18:18:08 +000014768/* Override any GCC internal prototype to avoid an error.
14769 Use char because int might match the return type of a GCC
14770 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014771#ifdef __cplusplus
14772extern "C"
14773#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014774char opendir ();
14775int
14776main ()
14777{
Reid Spencera773bd52006-08-04 18:18:08 +000014778return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014779 ;
14780 return 0;
14781}
14782_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014783for ac_lib in '' dir; do
14784 if test -z "$ac_lib"; then
14785 ac_res="none required"
14786 else
14787 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014789 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014790 rm -f conftest.$ac_objext conftest$ac_exeext
14791if { (ac_try="$ac_link"
14792case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14795esac
14796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_link") 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14805 { (case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14808esac
14809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_try") 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest$ac_exeext'
14815 { (case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818esac
14819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_try") 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014824 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014825else
14826 echo "$as_me: failed program was:" >&5
14827sed 's/^/| /' conftest.$ac_ext >&5
14828
14829
Reid Spencer59473af2004-12-25 07:31:29 +000014830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014831
Bill Wendlingebcceee2009-04-18 11:20:33 +000014832rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014833 conftest$ac_exeext
14834 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014835 break
Reid Spencer59473af2004-12-25 07:31:29 +000014836fi
Reid Spencera773bd52006-08-04 18:18:08 +000014837done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014838if test "${ac_cv_search_opendir+set}" = set; then
14839 :
Reid Spencera773bd52006-08-04 18:18:08 +000014840else
14841 ac_cv_search_opendir=no
14842fi
14843rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014844LIBS=$ac_func_search_save_LIBS
14845fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014846{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14847echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014848ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014849if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014851
14852fi
14853
14854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014855 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14856echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14857if test "${ac_cv_search_opendir+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014859else
14860 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014861cat >conftest.$ac_ext <<_ACEOF
14862/* confdefs.h. */
14863_ACEOF
14864cat confdefs.h >>conftest.$ac_ext
14865cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014866/* end confdefs.h. */
14867
Reid Spencera773bd52006-08-04 18:18:08 +000014868/* Override any GCC internal prototype to avoid an error.
14869 Use char because int might match the return type of a GCC
14870 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014871#ifdef __cplusplus
14872extern "C"
14873#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014874char opendir ();
14875int
14876main ()
14877{
Reid Spencera773bd52006-08-04 18:18:08 +000014878return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014879 ;
14880 return 0;
14881}
14882_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014883for ac_lib in '' x; do
14884 if test -z "$ac_lib"; then
14885 ac_res="none required"
14886 else
14887 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014889 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014890 rm -f conftest.$ac_objext conftest$ac_exeext
14891if { (ac_try="$ac_link"
14892case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895esac
14896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_link") 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908esac
14909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_try") 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest$ac_exeext'
14915 { (case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14918esac
14919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_try") 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014924 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014925else
14926 echo "$as_me: failed program was:" >&5
14927sed 's/^/| /' conftest.$ac_ext >&5
14928
14929
Reid Spencer59473af2004-12-25 07:31:29 +000014930fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014931
Bill Wendlingebcceee2009-04-18 11:20:33 +000014932rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933 conftest$ac_exeext
14934 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014935 break
Reid Spencer59473af2004-12-25 07:31:29 +000014936fi
Reid Spencera773bd52006-08-04 18:18:08 +000014937done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014938if test "${ac_cv_search_opendir+set}" = set; then
14939 :
Reid Spencera773bd52006-08-04 18:18:08 +000014940else
14941 ac_cv_search_opendir=no
14942fi
14943rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014944LIBS=$ac_func_search_save_LIBS
14945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014946{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14947echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014948ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014949if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014951
14952fi
14953
14954fi
14955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014956{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14957echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14958if test "${ac_cv_header_mmap_anon+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014960else
14961 ac_ext=c
14962ac_cpp='$CPP $CPPFLAGS'
14963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14965ac_compiler_gnu=$ac_cv_c_compiler_gnu
14966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014967 cat >conftest.$ac_ext <<_ACEOF
14968/* confdefs.h. */
14969_ACEOF
14970cat confdefs.h >>conftest.$ac_ext
14971cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014972/* end confdefs.h. */
14973#include <sys/mman.h>
14974#include <unistd.h>
14975#include <fcntl.h>
14976int
14977main ()
14978{
14979mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14980 ;
14981 return 0;
14982}
14983_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014984rm -f conftest.$ac_objext
14985if { (ac_try="$ac_compile"
14986case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989esac
14990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999 { (case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15002esac
15003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_try") 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012esac
15013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_try") 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015018 ac_cv_header_mmap_anon=yes
15019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015020 echo "$as_me: failed program was:" >&5
15021sed 's/^/| /' conftest.$ac_ext >&5
15022
15023 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015024fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015025
Reid Spencera773bd52006-08-04 18:18:08 +000015026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015027 ac_ext=c
15028ac_cpp='$CPP $CPPFLAGS'
15029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15031ac_compiler_gnu=$ac_cv_c_compiler_gnu
15032
15033
15034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015035{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15036echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015037if test "$ac_cv_header_mmap_anon" = yes; then
15038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015039cat >>confdefs.h <<\_ACEOF
15040#define HAVE_MMAP_ANONYMOUS 1
15041_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015042
15043fi
15044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015045{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15046echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15047if test "${ac_cv_header_stat_broken+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015049else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015050 cat >conftest.$ac_ext <<_ACEOF
15051/* confdefs.h. */
15052_ACEOF
15053cat confdefs.h >>conftest.$ac_ext
15054cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015055/* end confdefs.h. */
15056#include <sys/types.h>
15057#include <sys/stat.h>
15058
Reid Spencera773bd52006-08-04 18:18:08 +000015059#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015060# if S_ISBLK (S_IFDIR)
15061You lose.
15062# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015063#endif
15064
Reid Spencera773bd52006-08-04 18:18:08 +000015065#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015066# if S_ISBLK (S_IFCHR)
15067You lose.
15068# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015069#endif
15070
Reid Spencera773bd52006-08-04 18:18:08 +000015071#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015072# if S_ISLNK (S_IFREG)
15073You lose.
15074# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015075#endif
15076
Reid Spencera773bd52006-08-04 18:18:08 +000015077#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015078# if S_ISSOCK (S_IFREG)
15079You lose.
15080# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015081#endif
15082
15083_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15085 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015086 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015087else
15088 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015090rm -f conftest*
15091
Reid Spencer59473af2004-12-25 07:31:29 +000015092fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015093{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15094echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015095if test $ac_cv_header_stat_broken = yes; then
15096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015097cat >>confdefs.h <<\_ACEOF
15098#define STAT_MACROS_BROKEN 1
15099_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015100
15101fi
15102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015103{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15104echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15105if test "${ac_cv_header_stdc+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015107else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015108 cat >conftest.$ac_ext <<_ACEOF
15109/* confdefs.h. */
15110_ACEOF
15111cat confdefs.h >>conftest.$ac_ext
15112cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015114#include <stdlib.h>
15115#include <stdarg.h>
15116#include <string.h>
15117#include <float.h>
15118
John Criswell0c38eaf2003-09-10 15:17:25 +000015119int
15120main ()
15121{
15122
15123 ;
15124 return 0;
15125}
John Criswell7a73b802003-06-30 21:59:07 +000015126_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015127rm -f conftest.$ac_objext
15128if { (ac_try="$ac_compile"
15129case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132esac
15133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_compile") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15142 { (case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15145esac
15146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_try") 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest.$ac_objext'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155esac
15156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015161 ac_cv_header_stdc=yes
15162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015163 echo "$as_me: failed program was:" >&5
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
15166 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015168
Reid Spencera773bd52006-08-04 18:18:08 +000015169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015170
15171if test $ac_cv_header_stdc = yes; then
15172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015173 cat >conftest.$ac_ext <<_ACEOF
15174/* confdefs.h. */
15175_ACEOF
15176cat confdefs.h >>conftest.$ac_ext
15177cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015178/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015179#include <string.h>
15180
15181_ACEOF
15182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015183 $EGREP "memchr" >/dev/null 2>&1; then
15184 :
John Criswell7a73b802003-06-30 21:59:07 +000015185else
15186 ac_cv_header_stdc=no
15187fi
15188rm -f conftest*
15189
15190fi
15191
15192if test $ac_cv_header_stdc = yes; then
15193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015194 cat >conftest.$ac_ext <<_ACEOF
15195/* confdefs.h. */
15196_ACEOF
15197cat confdefs.h >>conftest.$ac_ext
15198cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015200#include <stdlib.h>
15201
15202_ACEOF
15203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015204 $EGREP "free" >/dev/null 2>&1; then
15205 :
John Criswell7a73b802003-06-30 21:59:07 +000015206else
15207 ac_cv_header_stdc=no
15208fi
15209rm -f conftest*
15210
15211fi
15212
15213if test $ac_cv_header_stdc = yes; then
15214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015215 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015216 :
15217else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015218 cat >conftest.$ac_ext <<_ACEOF
15219/* confdefs.h. */
15220_ACEOF
15221cat confdefs.h >>conftest.$ac_ext
15222cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015224#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015225#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015226#if ((' ' & 0x0FF) == 0x020)
15227# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15228# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15229#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015230# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015231 (('a' <= (c) && (c) <= 'i') \
15232 || ('j' <= (c) && (c) <= 'r') \
15233 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015234# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15235#endif
15236
15237#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15238int
15239main ()
15240{
15241 int i;
15242 for (i = 0; i < 256; i++)
15243 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015244 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015245 return 2;
15246 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015247}
15248_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015249rm -f conftest$ac_exeext
15250if { (ac_try="$ac_link"
15251case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254esac
15255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15263esac
15264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 :
John Criswell7a73b802003-06-30 21:59:07 +000015270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015271 echo "$as_me: program exited with status $ac_status" >&5
15272echo "$as_me: failed program was:" >&5
15273sed 's/^/| /' conftest.$ac_ext >&5
15274
15275( exit $ac_status )
15276ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015278rm -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 +000015279fi
15280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015281
John Criswell7a73b802003-06-30 21:59:07 +000015282fi
15283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015284{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15285echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015286if test $ac_cv_header_stdc = yes; then
15287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015288cat >>confdefs.h <<\_ACEOF
15289#define STDC_HEADERS 1
15290_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015291
15292fi
15293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015294{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15295echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15296if test "${ac_cv_header_sys_wait_h+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015298else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015299 cat >conftest.$ac_ext <<_ACEOF
15300/* confdefs.h. */
15301_ACEOF
15302cat confdefs.h >>conftest.$ac_ext
15303cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015305#include <sys/types.h>
15306#include <sys/wait.h>
15307#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015308# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015309#endif
15310#ifndef WIFEXITED
15311# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15312#endif
15313
John Criswell7a73b802003-06-30 21:59:07 +000015314int
15315main ()
15316{
15317 int s;
15318 wait (&s);
15319 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15320 ;
15321 return 0;
15322}
15323_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015324rm -f conftest.$ac_objext
15325if { (ac_try="$ac_compile"
15326case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329esac
15330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_compile") 2>conftest.er1
15332 ac_status=$?
15333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest.$ac_objext'
15349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352esac
15353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015358 ac_cv_header_sys_wait_h=yes
15359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015360 echo "$as_me: failed program was:" >&5
15361sed 's/^/| /' conftest.$ac_ext >&5
15362
15363 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015365
Reid Spencera773bd52006-08-04 18:18:08 +000015366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015368{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15369echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015370if test $ac_cv_header_sys_wait_h = yes; then
15371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015372cat >>confdefs.h <<\_ACEOF
15373#define HAVE_SYS_WAIT_H 1
15374_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015375
15376fi
15377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015378{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15379echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15380if test "${ac_cv_header_time+set}" = set; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015383 cat >conftest.$ac_ext <<_ACEOF
15384/* confdefs.h. */
15385_ACEOF
15386cat confdefs.h >>conftest.$ac_ext
15387cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015388/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015389#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015390#include <sys/time.h>
15391#include <time.h>
15392
15393int
15394main ()
15395{
15396if ((struct tm *) 0)
15397return 0;
15398 ;
15399 return 0;
15400}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015401_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015402rm -f conftest.$ac_objext
15403if { (ac_try="$ac_compile"
15404case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15407esac
15408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_compile") 2>conftest.er1
15410 ac_status=$?
15411 grep -v '^ *+' conftest.er1 >conftest.err
15412 rm -f conftest.er1
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } &&
15416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15417 { (case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420esac
15421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_try") 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest.$ac_objext'
15427 { (case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430esac
15431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_try") 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015436 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015438 echo "$as_me: failed program was:" >&5
15439sed 's/^/| /' conftest.$ac_ext >&5
15440
15441 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015443
Reid Spencera773bd52006-08-04 18:18:08 +000015444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015446{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15447echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015448if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015450cat >>confdefs.h <<\_ACEOF
15451#define TIME_WITH_SYS_TIME 1
15452_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015453
15454fi
15455
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015457
15458
15459
15460
15461
15462
Reid Spencer59473af2004-12-25 07:31:29 +000015463for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015464do
15465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15471fi
15472ac_res=`eval echo '${'$as_ac_Header'}'`
15473 { echo "$as_me:$LINENO: result: $ac_res" >&5
15474echo "${ECHO_T}$ac_res" >&6; }
15475else
15476 # Is the header compilable?
15477{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15479cat >conftest.$ac_ext <<_ACEOF
15480/* confdefs.h. */
15481_ACEOF
15482cat confdefs.h >>conftest.$ac_ext
15483cat >>conftest.$ac_ext <<_ACEOF
15484/* end confdefs.h. */
15485$ac_includes_default
15486#include <$ac_header>
15487_ACEOF
15488rm -f conftest.$ac_objext
15489if { (ac_try="$ac_compile"
15490case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493esac
15494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_compile") 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15503 { (case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15506esac
15507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508 (eval "$ac_try") 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest.$ac_objext'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516esac
15517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_header_compiler=yes
15523else
15524 echo "$as_me: failed program was:" >&5
15525sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 ac_header_compiler=no
15528fi
15529
15530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15532echo "${ECHO_T}$ac_header_compiler" >&6; }
15533
15534# Is the header present?
15535{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15536echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15537cat >conftest.$ac_ext <<_ACEOF
15538/* confdefs.h. */
15539_ACEOF
15540cat confdefs.h >>conftest.$ac_ext
15541cat >>conftest.$ac_ext <<_ACEOF
15542/* end confdefs.h. */
15543#include <$ac_header>
15544_ACEOF
15545if { (ac_try="$ac_cpp conftest.$ac_ext"
15546case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549esac
15550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev/null; then
15558 if test -s conftest.err; then
15559 ac_cpp_err=$ac_c_preproc_warn_flag
15560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15561 else
15562 ac_cpp_err=
15563 fi
15564else
15565 ac_cpp_err=yes
15566fi
15567if test -z "$ac_cpp_err"; then
15568 ac_header_preproc=yes
15569else
15570 echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 ac_header_preproc=no
15574fi
15575
15576rm -f conftest.err conftest.$ac_ext
15577{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15578echo "${ECHO_T}$ac_header_preproc" >&6; }
15579
15580# So? What about this header?
15581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15582 yes:no: )
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15587 ac_header_preproc=yes
15588 ;;
15589 no:yes:* )
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15602 ( cat <<\_ASBOX
15603## ----------------------------------- ##
15604## Report this to llvmbugs@cs.uiuc.edu ##
15605## ----------------------------------- ##
15606_ASBOX
15607 ) | sed "s/^/$as_me: WARNING: /" >&2
15608 ;;
15609esac
15610{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614else
15615 eval "$as_ac_Header=\$ac_header_preproc"
15616fi
15617ac_res=`eval echo '${'$as_ac_Header'}'`
15618 { echo "$as_me:$LINENO: result: $ac_res" >&5
15619echo "${ECHO_T}$ac_res" >&6; }
15620
15621fi
15622if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015623 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015625_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015626
15627fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015628
Reid Spencer59473af2004-12-25 07:31:29 +000015629done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015631
15632
15633
15634
15635
15636
Douglas Gregor071d73d2009-05-18 17:21:34 +000015637for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015638do
15639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645fi
15646ac_res=`eval echo '${'$as_ac_Header'}'`
15647 { echo "$as_me:$LINENO: result: $ac_res" >&5
15648echo "${ECHO_T}$ac_res" >&6; }
15649else
15650 # Is the header compilable?
15651{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15653cat >conftest.$ac_ext <<_ACEOF
15654/* confdefs.h. */
15655_ACEOF
15656cat confdefs.h >>conftest.$ac_ext
15657cat >>conftest.$ac_ext <<_ACEOF
15658/* end confdefs.h. */
15659$ac_includes_default
15660#include <$ac_header>
15661_ACEOF
15662rm -f conftest.$ac_objext
15663if { (ac_try="$ac_compile"
15664case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15667esac
15668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_compile") 2>conftest.er1
15670 ac_status=$?
15671 grep -v '^ *+' conftest.er1 >conftest.err
15672 rm -f conftest.er1
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15677 { (case "(($ac_try" in
15678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679 *) ac_try_echo=$ac_try;;
15680esac
15681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682 (eval "$ac_try") 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15690esac
15691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_try") 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_header_compiler=yes
15697else
15698 echo "$as_me: failed program was:" >&5
15699sed 's/^/| /' conftest.$ac_ext >&5
15700
15701 ac_header_compiler=no
15702fi
15703
15704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15706echo "${ECHO_T}$ac_header_compiler" >&6; }
15707
15708# Is the header present?
15709{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15711cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717#include <$ac_header>
15718_ACEOF
15719if { (ac_try="$ac_cpp conftest.$ac_ext"
15720case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15723esac
15724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15726 ac_status=$?
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } >/dev/null; then
15732 if test -s conftest.err; then
15733 ac_cpp_err=$ac_c_preproc_warn_flag
15734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15735 else
15736 ac_cpp_err=
15737 fi
15738else
15739 ac_cpp_err=yes
15740fi
15741if test -z "$ac_cpp_err"; then
15742 ac_header_preproc=yes
15743else
15744 echo "$as_me: failed program was:" >&5
15745sed 's/^/| /' conftest.$ac_ext >&5
15746
15747 ac_header_preproc=no
15748fi
15749
15750rm -f conftest.err conftest.$ac_ext
15751{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15752echo "${ECHO_T}$ac_header_preproc" >&6; }
15753
15754# So? What about this header?
15755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15756 yes:no: )
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15761 ac_header_preproc=yes
15762 ;;
15763 no:yes:* )
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15776 ( cat <<\_ASBOX
15777## ----------------------------------- ##
15778## Report this to llvmbugs@cs.uiuc.edu ##
15779## ----------------------------------- ##
15780_ASBOX
15781 ) | sed "s/^/$as_me: WARNING: /" >&2
15782 ;;
15783esac
15784{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15788else
15789 eval "$as_ac_Header=\$ac_header_preproc"
15790fi
15791ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793echo "${ECHO_T}$ac_res" >&6; }
15794
15795fi
15796if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015797 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015799_ACEOF
15800
15801fi
15802
15803done
15804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015805
15806
Douglas Gregor071d73d2009-05-18 17:21:34 +000015807for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015808do
15809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15815fi
15816ac_res=`eval echo '${'$as_ac_Header'}'`
15817 { echo "$as_me:$LINENO: result: $ac_res" >&5
15818echo "${ECHO_T}$ac_res" >&6; }
15819else
15820 # Is the header compilable?
15821{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15823cat >conftest.$ac_ext <<_ACEOF
15824/* confdefs.h. */
15825_ACEOF
15826cat confdefs.h >>conftest.$ac_ext
15827cat >>conftest.$ac_ext <<_ACEOF
15828/* end confdefs.h. */
15829$ac_includes_default
15830#include <$ac_header>
15831_ACEOF
15832rm -f conftest.$ac_objext
15833if { (ac_try="$ac_compile"
15834case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837esac
15838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_compile") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15847 { (case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15850esac
15851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_try") 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest.$ac_objext'
15857 { (case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15860esac
15861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_try") 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_header_compiler=yes
15867else
15868 echo "$as_me: failed program was:" >&5
15869sed 's/^/| /' conftest.$ac_ext >&5
15870
15871 ac_header_compiler=no
15872fi
15873
15874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15876echo "${ECHO_T}$ac_header_compiler" >&6; }
15877
15878# Is the header present?
15879{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15881cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887#include <$ac_header>
15888_ACEOF
15889if { (ac_try="$ac_cpp conftest.$ac_ext"
15890case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893esac
15894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } >/dev/null; then
15902 if test -s conftest.err; then
15903 ac_cpp_err=$ac_c_preproc_warn_flag
15904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15905 else
15906 ac_cpp_err=
15907 fi
15908else
15909 ac_cpp_err=yes
15910fi
15911if test -z "$ac_cpp_err"; then
15912 ac_header_preproc=yes
15913else
15914 echo "$as_me: failed program was:" >&5
15915sed 's/^/| /' conftest.$ac_ext >&5
15916
15917 ac_header_preproc=no
15918fi
15919
15920rm -f conftest.err conftest.$ac_ext
15921{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15922echo "${ECHO_T}$ac_header_preproc" >&6; }
15923
15924# So? What about this header?
15925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15926 yes:no: )
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15930echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15931 ac_header_preproc=yes
15932 ;;
15933 no:yes:* )
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15939echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15941echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15945echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15946 ( cat <<\_ASBOX
15947## ----------------------------------- ##
15948## Report this to llvmbugs@cs.uiuc.edu ##
15949## ----------------------------------- ##
15950_ASBOX
15951 ) | sed "s/^/$as_me: WARNING: /" >&2
15952 ;;
15953esac
15954{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958else
15959 eval "$as_ac_Header=\$ac_header_preproc"
15960fi
15961ac_res=`eval echo '${'$as_ac_Header'}'`
15962 { echo "$as_me:$LINENO: result: $ac_res" >&5
15963echo "${ECHO_T}$ac_res" >&6; }
15964
15965fi
15966if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015967 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015969_ACEOF
15970
15971fi
15972
15973done
Reid Spencer59473af2004-12-25 07:31:29 +000015974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015975
15976
15977
15978
Reid Spencerbe3e4192007-08-17 05:45:26 +000015979for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015980do
15981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15987fi
15988ac_res=`eval echo '${'$as_ac_Header'}'`
15989 { echo "$as_me:$LINENO: result: $ac_res" >&5
15990echo "${ECHO_T}$ac_res" >&6; }
15991else
15992 # Is the header compilable?
15993{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15995cat >conftest.$ac_ext <<_ACEOF
15996/* confdefs.h. */
15997_ACEOF
15998cat confdefs.h >>conftest.$ac_ext
15999cat >>conftest.$ac_ext <<_ACEOF
16000/* end confdefs.h. */
16001$ac_includes_default
16002#include <$ac_header>
16003_ACEOF
16004rm -f conftest.$ac_objext
16005if { (ac_try="$ac_compile"
16006case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009esac
16010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_compile") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019 { (case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16022esac
16023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_try") 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try='test -s conftest.$ac_objext'
16029 { (case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16032esac
16033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_try") 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_header_compiler=yes
16039else
16040 echo "$as_me: failed program was:" >&5
16041sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 ac_header_compiler=no
16044fi
16045
16046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16048echo "${ECHO_T}$ac_header_compiler" >&6; }
16049
16050# Is the header present?
16051{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16052echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16053cat >conftest.$ac_ext <<_ACEOF
16054/* confdefs.h. */
16055_ACEOF
16056cat confdefs.h >>conftest.$ac_ext
16057cat >>conftest.$ac_ext <<_ACEOF
16058/* end confdefs.h. */
16059#include <$ac_header>
16060_ACEOF
16061if { (ac_try="$ac_cpp conftest.$ac_ext"
16062case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16065esac
16066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16068 ac_status=$?
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } >/dev/null; then
16074 if test -s conftest.err; then
16075 ac_cpp_err=$ac_c_preproc_warn_flag
16076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16077 else
16078 ac_cpp_err=
16079 fi
16080else
16081 ac_cpp_err=yes
16082fi
16083if test -z "$ac_cpp_err"; then
16084 ac_header_preproc=yes
16085else
16086 echo "$as_me: failed program was:" >&5
16087sed 's/^/| /' conftest.$ac_ext >&5
16088
16089 ac_header_preproc=no
16090fi
16091
16092rm -f conftest.err conftest.$ac_ext
16093{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16094echo "${ECHO_T}$ac_header_preproc" >&6; }
16095
16096# So? What about this header?
16097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16098 yes:no: )
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16103 ac_header_preproc=yes
16104 ;;
16105 no:yes:* )
16106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16118 ( cat <<\_ASBOX
16119## ----------------------------------- ##
16120## Report this to llvmbugs@cs.uiuc.edu ##
16121## ----------------------------------- ##
16122_ASBOX
16123 ) | sed "s/^/$as_me: WARNING: /" >&2
16124 ;;
16125esac
16126{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16130else
16131 eval "$as_ac_Header=\$ac_header_preproc"
16132fi
16133ac_res=`eval echo '${'$as_ac_Header'}'`
16134 { echo "$as_me:$LINENO: result: $ac_res" >&5
16135echo "${ECHO_T}$ac_res" >&6; }
16136
16137fi
16138if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016139 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016141_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016142
16143fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016144
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016145done
16146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016147
16148
16149
16150
Douglas Gregor01746742009-05-11 18:05:52 +000016151for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016152do
16153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16159fi
16160ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162echo "${ECHO_T}$ac_res" >&6; }
16163else
16164 # Is the header compilable?
16165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16167cat >conftest.$ac_ext <<_ACEOF
16168/* confdefs.h. */
16169_ACEOF
16170cat confdefs.h >>conftest.$ac_ext
16171cat >>conftest.$ac_ext <<_ACEOF
16172/* end confdefs.h. */
16173$ac_includes_default
16174#include <$ac_header>
16175_ACEOF
16176rm -f conftest.$ac_objext
16177if { (ac_try="$ac_compile"
16178case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181esac
16182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_compile") 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191 { (case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16194esac
16195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_try") 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; } &&
16200 { ac_try='test -s conftest.$ac_objext'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16204esac
16205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_header_compiler=yes
16211else
16212 echo "$as_me: failed program was:" >&5
16213sed 's/^/| /' conftest.$ac_ext >&5
16214
16215 ac_header_compiler=no
16216fi
16217
16218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220echo "${ECHO_T}$ac_header_compiler" >&6; }
16221
16222# Is the header present?
16223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16225cat >conftest.$ac_ext <<_ACEOF
16226/* confdefs.h. */
16227_ACEOF
16228cat confdefs.h >>conftest.$ac_ext
16229cat >>conftest.$ac_ext <<_ACEOF
16230/* end confdefs.h. */
16231#include <$ac_header>
16232_ACEOF
16233if { (ac_try="$ac_cpp conftest.$ac_ext"
16234case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16237esac
16238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } >/dev/null; then
16246 if test -s conftest.err; then
16247 ac_cpp_err=$ac_c_preproc_warn_flag
16248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16249 else
16250 ac_cpp_err=
16251 fi
16252else
16253 ac_cpp_err=yes
16254fi
16255if test -z "$ac_cpp_err"; then
16256 ac_header_preproc=yes
16257else
16258 echo "$as_me: failed program was:" >&5
16259sed 's/^/| /' conftest.$ac_ext >&5
16260
16261 ac_header_preproc=no
16262fi
16263
16264rm -f conftest.err conftest.$ac_ext
16265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16266echo "${ECHO_T}$ac_header_preproc" >&6; }
16267
16268# So? What about this header?
16269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16270 yes:no: )
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16275 ac_header_preproc=yes
16276 ;;
16277 no:yes:* )
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16290 ( cat <<\_ASBOX
16291## ----------------------------------- ##
16292## Report this to llvmbugs@cs.uiuc.edu ##
16293## ----------------------------------- ##
16294_ASBOX
16295 ) | sed "s/^/$as_me: WARNING: /" >&2
16296 ;;
16297esac
16298{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302else
16303 eval "$as_ac_Header=\$ac_header_preproc"
16304fi
16305ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result: $ac_res" >&5
16307echo "${ECHO_T}$ac_res" >&6; }
16308
16309fi
16310if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016311 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016313_ACEOF
16314
16315fi
16316
16317done
16318
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016319
16320for ac_header in valgrind/valgrind.h
16321do
16322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16328fi
16329ac_res=`eval echo '${'$as_ac_Header'}'`
16330 { echo "$as_me:$LINENO: result: $ac_res" >&5
16331echo "${ECHO_T}$ac_res" >&6; }
16332else
16333 # Is the header compilable?
16334{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16336cat >conftest.$ac_ext <<_ACEOF
16337/* confdefs.h. */
16338_ACEOF
16339cat confdefs.h >>conftest.$ac_ext
16340cat >>conftest.$ac_ext <<_ACEOF
16341/* end confdefs.h. */
16342$ac_includes_default
16343#include <$ac_header>
16344_ACEOF
16345rm -f conftest.$ac_objext
16346if { (ac_try="$ac_compile"
16347case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16350esac
16351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_compile") 2>conftest.er1
16353 ac_status=$?
16354 grep -v '^ *+' conftest.er1 >conftest.err
16355 rm -f conftest.er1
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363esac
16364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; } &&
16369 { ac_try='test -s conftest.$ac_objext'
16370 { (case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16373esac
16374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_try") 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_header_compiler=yes
16380else
16381 echo "$as_me: failed program was:" >&5
16382sed 's/^/| /' conftest.$ac_ext >&5
16383
16384 ac_header_compiler=no
16385fi
16386
16387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16389echo "${ECHO_T}$ac_header_compiler" >&6; }
16390
16391# Is the header present?
16392{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16394cat >conftest.$ac_ext <<_ACEOF
16395/* confdefs.h. */
16396_ACEOF
16397cat confdefs.h >>conftest.$ac_ext
16398cat >>conftest.$ac_ext <<_ACEOF
16399/* end confdefs.h. */
16400#include <$ac_header>
16401_ACEOF
16402if { (ac_try="$ac_cpp conftest.$ac_ext"
16403case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16406esac
16407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16409 ac_status=$?
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } >/dev/null; then
16415 if test -s conftest.err; then
16416 ac_cpp_err=$ac_c_preproc_warn_flag
16417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16418 else
16419 ac_cpp_err=
16420 fi
16421else
16422 ac_cpp_err=yes
16423fi
16424if test -z "$ac_cpp_err"; then
16425 ac_header_preproc=yes
16426else
16427 echo "$as_me: failed program was:" >&5
16428sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 ac_header_preproc=no
16431fi
16432
16433rm -f conftest.err conftest.$ac_ext
16434{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16435echo "${ECHO_T}$ac_header_preproc" >&6; }
16436
16437# So? What about this header?
16438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16439 yes:no: )
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16444 ac_header_preproc=yes
16445 ;;
16446 no:yes:* )
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16459 ( cat <<\_ASBOX
16460## ----------------------------------- ##
16461## Report this to llvmbugs@cs.uiuc.edu ##
16462## ----------------------------------- ##
16463_ASBOX
16464 ) | sed "s/^/$as_me: WARNING: /" >&2
16465 ;;
16466esac
16467{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16471else
16472 eval "$as_ac_Header=\$ac_header_preproc"
16473fi
16474ac_res=`eval echo '${'$as_ac_Header'}'`
16475 { echo "$as_me:$LINENO: result: $ac_res" >&5
16476echo "${ECHO_T}$ac_res" >&6; }
16477
16478fi
16479if test `eval echo '${'$as_ac_Header'}'` = yes; then
16480 cat >>confdefs.h <<_ACEOF
16481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16482_ACEOF
16483
16484fi
16485
16486done
16487
Reid Spencer0a262ba2005-08-24 10:07:20 +000016488if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016489
16490for ac_header in pthread.h
16491do
16492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498fi
16499ac_res=`eval echo '${'$as_ac_Header'}'`
16500 { echo "$as_me:$LINENO: result: $ac_res" >&5
16501echo "${ECHO_T}$ac_res" >&6; }
16502else
16503 # Is the header compilable?
16504{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16506cat >conftest.$ac_ext <<_ACEOF
16507/* confdefs.h. */
16508_ACEOF
16509cat confdefs.h >>conftest.$ac_ext
16510cat >>conftest.$ac_ext <<_ACEOF
16511/* end confdefs.h. */
16512$ac_includes_default
16513#include <$ac_header>
16514_ACEOF
16515rm -f conftest.$ac_objext
16516if { (ac_try="$ac_compile"
16517case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_compile") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533esac
16534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest.$ac_objext'
16540 { (case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16543esac
16544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_try") 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_header_compiler=yes
16550else
16551 echo "$as_me: failed program was:" >&5
16552sed 's/^/| /' conftest.$ac_ext >&5
16553
16554 ac_header_compiler=no
16555fi
16556
16557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16559echo "${ECHO_T}$ac_header_compiler" >&6; }
16560
16561# Is the header present?
16562{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16564cat >conftest.$ac_ext <<_ACEOF
16565/* confdefs.h. */
16566_ACEOF
16567cat confdefs.h >>conftest.$ac_ext
16568cat >>conftest.$ac_ext <<_ACEOF
16569/* end confdefs.h. */
16570#include <$ac_header>
16571_ACEOF
16572if { (ac_try="$ac_cpp conftest.$ac_ext"
16573case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } >/dev/null; then
16585 if test -s conftest.err; then
16586 ac_cpp_err=$ac_c_preproc_warn_flag
16587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16588 else
16589 ac_cpp_err=
16590 fi
16591else
16592 ac_cpp_err=yes
16593fi
16594if test -z "$ac_cpp_err"; then
16595 ac_header_preproc=yes
16596else
16597 echo "$as_me: failed program was:" >&5
16598sed 's/^/| /' conftest.$ac_ext >&5
16599
16600 ac_header_preproc=no
16601fi
16602
16603rm -f conftest.err conftest.$ac_ext
16604{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16605echo "${ECHO_T}$ac_header_preproc" >&6; }
16606
16607# So? What about this header?
16608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16609 yes:no: )
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16614 ac_header_preproc=yes
16615 ;;
16616 no:yes:* )
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16620echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16624echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16629 ( cat <<\_ASBOX
16630## ----------------------------------- ##
16631## Report this to llvmbugs@cs.uiuc.edu ##
16632## ----------------------------------- ##
16633_ASBOX
16634 ) | sed "s/^/$as_me: WARNING: /" >&2
16635 ;;
16636esac
16637{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641else
16642 eval "$as_ac_Header=\$ac_header_preproc"
16643fi
16644ac_res=`eval echo '${'$as_ac_Header'}'`
16645 { echo "$as_me:$LINENO: result: $ac_res" >&5
16646echo "${ECHO_T}$ac_res" >&6; }
16647
16648fi
16649if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016650 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016652_ACEOF
16653 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016654
16655else
16656 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016657
16658fi
16659
Reid Spencerbe3e4192007-08-17 05:45:26 +000016660done
Reid Spencer1000b732006-12-01 00:37:14 +000016661
16662else
16663 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016664
16665fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016666
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016667if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016668
16669
16670for ac_header in ffi.h ffi/ffi.h
16671do
16672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678fi
16679ac_res=`eval echo '${'$as_ac_Header'}'`
16680 { echo "$as_me:$LINENO: result: $ac_res" >&5
16681echo "${ECHO_T}$ac_res" >&6; }
16682else
16683 # Is the header compilable?
16684{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16686cat >conftest.$ac_ext <<_ACEOF
16687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
16692$ac_includes_default
16693#include <$ac_header>
16694_ACEOF
16695rm -f conftest.$ac_objext
16696if { (ac_try="$ac_compile"
16697case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723esac
16724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_header_compiler=yes
16730else
16731 echo "$as_me: failed program was:" >&5
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 ac_header_compiler=no
16735fi
16736
16737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16739echo "${ECHO_T}$ac_header_compiler" >&6; }
16740
16741# Is the header present?
16742{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16744cat >conftest.$ac_ext <<_ACEOF
16745/* confdefs.h. */
16746_ACEOF
16747cat confdefs.h >>conftest.$ac_ext
16748cat >>conftest.$ac_ext <<_ACEOF
16749/* end confdefs.h. */
16750#include <$ac_header>
16751_ACEOF
16752if { (ac_try="$ac_cpp conftest.$ac_ext"
16753case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756esac
16757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16759 ac_status=$?
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } >/dev/null; then
16765 if test -s conftest.err; then
16766 ac_cpp_err=$ac_c_preproc_warn_flag
16767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16768 else
16769 ac_cpp_err=
16770 fi
16771else
16772 ac_cpp_err=yes
16773fi
16774if test -z "$ac_cpp_err"; then
16775 ac_header_preproc=yes
16776else
16777 echo "$as_me: failed program was:" >&5
16778sed 's/^/| /' conftest.$ac_ext >&5
16779
16780 ac_header_preproc=no
16781fi
16782
16783rm -f conftest.err conftest.$ac_ext
16784{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16785echo "${ECHO_T}$ac_header_preproc" >&6; }
16786
16787# So? What about this header?
16788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16789 yes:no: )
16790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16793echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16794 ac_header_preproc=yes
16795 ;;
16796 no:yes:* )
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16800echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16802echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16804echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16808echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16809 ( cat <<\_ASBOX
16810## ----------------------------------- ##
16811## Report this to llvmbugs@cs.uiuc.edu ##
16812## ----------------------------------- ##
16813_ASBOX
16814 ) | sed "s/^/$as_me: WARNING: /" >&2
16815 ;;
16816esac
16817{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821else
16822 eval "$as_ac_Header=\$ac_header_preproc"
16823fi
16824ac_res=`eval echo '${'$as_ac_Header'}'`
16825 { echo "$as_me:$LINENO: result: $ac_res" >&5
16826echo "${ECHO_T}$ac_res" >&6; }
16827
16828fi
16829if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016830 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016832_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016833
16834fi
16835
16836done
16837
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016838fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016839
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016840
Reid Spencer8085cff2005-01-16 02:58:39 +000016841
Torok Edwin871384f2010-01-26 08:50:50 +000016842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016843 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16844echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16845if test "${ac_cv_huge_val_sanity+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016847else
16848
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016849 ac_ext=cpp
16850ac_cpp='$CXXCPP $CPPFLAGS'
16851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016854
Eric Christopherc7718502010-03-02 05:06:54 +000016855 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016856 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016857 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016858 ac_cv_huge_val_sanity=yes
16859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016860 cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h. */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016865/* end confdefs.h. */
16866#include <math.h>
16867int
16868main ()
16869{
16870double x = HUGE_VAL; return x != x;
16871 ;
16872 return 0;
16873}
16874_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016875rm -f conftest$ac_exeext
16876if { (ac_try="$ac_link"
16877case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880esac
16881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_link") 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16886 { (case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889esac
16890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_try") 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016895 ac_cv_huge_val_sanity=yes
16896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016897 echo "$as_me: program exited with status $ac_status" >&5
16898echo "$as_me: failed program was:" >&5
16899sed 's/^/| /' conftest.$ac_ext >&5
16900
16901( exit $ac_status )
16902ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016904rm -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 +000016905fi
16906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016907
Eric Christopherc7718502010-03-02 05:06:54 +000016908 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016909 ac_ext=c
16910ac_cpp='$CPP $CPPFLAGS'
16911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16913ac_compiler_gnu=$ac_cv_c_compiler_gnu
16914
16915
16916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016917{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16918echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016919 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16920
16921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016922{ echo "$as_me:$LINENO: checking for pid_t" >&5
16923echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16924if test "${ac_cv_type_pid_t+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926else
16927 cat >conftest.$ac_ext <<_ACEOF
16928/* confdefs.h. */
16929_ACEOF
16930cat confdefs.h >>conftest.$ac_ext
16931cat >>conftest.$ac_ext <<_ACEOF
16932/* end confdefs.h. */
16933$ac_includes_default
16934typedef pid_t ac__type_new_;
16935int
16936main ()
16937{
16938if ((ac__type_new_ *) 0)
16939 return 0;
16940if (sizeof (ac__type_new_))
16941 return 0;
16942 ;
16943 return 0;
16944}
16945_ACEOF
16946rm -f conftest.$ac_objext
16947if { (ac_try="$ac_compile"
16948case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16951esac
16952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_compile") 2>conftest.er1
16954 ac_status=$?
16955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16961 { (case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16964esac
16965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_try") 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest.$ac_objext'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974esac
16975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16980 ac_cv_type_pid_t=yes
16981else
16982 echo "$as_me: failed program was:" >&5
16983sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016985 ac_cv_type_pid_t=no
16986fi
16987
16988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989fi
16990{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16991echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16992if test $ac_cv_type_pid_t = yes; then
16993 :
John Criswell7a73b802003-06-30 21:59:07 +000016994else
16995
16996cat >>confdefs.h <<_ACEOF
16997#define pid_t int
16998_ACEOF
16999
17000fi
17001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017002{ echo "$as_me:$LINENO: checking for size_t" >&5
17003echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17004if test "${ac_cv_type_size_t+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006else
17007 cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
17013$ac_includes_default
17014typedef size_t ac__type_new_;
17015int
17016main ()
17017{
17018if ((ac__type_new_ *) 0)
17019 return 0;
17020if (sizeof (ac__type_new_))
17021 return 0;
17022 ;
17023 return 0;
17024}
17025_ACEOF
17026rm -f conftest.$ac_objext
17027if { (ac_try="$ac_compile"
17028case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17031esac
17032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_compile") 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17041 { (case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044esac
17045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_try") 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest.$ac_objext'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17054esac
17055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_cv_type_size_t=yes
17061else
17062 echo "$as_me: failed program was:" >&5
17063sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017065 ac_cv_type_size_t=no
17066fi
17067
17068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069fi
17070{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17071echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17072if test $ac_cv_type_size_t = yes; then
17073 :
John Criswell7a73b802003-06-30 21:59:07 +000017074else
17075
17076cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017077#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017078_ACEOF
17079
17080fi
17081
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017082
17083cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017084#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017085_ACEOF
17086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017087{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17088echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17089if test "${ac_cv_struct_tm+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017092 cat >conftest.$ac_ext <<_ACEOF
17093/* confdefs.h. */
17094_ACEOF
17095cat confdefs.h >>conftest.$ac_ext
17096cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017097/* end confdefs.h. */
17098#include <sys/types.h>
17099#include <time.h>
17100
17101int
17102main ()
17103{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017104struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017105 ;
17106 return 0;
17107}
17108_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017109rm -f conftest.$ac_objext
17110if { (ac_try="$ac_compile"
17111case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17114esac
17115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_compile") 2>conftest.er1
17117 ac_status=$?
17118 grep -v '^ *+' conftest.er1 >conftest.err
17119 rm -f conftest.er1
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } &&
17123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17124 { (case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17127esac
17128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_try") 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; } &&
17133 { ac_try='test -s conftest.$ac_objext'
17134 { (case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17137esac
17138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_try") 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017143 ac_cv_struct_tm=time.h
17144else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017145 echo "$as_me: failed program was:" >&5
17146sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017150
Reid Spencera773bd52006-08-04 18:18:08 +000017151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017153{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17154echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017155if test $ac_cv_struct_tm = sys/time.h; then
17156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017157cat >>confdefs.h <<\_ACEOF
17158#define TM_IN_SYS_TIME 1
17159_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017160
17161fi
17162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017163{ echo "$as_me:$LINENO: checking for int64_t" >&5
17164echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17165if test "${ac_cv_type_int64_t+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167else
17168 cat >conftest.$ac_ext <<_ACEOF
17169/* confdefs.h. */
17170_ACEOF
17171cat confdefs.h >>conftest.$ac_ext
17172cat >>conftest.$ac_ext <<_ACEOF
17173/* end confdefs.h. */
17174$ac_includes_default
17175typedef int64_t ac__type_new_;
17176int
17177main ()
17178{
17179if ((ac__type_new_ *) 0)
17180 return 0;
17181if (sizeof (ac__type_new_))
17182 return 0;
17183 ;
17184 return 0;
17185}
17186_ACEOF
17187rm -f conftest.$ac_objext
17188if { (ac_try="$ac_compile"
17189case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17192esac
17193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_compile") 2>conftest.er1
17195 ac_status=$?
17196 grep -v '^ *+' conftest.er1 >conftest.err
17197 rm -f conftest.er1
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } &&
17201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17202 { (case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17205esac
17206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207 (eval "$ac_try") 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; } &&
17211 { ac_try='test -s conftest.$ac_objext'
17212 { (case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17215esac
17216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_try") 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; }; then
17221 ac_cv_type_int64_t=yes
17222else
17223 echo "$as_me: failed program was:" >&5
17224sed 's/^/| /' conftest.$ac_ext >&5
17225
17226 ac_cv_type_int64_t=no
17227fi
17228
17229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230fi
17231{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17232echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17233if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017234
17235cat >>confdefs.h <<_ACEOF
17236#define HAVE_INT64_T 1
17237_ACEOF
17238
17239
17240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017241 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17242echo "$as_me: error: Type int64_t required but not found" >&2;}
17243 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017244fi
17245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017246{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17247echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17248if test "${ac_cv_type_uint64_t+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250else
17251 cat >conftest.$ac_ext <<_ACEOF
17252/* confdefs.h. */
17253_ACEOF
17254cat confdefs.h >>conftest.$ac_ext
17255cat >>conftest.$ac_ext <<_ACEOF
17256/* end confdefs.h. */
17257$ac_includes_default
17258typedef uint64_t ac__type_new_;
17259int
17260main ()
17261{
17262if ((ac__type_new_ *) 0)
17263 return 0;
17264if (sizeof (ac__type_new_))
17265 return 0;
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270rm -f conftest.$ac_objext
17271if { (ac_try="$ac_compile"
17272case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17275esac
17276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_compile") 2>conftest.er1
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288esac
17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest.$ac_objext'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_type_uint64_t=yes
17305else
17306 echo "$as_me: failed program was:" >&5
17307sed 's/^/| /' conftest.$ac_ext >&5
17308
17309 ac_cv_type_uint64_t=no
17310fi
17311
17312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313fi
17314{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17315echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17316if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017317
17318cat >>confdefs.h <<_ACEOF
17319#define HAVE_UINT64_T 1
17320_ACEOF
17321
17322
17323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017324 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17325echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17326if test "${ac_cv_type_u_int64_t+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17328else
17329 cat >conftest.$ac_ext <<_ACEOF
17330/* confdefs.h. */
17331_ACEOF
17332cat confdefs.h >>conftest.$ac_ext
17333cat >>conftest.$ac_ext <<_ACEOF
17334/* end confdefs.h. */
17335$ac_includes_default
17336typedef u_int64_t ac__type_new_;
17337int
17338main ()
17339{
17340if ((ac__type_new_ *) 0)
17341 return 0;
17342if (sizeof (ac__type_new_))
17343 return 0;
17344 ;
17345 return 0;
17346}
17347_ACEOF
17348rm -f conftest.$ac_objext
17349if { (ac_try="$ac_compile"
17350case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17353esac
17354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355 (eval "$ac_compile") 2>conftest.er1
17356 ac_status=$?
17357 grep -v '^ *+' conftest.er1 >conftest.err
17358 rm -f conftest.er1
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17363 { (case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17366esac
17367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_try") 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try='test -s conftest.$ac_objext'
17373 { (case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17376esac
17377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_try") 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; }; then
17382 ac_cv_type_u_int64_t=yes
17383else
17384 echo "$as_me: failed program was:" >&5
17385sed 's/^/| /' conftest.$ac_ext >&5
17386
17387 ac_cv_type_u_int64_t=no
17388fi
17389
17390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391fi
17392{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17393echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17394if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017395
17396cat >>confdefs.h <<_ACEOF
17397#define HAVE_U_INT64_T 1
17398_ACEOF
17399
17400
Misha Brukmanceca9042004-09-02 23:02:30 +000017401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017402 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17403echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17404 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017405fi
17406
John Criswell679ff312004-09-02 18:44:44 +000017407fi
17408
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017409
17410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017411
17412
17413
17414
17415
17416
17417
Reid Spencerdf3be822006-01-23 08:15:53 +000017418for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017419do
17420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17421{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17423if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17425else
17426 cat >conftest.$ac_ext <<_ACEOF
17427/* confdefs.h. */
17428_ACEOF
17429cat confdefs.h >>conftest.$ac_ext
17430cat >>conftest.$ac_ext <<_ACEOF
17431/* end confdefs.h. */
17432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17434#define $ac_func innocuous_$ac_func
17435
17436/* System header to define __stub macros and hopefully few prototypes,
17437 which can conflict with char $ac_func (); below.
17438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17439 <limits.h> exists even on freestanding compilers. */
17440
17441#ifdef __STDC__
17442# include <limits.h>
17443#else
17444# include <assert.h>
17445#endif
17446
17447#undef $ac_func
17448
17449/* Override any GCC internal prototype to avoid an error.
17450 Use char because int might match the return type of a GCC
17451 builtin and then its argument prototype would still apply. */
17452#ifdef __cplusplus
17453extern "C"
17454#endif
17455char $ac_func ();
17456/* The GNU C library defines this for functions which it implements
17457 to always fail with ENOSYS. Some functions are actually named
17458 something starting with __ and the normal name is an alias. */
17459#if defined __stub_$ac_func || defined __stub___$ac_func
17460choke me
17461#endif
17462
17463int
17464main ()
17465{
17466return $ac_func ();
17467 ;
17468 return 0;
17469}
17470_ACEOF
17471rm -f conftest.$ac_objext conftest$ac_exeext
17472if { (ac_try="$ac_link"
17473case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17476esac
17477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_link") 2>conftest.er1
17479 ac_status=$?
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17486 { (case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489esac
17490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_try") 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } &&
17495 { ac_try='test -s conftest$ac_exeext'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499esac
17500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17505 eval "$as_ac_var=yes"
17506else
17507 echo "$as_me: failed program was:" >&5
17508sed 's/^/| /' conftest.$ac_ext >&5
17509
17510 eval "$as_ac_var=no"
17511fi
17512
17513rm -f core conftest.err conftest.$ac_objext \
17514 conftest$ac_exeext conftest.$ac_ext
17515fi
17516ac_res=`eval echo '${'$as_ac_var'}'`
17517 { echo "$as_me:$LINENO: result: $ac_res" >&5
17518echo "${ECHO_T}$ac_res" >&6; }
17519if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017520 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017521#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017522_ACEOF
17523
17524fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017525done
John Criswell7a73b802003-06-30 21:59:07 +000017526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017527
17528
17529
17530
Reid Spencer96cf5872007-07-13 10:05:30 +000017531for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017532do
17533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17534{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538else
17539 cat >conftest.$ac_ext <<_ACEOF
17540/* confdefs.h. */
17541_ACEOF
17542cat confdefs.h >>conftest.$ac_ext
17543cat >>conftest.$ac_ext <<_ACEOF
17544/* end confdefs.h. */
17545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17547#define $ac_func innocuous_$ac_func
17548
17549/* System header to define __stub macros and hopefully few prototypes,
17550 which can conflict with char $ac_func (); below.
17551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17552 <limits.h> exists even on freestanding compilers. */
17553
17554#ifdef __STDC__
17555# include <limits.h>
17556#else
17557# include <assert.h>
17558#endif
17559
17560#undef $ac_func
17561
17562/* Override any GCC internal prototype to avoid an error.
17563 Use char because int might match the return type of a GCC
17564 builtin and then its argument prototype would still apply. */
17565#ifdef __cplusplus
17566extern "C"
17567#endif
17568char $ac_func ();
17569/* The GNU C library defines this for functions which it implements
17570 to always fail with ENOSYS. Some functions are actually named
17571 something starting with __ and the normal name is an alias. */
17572#if defined __stub_$ac_func || defined __stub___$ac_func
17573choke me
17574#endif
17575
17576int
17577main ()
17578{
17579return $ac_func ();
17580 ;
17581 return 0;
17582}
17583_ACEOF
17584rm -f conftest.$ac_objext conftest$ac_exeext
17585if { (ac_try="$ac_link"
17586case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589esac
17590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_link") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17599 { (case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17602esac
17603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_try") 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest$ac_exeext'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612esac
17613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 eval "$as_ac_var=yes"
17619else
17620 echo "$as_me: failed program was:" >&5
17621sed 's/^/| /' conftest.$ac_ext >&5
17622
17623 eval "$as_ac_var=no"
17624fi
17625
17626rm -f core conftest.err conftest.$ac_objext \
17627 conftest$ac_exeext conftest.$ac_ext
17628fi
17629ac_res=`eval echo '${'$as_ac_var'}'`
17630 { echo "$as_me:$LINENO: result: $ac_res" >&5
17631echo "${ECHO_T}$ac_res" >&6; }
17632if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017633 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017635_ACEOF
17636
17637fi
17638done
17639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017640
17641
17642
17643
17644
Reid Spencerb90645c2007-02-16 19:17:20 +000017645for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017646do
17647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17648{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17650if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17652else
17653 cat >conftest.$ac_ext <<_ACEOF
17654/* confdefs.h. */
17655_ACEOF
17656cat confdefs.h >>conftest.$ac_ext
17657cat >>conftest.$ac_ext <<_ACEOF
17658/* end confdefs.h. */
17659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17661#define $ac_func innocuous_$ac_func
17662
17663/* System header to define __stub macros and hopefully few prototypes,
17664 which can conflict with char $ac_func (); below.
17665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17666 <limits.h> exists even on freestanding compilers. */
17667
17668#ifdef __STDC__
17669# include <limits.h>
17670#else
17671# include <assert.h>
17672#endif
17673
17674#undef $ac_func
17675
17676/* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17679#ifdef __cplusplus
17680extern "C"
17681#endif
17682char $ac_func ();
17683/* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686#if defined __stub_$ac_func || defined __stub___$ac_func
17687choke me
17688#endif
17689
17690int
17691main ()
17692{
17693return $ac_func ();
17694 ;
17695 return 0;
17696}
17697_ACEOF
17698rm -f conftest.$ac_objext conftest$ac_exeext
17699if { (ac_try="$ac_link"
17700case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17703esac
17704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_link") 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17726esac
17727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 eval "$as_ac_var=yes"
17733else
17734 echo "$as_me: failed program was:" >&5
17735sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 eval "$as_ac_var=no"
17738fi
17739
17740rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742fi
17743ac_res=`eval echo '${'$as_ac_var'}'`
17744 { echo "$as_me:$LINENO: result: $ac_res" >&5
17745echo "${ECHO_T}$ac_res" >&6; }
17746if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017747 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017749_ACEOF
17750
17751fi
17752done
17753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017754
17755
17756
Reid Spencerb90645c2007-02-16 19:17:20 +000017757for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017758do
17759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17760{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764else
17765 cat >conftest.$ac_ext <<_ACEOF
17766/* confdefs.h. */
17767_ACEOF
17768cat confdefs.h >>conftest.$ac_ext
17769cat >>conftest.$ac_ext <<_ACEOF
17770/* end confdefs.h. */
17771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17773#define $ac_func innocuous_$ac_func
17774
17775/* System header to define __stub macros and hopefully few prototypes,
17776 which can conflict with char $ac_func (); below.
17777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17778 <limits.h> exists even on freestanding compilers. */
17779
17780#ifdef __STDC__
17781# include <limits.h>
17782#else
17783# include <assert.h>
17784#endif
17785
17786#undef $ac_func
17787
17788/* Override any GCC internal prototype to avoid an error.
17789 Use char because int might match the return type of a GCC
17790 builtin and then its argument prototype would still apply. */
17791#ifdef __cplusplus
17792extern "C"
17793#endif
17794char $ac_func ();
17795/* The GNU C library defines this for functions which it implements
17796 to always fail with ENOSYS. Some functions are actually named
17797 something starting with __ and the normal name is an alias. */
17798#if defined __stub_$ac_func || defined __stub___$ac_func
17799choke me
17800#endif
17801
17802int
17803main ()
17804{
17805return $ac_func ();
17806 ;
17807 return 0;
17808}
17809_ACEOF
17810rm -f conftest.$ac_objext conftest$ac_exeext
17811if { (ac_try="$ac_link"
17812case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815esac
17816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_link") 2>conftest.er1
17818 ac_status=$?
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828esac
17829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest$ac_exeext'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 eval "$as_ac_var=yes"
17845else
17846 echo "$as_me: failed program was:" >&5
17847sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 eval "$as_ac_var=no"
17850fi
17851
17852rm -f core conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17854fi
17855ac_res=`eval echo '${'$as_ac_var'}'`
17856 { echo "$as_me:$LINENO: result: $ac_res" >&5
17857echo "${ECHO_T}$ac_res" >&6; }
17858if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017859 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017861_ACEOF
17862
17863fi
17864done
17865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017866
17867
17868
17869
17870
Eric Christophere4291822010-04-16 05:14:21 +000017871
17872for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017873do
17874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17875{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17879else
17880 cat >conftest.$ac_ext <<_ACEOF
17881/* confdefs.h. */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
17885/* end confdefs.h. */
17886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17888#define $ac_func innocuous_$ac_func
17889
17890/* System header to define __stub macros and hopefully few prototypes,
17891 which can conflict with char $ac_func (); below.
17892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17893 <limits.h> exists even on freestanding compilers. */
17894
17895#ifdef __STDC__
17896# include <limits.h>
17897#else
17898# include <assert.h>
17899#endif
17900
17901#undef $ac_func
17902
17903/* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17906#ifdef __cplusplus
17907extern "C"
17908#endif
17909char $ac_func ();
17910/* The GNU C library defines this for functions which it implements
17911 to always fail with ENOSYS. Some functions are actually named
17912 something starting with __ and the normal name is an alias. */
17913#if defined __stub_$ac_func || defined __stub___$ac_func
17914choke me
17915#endif
17916
17917int
17918main ()
17919{
17920return $ac_func ();
17921 ;
17922 return 0;
17923}
17924_ACEOF
17925rm -f conftest.$ac_objext conftest$ac_exeext
17926if { (ac_try="$ac_link"
17927case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17930esac
17931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_link") 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17940 { (case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17943esac
17944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_try") 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953esac
17954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_try") 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 eval "$as_ac_var=yes"
17960else
17961 echo "$as_me: failed program was:" >&5
17962sed 's/^/| /' conftest.$ac_ext >&5
17963
17964 eval "$as_ac_var=no"
17965fi
17966
17967rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17969fi
17970ac_res=`eval echo '${'$as_ac_var'}'`
17971 { echo "$as_me:$LINENO: result: $ac_res" >&5
17972echo "${ECHO_T}$ac_res" >&6; }
17973if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017974 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017976_ACEOF
17977
17978fi
17979done
Reid Spencerdf3be822006-01-23 08:15:53 +000017980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017981
17982
17983
17984
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017985for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017986do
17987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17988{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17990if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17992else
17993 cat >conftest.$ac_ext <<_ACEOF
17994/* confdefs.h. */
17995_ACEOF
17996cat confdefs.h >>conftest.$ac_ext
17997cat >>conftest.$ac_ext <<_ACEOF
17998/* end confdefs.h. */
17999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18001#define $ac_func innocuous_$ac_func
18002
18003/* System header to define __stub macros and hopefully few prototypes,
18004 which can conflict with char $ac_func (); below.
18005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18006 <limits.h> exists even on freestanding compilers. */
18007
18008#ifdef __STDC__
18009# include <limits.h>
18010#else
18011# include <assert.h>
18012#endif
18013
18014#undef $ac_func
18015
18016/* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18019#ifdef __cplusplus
18020extern "C"
18021#endif
18022char $ac_func ();
18023/* The GNU C library defines this for functions which it implements
18024 to always fail with ENOSYS. Some functions are actually named
18025 something starting with __ and the normal name is an alias. */
18026#if defined __stub_$ac_func || defined __stub___$ac_func
18027choke me
18028#endif
18029
18030int
18031main ()
18032{
18033return $ac_func ();
18034 ;
18035 return 0;
18036}
18037_ACEOF
18038rm -f conftest.$ac_objext conftest$ac_exeext
18039if { (ac_try="$ac_link"
18040case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18043esac
18044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_link") 2>conftest.er1
18046 ac_status=$?
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18053 { (case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056esac
18057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_try") 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest$ac_exeext'
18063 { (case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18066esac
18067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_try") 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 eval "$as_ac_var=yes"
18073else
18074 echo "$as_me: failed program was:" >&5
18075sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 eval "$as_ac_var=no"
18078fi
18079
18080rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082fi
18083ac_res=`eval echo '${'$as_ac_var'}'`
18084 { echo "$as_me:$LINENO: result: $ac_res" >&5
18085echo "${ECHO_T}$ac_res" >&6; }
18086if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018087 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018089_ACEOF
18090
18091fi
18092done
18093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018094
18095
18096
18097
Chris Lattner511f11d2005-11-14 07:25:50 +000018098for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018099do
18100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18101{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18103if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18105else
18106 cat >conftest.$ac_ext <<_ACEOF
18107/* confdefs.h. */
18108_ACEOF
18109cat confdefs.h >>conftest.$ac_ext
18110cat >>conftest.$ac_ext <<_ACEOF
18111/* end confdefs.h. */
18112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18114#define $ac_func innocuous_$ac_func
18115
18116/* System header to define __stub macros and hopefully few prototypes,
18117 which can conflict with char $ac_func (); below.
18118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119 <limits.h> exists even on freestanding compilers. */
18120
18121#ifdef __STDC__
18122# include <limits.h>
18123#else
18124# include <assert.h>
18125#endif
18126
18127#undef $ac_func
18128
18129/* Override any GCC internal prototype to avoid an error.
18130 Use char because int might match the return type of a GCC
18131 builtin and then its argument prototype would still apply. */
18132#ifdef __cplusplus
18133extern "C"
18134#endif
18135char $ac_func ();
18136/* The GNU C library defines this for functions which it implements
18137 to always fail with ENOSYS. Some functions are actually named
18138 something starting with __ and the normal name is an alias. */
18139#if defined __stub_$ac_func || defined __stub___$ac_func
18140choke me
18141#endif
18142
18143int
18144main ()
18145{
18146return $ac_func ();
18147 ;
18148 return 0;
18149}
18150_ACEOF
18151rm -f conftest.$ac_objext conftest$ac_exeext
18152if { (ac_try="$ac_link"
18153case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18156esac
18157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179esac
18180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 eval "$as_ac_var=yes"
18186else
18187 echo "$as_me: failed program was:" >&5
18188sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 eval "$as_ac_var=no"
18191fi
18192
18193rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195fi
18196ac_res=`eval echo '${'$as_ac_var'}'`
18197 { echo "$as_me:$LINENO: result: $ac_res" >&5
18198echo "${ECHO_T}$ac_res" >&6; }
18199if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018200 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018201#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018202_ACEOF
18203
18204fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018205done
John Criswell7a73b802003-06-30 21:59:07 +000018206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018207
18208
18209
18210
Reid Spencerafa22e22006-12-10 23:29:19 +000018211for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018212do
18213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18214{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18216if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18218else
18219 cat >conftest.$ac_ext <<_ACEOF
18220/* confdefs.h. */
18221_ACEOF
18222cat confdefs.h >>conftest.$ac_ext
18223cat >>conftest.$ac_ext <<_ACEOF
18224/* end confdefs.h. */
18225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18227#define $ac_func innocuous_$ac_func
18228
18229/* System header to define __stub macros and hopefully few prototypes,
18230 which can conflict with char $ac_func (); below.
18231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18232 <limits.h> exists even on freestanding compilers. */
18233
18234#ifdef __STDC__
18235# include <limits.h>
18236#else
18237# include <assert.h>
18238#endif
18239
18240#undef $ac_func
18241
18242/* Override any GCC internal prototype to avoid an error.
18243 Use char because int might match the return type of a GCC
18244 builtin and then its argument prototype would still apply. */
18245#ifdef __cplusplus
18246extern "C"
18247#endif
18248char $ac_func ();
18249/* The GNU C library defines this for functions which it implements
18250 to always fail with ENOSYS. Some functions are actually named
18251 something starting with __ and the normal name is an alias. */
18252#if defined __stub_$ac_func || defined __stub___$ac_func
18253choke me
18254#endif
18255
18256int
18257main ()
18258{
18259return $ac_func ();
18260 ;
18261 return 0;
18262}
18263_ACEOF
18264rm -f conftest.$ac_objext conftest$ac_exeext
18265if { (ac_try="$ac_link"
18266case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18269esac
18270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_link") 2>conftest.er1
18272 ac_status=$?
18273 grep -v '^ *+' conftest.er1 >conftest.err
18274 rm -f conftest.er1
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18279 { (case "(($ac_try" in
18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18282esac
18283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284 (eval "$ac_try") 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try='test -s conftest$ac_exeext'
18289 { (case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18292esac
18293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_try") 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 eval "$as_ac_var=yes"
18299else
18300 echo "$as_me: failed program was:" >&5
18301sed 's/^/| /' conftest.$ac_ext >&5
18302
18303 eval "$as_ac_var=no"
18304fi
18305
18306rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
18308fi
18309ac_res=`eval echo '${'$as_ac_var'}'`
18310 { echo "$as_me:$LINENO: result: $ac_res" >&5
18311echo "${ECHO_T}$ac_res" >&6; }
18312if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018313 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018315_ACEOF
18316
18317fi
18318done
18319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018320{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18321echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18322if test "${llvm_cv_c_printf_a+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018324else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018325 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018326ac_cpp='$CPP $CPPFLAGS'
18327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18329ac_compiler_gnu=$ac_cv_c_compiler_gnu
18330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018331 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018332 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018334 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018336 /* confdefs.h. */
18337_ACEOF
18338cat confdefs.h >>conftest.$ac_ext
18339cat >>conftest.$ac_ext <<_ACEOF
18340/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018341
John Criswella0137d32003-10-13 16:22:01 +000018342#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018343#include <stdlib.h>
18344
John Criswella0137d32003-10-13 16:22:01 +000018345int
18346main ()
18347{
18348
Reid Spencer2706f8c2004-09-19 23:53:36 +000018349volatile double A, B;
18350char Buffer[100];
18351A = 1;
18352A /= 10.0;
18353sprintf(Buffer, "%a", A);
18354B = atof(Buffer);
18355if (A != B)
18356 return (1);
18357if (A != 0x1.999999999999ap-4)
18358 return (1);
18359return (0);
John Criswella0137d32003-10-13 16:22:01 +000018360 ;
18361 return 0;
18362}
18363_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018364rm -f conftest$ac_exeext
18365if { (ac_try="$ac_link"
18366case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18369esac
18370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_link") 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018384 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018386 echo "$as_me: program exited with status $ac_status" >&5
18387echo "$as_me: failed program was:" >&5
18388sed 's/^/| /' conftest.$ac_ext >&5
18389
18390( exit $ac_status )
18391llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018392fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018393rm -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 +000018394fi
Reid Spencera773bd52006-08-04 18:18:08 +000018395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018396
Reid Spencer2706f8c2004-09-19 23:53:36 +000018397 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018398ac_cpp='$CPP $CPPFLAGS'
18399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401ac_compiler_gnu=$ac_cv_c_compiler_gnu
18402
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018404{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18405echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018406 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018408cat >>confdefs.h <<\_ACEOF
18409#define HAVE_PRINTF_A 1
18410_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018411
Reid Spencer2706f8c2004-09-19 23:53:36 +000018412 fi
John Criswella0137d32003-10-13 16:22:01 +000018413
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018415{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18416echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18417if test "${ac_cv_func_rand48+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018419else
Reid Spencera773bd52006-08-04 18:18:08 +000018420 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018421ac_cpp='$CXXCPP $CPPFLAGS'
18422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018426 cat >conftest.$ac_ext <<_ACEOF
18427/* confdefs.h. */
18428_ACEOF
18429cat confdefs.h >>conftest.$ac_ext
18430cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018431/* end confdefs.h. */
18432#include <stdlib.h>
18433int
18434main ()
18435{
18436srand48(0);lrand48();drand48();
18437 ;
18438 return 0;
18439}
18440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018441rm -f conftest.$ac_objext
18442if { (ac_try="$ac_compile"
18443case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18446esac
18447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18448 (eval "$ac_compile") 2>conftest.er1
18449 ac_status=$?
18450 grep -v '^ *+' conftest.er1 >conftest.err
18451 rm -f conftest.er1
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
18455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18456 { (case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18459esac
18460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_try") 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; } &&
18465 { ac_try='test -s conftest.$ac_objext'
18466 { (case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18469esac
18470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18471 (eval "$ac_try") 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018475 ac_cv_func_rand48=yes
18476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018477 echo "$as_me: failed program was:" >&5
18478sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018482
Reid Spencera773bd52006-08-04 18:18:08 +000018483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018484 ac_ext=c
18485ac_cpp='$CPP $CPPFLAGS'
18486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489
18490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018491{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18492echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018493
18494if test "$ac_cv_func_rand48" = "yes" ; then
18495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018496cat >>confdefs.h <<\_ACEOF
18497#define HAVE_RAND48 1
18498_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018499
18500fi
John Criswell0021c312004-02-13 21:57:29 +000018501
18502
Torok Edwin871384f2010-01-26 08:50:50 +000018503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018504{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18505echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18506if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018508else
Reid Spencera773bd52006-08-04 18:18:08 +000018509 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018510ac_cpp='$CXXCPP $CPPFLAGS'
18511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018515 cat >conftest.$ac_ext <<_ACEOF
18516/* confdefs.h. */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018520/* end confdefs.h. */
18521#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018522int
18523main ()
18524{
18525float f; isnan(f);
18526 ;
18527 return 0;
18528}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018529_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018530rm -f conftest.$ac_objext
18531if { (ac_try="$ac_compile"
18532case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18535esac
18536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_compile") 2>conftest.er1
18538 ac_status=$?
18539 grep -v '^ *+' conftest.er1 >conftest.err
18540 rm -f conftest.er1
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } &&
18544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18545 { (case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548esac
18549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_try") 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; } &&
18554 { ac_try='test -s conftest.$ac_objext'
18555 { (case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18558esac
18559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_try") 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018564 ac_cv_func_isnan_in_math_h=yes
18565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018566 echo "$as_me: failed program was:" >&5
18567sed 's/^/| /' conftest.$ac_ext >&5
18568
18569 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018570fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018571
Reid Spencera773bd52006-08-04 18:18:08 +000018572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018573 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018574ac_cpp='$CPP $CPPFLAGS'
18575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577ac_compiler_gnu=$ac_cv_c_compiler_gnu
18578
18579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018580{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18581echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018582
18583
18584if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018586cat >>confdefs.h <<\_ACEOF
18587#define HAVE_ISNAN_IN_MATH_H 1
18588_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018589
Reid Spencerabec8f92004-10-27 23:03:44 +000018590fi
18591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018592{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18593echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18594if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018596else
Reid Spencera773bd52006-08-04 18:18:08 +000018597 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018598ac_cpp='$CXXCPP $CPPFLAGS'
18599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018603 cat >conftest.$ac_ext <<_ACEOF
18604/* confdefs.h. */
18605_ACEOF
18606cat confdefs.h >>conftest.$ac_ext
18607cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018608/* end confdefs.h. */
18609#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018610int
18611main ()
18612{
18613float f; isnan(f);
18614 ;
18615 return 0;
18616}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018617_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018618rm -f conftest.$ac_objext
18619if { (ac_try="$ac_compile"
18620case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18623esac
18624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_compile") 2>conftest.er1
18626 ac_status=$?
18627 grep -v '^ *+' conftest.er1 >conftest.err
18628 rm -f conftest.er1
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } &&
18632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18633 { (case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18636esac
18637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_try") 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try='test -s conftest.$ac_objext'
18643 { (case "(($ac_try" in
18644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18646esac
18647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648 (eval "$ac_try") 2>&5
18649 ac_status=$?
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018652 ac_cv_func_isnan_in_cmath=yes
18653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018654 echo "$as_me: failed program was:" >&5
18655sed 's/^/| /' conftest.$ac_ext >&5
18656
18657 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018659
Reid Spencera773bd52006-08-04 18:18:08 +000018660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018661 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018662ac_cpp='$CPP $CPPFLAGS'
18663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18665ac_compiler_gnu=$ac_cv_c_compiler_gnu
18666
18667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018668{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18669echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018670
18671if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018673cat >>confdefs.h <<\_ACEOF
18674#define HAVE_ISNAN_IN_CMATH 1
18675_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018676
Reid Spencerabec8f92004-10-27 23:03:44 +000018677fi
18678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018679{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18680echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18681if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018683else
Reid Spencera773bd52006-08-04 18:18:08 +000018684 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018685ac_cpp='$CXXCPP $CPPFLAGS'
18686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018690 cat >conftest.$ac_ext <<_ACEOF
18691/* confdefs.h. */
18692_ACEOF
18693cat confdefs.h >>conftest.$ac_ext
18694cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018695/* end confdefs.h. */
18696#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018697int
18698main ()
18699{
18700float f; std::isnan(f);
18701 ;
18702 return 0;
18703}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018704_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018705rm -f conftest.$ac_objext
18706if { (ac_try="$ac_compile"
18707case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18710esac
18711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_compile") 2>conftest.er1
18713 ac_status=$?
18714 grep -v '^ *+' conftest.er1 >conftest.err
18715 rm -f conftest.er1
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
18719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723esac
18724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; } &&
18729 { ac_try='test -s conftest.$ac_objext'
18730 { (case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18733esac
18734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_try") 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018739 ac_cv_func_std_isnan_in_cmath=yes
18740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018741 echo "$as_me: failed program was:" >&5
18742sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018746
Reid Spencera773bd52006-08-04 18:18:08 +000018747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018748 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018749ac_cpp='$CPP $CPPFLAGS'
18750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18752ac_compiler_gnu=$ac_cv_c_compiler_gnu
18753
18754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018755{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18756echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018757
18758if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018760cat >>confdefs.h <<\_ACEOF
18761#define HAVE_STD_ISNAN_IN_CMATH 1
18762_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018763
Reid Spencerabec8f92004-10-27 23:03:44 +000018764fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018765
18766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018767{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18768echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18769if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018771else
Reid Spencera773bd52006-08-04 18:18:08 +000018772 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018773ac_cpp='$CXXCPP $CPPFLAGS'
18774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018778 cat >conftest.$ac_ext <<_ACEOF
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018783/* end confdefs.h. */
18784#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018785int
18786main ()
18787{
18788float f; isinf(f);
18789 ;
18790 return 0;
18791}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018792_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018793rm -f conftest.$ac_objext
18794if { (ac_try="$ac_compile"
18795case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798esac
18799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_compile") 2>conftest.er1
18801 ac_status=$?
18802 grep -v '^ *+' conftest.er1 >conftest.err
18803 rm -f conftest.er1
18804 cat conftest.err >&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } &&
18807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18808 { (case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18811esac
18812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_try") 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; } &&
18817 { ac_try='test -s conftest.$ac_objext'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18821esac
18822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018827 ac_cv_func_isinf_in_math_h=yes
18828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018829 echo "$as_me: failed program was:" >&5
18830sed 's/^/| /' conftest.$ac_ext >&5
18831
18832 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018834
Reid Spencera773bd52006-08-04 18:18:08 +000018835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018836 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018837ac_cpp='$CPP $CPPFLAGS'
18838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18840ac_compiler_gnu=$ac_cv_c_compiler_gnu
18841
18842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018843{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18844echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018845
18846if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018848cat >>confdefs.h <<\_ACEOF
18849#define HAVE_ISINF_IN_MATH_H 1
18850_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018851
Reid Spencerabec8f92004-10-27 23:03:44 +000018852fi
18853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018854{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18855echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18856if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018858else
Reid Spencera773bd52006-08-04 18:18:08 +000018859 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018860ac_cpp='$CXXCPP $CPPFLAGS'
18861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018865 cat >conftest.$ac_ext <<_ACEOF
18866/* confdefs.h. */
18867_ACEOF
18868cat confdefs.h >>conftest.$ac_ext
18869cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018870/* end confdefs.h. */
18871#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018872int
18873main ()
18874{
18875float f; isinf(f);
18876 ;
18877 return 0;
18878}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018879_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018880rm -f conftest.$ac_objext
18881if { (ac_try="$ac_compile"
18882case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885esac
18886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_compile") 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
18894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18895 { (case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898esac
18899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest.$ac_objext'
18905 { (case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18908esac
18909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_try") 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018914 ac_cv_func_isinf_in_cmath=yes
18915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018916 echo "$as_me: failed program was:" >&5
18917sed 's/^/| /' conftest.$ac_ext >&5
18918
18919 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018921
Reid Spencera773bd52006-08-04 18:18:08 +000018922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018923 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018924ac_cpp='$CPP $CPPFLAGS'
18925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18927ac_compiler_gnu=$ac_cv_c_compiler_gnu
18928
18929fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018930{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18931echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018932
18933if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018935cat >>confdefs.h <<\_ACEOF
18936#define HAVE_ISINF_IN_CMATH 1
18937_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018938
Reid Spencerabec8f92004-10-27 23:03:44 +000018939fi
18940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018941{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18942echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18943if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018945else
Reid Spencera773bd52006-08-04 18:18:08 +000018946 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018947ac_cpp='$CXXCPP $CPPFLAGS'
18948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018952 cat >conftest.$ac_ext <<_ACEOF
18953/* confdefs.h. */
18954_ACEOF
18955cat confdefs.h >>conftest.$ac_ext
18956cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018957/* end confdefs.h. */
18958#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018959int
18960main ()
18961{
18962float f; std::isinf(f)}
18963 ;
18964 return 0;
18965}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018966_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018967rm -f conftest.$ac_objext
18968if { (ac_try="$ac_compile"
18969case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18972esac
18973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974 (eval "$ac_compile") 2>conftest.er1
18975 ac_status=$?
18976 grep -v '^ *+' conftest.er1 >conftest.err
18977 rm -f conftest.er1
18978 cat conftest.err >&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
18981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18982 { (case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18985esac
18986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_try") 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995esac
18996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019001 ac_cv_func_std_isinf_in_cmath=yes
19002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019003 echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019008
Reid Spencera773bd52006-08-04 18:18:08 +000019009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019010 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019011ac_cpp='$CPP $CPPFLAGS'
19012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19014ac_compiler_gnu=$ac_cv_c_compiler_gnu
19015
19016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019017{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19018echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019019
19020if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019022cat >>confdefs.h <<\_ACEOF
19023#define HAVE_STD_ISINF_IN_CMATH 1
19024_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019025
Reid Spencerabec8f92004-10-27 23:03:44 +000019026fi
19027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019028{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19029echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19030if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019032else
Reid Spencera773bd52006-08-04 18:18:08 +000019033 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019034ac_cpp='$CXXCPP $CPPFLAGS'
19035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019039 cat >conftest.$ac_ext <<_ACEOF
19040/* confdefs.h. */
19041_ACEOF
19042cat confdefs.h >>conftest.$ac_ext
19043cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019044/* end confdefs.h. */
19045#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019046int
19047main ()
19048{
19049float f; finite(f);
19050 ;
19051 return 0;
19052}
Brian Gaeked59a6472004-07-21 03:33:58 +000019053_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019054rm -f conftest.$ac_objext
19055if { (ac_try="$ac_compile"
19056case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059esac
19060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_compile") 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19069 { (case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19072esac
19073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_try") 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try='test -s conftest.$ac_objext'
19079 { (case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19082esac
19083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_try") 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019088 ac_cv_func_finite_in_ieeefp_h=yes
19089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019090 echo "$as_me: failed program was:" >&5
19091sed 's/^/| /' conftest.$ac_ext >&5
19092
19093 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019095
Reid Spencera773bd52006-08-04 18:18:08 +000019096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019097 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019098ac_cpp='$CPP $CPPFLAGS'
19099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101ac_compiler_gnu=$ac_cv_c_compiler_gnu
19102
19103fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019104{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19105echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019106
Brian Gaeke6802b552004-10-28 05:06:45 +000019107if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019109cat >>confdefs.h <<\_ACEOF
19110#define HAVE_FINITE_IN_IEEEFP_H 1
19111_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019112
Reid Spencerabec8f92004-10-27 23:03:44 +000019113fi
19114
19115
19116
Reid Spencer30fe5262007-01-20 07:48:49 +000019117if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019118
19119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019120for ac_header in stdlib.h unistd.h
19121do
19122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19128fi
19129ac_res=`eval echo '${'$as_ac_Header'}'`
19130 { echo "$as_me:$LINENO: result: $ac_res" >&5
19131echo "${ECHO_T}$ac_res" >&6; }
19132else
19133 # Is the header compilable?
19134{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19136cat >conftest.$ac_ext <<_ACEOF
19137/* confdefs.h. */
19138_ACEOF
19139cat confdefs.h >>conftest.$ac_ext
19140cat >>conftest.$ac_ext <<_ACEOF
19141/* end confdefs.h. */
19142$ac_includes_default
19143#include <$ac_header>
19144_ACEOF
19145rm -f conftest.$ac_objext
19146if { (ac_try="$ac_compile"
19147case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150esac
19151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19153 ac_status=$?
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
19159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19160 { (case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163esac
19164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_try") 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
19170 { (case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173esac
19174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_try") 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_header_compiler=yes
19180else
19181 echo "$as_me: failed program was:" >&5
19182sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019184 ac_header_compiler=no
19185fi
19186
19187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19189echo "${ECHO_T}$ac_header_compiler" >&6; }
19190
19191# Is the header present?
19192{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19194cat >conftest.$ac_ext <<_ACEOF
19195/* confdefs.h. */
19196_ACEOF
19197cat confdefs.h >>conftest.$ac_ext
19198cat >>conftest.$ac_ext <<_ACEOF
19199/* end confdefs.h. */
19200#include <$ac_header>
19201_ACEOF
19202if { (ac_try="$ac_cpp conftest.$ac_ext"
19203case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19206esac
19207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19209 ac_status=$?
19210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } >/dev/null; then
19215 if test -s conftest.err; then
19216 ac_cpp_err=$ac_c_preproc_warn_flag
19217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19218 else
19219 ac_cpp_err=
19220 fi
19221else
19222 ac_cpp_err=yes
19223fi
19224if test -z "$ac_cpp_err"; then
19225 ac_header_preproc=yes
19226else
19227 echo "$as_me: failed program was:" >&5
19228sed 's/^/| /' conftest.$ac_ext >&5
19229
19230 ac_header_preproc=no
19231fi
19232
19233rm -f conftest.err conftest.$ac_ext
19234{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19235echo "${ECHO_T}$ac_header_preproc" >&6; }
19236
19237# So? What about this header?
19238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19239 yes:no: )
19240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19244 ac_header_preproc=yes
19245 ;;
19246 no:yes:* )
19247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19259 ( cat <<\_ASBOX
19260## ----------------------------------- ##
19261## Report this to llvmbugs@cs.uiuc.edu ##
19262## ----------------------------------- ##
19263_ASBOX
19264 ) | sed "s/^/$as_me: WARNING: /" >&2
19265 ;;
19266esac
19267{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271else
19272 eval "$as_ac_Header=\$ac_header_preproc"
19273fi
19274ac_res=`eval echo '${'$as_ac_Header'}'`
19275 { echo "$as_me:$LINENO: result: $ac_res" >&5
19276echo "${ECHO_T}$ac_res" >&6; }
19277
19278fi
19279if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019280 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019282_ACEOF
19283
19284fi
19285
19286done
19287
19288
19289for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019290do
19291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19292{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19294if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19296else
19297 cat >conftest.$ac_ext <<_ACEOF
19298/* confdefs.h. */
19299_ACEOF
19300cat confdefs.h >>conftest.$ac_ext
19301cat >>conftest.$ac_ext <<_ACEOF
19302/* end confdefs.h. */
19303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19305#define $ac_func innocuous_$ac_func
19306
19307/* System header to define __stub macros and hopefully few prototypes,
19308 which can conflict with char $ac_func (); below.
19309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19310 <limits.h> exists even on freestanding compilers. */
19311
19312#ifdef __STDC__
19313# include <limits.h>
19314#else
19315# include <assert.h>
19316#endif
19317
19318#undef $ac_func
19319
19320/* Override any GCC internal prototype to avoid an error.
19321 Use char because int might match the return type of a GCC
19322 builtin and then its argument prototype would still apply. */
19323#ifdef __cplusplus
19324extern "C"
19325#endif
19326char $ac_func ();
19327/* The GNU C library defines this for functions which it implements
19328 to always fail with ENOSYS. Some functions are actually named
19329 something starting with __ and the normal name is an alias. */
19330#if defined __stub_$ac_func || defined __stub___$ac_func
19331choke me
19332#endif
19333
19334int
19335main ()
19336{
19337return $ac_func ();
19338 ;
19339 return 0;
19340}
19341_ACEOF
19342rm -f conftest.$ac_objext conftest$ac_exeext
19343if { (ac_try="$ac_link"
19344case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19347esac
19348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_link") 2>conftest.er1
19350 ac_status=$?
19351 grep -v '^ *+' conftest.er1 >conftest.err
19352 rm -f conftest.er1
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360esac
19361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest$ac_exeext'
19367 { (case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19370esac
19371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 eval "$as_ac_var=yes"
19377else
19378 echo "$as_me: failed program was:" >&5
19379sed 's/^/| /' conftest.$ac_ext >&5
19380
19381 eval "$as_ac_var=no"
19382fi
19383
19384rm -f core conftest.err conftest.$ac_objext \
19385 conftest$ac_exeext conftest.$ac_ext
19386fi
19387ac_res=`eval echo '${'$as_ac_var'}'`
19388 { echo "$as_me:$LINENO: result: $ac_res" >&5
19389echo "${ECHO_T}$ac_res" >&6; }
19390if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019391 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019393_ACEOF
19394
19395fi
19396done
19397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019398{ echo "$as_me:$LINENO: checking for working mmap" >&5
19399echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19400if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019403 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019404 ac_cv_func_mmap_fixed_mapped=no
19405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019406 cat >conftest.$ac_ext <<_ACEOF
19407/* confdefs.h. */
19408_ACEOF
19409cat confdefs.h >>conftest.$ac_ext
19410cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019412$ac_includes_default
19413/* malloc might have been renamed as rpl_malloc. */
19414#undef malloc
19415
19416/* Thanks to Mike Haertel and Jim Avera for this test.
19417 Here is a matrix of mmap possibilities:
19418 mmap private not fixed
19419 mmap private fixed at somewhere currently unmapped
19420 mmap private fixed at somewhere already mapped
19421 mmap shared not fixed
19422 mmap shared fixed at somewhere currently unmapped
19423 mmap shared fixed at somewhere already mapped
19424 For private mappings, we should verify that changes cannot be read()
19425 back from the file, nor mmap's back from the file at a different
19426 address. (There have been systems where private was not correctly
19427 implemented like the infamous i386 svr4.0, and systems where the
19428 VM page cache was not coherent with the file system buffer cache
19429 like early versions of FreeBSD and possibly contemporary NetBSD.)
19430 For shared mappings, we should conversely verify that changes get
19431 propagated back to all the places they're supposed to be.
19432
19433 Grep wants private fixed already mapped.
19434 The main things grep needs to know about mmap are:
19435 * does it exist and is it safe to write into the mmap'd area
19436 * how to use it (BSD variants) */
19437
19438#include <fcntl.h>
19439#include <sys/mman.h>
19440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019441#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019442char *malloc ();
19443#endif
19444
19445/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019446#if !HAVE_GETPAGESIZE
19447/* Assume that all systems that can run configure have sys/param.h. */
19448# if !HAVE_SYS_PARAM_H
19449# define HAVE_SYS_PARAM_H 1
19450# endif
19451
John Criswell7a73b802003-06-30 21:59:07 +000019452# ifdef _SC_PAGESIZE
19453# define getpagesize() sysconf(_SC_PAGESIZE)
19454# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019455# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019456# include <sys/param.h>
19457# ifdef EXEC_PAGESIZE
19458# define getpagesize() EXEC_PAGESIZE
19459# else /* no EXEC_PAGESIZE */
19460# ifdef NBPG
19461# define getpagesize() NBPG * CLSIZE
19462# ifndef CLSIZE
19463# define CLSIZE 1
19464# endif /* no CLSIZE */
19465# else /* no NBPG */
19466# ifdef NBPC
19467# define getpagesize() NBPC
19468# else /* no NBPC */
19469# ifdef PAGESIZE
19470# define getpagesize() PAGESIZE
19471# endif /* PAGESIZE */
19472# endif /* no NBPC */
19473# endif /* no NBPG */
19474# endif /* no EXEC_PAGESIZE */
19475# else /* no HAVE_SYS_PARAM_H */
19476# define getpagesize() 8192 /* punt totally */
19477# endif /* no HAVE_SYS_PARAM_H */
19478# endif /* no _SC_PAGESIZE */
19479
19480#endif /* no HAVE_GETPAGESIZE */
19481
19482int
19483main ()
19484{
19485 char *data, *data2, *data3;
19486 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019487 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019488
19489 pagesize = getpagesize ();
19490
19491 /* First, make a file with some known garbage in it. */
19492 data = (char *) malloc (pagesize);
19493 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019494 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019495 for (i = 0; i < pagesize; ++i)
19496 *(data + i) = rand ();
19497 umask (0);
19498 fd = creat ("conftest.mmap", 0600);
19499 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019500 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019501 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019502 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019503 close (fd);
19504
19505 /* Next, try to mmap the file at a fixed address which already has
19506 something else allocated at it. If we can, also make sure that
19507 we see the same garbage. */
19508 fd = open ("conftest.mmap", O_RDWR);
19509 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019510 return 1;
19511 data2 = (char *) malloc (2 * pagesize);
19512 if (!data2)
19513 return 1;
19514 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019515 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019516 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019517 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019518 for (i = 0; i < pagesize; ++i)
19519 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019520 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019521
19522 /* Finally, make sure that changes to the mapped area do not
19523 percolate back to the file as seen by read(). (This is a bug on
19524 some variants of i386 svr4.0.) */
19525 for (i = 0; i < pagesize; ++i)
19526 *(data2 + i) = *(data2 + i) + 1;
19527 data3 = (char *) malloc (pagesize);
19528 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019529 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019530 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019531 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019532 for (i = 0; i < pagesize; ++i)
19533 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019534 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019535 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019536 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019537}
19538_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019539rm -f conftest$ac_exeext
19540if { (ac_try="$ac_link"
19541case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19550 { (case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19553esac
19554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_try") 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019559 ac_cv_func_mmap_fixed_mapped=yes
19560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019561 echo "$as_me: program exited with status $ac_status" >&5
19562echo "$as_me: failed program was:" >&5
19563sed 's/^/| /' conftest.$ac_ext >&5
19564
19565( exit $ac_status )
19566ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019568rm -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 +000019569fi
Reid Spencera773bd52006-08-04 18:18:08 +000019570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019571
John Criswell7a73b802003-06-30 21:59:07 +000019572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019573{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19574echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019575if test $ac_cv_func_mmap_fixed_mapped = yes; then
19576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019577cat >>confdefs.h <<\_ACEOF
19578#define HAVE_MMAP 1
19579_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019580
19581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019582rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019584 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19585echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19586if test "${ac_cv_func_mmap_file+set}" = set; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019588else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019589 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019590ac_cpp='$CPP $CPPFLAGS'
19591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19593ac_compiler_gnu=$ac_cv_c_compiler_gnu
19594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019595 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019596 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019598 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019600 /* confdefs.h. */
19601_ACEOF
19602cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF
19604/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019605
John Criswell7a73b802003-06-30 21:59:07 +000019606#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019607#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019608#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019609
19610int
19611main ()
19612{
John Criswell7a73b802003-06-30 21:59:07 +000019613
19614 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019615 fd = creat ("foo",0777);
19616 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19617 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019618 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019619 ;
19620 return 0;
19621}
John Criswell7a73b802003-06-30 21:59:07 +000019622_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623rm -f conftest$ac_exeext
19624if { (ac_try="$ac_link"
19625case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628esac
19629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_link") 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637esac
19638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019643 ac_cv_func_mmap_file=yes
19644else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019645 echo "$as_me: program exited with status $ac_status" >&5
19646echo "$as_me: failed program was:" >&5
19647sed 's/^/| /' conftest.$ac_ext >&5
19648
19649( exit $ac_status )
19650ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019651fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019652rm -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 +000019653fi
Reid Spencera773bd52006-08-04 18:18:08 +000019654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019655
John Criswell7a73b802003-06-30 21:59:07 +000019656 ac_ext=c
19657ac_cpp='$CPP $CPPFLAGS'
19658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660ac_compiler_gnu=$ac_cv_c_compiler_gnu
19661
19662
19663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19665echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019666if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019668cat >>confdefs.h <<\_ACEOF
19669#define HAVE_MMAP_FILE
19670_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019671
19672 MMAP_FILE=yes
19673
19674fi
19675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19677echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19678if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019680else
Reid Spencer582a23c2004-12-29 07:07:57 +000019681 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019682 ac_cv_need_dev_zero_for_mmap=yes
19683 else
19684 ac_cv_need_dev_zero_for_mmap=no
19685 fi
19686
19687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019688{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19689echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019690if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019692cat >>confdefs.h <<\_ACEOF
19693#define NEED_DEV_ZERO_FOR_MMAP 1
19694_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019695
19696fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019697
Reid Spencer30fe5262007-01-20 07:48:49 +000019698 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19699 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019700 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19701echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019702 fi
19703 if test "$ac_cv_func_mmap_file" = "no"
19704 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019705 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19706echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019707 fi
John Criswellb13092b2003-07-22 21:00:24 +000019708fi
John Criswell7a73b802003-06-30 21:59:07 +000019709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019710{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19711echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19712cat >conftest.$ac_ext <<_ACEOF
19713/* confdefs.h. */
19714_ACEOF
19715cat confdefs.h >>conftest.$ac_ext
19716cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019717/* end confdefs.h. */
19718int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019719 volatile unsigned long val = 1;
19720 __sync_synchronize();
19721 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019722 __sync_add_and_fetch(&val, 1);
19723 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019724 return 0;
19725 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019726
19727_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019728rm -f conftest.$ac_objext conftest$ac_exeext
19729if { (ac_try="$ac_link"
19730case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733esac
19734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_link") 2>conftest.er1
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
19742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19743 { (case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746esac
19747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_try") 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; } &&
19752 { ac_try='test -s conftest$ac_exeext'
19753 { (case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19756esac
19757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_try") 2>&5
19759 ac_status=$?
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; }; then
19762 { echo "$as_me:$LINENO: result: yes" >&5
19763echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019765cat >>confdefs.h <<\_ACEOF
19766#define LLVM_MULTITHREADED 1
19767_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019768
Owen Andersond4b272b2009-05-18 23:58:51 +000019769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019770 echo "$as_me: failed program was:" >&5
19771sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019773 { echo "$as_me:$LINENO: result: no" >&5
19774echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019776cat >>confdefs.h <<\_ACEOF
19777#define LLVM_MULTITHREADED 0
19778_ACEOF
19779
19780 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19781echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019782fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019783
Owen Andersond4b272b2009-05-18 23:58:51 +000019784rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019785 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019786
19787
John Criswell7a73b802003-06-30 21:59:07 +000019788
Nick Lewycky4372e692009-09-29 06:18:23 +000019789if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019790 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19791echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19792if test "${llvm_cv_linux_mixed+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019794else
19795 ac_ext=c
19796ac_cpp='$CPP $CPPFLAGS'
19797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19799ac_compiler_gnu=$ac_cv_c_compiler_gnu
19800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019801 cat >conftest.$ac_ext <<_ACEOF
19802/* confdefs.h. */
19803_ACEOF
19804cat confdefs.h >>conftest.$ac_ext
19805cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019806/* end confdefs.h. */
19807#ifndef __x86_64__
19808 error: Not x86-64 even if uname says so!
19809 #endif
19810
19811int
19812main ()
19813{
19814
19815 ;
19816 return 0;
19817}
19818_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019819rm -f conftest.$ac_objext
19820if { (ac_try="$ac_compile"
19821case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19824esac
19825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
19833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19834 { (case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837esac
19838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_try") 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest.$ac_objext'
19844 { (case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847esac
19848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_try") 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019853 llvm_cv_linux_mixed=no
19854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019855 echo "$as_me: failed program was:" >&5
19856sed 's/^/| /' conftest.$ac_ext >&5
19857
19858 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019860
Nick Lewycky4372e692009-09-29 06:18:23 +000019861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862 ac_ext=c
19863ac_cpp='$CPP $CPPFLAGS'
19864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867
19868
19869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19871echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019872
19873 if test "$llvm_cv_linux_mixed" = "yes"; then
19874 llvm_cv_target_arch="x86"
19875 ARCH="x86"
19876 fi
19877fi
19878
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019879
Reid Spencer9372f152007-07-30 20:13:24 +000019880for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019881do
19882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19883{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19885if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19887else
19888 cat >conftest.$ac_ext <<_ACEOF
19889/* confdefs.h. */
19890_ACEOF
19891cat confdefs.h >>conftest.$ac_ext
19892cat >>conftest.$ac_ext <<_ACEOF
19893/* end confdefs.h. */
19894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19896#define $ac_func innocuous_$ac_func
19897
19898/* System header to define __stub macros and hopefully few prototypes,
19899 which can conflict with char $ac_func (); below.
19900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19901 <limits.h> exists even on freestanding compilers. */
19902
19903#ifdef __STDC__
19904# include <limits.h>
19905#else
19906# include <assert.h>
19907#endif
19908
19909#undef $ac_func
19910
19911/* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19914#ifdef __cplusplus
19915extern "C"
19916#endif
19917char $ac_func ();
19918/* The GNU C library defines this for functions which it implements
19919 to always fail with ENOSYS. Some functions are actually named
19920 something starting with __ and the normal name is an alias. */
19921#if defined __stub_$ac_func || defined __stub___$ac_func
19922choke me
19923#endif
19924
19925int
19926main ()
19927{
19928return $ac_func ();
19929 ;
19930 return 0;
19931}
19932_ACEOF
19933rm -f conftest.$ac_objext conftest$ac_exeext
19934if { (ac_try="$ac_link"
19935case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938esac
19939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_link") 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
19947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19948 { (case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19951esac
19952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_try") 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest$ac_exeext'
19958 { (case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961esac
19962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_try") 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 eval "$as_ac_var=yes"
19968else
19969 echo "$as_me: failed program was:" >&5
19970sed 's/^/| /' conftest.$ac_ext >&5
19971
19972 eval "$as_ac_var=no"
19973fi
19974
19975rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19977fi
19978ac_res=`eval echo '${'$as_ac_var'}'`
19979 { echo "$as_me:$LINENO: result: $ac_res" >&5
19980echo "${ECHO_T}$ac_res" >&6; }
19981if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019982 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019983#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019984_ACEOF
19985
19986fi
19987done
19988
19989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019990{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19991echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19992if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019994else
19995 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019996if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019997 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019998 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19999 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020000 if test $? -eq 0 ; then
20001 llvm_cv_llvmgcc_sanity="yes"
20002 fi
20003 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020004fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020006{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20007echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020008
20009if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020010 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20011echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020012 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020013 LLVMCC1=$llvmcc1path
20014
Reid Spencer502935f2004-12-22 05:56:56 +000020015 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020016 LLVMCC1PLUS=$llvmcc1pluspath
20017
Reid Spencer502935f2004-12-22 05:56:56 +000020018 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20019 LLVMGCCDIR=$llvmgccdir
20020
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020021 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020022 LLVMGCC_LANGS=$llvmgcclangs
20023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020024 { echo "$as_me:$LINENO: result: ok" >&5
20025echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020026fi
20027
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020028SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020029
20030
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020031SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20032
20033
Reid Spencere9de0912004-08-20 09:03:57 +000020034# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020035# information into substitutions that will end up in Makefile.config.in
20036# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020037if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020038 prefix="/usr/local"
20039fi
Reid Spencere9de0912004-08-20 09:03:57 +000020040eval LLVM_PREFIX="${prefix}";
20041eval LLVM_BINDIR="${prefix}/bin";
20042eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020043eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020044eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020045eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020046eval LLVM_INCLUDEDIR="${prefix}/include";
20047eval LLVM_INFODIR="${prefix}/info";
20048eval LLVM_MANDIR="${prefix}/man";
20049LLVM_CONFIGTIME=`date`
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020061# Place the various directores into the config.h file as #defines so that we
20062# can know about the installation paths within LLVM.
20063
Reid Spencere9de0912004-08-20 09:03:57 +000020064cat >>confdefs.h <<_ACEOF
20065#define LLVM_PREFIX "$LLVM_PREFIX"
20066_ACEOF
20067
20068
20069cat >>confdefs.h <<_ACEOF
20070#define LLVM_BINDIR "$LLVM_BINDIR"
20071_ACEOF
20072
20073
20074cat >>confdefs.h <<_ACEOF
20075#define LLVM_LIBDIR "$LLVM_LIBDIR"
20076_ACEOF
20077
20078
20079cat >>confdefs.h <<_ACEOF
20080#define LLVM_DATADIR "$LLVM_DATADIR"
20081_ACEOF
20082
20083
20084cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020085#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020086_ACEOF
20087
20088
20089cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020090#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020091_ACEOF
20092
20093
20094cat >>confdefs.h <<_ACEOF
20095#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20096_ACEOF
20097
20098
20099cat >>confdefs.h <<_ACEOF
20100#define LLVM_INFODIR "$LLVM_INFODIR"
20101_ACEOF
20102
20103
20104cat >>confdefs.h <<_ACEOF
20105#define LLVM_MANDIR "$LLVM_MANDIR"
20106_ACEOF
20107
20108
20109cat >>confdefs.h <<_ACEOF
20110#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20111_ACEOF
20112
20113
Eric Christopher790e11c2007-12-01 00:34:39 +000020114cat >>confdefs.h <<_ACEOF
20115#define LLVM_HOSTTRIPLE "$host"
20116_ACEOF
20117
20118
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020119# Determine which bindings to build.
20120if test "$BINDINGS_TO_BUILD" = auto ; then
20121 BINDINGS_TO_BUILD=""
20122 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20123 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20124 fi
20125fi
20126BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20127
20128
20129# This isn't really configurey, but it avoids having to repeat the list in
20130# other files.
20131ALL_BINDINGS=ocaml
20132
20133
Gordon Henriksenf0915682007-10-02 16:42:22 +000020134# Do any work necessary to ensure that bindings have what they need.
20135binding_prereqs_failed=0
20136for a_binding in $BINDINGS_TO_BUILD ; do
20137 case "$a_binding" in
20138 ocaml)
20139 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020140 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20141echo "$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 +000020142 binding_prereqs_failed=1
20143 fi
20144 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020145 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20146echo "$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 +000020147 binding_prereqs_failed=1
20148 fi
20149 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020150 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20151echo "$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 +000020152 fi
20153 if test "x$with_ocaml_libdir" != xauto ; then
20154 OCAML_LIBDIR=$with_ocaml_libdir
20155
20156 else
20157 ocaml_stdlib="`"$OCAMLC" -where`"
20158 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20159 then
20160 # ocaml stdlib is beneath our prefix; use stdlib
20161 OCAML_LIBDIR=$ocaml_stdlib
20162
20163 else
20164 # ocaml stdlib is outside our prefix; use libdir/ocaml
20165 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20166
20167 fi
20168 fi
20169 ;;
20170 esac
20171done
20172if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020173 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20174echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20175 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020176fi
20177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020178{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20179echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20180if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020182else
20183 ac_ext=cpp
20184ac_cpp='$CXXCPP $CPPFLAGS'
20185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20188
20189 oldcxxflags="$CXXFLAGS"
20190 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020191 cat >conftest.$ac_ext <<_ACEOF
20192/* confdefs.h. */
20193_ACEOF
20194cat confdefs.h >>conftest.$ac_ext
20195cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020196/* end confdefs.h. */
20197
20198int
20199main ()
20200{
20201
20202 ;
20203 return 0;
20204}
20205_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020206rm -f conftest.$ac_objext
20207if { (ac_try="$ac_compile"
20208case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211esac
20212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_compile") 2>conftest.er1
20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
20220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try='test -s conftest.$ac_objext'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234esac
20235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020240 llvm_cv_cxx_visibility_inlines_hidden=yes
20241else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020242 echo "$as_me: failed program was:" >&5
20243sed 's/^/| /' conftest.$ac_ext >&5
20244
20245 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020247
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249 CXXFLAGS="$oldcxxflags"
20250 ac_ext=c
20251ac_cpp='$CPP $CPPFLAGS'
20252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20254ac_compiler_gnu=$ac_cv_c_compiler_gnu
20255
20256
20257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020258{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20259echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020260if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20261 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20262
20263else
20264 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20265
20266fi
20267
Gordon Henriksenf0915682007-10-02 16:42:22 +000020268
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020269if test "$llvm_cv_link_use_r" = "yes" ; then
20270 RPATH="-Wl,-R"
20271else
20272 RPATH="-Wl,-rpath"
20273fi
20274
20275
20276if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20277 RDYNAMIC="-Wl,-export-dynamic"
20278else
20279 RDYNAMIC=""
20280fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020281
20282
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020283
Reid Spencera773bd52006-08-04 18:18:08 +000020284ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020285
Douglas Gregor1555a232009-06-16 20:12:29 +000020286ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20287
20288ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20289
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020290ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20291
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020292ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20293
Chandler Carruth8b67f772009-10-26 01:35:46 +000020294ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020295
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020296
Reid Spencera773bd52006-08-04 18:18:08 +000020297ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020298
20299
Reid Spencerea949cf2006-08-16 00:45:38 +000020300ac_config_files="$ac_config_files llvm.spec"
20301
20302
Reid Spencera773bd52006-08-04 18:18:08 +000020303ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000020304
20305
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020306ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20307
20308
Reid Spencera773bd52006-08-04 18:18:08 +000020309ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020310
20311
Reid Spencera773bd52006-08-04 18:18:08 +000020312ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020313
Reid Spencera773bd52006-08-04 18:18:08 +000020314ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020315
20316
Reid Spencera773bd52006-08-04 18:18:08 +000020317ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020318
20319
Reid Spencera773bd52006-08-04 18:18:08 +000020320ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020321
20322
Reid Spencera773bd52006-08-04 18:18:08 +000020323ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020324
20325
Reid Spencer8b2e1412006-11-17 03:32:33 +000020326ac_config_commands="$ac_config_commands runtime/Makefile"
20327
20328
Reid Spencera773bd52006-08-04 18:18:08 +000020329ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020330
20331
Reid Spencera773bd52006-08-04 18:18:08 +000020332ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020333
20334
Bill Wendlingf24eb392009-01-04 23:12:30 +000020335ac_config_commands="$ac_config_commands unittests/Makefile"
20336
20337
Reid Spencera773bd52006-08-04 18:18:08 +000020338ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020339
20340
Reid Spencera773bd52006-08-04 18:18:08 +000020341ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020342
20343
Reid Spencera773bd52006-08-04 18:18:08 +000020344ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020345
20346
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020347ac_config_commands="$ac_config_commands bindings/Makefile"
20348
20349
20350ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20351
20352
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020353
John Criswell7a73b802003-06-30 21:59:07 +000020354cat >confcache <<\_ACEOF
20355# This file is a shell script that caches the results of configure
20356# tests run on this system so they can be shared between configure
20357# scripts and configure runs, see configure's option --config-cache.
20358# It is not useful on other systems. If it contains results you don't
20359# want to keep, you may remove or edit it.
20360#
20361# config.status only pays attention to the cache file if you give it
20362# the --recheck option to rerun configure.
20363#
John Criswell0c38eaf2003-09-10 15:17:25 +000020364# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020365# loading this file, other *unset* `ac_cv_foo' will be assigned the
20366# following values.
20367
20368_ACEOF
20369
20370# The following way of writing the cache mishandles newlines in values,
20371# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020372# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020373# Ultrix sh set writes to stderr and can't be redirected directly,
20374# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020375(
20376 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20377 eval ac_val=\$$ac_var
20378 case $ac_val in #(
20379 *${as_nl}*)
20380 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020381 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20382echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020383 esac
20384 case $ac_var in #(
20385 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020386 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020387 esac ;;
20388 esac
20389 done
20390
John Criswell7a73b802003-06-30 21:59:07 +000020391 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020392 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20393 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394 # `set' does not quote correctly, so add quotes (double-quote
20395 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020396 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020397 "s/'/'\\\\''/g;
20398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020399 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020400 *)
20401 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020403 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020404 esac |
20405 sort
20406) |
John Criswell7a73b802003-06-30 21:59:07 +000020407 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020408 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020409 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020410 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20412 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20414 :end' >>confcache
20415if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20416 if test -w "$cache_file"; then
20417 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020418 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20419echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020420 cat confcache >$cache_file
20421 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020422 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20423echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020424 fi
20425fi
20426rm -f confcache
20427
20428test "x$prefix" = xNONE && prefix=$ac_default_prefix
20429# Let make expand exec_prefix.
20430test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20431
John Criswell7a73b802003-06-30 21:59:07 +000020432DEFS=-DHAVE_CONFIG_H
20433
John Criswell0c38eaf2003-09-10 15:17:25 +000020434ac_libobjs=
20435ac_ltlibobjs=
20436for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20437 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020438 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020439 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020440 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20441 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020442 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20443 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020444done
20445LIBOBJS=$ac_libobjs
20446
20447LTLIBOBJS=$ac_ltlibobjs
20448
20449
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020450if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020451 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20452Usually this means the macro was only invoked conditionally." >&5
20453echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20454Usually this means the macro was only invoked conditionally." >&2;}
20455 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020456fi
20457if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020458 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20459Usually this means the macro was only invoked conditionally." >&5
20460echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20461Usually this means the macro was only invoked conditionally." >&2;}
20462 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020463fi
John Criswell7a73b802003-06-30 21:59:07 +000020464
20465: ${CONFIG_STATUS=./config.status}
20466ac_clean_files_save=$ac_clean_files
20467ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020468{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20469echo "$as_me: creating $CONFIG_STATUS" >&6;}
20470cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020471#! $SHELL
20472# Generated by $as_me.
20473# Run this file to recreate the current configuration.
20474# Compiler output produced by configure, useful for debugging
20475# configure, is in config.log if it exists.
20476
20477debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020478ac_cs_recheck=false
20479ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020480SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020483cat >>$CONFIG_STATUS <<\_ACEOF
20484## --------------------- ##
20485## M4sh Initialization. ##
20486## --------------------- ##
20487
20488# Be Bourne compatible
20489if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020490 emulate sh
20491 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020492 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020493 # is contrary to our usage. Disable this feature.
20494 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020495 setopt NO_GLOB_SUBST
20496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020497 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020499BIN_SH=xpg4; export BIN_SH # for Tru64
20500DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020501
John Criswell7a73b802003-06-30 21:59:07 +000020502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020503# PATH needs CR
20504# Avoid depending upon Character Ranges.
20505as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20506as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20507as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20508as_cr_digits='0123456789'
20509as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020510
20511# The user is always right.
20512if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020513 echo "#! /bin/sh" >conf$$.sh
20514 echo "exit 0" >>conf$$.sh
20515 chmod +x conf$$.sh
20516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20517 PATH_SEPARATOR=';'
20518 else
20519 PATH_SEPARATOR=:
20520 fi
20521 rm -f conf$$.sh
20522fi
20523
20524# Support unset when possible.
20525if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20526 as_unset=unset
20527else
20528 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020529fi
John Criswell7a73b802003-06-30 21:59:07 +000020530
Reid Spencera773bd52006-08-04 18:18:08 +000020531
20532# IFS
20533# We need space, tab and new line, in precisely that order. Quoting is
20534# there to prevent editors from complaining about space-tab.
20535# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20536# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020537as_nl='
20538'
Reid Spencera773bd52006-08-04 18:18:08 +000020539IFS=" "" $as_nl"
20540
20541# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020542case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020543 *[\\/]* ) as_myself=$0 ;;
20544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020545for as_dir in $PATH
20546do
20547 IFS=$as_save_IFS
20548 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20550done
Reid Spencera773bd52006-08-04 18:18:08 +000020551IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020552
Reid Spencera773bd52006-08-04 18:18:08 +000020553 ;;
20554esac
20555# We did not find ourselves, most probably we were run as `sh COMMAND'
20556# in which case we are not to be found in the path.
20557if test "x$as_myself" = x; then
20558 as_myself=$0
20559fi
20560if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020561 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20562 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020563fi
20564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020565# Work around bugs in pre-3.0 UWIN ksh.
20566for as_var in ENV MAIL MAILPATH
20567do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020568done
20569PS1='$ '
20570PS2='> '
20571PS4='+ '
20572
20573# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574for as_var in \
20575 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20576 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20577 LC_TELEPHONE LC_TIME
20578do
20579 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20580 eval $as_var=C; export $as_var
20581 else
20582 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020583 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020584done
Torok Edwin871384f2010-01-26 08:50:50 +000020585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020587if expr a : '\(a\)' >/dev/null 2>&1 &&
20588 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20589 as_expr=expr
20590else
20591 as_expr=false
20592fi
20593
20594if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20595 as_basename=basename
20596else
20597 as_basename=false
20598fi
20599
20600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020601# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020602as_me=`$as_basename -- "$0" ||
20603$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20604 X"$0" : 'X\(//\)$' \| \
20605 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020606echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020607 sed '/^.*\/\([^/][^/]*\)\/*$/{
20608 s//\1/
20609 q
20610 }
20611 /^X\/\(\/\/\)$/{
20612 s//\1/
20613 q
20614 }
20615 /^X\/\(\/\).*/{
20616 s//\1/
20617 q
20618 }
20619 s/.*/./; q'`
20620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020621# CDPATH.
20622$as_unset CDPATH
20623
20624
20625
20626 as_lineno_1=$LINENO
20627 as_lineno_2=$LINENO
20628 test "x$as_lineno_1" != "x$as_lineno_2" &&
20629 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20630
20631 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20632 # uniformly replaced by the line number. The first 'sed' inserts a
20633 # line-number line after each line using $LINENO; the second 'sed'
20634 # does the real work. The second script uses 'N' to pair each
20635 # line-number line with the line containing $LINENO, and appends
20636 # trailing '-' during substitution so that $LINENO is not a special
20637 # case at line end.
20638 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20639 # scripts with optimization help from Paolo Bonzini. Blame Lee
20640 # E. McMahon (1931-1989) for sed's syntax. :-)
20641 sed -n '
20642 p
20643 /[$]LINENO/=
20644 ' <$as_myself |
20645 sed '
20646 s/[$]LINENO.*/&-/
20647 t lineno
20648 b
20649 :lineno
20650 N
20651 :loop
20652 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20653 t loop
20654 s/-\n.*//
20655 ' >$as_me.lineno &&
20656 chmod +x "$as_me.lineno" ||
20657 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20658 { (exit 1); exit 1; }; }
20659
20660 # Don't try to exec as it changes $[0], causing all sort of problems
20661 # (the dirname of $[0] is not the place where we might find the
20662 # original and so on. Autoconf is especially sensitive to this).
20663 . "./$as_me.lineno"
20664 # Exit status is that of the last command.
20665 exit
20666}
20667
20668
20669if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20670 as_dirname=dirname
20671else
20672 as_dirname=false
20673fi
Reid Spencera773bd52006-08-04 18:18:08 +000020674
20675ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020676case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020677-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020678 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020679 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020681 esac;;
20682*)
20683 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020684esac
20685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020686if expr a : '\(a\)' >/dev/null 2>&1 &&
20687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20688 as_expr=expr
20689else
20690 as_expr=false
20691fi
20692
John Criswell7a73b802003-06-30 21:59:07 +000020693rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020694if test -d conf$$.dir; then
20695 rm -f conf$$.dir/conf$$.file
20696else
20697 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020698 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020699fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020700echo >conf$$.file
20701if ln -s conf$$.file conf$$ 2>/dev/null; then
20702 as_ln_s='ln -s'
20703 # ... but there are two gotchas:
20704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20706 # In both cases, we have to default to `cp -p'.
20707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020708 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020709elif ln conf$$.file conf$$ 2>/dev/null; then
20710 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020711else
20712 as_ln_s='cp -p'
20713fi
Reid Spencera773bd52006-08-04 18:18:08 +000020714rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20715rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020716
John Criswell0c38eaf2003-09-10 15:17:25 +000020717if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020718 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020719else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020720 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020721 as_mkdir_p=false
20722fi
20723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020724# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20725# systems may use methods other than mode bits to determine executability.
20726cat >conf$$.file <<_ASEOF
20727#! /bin/sh
20728exit 0
20729_ASEOF
20730chmod +x conf$$.file
20731if test -x conf$$.file >/dev/null 2>&1; then
20732 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020734 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020736rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020737
20738# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020739as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020740
20741# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020742as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020743
20744
John Criswell7a73b802003-06-30 21:59:07 +000020745exec 6>&1
20746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020747# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020748# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020749# values after options handling.
20750ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020751This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020752generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020753
20754 CONFIG_FILES = $CONFIG_FILES
20755 CONFIG_HEADERS = $CONFIG_HEADERS
20756 CONFIG_LINKS = $CONFIG_LINKS
20757 CONFIG_COMMANDS = $CONFIG_COMMANDS
20758 $ $0 $@
20759
Reid Spencera773bd52006-08-04 18:18:08 +000020760on `(hostname || uname -n) 2>/dev/null | sed 1q`
20761"
20762
John Criswell7a73b802003-06-30 21:59:07 +000020763_ACEOF
20764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020765cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020766# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020767config_files="$ac_config_files"
20768config_headers="$ac_config_headers"
20769config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020770
Reid Spencera773bd52006-08-04 18:18:08 +000020771_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020773cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020774ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020775\`$as_me' instantiates files from templates according to the
20776current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020779
20780 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020781 -V, --version print version number, then exit
20782 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020783 -d, --debug don't remove temporary files
20784 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020785 --file=FILE[:TEMPLATE]
20786 instantiate the configuration file FILE
20787 --header=FILE[:TEMPLATE]
20788 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020789
20790Configuration files:
20791$config_files
20792
20793Configuration headers:
20794$config_headers
20795
John Criswellc764fbc2003-09-06 15:17:13 +000020796Configuration commands:
20797$config_commands
20798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020800
Reid Spencera773bd52006-08-04 18:18:08 +000020801_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020802cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020803ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020804llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020805configured by $0, generated by GNU Autoconf 2.60,
20806 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020808Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020809This config.status script is free software; the Free Software Foundation
20810gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020811
20812ac_pwd='$ac_pwd'
20813srcdir='$srcdir'
20814INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020815_ACEOF
20816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020817cat >>$CONFIG_STATUS <<\_ACEOF
20818# If no file are specified by the user, then we need to provide default
20819# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020820ac_need_defaults=:
20821while test $# != 0
20822do
20823 case $1 in
20824 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020827 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020828 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020829 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020830 ac_option=$1
20831 ac_optarg=$2
20832 ac_shift=shift
20833 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020834 esac
20835
John Criswell0c38eaf2003-09-10 15:17:25 +000020836 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020837 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020838 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20839 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020840 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020841 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020842 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020843 debug=: ;;
20844 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020845 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020846 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020847 ac_need_defaults=false;;
20848 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020849 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020851 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020852 --he | --h)
20853 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020854 { echo "$as_me: error: ambiguous option: $1
20855Try \`$0 --help' for more information." >&2
20856 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020857 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020858 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20860 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20861 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020862
20863 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020864 -*) { echo "$as_me: error: unrecognized option: $1
20865Try \`$0 --help' for more information." >&2
20866 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020868 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020869 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020870
20871 esac
20872 shift
20873done
20874
John Criswell0c38eaf2003-09-10 15:17:25 +000020875ac_configure_extra_args=
20876
20877if $ac_cs_silent; then
20878 exec 6>/dev/null
20879 ac_configure_extra_args="$ac_configure_extra_args --silent"
20880fi
20881
20882_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020883cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020884if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020885 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20886 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020887 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020888 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020889fi
20890
John Criswell7a73b802003-06-30 21:59:07 +000020891_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020892cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020893exec 5>>config.log
20894{
20895 echo
20896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20897## Running $as_me. ##
20898_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020899 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020900} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020901
Reid Spencera773bd52006-08-04 18:18:08 +000020902_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020903cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020904#
Reid Spencera773bd52006-08-04 18:18:08 +000020905# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020906#
Reid Spencerc0682832005-02-24 19:05:19 +000020907llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020908
20909_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020911cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020912
20913# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020914for ac_config_target in $ac_config_targets
20915do
Reid Spencera773bd52006-08-04 18:18:08 +000020916 case $ac_config_target in
20917 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020918 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20919 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020920 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020921 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020922 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020923 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020924 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020925 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020926 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020927 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20928 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20929 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20930 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20931 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20932 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020933 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020934 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20935 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020936 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020937 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20938 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20939 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020940 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20941 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020943 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20944echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20945 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020946 esac
20947done
20948
Reid Spencera773bd52006-08-04 18:18:08 +000020949
John Criswell7a73b802003-06-30 21:59:07 +000020950# If the user did not use the arguments to specify the items to instantiate,
20951# then the envvar interface is used. Set only those that are not.
20952# We use the long form for the default assignment because of an extremely
20953# bizarre bug on SunOS 4.1.3.
20954if $ac_need_defaults; then
20955 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20956 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020957 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020958fi
20959
John Criswell0c38eaf2003-09-10 15:17:25 +000020960# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020961# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020962# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020963# Hook for its removal unless debugging.
20964# Note that there is a small window in which the directory will not be cleaned:
20965# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020966$debug ||
20967{
Reid Spencera773bd52006-08-04 18:18:08 +000020968 tmp=
20969 trap 'exit_status=$?
20970 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20971' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020972 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020973}
John Criswell7a73b802003-06-30 21:59:07 +000020974# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020975
John Criswell7a73b802003-06-30 21:59:07 +000020976{
Reid Spencera773bd52006-08-04 18:18:08 +000020977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020978 test -n "$tmp" && test -d "$tmp"
20979} ||
20980{
Reid Spencera773bd52006-08-04 18:18:08 +000020981 tmp=./conf$$-$RANDOM
20982 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020983} ||
20984{
20985 echo "$me: cannot create a temporary directory in ." >&2
20986 { (exit 1); exit 1; }
20987}
John Criswell7a73b802003-06-30 21:59:07 +000020988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020989#
20990# Set up the sed scripts for CONFIG_FILES section.
20991#
20992
20993# No need to generate the scripts if there are no CONFIG_FILES.
20994# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020995if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020996
20997_ACEOF
20998
Reid Spencera773bd52006-08-04 18:18:08 +000020999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021000
Reid Spencera773bd52006-08-04 18:18:08 +000021001ac_delim='%!_!# '
21002for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021003 cat >conf$$subs.sed <<_ACEOF
21004SHELL!$SHELL$ac_delim
21005PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21006PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21007PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21008PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21009PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21010PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21011exec_prefix!$exec_prefix$ac_delim
21012prefix!$prefix$ac_delim
21013program_transform_name!$program_transform_name$ac_delim
21014bindir!$bindir$ac_delim
21015sbindir!$sbindir$ac_delim
21016libexecdir!$libexecdir$ac_delim
21017datarootdir!$datarootdir$ac_delim
21018datadir!$datadir$ac_delim
21019sysconfdir!$sysconfdir$ac_delim
21020sharedstatedir!$sharedstatedir$ac_delim
21021localstatedir!$localstatedir$ac_delim
21022includedir!$includedir$ac_delim
21023oldincludedir!$oldincludedir$ac_delim
21024docdir!$docdir$ac_delim
21025infodir!$infodir$ac_delim
21026htmldir!$htmldir$ac_delim
21027dvidir!$dvidir$ac_delim
21028pdfdir!$pdfdir$ac_delim
21029psdir!$psdir$ac_delim
21030libdir!$libdir$ac_delim
21031localedir!$localedir$ac_delim
21032mandir!$mandir$ac_delim
21033DEFS!$DEFS$ac_delim
21034ECHO_C!$ECHO_C$ac_delim
21035ECHO_N!$ECHO_N$ac_delim
21036ECHO_T!$ECHO_T$ac_delim
21037LIBS!$LIBS$ac_delim
21038build_alias!$build_alias$ac_delim
21039host_alias!$host_alias$ac_delim
21040target_alias!$target_alias$ac_delim
21041LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21042subdirs!$subdirs$ac_delim
21043build!$build$ac_delim
21044build_cpu!$build_cpu$ac_delim
21045build_vendor!$build_vendor$ac_delim
21046build_os!$build_os$ac_delim
21047host!$host$ac_delim
21048host_cpu!$host_cpu$ac_delim
21049host_vendor!$host_vendor$ac_delim
21050host_os!$host_os$ac_delim
21051target!$target$ac_delim
21052target_cpu!$target_cpu$ac_delim
21053target_vendor!$target_vendor$ac_delim
21054target_os!$target_os$ac_delim
21055OS!$OS$ac_delim
21056HOST_OS!$HOST_OS$ac_delim
21057TARGET_OS!$TARGET_OS$ac_delim
21058LINKALL!$LINKALL$ac_delim
21059NOLINKALL!$NOLINKALL$ac_delim
21060LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21061LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21062ARCH!$ARCH$ac_delim
21063ENDIAN!$ENDIAN$ac_delim
21064CC!$CC$ac_delim
21065CFLAGS!$CFLAGS$ac_delim
21066LDFLAGS!$LDFLAGS$ac_delim
21067CPPFLAGS!$CPPFLAGS$ac_delim
21068ac_ct_CC!$ac_ct_CC$ac_delim
21069EXEEXT!$EXEEXT$ac_delim
21070OBJEXT!$OBJEXT$ac_delim
21071CPP!$CPP$ac_delim
21072GREP!$GREP$ac_delim
21073EGREP!$EGREP$ac_delim
21074LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21075BUILD_CC!$BUILD_CC$ac_delim
21076BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21077BUILD_CXX!$BUILD_CXX$ac_delim
21078CVSBUILD!$CVSBUILD$ac_delim
21079ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21080ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21081DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21082ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21083EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21084DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21085DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21086JIT!$JIT$ac_delim
21087TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21088ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21089ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21090ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021091ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21093LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21094LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21095LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21096LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21097ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021098CLANGPATH!$CLANGPATH$ac_delim
21099CLANGXXPATH!$CLANGXXPATH$ac_delim
21100ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021101_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021103 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021104 break
21105 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021106 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21107echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21108 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021109 else
21110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021111 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021112done
21113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021114ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21115if test -n "$ac_eof"; then
21116 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21117 ac_eof=`expr $ac_eof + 1`
21118fi
21119
21120cat >>$CONFIG_STATUS <<_ACEOF
21121cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021124sed '
21125s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21126s/^/s,@/; s/!/@,|#_!!_#|/
21127:n
21128t n
21129s/'"$ac_delim"'$/,g/; t
21130s/$/\\/; p
21131N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21132' >>$CONFIG_STATUS <conf$$subs.sed
21133rm -f conf$$subs.sed
21134cat >>$CONFIG_STATUS <<_ACEOF
21135CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021136_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021137
21138
21139ac_delim='%!_!# '
21140for ac_last_try in false false false false false :; do
21141 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021142OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021143EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21144BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21145ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021146ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21147CXX!$CXX$ac_delim
21148CXXFLAGS!$CXXFLAGS$ac_delim
21149ac_ct_CXX!$ac_ct_CXX$ac_delim
21150NM!$NM$ac_delim
21151ifGNUmake!$ifGNUmake$ac_delim
21152LN_S!$LN_S$ac_delim
21153CMP!$CMP$ac_delim
21154CP!$CP$ac_delim
21155DATE!$DATE$ac_delim
21156FIND!$FIND$ac_delim
21157MKDIR!$MKDIR$ac_delim
21158MV!$MV$ac_delim
21159RANLIB!$RANLIB$ac_delim
21160AR!$AR$ac_delim
21161RM!$RM$ac_delim
21162SED!$SED$ac_delim
21163TAR!$TAR$ac_delim
21164BINPWD!$BINPWD$ac_delim
21165GRAPHVIZ!$GRAPHVIZ$ac_delim
21166DOT!$DOT$ac_delim
21167FDP!$FDP$ac_delim
21168NEATO!$NEATO$ac_delim
21169TWOPI!$TWOPI$ac_delim
21170CIRCO!$CIRCO$ac_delim
21171GV!$GV$ac_delim
21172DOTTY!$DOTTY$ac_delim
21173PERL!$PERL$ac_delim
21174HAVE_PERL!$HAVE_PERL$ac_delim
21175INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21176INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21177INSTALL_DATA!$INSTALL_DATA$ac_delim
21178BZIP2!$BZIP2$ac_delim
21179DOXYGEN!$DOXYGEN$ac_delim
21180GROFF!$GROFF$ac_delim
21181GZIP!$GZIP$ac_delim
21182POD2HTML!$POD2HTML$ac_delim
21183POD2MAN!$POD2MAN$ac_delim
21184RUNTEST!$RUNTEST$ac_delim
21185TCLSH!$TCLSH$ac_delim
21186ZIP!$ZIP$ac_delim
21187OCAMLC!$OCAMLC$ac_delim
21188OCAMLOPT!$OCAMLOPT$ac_delim
21189OCAMLDEP!$OCAMLDEP$ac_delim
21190OCAMLDOC!$OCAMLDOC$ac_delim
21191GAS!$GAS$ac_delim
Dan Gohman391569c2010-04-16 22:59:06 +000021192HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021193INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21194INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21195CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21196CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21197LIBADD_DL!$LIBADD_DL$ac_delim
21198LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21199LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21200LLVMGCC!$LLVMGCC$ac_delim
21201LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021202LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021203NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21204NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21205USE_UDIS86!$USE_UDIS86$ac_delim
21206USE_OPROFILE!$USE_OPROFILE$ac_delim
21207HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21208HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21209MMAP_FILE!$MMAP_FILE$ac_delim
21210LLVMCC1!$LLVMCC1$ac_delim
21211LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21212LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21214SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021215SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021216LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21217LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21218LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21219LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21220LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21221LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21222LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21223LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21224LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21225LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21226BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21227ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21228OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21229ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21230RPATH!$RPATH$ac_delim
21231RDYNAMIC!$RDYNAMIC$ac_delim
21232LIBOBJS!$LIBOBJS$ac_delim
21233LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021234_ACEOF
21235
Dan Gohman391569c2010-04-16 22:59:06 +000021236 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021237 break
21238 elif $ac_last_try; then
21239 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21240echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21241 { (exit 1); exit 1; }; }
21242 else
21243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21244 fi
21245done
21246
21247ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21248if test -n "$ac_eof"; then
21249 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21250 ac_eof=`expr $ac_eof + 1`
21251fi
21252
21253cat >>$CONFIG_STATUS <<_ACEOF
21254cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21255/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21256_ACEOF
21257sed '
21258s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21259s/^/s,@/; s/!/@,|#_!!_#|/
21260:n
21261t n
21262s/'"$ac_delim"'$/,g/; t
21263s/$/\\/; p
21264N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21265' >>$CONFIG_STATUS <conf$$subs.sed
21266rm -f conf$$subs.sed
21267cat >>$CONFIG_STATUS <<_ACEOF
21268:end
21269s/|#_!!_#|//g
21270CEOF$ac_eof
21271_ACEOF
21272
21273
Reid Spencera773bd52006-08-04 18:18:08 +000021274# VPATH may cause trouble with some makes, so we remove $(srcdir),
21275# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21276# trailing colons and then remove the whole line if VPATH becomes empty
21277# (actually we leave an empty line to preserve line numbers).
21278if test "x$srcdir" = x.; then
21279 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21280s/:*\$(srcdir):*/:/
21281s/:*\${srcdir}:*/:/
21282s/:*@srcdir@:*/:/
21283s/^\([^=]*=[ ]*\):*/\1/
21284s/:*$//
21285s/^[^=]*=[ ]*$//
21286}'
21287fi
21288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021289cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021290fi # test -n "$CONFIG_FILES"
21291
Reid Spencera773bd52006-08-04 18:18:08 +000021292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021293for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021294do
21295 case $ac_tag in
21296 :[FHLC]) ac_mode=$ac_tag; continue;;
21297 esac
21298 case $ac_mode$ac_tag in
21299 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21301echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21302 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021303 :[FH]-) ac_tag=-:-;;
21304 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21305 esac
21306 ac_save_IFS=$IFS
21307 IFS=:
21308 set x $ac_tag
21309 IFS=$ac_save_IFS
21310 shift
21311 ac_file=$1
21312 shift
21313
21314 case $ac_mode in
21315 :L) ac_source=$1;;
21316 :[FH])
21317 ac_file_inputs=
21318 for ac_f
21319 do
21320 case $ac_f in
21321 -) ac_f="$tmp/stdin";;
21322 *) # Look for the file first in the build tree, then in the source tree
21323 # (if the path is not absolute). The absolute path cannot be DOS-style,
21324 # because $ac_f cannot contain `:'.
21325 test -f "$ac_f" ||
21326 case $ac_f in
21327 [\\/$]*) false;;
21328 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21329 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021330 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21331echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21332 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021333 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021334 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021335 done
21336
21337 # Let's still pretend it is `configure' which instantiates (i.e., don't
21338 # use $as_me), people would be surprised to read:
21339 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021340 configure_input="Generated from "`IFS=:
21341 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021342 if test x"$ac_file" != x-; then
21343 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344 { echo "$as_me:$LINENO: creating $ac_file" >&5
21345echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021346 fi
21347
21348 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021350 esac
21351 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021352 esac
21353
Reid Spencera773bd52006-08-04 18:18:08 +000021354 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021355$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021356 X"$ac_file" : 'X\(//\)[^/]' \| \
21357 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021358 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021359echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21361 s//\1/
21362 q
21363 }
21364 /^X\(\/\/\)[^/].*/{
21365 s//\1/
21366 q
21367 }
21368 /^X\(\/\/\)$/{
21369 s//\1/
21370 q
21371 }
21372 /^X\(\/\).*/{
21373 s//\1/
21374 q
21375 }
21376 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021377 { as_dir="$ac_dir"
21378 case $as_dir in #(
21379 -*) as_dir=./$as_dir;;
21380 esac
21381 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21382 as_dirs=
21383 while :; do
21384 case $as_dir in #(
21385 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21386 *) as_qdir=$as_dir;;
21387 esac
21388 as_dirs="'$as_qdir' $as_dirs"
21389 as_dir=`$as_dirname -- "$as_dir" ||
21390$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21391 X"$as_dir" : 'X\(//\)[^/]' \| \
21392 X"$as_dir" : 'X\(//\)$' \| \
21393 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21394echo X"$as_dir" |
21395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21396 s//\1/
21397 q
21398 }
21399 /^X\(\/\/\)[^/].*/{
21400 s//\1/
21401 q
21402 }
21403 /^X\(\/\/\)$/{
21404 s//\1/
21405 q
21406 }
21407 /^X\(\/\).*/{
21408 s//\1/
21409 q
21410 }
21411 s/.*/./; q'`
21412 test -d "$as_dir" && break
21413 done
21414 test -z "$as_dirs" || eval "mkdir $as_dirs"
21415 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21416echo "$as_me: error: cannot create directory $as_dir" >&2;}
21417 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021418 ac_builddir=.
21419
Reid Spencera773bd52006-08-04 18:18:08 +000021420case "$ac_dir" in
21421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21422*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021424 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021426 case $ac_top_builddir_sub in
21427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21429 esac ;;
21430esac
21431ac_abs_top_builddir=$ac_pwd
21432ac_abs_builddir=$ac_pwd$ac_dir_suffix
21433# for backward compatibility:
21434ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021435
21436case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021437 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021438 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021439 ac_top_srcdir=$ac_top_builddir_sub
21440 ac_abs_top_srcdir=$ac_pwd ;;
21441 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021442 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021443 ac_top_srcdir=$srcdir
21444 ac_abs_top_srcdir=$srcdir ;;
21445 *) # Relative name.
21446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21447 ac_top_srcdir=$ac_top_build_prefix$srcdir
21448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021449esac
Reid Spencera773bd52006-08-04 18:18:08 +000021450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021451
John Criswell7a73b802003-06-30 21:59:07 +000021452
Reid Spencera773bd52006-08-04 18:18:08 +000021453 case $ac_mode in
21454 :F)
21455 #
21456 # CONFIG_FILE
21457 #
John Criswell7a73b802003-06-30 21:59:07 +000021458
21459 case $INSTALL in
21460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021461 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021462 esac
John Criswell7a73b802003-06-30 21:59:07 +000021463_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021465cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021466# If the template does not know about datarootdir, expand it.
21467# FIXME: This hack should be removed a few years after 2.60.
21468ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021469
21470case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021471 p
21472 q
21473}
21474/@datadir@/p
21475/@docdir@/p
21476/@infodir@/p
21477/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478/@mandir@/p
21479' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021480*datarootdir*) ac_datarootdir_seen=yes;;
21481*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021482 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21483echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021484_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021486 ac_datarootdir_hack='
21487 s&@datadir@&$datadir&g
21488 s&@docdir@&$docdir&g
21489 s&@infodir@&$infodir&g
21490 s&@localedir@&$localedir&g
21491 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021492 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021493esac
21494_ACEOF
21495
21496# Neutralize VPATH when `$srcdir' = `.'.
21497# Shell code in configure.ac might set extrasub.
21498# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499cat >>$CONFIG_STATUS <<_ACEOF
21500 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021501$extrasub
21502_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021504:t
21505/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021506s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021507s&@top_builddir@&$ac_top_builddir_sub&;t t
21508s&@srcdir@&$ac_srcdir&;t t
21509s&@abs_srcdir@&$ac_abs_srcdir&;t t
21510s&@top_srcdir@&$ac_top_srcdir&;t t
21511s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21512s&@builddir@&$ac_builddir&;t t
21513s&@abs_builddir@&$ac_abs_builddir&;t t
21514s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21515s&@INSTALL@&$ac_INSTALL&;t t
21516$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021517" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021518
Reid Spencera773bd52006-08-04 18:18:08 +000021519test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21520 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21521 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021523which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021524echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021525which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021526
Reid Spencera773bd52006-08-04 18:18:08 +000021527 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021528 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021529 -) cat "$tmp/out"; rm -f "$tmp/out";;
21530 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21531 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021532 ;;
21533 :H)
21534 #
21535 # CONFIG_HEADER
21536 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021537_ACEOF
21538
21539# Transform confdefs.h into a sed script `conftest.defines', that
21540# substitutes the proper values into config.h.in to produce config.h.
21541rm -f conftest.defines conftest.tail
21542# First, append a space to every undef/define line, to ease matching.
21543echo 's/$/ /' >conftest.defines
21544# Then, protect against being on the right side of a sed subst, or in
21545# an unquoted here document, in config.status. If some macros were
21546# called several times there might be several #defines for the same
21547# symbol, which is useless. But do not sort them, since the last
21548# AC_DEFINE must be honored.
21549ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21550# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21551# NAME is the cpp macro being defined, VALUE is the value it is being given.
21552# PARAMS is the parameter list in the macro definition--in most cases, it's
21553# just an empty string.
21554ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21555ac_dB='\\)[ (].*,\\1define\\2'
21556ac_dC=' '
21557ac_dD=' ,'
21558
21559uniq confdefs.h |
21560 sed -n '
21561 t rset
21562 :rset
21563 s/^[ ]*#[ ]*define[ ][ ]*//
21564 t ok
21565 d
21566 :ok
21567 s/[\\&,]/\\&/g
21568 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21569 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21570 ' >>conftest.defines
21571
21572# Remove the space that was appended to ease matching.
21573# Then replace #undef with comments. This is necessary, for
21574# example, in the case of _POSIX_SOURCE, which is predefined and required
21575# on some systems where configure will not decide to define it.
21576# (The regexp can be short, since the line contains either #define or #undef.)
21577echo 's/ $//
21578s,^[ #]*u.*,/* & */,' >>conftest.defines
21579
21580# Break up conftest.defines:
21581ac_max_sed_lines=50
21582
21583# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21584# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21585# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21586# et cetera.
21587ac_in='$ac_file_inputs'
21588ac_out='"$tmp/out1"'
21589ac_nxt='"$tmp/out2"'
21590
21591while :
21592do
21593 # Write a here document:
21594 cat >>$CONFIG_STATUS <<_ACEOF
21595 # First, check the format of the line:
21596 cat >"\$tmp/defines.sed" <<\\CEOF
21597/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21598/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21599b
21600:def
21601_ACEOF
21602 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21603 echo 'CEOF
21604 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21605 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21606 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21607 grep . conftest.tail >/dev/null || break
21608 rm -f conftest.defines
21609 mv conftest.tail conftest.defines
21610done
21611rm -f conftest.defines conftest.tail
21612
21613echo "ac_result=$ac_in" >>$CONFIG_STATUS
21614cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021615 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616 echo "/* $configure_input */" >"$tmp/config.h"
21617 cat "$ac_result" >>"$tmp/config.h"
21618 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21619 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21620echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021621 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021622 rm -f $ac_file
21623 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021624 fi
21625 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021626 echo "/* $configure_input */"
21627 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021628 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021629 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021630 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021632 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21633echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021634 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021635 esac
John Criswell7a73b802003-06-30 21:59:07 +000021636
Reid Spencera773bd52006-08-04 18:18:08 +000021637
21638 case $ac_file$ac_mode in
21639 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021640 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021641 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021642 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021643 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021644 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021645 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021646 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021647 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021648 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021649 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021650 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021651 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021652 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021653 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021654 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021655 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021656 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021657 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021658 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021659 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021660 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021661 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021662 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021663 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021664 ${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 +000021665
21666 esac
21667done # for ac_tag
21668
John Criswell7a73b802003-06-30 21:59:07 +000021669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021670{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021671_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021673ac_clean_files=$ac_clean_files_save
21674
21675
21676# configure is writing to config.log, and then calls config.status.
21677# config.status does its own redirection, appending to config.log.
21678# Unfortunately, on DOS this fails, as config.log is still kept open
21679# by configure, so config.status won't be able to write to it; its
21680# output is simply discarded. So we exec the FD to /dev/null,
21681# effectively closing config.log, so it can be properly (re)opened and
21682# appended to by config.status. When coming back to configure, we
21683# need to make the FD available again.
21684if test "$no_create" != yes; then
21685 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021686 ac_config_status_args=
21687 test "$silent" = yes &&
21688 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021689 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021691 exec 5>>config.log
21692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21693 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021694 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021695fi
21696
John Criswell12399a12003-09-30 15:55:44 +000021697#
21698# CONFIG_SUBDIRS section.
21699#
21700if test "$no_recursion" != yes; then
21701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021702 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021703 ac_sub_configure_args=
21704 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021705 eval "set x $ac_configure_args"
21706 shift
21707 for ac_arg
21708 do
John Criswell12399a12003-09-30 15:55:44 +000021709 if test -n "$ac_prev"; then
21710 ac_prev=
21711 continue
21712 fi
21713 case $ac_arg in
21714 -cache-file | --cache-file | --cache-fil | --cache-fi \
21715 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21716 ac_prev=cache_file ;;
21717 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21718 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21719 | --c=*)
21720 ;;
21721 --config-cache | -C)
21722 ;;
21723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21724 ac_prev=srcdir ;;
21725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21726 ;;
21727 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21728 ac_prev=prefix ;;
21729 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21730 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021731 *)
21732 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021733 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021734 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021735 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021736 esac
21737 done
21738
21739 # Always prepend --prefix to ensure using the same prefix
21740 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021741 ac_arg="--prefix=$prefix"
21742 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021743 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021744 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021745 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021746
21747 ac_popdir=`pwd`
21748 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21749
21750 # Do not complain, so a configure script can configure whichever
21751 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021752 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021753
Reid Spencera773bd52006-08-04 18:18:08 +000021754 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021755 echo "$as_me:$LINENO: $ac_msg" >&5
21756 echo "$ac_msg" >&6
21757 { as_dir="$ac_dir"
21758 case $as_dir in #(
21759 -*) as_dir=./$as_dir;;
21760 esac
21761 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21762 as_dirs=
21763 while :; do
21764 case $as_dir in #(
21765 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21766 *) as_qdir=$as_dir;;
21767 esac
21768 as_dirs="'$as_qdir' $as_dirs"
21769 as_dir=`$as_dirname -- "$as_dir" ||
21770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21771 X"$as_dir" : 'X\(//\)[^/]' \| \
21772 X"$as_dir" : 'X\(//\)$' \| \
21773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21774echo X"$as_dir" |
21775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21776 s//\1/
21777 q
21778 }
21779 /^X\(\/\/\)[^/].*/{
21780 s//\1/
21781 q
21782 }
21783 /^X\(\/\/\)$/{
21784 s//\1/
21785 q
21786 }
21787 /^X\(\/\).*/{
21788 s//\1/
21789 q
21790 }
21791 s/.*/./; q'`
21792 test -d "$as_dir" && break
21793 done
21794 test -z "$as_dirs" || eval "mkdir $as_dirs"
21795 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21796echo "$as_me: error: cannot create directory $as_dir" >&2;}
21797 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021798 ac_builddir=.
21799
Reid Spencera773bd52006-08-04 18:18:08 +000021800case "$ac_dir" in
21801.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21802*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021804 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021805 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021806 case $ac_top_builddir_sub in
21807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21809 esac ;;
21810esac
21811ac_abs_top_builddir=$ac_pwd
21812ac_abs_builddir=$ac_pwd$ac_dir_suffix
21813# for backward compatibility:
21814ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021815
21816case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021817 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021818 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021819 ac_top_srcdir=$ac_top_builddir_sub
21820 ac_abs_top_srcdir=$ac_pwd ;;
21821 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021822 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021823 ac_top_srcdir=$srcdir
21824 ac_abs_top_srcdir=$srcdir ;;
21825 *) # Relative name.
21826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21827 ac_top_srcdir=$ac_top_build_prefix$srcdir
21828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021829esac
Reid Spencera773bd52006-08-04 18:18:08 +000021830ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021831
21832
Reid Spencera773bd52006-08-04 18:18:08 +000021833 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021834
21835 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021836 if test -f "$ac_srcdir/configure.gnu"; then
21837 ac_sub_configure=$ac_srcdir/configure.gnu
21838 elif test -f "$ac_srcdir/configure"; then
21839 ac_sub_configure=$ac_srcdir/configure
21840 elif test -f "$ac_srcdir/configure.in"; then
21841 # This should be Cygnus configure.
21842 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021843 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21845echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021846 ac_sub_configure=
21847 fi
21848
21849 # The recursion is here.
21850 if test -n "$ac_sub_configure"; then
21851 # Make the cache file name correct relative to the subdirectory.
21852 case $cache_file in
21853 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021854 *) # Relative name.
21855 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021856 esac
21857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021858 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21859echo "$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 +000021860 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021861 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21862 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21864echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21865 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021866 fi
21867
Reid Spencera773bd52006-08-04 18:18:08 +000021868 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021869 done
21870fi
21871