blob: bf63d49e7d0cb2a8a4496df0e7ccf619fcf96027 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00003# Generated by GNU Autoconf 2.60 for llvm 3.1svn.
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#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 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-'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
565PACKAGE_STRING='llvm 3.1svn'
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
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000685ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000695ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000697LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000698ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000700ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000701ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000702ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
708ENABLE_CBE_PRINTF_A
709OPTIMIZE_OPTION
710EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000711EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000712CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000714INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
768USE_UDIS86
769USE_OPROFILE
770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000801CXX
802CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000803CCC
804CPP'
John Criswell0157f502010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000812projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000816projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000817projects/llvm-kernel
818tools/polly'
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
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001320\`configure' configures llvm 3.1svn 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
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001386 short | recursive ) echo "Configuration of llvm 3.1svn:";;
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]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001393 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001394 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001407 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001410 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001411 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001412 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001413 --enable-shared Build a shared library and link tools against it
1414 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001416 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
Eric Christopherbee515f2011-11-11 22:51:42 +00001421 x86_64, sparc, powerpc, arm, mips, spu, xcore,
1422 msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001423 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1424 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001425 --enable-bindings Build specific language bindings:
1426 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001427 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001428 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001429
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001433 --with-optimize-option Select the compiler options to use for optimized
1434 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001435 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001436 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001439 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001440 --with-clang-resource-dir
1441 Relative directory from the Clang binary for
1442 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001443 --with-c-include-dirs Colon separated list of directories clang will
1444 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001445 --with-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001453 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001454 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001455 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001456 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001470 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <llvmbugs@cs.uiuc.edu>.
1476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001536llvm configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001544Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001552It was created by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
Nick Lewycky83fc4472009-09-29 05:48:51 +00001954ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955ac_cpp='$CPP $CPPFLAGS'
1956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001959if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001960 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001961 do
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001968else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001971else
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 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 +00001979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001981 break 2
1982 fi
1983done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984done
Reid Spencera773bd52006-08-04 18:18:08 +00001985IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001986
1987fi
1988fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001989CC=$ac_cv_prog_CC
1990if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 { echo "$as_me:$LINENO: result: $CC" >&5
1992echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001994 { echo "$as_me:$LINENO: result: no" >&5
1995echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001996fi
1997
Reid Spencera773bd52006-08-04 18:18:08 +00001998
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001999 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002000 done
2001fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002002if test -z "$CC"; then
2003 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002004 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002005do
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002012else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 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 +00002023 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002025 break 2
2026 fi
2027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028done
Reid Spencera773bd52006-08-04 18:18:08 +00002029IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002030
2031fi
2032fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038 { echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002040fi
2041
Reid Spencera773bd52006-08-04 18:18:08 +00002042
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002044done
John Criswell7a73b802003-06-30 21:59:07 +00002045
Reid Spencera773bd52006-08-04 18:18:08 +00002046 if test "x$ac_ct_CC" = x; then
2047 CC=""
2048 else
2049 case $cross_compiling:$ac_tool_warned in
2050yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002051{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052whose name does not start with the host triplet. If you think this
2053configuration is useful to you, please write to autoconf@gnu.org." >&5
2054echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055whose name does not start with the host triplet. If you think this
2056configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002057ac_tool_warned=yes ;;
2058esac
2059 CC=$ac_ct_CC
2060 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061fi
2062
John Criswell7a73b802003-06-30 21:59:07 +00002063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002064test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: no acceptable C compiler found in \$PATH
2067See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069
John Criswell7a73b802003-06-30 21:59:07 +00002070# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071echo "$as_me:$LINENO: checking for C compiler version" >&5
2072ac_compiler=`set X $ac_compile; echo $2`
2073{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002074case "(($ac_try" in
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2077esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002080 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083{ (ac_try="$ac_compiler -v >&5"
2084case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087esac
2088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -v >&5") 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093{ (ac_try="$ac_compiler -V >&5"
2094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
2098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -V >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002104cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h. */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002110
John Criswell7a73b802003-06-30 21:59:07 +00002111int
2112main ()
2113{
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002121# Try to create an executable without -o first, disregard a.out.
2122# It will help us diagnose broken compilers, and finding out an intuition
2123# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002124{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127#
2128# List of possible output files, starting from the most likely.
2129# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130# only as a last resort. b.out is created by i960 compilers.
2131ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2132#
2133# The IRIX 6 linker writes into existing files which may not be
2134# executable, retaining their permissions. Remove them first so a
2135# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002136ac_rmfiles=
2137for ac_file in $ac_files
2138do
2139 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142 esac
2143done
2144rm -f $ac_rmfiles
2145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002147case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002152 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002153 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158# in a Makefile. We should not override ac_cv_exeext if it was cached,
2159# so that the user can short-circuit this test for compilers unknown to
2160# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002162do
2163 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002164 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002166 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002167 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002168 # We found the default executable, but exeext='' is most
2169 # certainly right.
2170 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002171 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002173 then :; else
2174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175 fi
2176 # We set ac_cv_exeext here because the later test for it is not
2177 # safe: cross compilers may not add the suffix if given an `-o'
2178 # argument, so we may need to know it at that point already.
2179 # Even if this section looks crufty: it has the advantage of
2180 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002184 esac
2185done
Reid Spencera773bd52006-08-04 18:18:08 +00002186test "$ac_cv_exeext" = no && ac_cv_exeext=
2187
John Criswell7a73b802003-06-30 21:59:07 +00002188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002190sed 's/^/| /' conftest.$ac_ext >&5
2191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002192{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193See \`config.log' for more details." >&5
2194echo "$as_me: error: C compiler cannot create executables
2195See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002197fi
John Criswell7a73b802003-06-30 21:59:07 +00002198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002199ac_exeext=$ac_cv_exeext
2200{ echo "$as_me:$LINENO: result: $ac_file" >&5
2201echo "${ECHO_T}$ac_file" >&6; }
2202
2203# Check that the compiler produces executables we can run. If not, either
2204# the compiler is broken, or we cross compile.
2205{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208# If not cross compiling, check that we can run a simple program.
2209if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2214esac
2215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_try") 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 cross_compiling=no
2221 else
2222 if test "$cross_compiling" = maybe; then
2223 cross_compiling=yes
2224 else
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&5
2228echo "$as_me: error: cannot run C compiled programs.
2229If you meant to cross compile, use \`--host'.
2230See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2232 fi
2233 fi
2234fi
2235{ echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
2237
2238rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002239ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002240# Check that the compiler produces executables we can run. If not, either
2241# the compiler is broken, or we cross compile.
2242{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245echo "${ECHO_T}$cross_compiling" >&6; }
2246
2247{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002250case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002255 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002256 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261# work properly (i.e., refer to `conftest.exe'), while it won't with
2262# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002263for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002265 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002268 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002269 * ) break;;
2270 esac
2271done
2272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&5
2275echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279
2280rm -f conftest$ac_cv_exeext
2281{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002283
2284rm -f conftest.$ac_ext
2285EXEEXT=$ac_cv_exeext
2286ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002287{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292 cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002298
John Criswell7a73b802003-06-30 21:59:07 +00002299int
2300main ()
2301{
2302
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002308if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002309case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002314 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002315 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002318 for ac_file in conftest.o conftest.obj conftest.*; do
2319 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002320 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 break;;
2324 esac
2325done
2326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002328sed 's/^/| /' conftest.$ac_ext >&5
2329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336
John Criswell7a73b802003-06-30 21:59:07 +00002337rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002341OBJEXT=$ac_cv_objext
2342ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348 cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h. */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002354
John Criswell7a73b802003-06-30 21:59:07 +00002355int
2356main ()
2357{
2358#ifndef __GNUC__
2359 choke me
2360#endif
2361
2362 ;
2363 return 0;
2364}
2365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002366rm -f conftest.$ac_objext
2367if { (ac_try="$ac_compile"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
2372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384esac
2385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394esac
2395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002400 ac_compiler_gnu=yes
2401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002402 echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407
Reid Spencera773bd52006-08-04 18:18:08 +00002408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002410
2411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415ac_test_CFLAGS=${CFLAGS+set}
2416ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002421else
Reid Spencera773bd52006-08-04 18:18:08 +00002422 ac_save_c_werror_flag=$ac_c_werror_flag
2423 ac_c_werror_flag=yes
2424 ac_cv_prog_cc_g=no
2425 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002432
John Criswell7a73b802003-06-30 21:59:07 +00002433int
2434main ()
2435{
2436
2437 ;
2438 return 0;
2439}
2440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002441rm -f conftest.$ac_objext
2442if { (ac_try="$ac_compile"
2443case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446esac
2447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456 { (case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_try") 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
2470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002477 echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 CFLAGS=""
2481 cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002486/* end confdefs.h. */
2487
2488int
2489main ()
2490{
2491
2492 ;
2493 return 0;
2494}
2495_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002496rm -f conftest.$ac_objext
2497if { (ac_try="$ac_compile"
2498case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514esac
2515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 :
Torok Edwin871384f2010-01-26 08:50:50 +00002531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002532 echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002536 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002542/* end confdefs.h. */
2543
2544int
2545main ()
2546{
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552rm -f conftest.$ac_objext
2553if { (ac_try="$ac_compile"
2554case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2560 ac_status=$?
2561 grep -v '^ *+' conftest.er1 >conftest.err
2562 rm -f conftest.er1
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580esac
2581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002586 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002587else
2588 echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
John Criswell7a73b802003-06-30 21:59:07 +00002592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593
Reid Spencera773bd52006-08-04 18:18:08 +00002594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596
Reid Spencera773bd52006-08-04 18:18:08 +00002597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002599
Reid Spencera773bd52006-08-04 18:18:08 +00002600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 ac_c_werror_flag=$ac_save_c_werror_flag
2602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2609 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002610 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002612 fi
2613else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 if test "$GCC" = yes; then
2615 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002616 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002618 fi
2619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622if test "${ac_cv_prog_cc_c89+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624else
Reid Spencera773bd52006-08-04 18:18:08 +00002625 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632/* end confdefs.h. */
2633#include <stdarg.h>
2634#include <stdio.h>
2635#include <sys/types.h>
2636#include <sys/stat.h>
2637/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638struct buf { int x; };
2639FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640static char *e (p, i)
2641 char **p;
2642 int i;
2643{
2644 return p[i];
2645}
2646static char *f (char * (*g) (char **, int), char **p, ...)
2647{
2648 char *s;
2649 va_list v;
2650 va_start (v,p);
2651 s = g (p, va_arg (v,int));
2652 va_end (v);
2653 return s;
2654}
2655
2656/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002659 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002662 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
Reid Spencera773bd52006-08-04 18:18:08 +00002665/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666 inside strings and character constants. */
2667#define FOO(x) 'x'
2668int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670int test (int i, double x);
2671struct s1 {int (*f) (int a);};
2672struct s2 {int (*f) (double a);};
2673int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674int argc;
2675char **argv;
2676int
2677main ()
2678{
2679return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2680 ;
2681 return 0;
2682}
2683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002684for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686do
2687 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002688 rm -f conftest.$ac_objext
2689if { (ac_try="$ac_compile"
2690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_try") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (case "(($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_try") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002722 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002723else
2724 echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729
Reid Spencera773bd52006-08-04 18:18:08 +00002730rm -f core conftest.err conftest.$ac_objext
2731 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732done
Reid Spencera773bd52006-08-04 18:18:08 +00002733rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002734CC=$ac_save_CC
2735
2736fi
Reid Spencera773bd52006-08-04 18:18:08 +00002737# AC_CACHE_VAL
2738case "x$ac_cv_prog_cc_c89" in
2739 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740 { echo "$as_me:$LINENO: result: none needed" >&5
2741echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002742 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743 { echo "$as_me:$LINENO: result: unsupported" >&5
2744echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002746 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749esac
2750
John Criswell0c38eaf2003-09-10 15:17:25 +00002751
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752ac_ext=c
2753ac_cpp='$CPP $CPPFLAGS'
2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
Eric Christopherffee5722011-09-16 20:36:25 +00002758ac_ext=cpp
2759ac_cpp='$CXXCPP $CPPFLAGS'
2760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763if test -z "$CXX"; then
2764 if test -n "$CCC"; then
2765 CXX=$CCC
2766 else
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in clang++ llvm-g++ g++
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797CXX=$ac_cv_prog_CXX
2798if test -n "$CXX"; then
2799 { echo "$as_me:$LINENO: result: $CXX" >&5
2800echo "${ECHO_T}$CXX" >&6; }
2801else
2802 { echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6; }
2804fi
2805
2806
2807 test -n "$CXX" && break
2808 done
2809fi
2810if test -z "$CXX"; then
2811 ac_ct_CXX=$CXX
2812 for ac_prog in clang++ llvm-g++ g++
2813do
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815set dummy $ac_prog; ac_word=$2
2816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821 if test -n "$ac_ct_CXX"; then
2822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CXX="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835done
2836done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842if test -n "$ac_ct_CXX"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844echo "${ECHO_T}$ac_ct_CXX" >&6; }
2845else
2846 { echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6; }
2848fi
2849
2850
2851 test -n "$ac_ct_CXX" && break
2852done
2853
2854 if test "x$ac_ct_CXX" = x; then
2855 CXX="g++"
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858yes:)
2859{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860whose name does not start with the host triplet. If you think this
2861configuration is useful to you, please write to autoconf@gnu.org." >&5
2862echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863whose name does not start with the host triplet. If you think this
2864configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865ac_tool_warned=yes ;;
2866esac
2867 CXX=$ac_ct_CXX
2868 fi
2869fi
2870
2871 fi
2872fi
2873# Provide some information about the compiler.
2874echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875ac_compiler=`set X $ac_compile; echo $2`
2876{ (ac_try="$ac_compiler --version >&5"
2877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886{ (ac_try="$ac_compiler -v >&5"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -v >&5") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896{ (ac_try="$ac_compiler -V >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906
2907{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h. */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h. */
2918
2919int
2920main ()
2921{
2922#ifndef __GNUC__
2923 choke me
2924#endif
2925
2926 ;
2927 return 0;
2928}
2929_ACEOF
2930rm -f conftest.$ac_objext
2931if { (ac_try="$ac_compile"
2932case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935esac
2936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 ac_compiler_gnu=yes
2965else
2966 echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 ac_compiler_gnu=no
2970fi
2971
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974
2975fi
2976{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978GXX=`test $ac_compiler_gnu = yes && echo yes`
2979ac_test_CXXFLAGS=${CXXFLAGS+set}
2980ac_save_CXXFLAGS=$CXXFLAGS
2981{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983if test "${ac_cv_prog_cxx_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985else
2986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987 ac_cxx_werror_flag=yes
2988 ac_cv_prog_cxx_g=no
2989 CXXFLAGS="-g"
2990 cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h. */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h. */
2996
2997int
2998main ()
2999{
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cxx_g=yes
3040else
3041 echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 CXXFLAGS=""
3045 cat >conftest.$ac_ext <<_ACEOF
3046/* confdefs.h. */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h. */
3051
3052int
3053main ()
3054{
3055
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060rm -f conftest.$ac_objext
3061if { (ac_try="$ac_compile"
3062case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3094 :
3095else
3096 echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3100 CXXFLAGS="-g"
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (ac_try="$ac_compile"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cxx_g=yes
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162fi
3163
3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166fi
3167{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169if test "$ac_test_CXXFLAGS" = set; then
3170 CXXFLAGS=$ac_save_CXXFLAGS
3171elif test $ac_cv_prog_cxx_g = yes; then
3172 if test "$GXX" = yes; then
3173 CXXFLAGS="-g -O2"
3174 else
3175 CXXFLAGS="-g"
3176 fi
3177else
3178 if test "$GXX" = yes; then
3179 CXXFLAGS="-O2"
3180 else
3181 CXXFLAGS=
3182 fi
3183fi
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003189
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003195{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197# On Suns, sometimes $CPP names a directory.
3198if test -n "$CPP" && test -d "$CPP"; then
3199 CPP=
3200fi
3201if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204else
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 do
3208 ac_preproc_ok=false
3209for ac_c_preproc_warn_flag in '' yes
3210do
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222/* end confdefs.h. */
3223#ifdef __STDC__
3224# include <limits.h>
3225#else
3226# include <assert.h>
3227#endif
3228 Syntax error
3229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230if { (ac_try="$ac_cpp conftest.$ac_ext"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246 else
3247 ac_cpp_err=
3248 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003250 ac_cpp_err=yes
3251fi
3252if test -z "$ac_cpp_err"; then
3253 :
3254else
3255 echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 # Broken: fails on valid input.
3259continue
3260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262rm -f conftest.err conftest.$ac_ext
3263
Reid Spencera773bd52006-08-04 18:18:08 +00003264 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266 cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271/* end confdefs.h. */
3272#include <ac_nonexistent.h>
3273_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274if { (ac_try="$ac_cpp conftest.$ac_ext"
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290 else
3291 ac_cpp_err=
3292 fi
3293else
3294 ac_cpp_err=yes
3295fi
3296if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297 # Broken: success on invalid input.
3298continue
3299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003300 echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303 # Passes both tests.
3304ac_preproc_ok=:
3305break
3306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003307
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308rm -f conftest.err conftest.$ac_ext
3309
3310done
3311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003313if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 break
3315fi
3316
3317 done
3318 ac_cv_prog_CPP=$CPP
3319
3320fi
3321 CPP=$ac_cv_prog_CPP
3322else
3323 ac_cv_prog_CPP=$CPP
3324fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003325{ echo "$as_me:$LINENO: result: $CPP" >&5
3326echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327ac_preproc_ok=false
3328for ac_c_preproc_warn_flag in '' yes
3329do
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003336 cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341/* end confdefs.h. */
3342#ifdef __STDC__
3343# include <limits.h>
3344#else
3345# include <assert.h>
3346#endif
3347 Syntax error
3348_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003349if { (ac_try="$ac_cpp conftest.$ac_ext"
3350case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365 else
3366 ac_cpp_err=
3367 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 ac_cpp_err=yes
3370fi
3371if test -z "$ac_cpp_err"; then
3372 :
3373else
3374 echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377 # Broken: fails on valid input.
3378continue
3379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381rm -f conftest.err conftest.$ac_ext
3382
Reid Spencera773bd52006-08-04 18:18:08 +00003383 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385 cat >conftest.$ac_ext <<_ACEOF
3386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390/* end confdefs.h. */
3391#include <ac_nonexistent.h>
3392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393if { (ac_try="$ac_cpp conftest.$ac_ext"
3394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 else
3410 ac_cpp_err=
3411 fi
3412else
3413 ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416 # Broken: success on invalid input.
3417continue
3418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422 # Passes both tests.
3423ac_preproc_ok=:
3424break
3425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427rm -f conftest.err conftest.$ac_ext
3428
3429done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432if $ac_preproc_ok; then
3433 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436See \`config.log' for more details." >&5
3437echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440fi
3441
John Criswell7a73b802003-06-30 21:59:07 +00003442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
John Criswell7a73b802003-06-30 21:59:07 +00003448
Eric Christopherffee5722011-09-16 20:36:25 +00003449
3450
3451if test -d ${srcdir}/projects/llvm-gcc ; then
3452 subdirs="$subdirs projects/llvm-gcc"
3453
3454fi
3455
3456if test -d ${srcdir}/projects/test-suite ; then
3457 subdirs="$subdirs projects/test-suite"
3458
3459fi
3460
3461if test -d ${srcdir}/projects/llvm-test ; then
3462 subdirs="$subdirs projects/llvm-test"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/poolalloc ; then
3467 subdirs="$subdirs projects/poolalloc"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472 subdirs="$subdirs projects/llvm-poolalloc"
3473
3474fi
3475
3476for i in `ls ${srcdir}/projects`
3477do
3478 if test -d ${srcdir}/projects/${i} ; then
3479 case ${i} in
3480 sample) subdirs="$subdirs projects/sample"
3481 ;;
3482 privbracket) subdirs="$subdirs projects/privbracket"
3483 ;;
3484 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3485 ;;
3486 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3487;;
3488 llvm-java) subdirs="$subdirs projects/llvm-java"
3489 ;;
3490 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3491 ;;
3492 safecode) subdirs="$subdirs projects/safecode"
3493 ;;
3494 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3495 ;;
3496 llvm-gcc) ;;
3497 test-suite) ;;
3498 llvm-test) ;;
3499 poolalloc) ;;
3500 llvm-poolalloc) ;;
3501 *)
3502 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3503echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3504 ;;
3505 esac
3506 fi
3507done
3508
3509# Check whether --enable-polly was given.
3510if test "${enable_polly+set}" = set; then
3511 enableval=$enable_polly;
3512else
3513 enableval=default
3514fi
3515
3516case "$enableval" in
3517 yes) ENABLE_POLLY=1
3518 ;;
3519 no) ENABLE_POLLY=0
3520 ;;
3521 default) ENABLE_POLLY=1
3522 ;;
3523 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3524echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3525 { (exit 1); exit 1; }; } ;;
3526esac
3527
3528
3529if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3530 LLVM_HAS_POLLY=1
3531
3532 subdirs="$subdirs tools/polly"
3533
3534fi
3535
3536
3537# Make sure we can run config.sub.
3538$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3539 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3540echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3541 { (exit 1); exit 1; }; }
3542
3543{ echo "$as_me:$LINENO: checking build system type" >&5
3544echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3545if test "${ac_cv_build+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548 ac_build_alias=$build_alias
3549test "x$ac_build_alias" = x &&
3550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3551test "x$ac_build_alias" = x &&
3552 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3553echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3554 { (exit 1); exit 1; }; }
3555ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3556 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3557echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3558 { (exit 1); exit 1; }; }
3559
3560fi
3561{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3562echo "${ECHO_T}$ac_cv_build" >&6; }
3563case $ac_cv_build in
3564*-*-*) ;;
3565*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3566echo "$as_me: error: invalid value of canonical build" >&2;}
3567 { (exit 1); exit 1; }; };;
3568esac
3569build=$ac_cv_build
3570ac_save_IFS=$IFS; IFS='-'
3571set x $ac_cv_build
3572shift
3573build_cpu=$1
3574build_vendor=$2
3575shift; shift
3576# Remember, the first character of IFS is used to create $*,
3577# except with old shells:
3578build_os=$*
3579IFS=$ac_save_IFS
3580case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3581
3582
3583{ echo "$as_me:$LINENO: checking host system type" >&5
3584echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3585if test "${ac_cv_host+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588 if test "x$host_alias" = x; then
3589 ac_cv_host=$ac_cv_build
3590else
3591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3592 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3593echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3594 { (exit 1); exit 1; }; }
3595fi
3596
3597fi
3598{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3599echo "${ECHO_T}$ac_cv_host" >&6; }
3600case $ac_cv_host in
3601*-*-*) ;;
3602*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3603echo "$as_me: error: invalid value of canonical host" >&2;}
3604 { (exit 1); exit 1; }; };;
3605esac
3606host=$ac_cv_host
3607ac_save_IFS=$IFS; IFS='-'
3608set x $ac_cv_host
3609shift
3610host_cpu=$1
3611host_vendor=$2
3612shift; shift
3613# Remember, the first character of IFS is used to create $*,
3614# except with old shells:
3615host_os=$*
3616IFS=$ac_save_IFS
3617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3618
3619
3620{ echo "$as_me:$LINENO: checking target system type" >&5
3621echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3622if test "${ac_cv_target+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625 if test "x$target_alias" = x; then
3626 ac_cv_target=$ac_cv_host
3627else
3628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3629 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3630echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3631 { (exit 1); exit 1; }; }
3632fi
3633
3634fi
3635{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3636echo "${ECHO_T}$ac_cv_target" >&6; }
3637case $ac_cv_target in
3638*-*-*) ;;
3639*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3640echo "$as_me: error: invalid value of canonical target" >&2;}
3641 { (exit 1); exit 1; }; };;
3642esac
3643target=$ac_cv_target
3644ac_save_IFS=$IFS; IFS='-'
3645set x $ac_cv_target
3646shift
3647target_cpu=$1
3648target_vendor=$2
3649shift; shift
3650# Remember, the first character of IFS is used to create $*,
3651# except with old shells:
3652target_os=$*
3653IFS=$ac_save_IFS
3654case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3655
3656
3657# The aliases save the names the user supplied, while $host etc.
3658# will get canonicalized.
3659test -n "$target_alias" &&
3660 test "$program_prefix$program_suffix$program_transform_name" = \
3661 NONENONEs,x,x, &&
3662 program_prefix=${target_alias}-
3663
3664{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3665echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3666if test "${llvm_cv_os_type+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669 case $host in
3670 *-*-aix*)
3671 llvm_cv_link_all_option="-Wl,--whole-archive"
3672 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673 llvm_cv_os_type="AIX"
3674 llvm_cv_platform_type="Unix" ;;
3675 *-*-irix*)
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="IRIX"
3679 llvm_cv_platform_type="Unix" ;;
3680 *-*-cygwin*)
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="Cygwin"
3684 llvm_cv_platform_type="Unix" ;;
3685 *-*-darwin*)
3686 llvm_cv_link_all_option="-Wl,-all_load"
3687 llvm_cv_no_link_all_option="-Wl,-noall_load"
3688 llvm_cv_os_type="Darwin"
3689 llvm_cv_platform_type="Unix" ;;
3690 *-*-minix*)
3691 llvm_cv_link_all_option="-Wl,-all_load"
3692 llvm_cv_no_link_all_option="-Wl,-noall_load"
3693 llvm_cv_os_type="Minix"
3694 llvm_cv_platform_type="Unix" ;;
3695 *-*-freebsd*)
3696 llvm_cv_link_all_option="-Wl,--whole-archive"
3697 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698 llvm_cv_os_type="FreeBSD"
3699 llvm_cv_platform_type="Unix" ;;
3700 *-*-openbsd*)
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="OpenBSD"
3704 llvm_cv_platform_type="Unix" ;;
3705 *-*-netbsd*)
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="NetBSD"
3709 llvm_cv_platform_type="Unix" ;;
3710 *-*-dragonfly*)
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="DragonFly"
3714 llvm_cv_platform_type="Unix" ;;
3715 *-*-hpux*)
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="HP-UX"
3719 llvm_cv_platform_type="Unix" ;;
3720 *-*-interix*)
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="Interix"
3724 llvm_cv_platform_type="Unix" ;;
3725 *-*-linux*)
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="Linux"
3729 llvm_cv_platform_type="Unix" ;;
3730 *-*-solaris*)
3731 llvm_cv_link_all_option="-Wl,-z,allextract"
3732 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3733 llvm_cv_os_type="SunOS"
3734 llvm_cv_platform_type="Unix" ;;
3735 *-*-auroraux*)
3736 llvm_cv_link_all_option="-Wl,-z,allextract"
3737 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3738 llvm_cv_os_type="AuroraUX"
3739 llvm_cv_platform_type="Unix" ;;
3740 *-*-win32*)
3741 llvm_cv_link_all_option="-Wl,--whole-archive"
3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743 llvm_cv_os_type="Win32"
3744 llvm_cv_platform_type="Win32" ;;
3745 *-*-mingw*)
3746 llvm_cv_link_all_option="-Wl,--whole-archive"
3747 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748 llvm_cv_os_type="MingW"
3749 llvm_cv_platform_type="Win32" ;;
3750 *-*-haiku*)
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="Haiku"
3754 llvm_cv_platform_type="Unix" ;;
3755 *-unknown-eabi*)
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="Freestanding"
3759 llvm_cv_platform_type="Unix" ;;
3760 *-unknown-elf*)
3761 llvm_cv_link_all_option="-Wl,--whole-archive"
3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763 llvm_cv_os_type="Freestanding"
3764 llvm_cv_platform_type="Unix" ;;
3765 *)
3766 llvm_cv_link_all_option=""
3767 llvm_cv_no_link_all_option=""
3768 llvm_cv_os_type="Unknown"
3769 llvm_cv_platform_type="Unknown" ;;
3770esac
3771fi
3772{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3773echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3774
3775{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3776echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3777if test "${llvm_cv_target_os_type+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780 case $target in
3781 *-*-aix*)
3782 llvm_cv_target_os_type="AIX" ;;
3783 *-*-irix*)
3784 llvm_cv_target_os_type="IRIX" ;;
3785 *-*-cygwin*)
3786 llvm_cv_target_os_type="Cygwin" ;;
3787 *-*-darwin*)
3788 llvm_cv_target_os_type="Darwin" ;;
3789 *-*-minix*)
3790 llvm_cv_target_os_type="Minix" ;;
3791 *-*-freebsd*)
3792 llvm_cv_target_os_type="FreeBSD" ;;
3793 *-*-openbsd*)
3794 llvm_cv_target_os_type="OpenBSD" ;;
3795 *-*-netbsd*)
3796 llvm_cv_target_os_type="NetBSD" ;;
3797 *-*-dragonfly*)
3798 llvm_cv_target_os_type="DragonFly" ;;
3799 *-*-hpux*)
3800 llvm_cv_target_os_type="HP-UX" ;;
3801 *-*-interix*)
3802 llvm_cv_target_os_type="Interix" ;;
3803 *-*-linux*)
3804 llvm_cv_target_os_type="Linux" ;;
3805 *-*-solaris*)
3806 llvm_cv_target_os_type="SunOS" ;;
3807 *-*-auroraux*)
3808 llvm_cv_target_os_type="AuroraUX" ;;
3809 *-*-win32*)
3810 llvm_cv_target_os_type="Win32" ;;
3811 *-*-mingw*)
3812 llvm_cv_target_os_type="MingW" ;;
3813 *-*-haiku*)
3814 llvm_cv_target_os_type="Haiku" ;;
3815 *-*-rtems*)
3816 llvm_cv_target_os_type="RTEMS" ;;
3817 *-*-nacl*)
3818 llvm_cv_target_os_type="NativeClient" ;;
3819 *-unknown-eabi*)
3820 llvm_cv_target_os_type="Freestanding" ;;
3821 *)
3822 llvm_cv_target_os_type="Unknown" ;;
3823esac
3824fi
3825{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3826echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3827
3828if test "$llvm_cv_os_type" = "Unknown" ; then
3829 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3830echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3831 { (exit 1); exit 1; }; }
3832fi
3833
3834OS=$llvm_cv_os_type
3835
3836HOST_OS=$llvm_cv_os_type
3837
3838TARGET_OS=$llvm_cv_target_os_type
3839
3840
3841LINKALL=$llvm_cv_link_all_option
3842
3843NOLINKALL=$llvm_cv_no_link_all_option
3844
3845
3846case $llvm_cv_platform_type in
3847 Unix)
3848
3849cat >>confdefs.h <<\_ACEOF
3850#define LLVM_ON_UNIX 1
3851_ACEOF
3852
3853 LLVM_ON_UNIX=1
3854
3855 LLVM_ON_WIN32=0
3856
3857 ;;
3858 Win32)
3859
3860cat >>confdefs.h <<\_ACEOF
3861#define LLVM_ON_WIN32 1
3862_ACEOF
3863
3864 LLVM_ON_UNIX=0
3865
3866 LLVM_ON_WIN32=1
3867
3868 ;;
3869esac
3870
3871{ echo "$as_me:$LINENO: checking target architecture" >&5
3872echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3873if test "${llvm_cv_target_arch+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 case $target in
3877 i?86-*) llvm_cv_target_arch="x86" ;;
3878 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3879 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3880 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003881 arm*-*) llvm_cv_target_arch="ARM" ;;
3882 mips-*) llvm_cv_target_arch="Mips" ;;
3883 xcore-*) llvm_cv_target_arch="XCore" ;;
3884 msp430-*) llvm_cv_target_arch="MSP430" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003885 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3886 ptx-*) llvm_cv_target_arch="PTX" ;;
3887 *) llvm_cv_target_arch="Unknown" ;;
3888esac
3889fi
3890{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3891echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3892
3893if test "$llvm_cv_target_arch" = "Unknown" ; then
3894 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3895echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3896fi
3897
3898# Determine the LLVM native architecture for the target
3899case "$llvm_cv_target_arch" in
3900 x86) LLVM_NATIVE_ARCH="X86" ;;
3901 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3902 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903esac
3904
3905ARCH=$llvm_cv_target_arch
3906
3907
3908
3909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003910{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3911echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3912if test "${ac_cv_path_GREP+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003915 # Extract the first word of "grep ggrep" to use in msg output
3916if test -z "$GREP"; then
3917set dummy grep ggrep; ac_prog_name=$2
3918if test "${ac_cv_path_GREP+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
Reid Spencera773bd52006-08-04 18:18:08 +00003921 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922# Loop through the user's path and test for each of PROGNAME-LIST
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003928 for ac_prog in grep ggrep; do
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3932 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003933 # Check for GNU $ac_path_GREP
3934case `"$ac_path_GREP" --version 2>&1` in
3935*GNU*)
3936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937*)
3938 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003939 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003940 while :
3941 do
3942 cat "conftest.in" "conftest.in" >"conftest.tmp"
3943 mv "conftest.tmp" "conftest.in"
3944 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003945 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003948 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950 # Best one so far, save it but keep looking for a better one
3951 ac_cv_path_GREP="$ac_path_GREP"
3952 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003953 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003954 # 10*(2^10) chars as input seems more than enough
3955 test $ac_count -gt 10 && break
3956 done
3957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958esac
3959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003960
3961 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003962 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003963done
3964
3965done
Reid Spencera773bd52006-08-04 18:18:08 +00003966IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967
3968
3969fi
3970
3971GREP="$ac_cv_path_GREP"
3972if test -z "$GREP"; then
3973 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3974echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3975 { (exit 1); exit 1; }; }
3976fi
3977
Reid Spencera773bd52006-08-04 18:18:08 +00003978else
3979 ac_cv_path_GREP=$GREP
3980fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982
Reid Spencera773bd52006-08-04 18:18:08 +00003983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3985echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003986 GREP="$ac_cv_path_GREP"
3987
3988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989{ echo "$as_me:$LINENO: checking for egrep" >&5
3990echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3991if test "${ac_cv_path_EGREP+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003993else
3994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3995 then ac_cv_path_EGREP="$GREP -E"
3996 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997 # Extract the first word of "egrep" to use in msg output
3998if test -z "$EGREP"; then
3999set dummy egrep; ac_prog_name=$2
4000if test "${ac_cv_path_EGREP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
Reid Spencera773bd52006-08-04 18:18:08 +00004003 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004# Loop through the user's path and test for each of PROGNAME-LIST
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010 for ac_prog in egrep; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4014 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004015 # Check for GNU $ac_path_EGREP
4016case `"$ac_path_EGREP" --version 2>&1` in
4017*GNU*)
4018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019*)
4020 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004021 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004022 while :
4023 do
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004030 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_EGREP="$ac_path_EGREP"
4034 ac_path_EGREP_max=$ac_count
4035 fi
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4038 done
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040esac
4041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004042
4043 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004044 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004045done
4046
4047done
Reid Spencera773bd52006-08-04 18:18:08 +00004048IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004049
4050
4051fi
4052
4053EGREP="$ac_cv_path_EGREP"
4054if test -z "$EGREP"; then
4055 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4056echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4057 { (exit 1); exit 1; }; }
4058fi
4059
Reid Spencera773bd52006-08-04 18:18:08 +00004060else
4061 ac_cv_path_EGREP=$EGREP
4062fi
4063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064
Reid Spencera773bd52006-08-04 18:18:08 +00004065 fi
4066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4068echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004069 EGREP="$ac_cv_path_EGREP"
4070
4071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004072{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4073echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4074if test "${ac_cv_header_stdc+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004076else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077 cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004082/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004083#include <stdlib.h>
4084#include <stdarg.h>
4085#include <string.h>
4086#include <float.h>
4087
John Criswell0c38eaf2003-09-10 15:17:25 +00004088int
4089main ()
4090{
4091
4092 ;
4093 return 0;
4094}
John Criswell7a73b802003-06-30 21:59:07 +00004095_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004096rm -f conftest.$ac_objext
4097if { (ac_try="$ac_compile"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_compile") 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4111 { (case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114esac
4115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_try") 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124esac
4125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_try") 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004130 ac_cv_header_stdc=yes
4131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004132 echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004137
Reid Spencera773bd52006-08-04 18:18:08 +00004138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004139
4140if test $ac_cv_header_stdc = yes; then
4141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142 cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004148#include <string.h>
4149
4150_ACEOF
4151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152 $EGREP "memchr" >/dev/null 2>&1; then
4153 :
John Criswell7a73b802003-06-30 21:59:07 +00004154else
4155 ac_cv_header_stdc=no
4156fi
4157rm -f conftest*
4158
4159fi
4160
4161if test $ac_cv_header_stdc = yes; then
4162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004163 cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004169#include <stdlib.h>
4170
4171_ACEOF
4172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004173 $EGREP "free" >/dev/null 2>&1; then
4174 :
John Criswell7a73b802003-06-30 21:59:07 +00004175else
4176 ac_cv_header_stdc=no
4177fi
4178rm -f conftest*
4179
4180fi
4181
4182if test $ac_cv_header_stdc = yes; then
4183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004185 :
4186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004187 cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004193#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004194#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004195#if ((' ' & 0x0FF) == 0x020)
4196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4198#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004199# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004200 (('a' <= (c) && (c) <= 'i') \
4201 || ('j' <= (c) && (c) <= 'r') \
4202 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204#endif
4205
4206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4207int
4208main ()
4209{
4210 int i;
4211 for (i = 0; i < 256; i++)
4212 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004213 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004214 return 2;
4215 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004216}
4217_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004218rm -f conftest$ac_exeext
4219if { (ac_try="$ac_link"
4220case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_link") 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 :
John Criswell7a73b802003-06-30 21:59:07 +00004239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004240 echo "$as_me: program exited with status $ac_status" >&5
4241echo "$as_me: failed program was:" >&5
4242sed 's/^/| /' conftest.$ac_ext >&5
4243
4244( exit $ac_status )
4245ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004247rm -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 +00004248fi
4249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004250
John Criswell7a73b802003-06-30 21:59:07 +00004251fi
4252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004253{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4254echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004255if test $ac_cv_header_stdc = yes; then
4256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257cat >>confdefs.h <<\_ACEOF
4258#define STDC_HEADERS 1
4259_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004260
4261fi
4262
Reid Spencera773bd52006-08-04 18:18:08 +00004263# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004264
4265
4266
4267
4268
4269
4270
4271
4272
Reid Spencera773bd52006-08-04 18:18:08 +00004273for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4274 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004275do
4276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281else
4282 cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h. */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h. */
4288$ac_includes_default
4289
4290#include <$ac_header>
4291_ACEOF
4292rm -f conftest.$ac_objext
4293if { (ac_try="$ac_compile"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_compile") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307 { (case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310esac
4311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; } &&
4316 { ac_try='test -s conftest.$ac_objext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 eval "$as_ac_Header=yes"
4327else
4328 echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 eval "$as_ac_Header=no"
4332fi
4333
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
4336ac_res=`eval echo '${'$as_ac_Header'}'`
4337 { echo "$as_me:$LINENO: result: $ac_res" >&5
4338echo "${ECHO_T}$ac_res" >&6; }
4339if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004340 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004342_ACEOF
4343
4344fi
4345
4346done
4347
4348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4350echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4351if test "${ac_cv_c_bigendian+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004354 # See if sys/param.h defines the BYTE_ORDER macro.
4355cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004360/* end confdefs.h. */
4361#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004362#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004363
4364int
4365main ()
4366{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004367#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4368 bogus endian macros
4369#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004370
4371 ;
4372 return 0;
4373}
4374_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375rm -f conftest.$ac_objext
4376if { (ac_try="$ac_compile"
4377case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380esac
4381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390 { (case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393esac
4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_try") 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004409 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004410cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h. */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004415/* end confdefs.h. */
4416#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004418
4419int
4420main ()
4421{
4422#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423 not big endian
4424#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004425
4426 ;
4427 return 0;
4428}
4429_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430rm -f conftest.$ac_objext
4431if { (ac_try="$ac_compile"
4432case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_compile") 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4445 { (case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448esac
4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_try") 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458esac
4459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_try") 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004464 ac_cv_c_bigendian=yes
4465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004466 echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004469 ac_cv_c_bigendian=no
4470fi
4471
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473else
4474 echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 # It does not; compile a test program.
4478if test "$cross_compiling" = yes; then
4479 # try to guess the endianness by grepping values into an object file
4480 ac_cv_c_bigendian=unknown
4481 cat >conftest.$ac_ext <<_ACEOF
4482/* confdefs.h. */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h. */
4487short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4488short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4489void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4490short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4491short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4492void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004493int
4494main ()
4495{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004496 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004497 ;
4498 return 0;
4499}
4500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004501rm -f conftest.$ac_objext
4502if { (ac_try="$ac_compile"
4503case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506esac
4507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_compile") 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4516 { (case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519esac
4520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_try") 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529esac
4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_try") 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4535 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004536 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004537fi
4538if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4539 if test "$ac_cv_c_bigendian" = unknown; then
4540 ac_cv_c_bigendian=no
4541 else
4542 # finding both strings is unlikely to happen, but who knows?
4543 ac_cv_c_bigendian=unknown
4544 fi
4545fi
Reid Spencera773bd52006-08-04 18:18:08 +00004546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004547 echo "$as_me: failed program was:" >&5
4548sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550
Torok Edwin871384f2010-01-26 08:50:50 +00004551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552
Reid Spencera773bd52006-08-04 18:18:08 +00004553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004555 cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h. */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004560/* end confdefs.h. */
4561$ac_includes_default
4562int
4563main ()
4564{
4565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566 /* Are we little or big endian? From Harbison&Steele. */
4567 union
4568 {
4569 long int l;
4570 char c[sizeof (long int)];
4571 } u;
4572 u.l = 1;
4573 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004574
4575 ;
4576 return 0;
4577}
4578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579rm -f conftest$ac_exeext
4580if { (ac_try="$ac_link"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_link") 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4590 { (case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_try") 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004599 ac_cv_c_bigendian=no
4600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004601 echo "$as_me: program exited with status $ac_status" >&5
4602echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605( exit $ac_status )
4606ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608rm -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 +00004609fi
4610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004611
Reid Spencera773bd52006-08-04 18:18:08 +00004612fi
4613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615fi
4616{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4617echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4618case $ac_cv_c_bigendian in
4619 yes)
4620 ENDIAN=big
4621 ;;
4622 no)
4623 ENDIAN=little
4624 ;;
4625 *)
4626 { { echo "$as_me:$LINENO: error: unknown endianness
4627presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4628echo "$as_me: error: unknown endianness
4629presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4630 { (exit 1); exit 1; }; } ;;
4631esac
Reid Spencera773bd52006-08-04 18:18:08 +00004632
4633
4634if test "$cross_compiling" = yes; then
4635 LLVM_CROSS_COMPILING=1
4636
4637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004638{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4639echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4640if test "${ac_cv_build_exeext+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004642else
4643 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4644 ac_cv_build_exeext=.exe
4645else
4646 ac_build_prefix=${build_alias}-
4647
4648 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4649set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004654else
4655 if test -n "$BUILD_CC"; then
4656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 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 +00004665 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004667 break 2
4668 fi
4669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004670done
Reid Spencera773bd52006-08-04 18:18:08 +00004671IFS=$as_save_IFS
4672
4673fi
4674fi
4675BUILD_CC=$ac_cv_prog_BUILD_CC
4676if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004680 { echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004682fi
4683
4684
4685 if test -z "$BUILD_CC"; then
4686 # Extract the first word of "gcc", so it can be a program name with args.
4687set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004692else
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 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 +00004703 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004705 break 2
4706 fi
4707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004708done
Reid Spencera773bd52006-08-04 18:18:08 +00004709IFS=$as_save_IFS
4710
4711fi
4712fi
4713BUILD_CC=$ac_cv_prog_BUILD_CC
4714if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4716echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718 { echo "$as_me:$LINENO: result: no" >&5
4719echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004720fi
4721
4722
4723 if test -z "$BUILD_CC"; then
4724 # Extract the first word of "cc", so it can be a program name with args.
4725set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004730else
4731 if test -n "$BUILD_CC"; then
4732 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733else
4734 ac_prog_rejected=no
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 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 +00004742 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4743 ac_prog_rejected=yes
4744 continue
4745 fi
4746 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004748 break 2
4749 fi
4750done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004751done
Reid Spencera773bd52006-08-04 18:18:08 +00004752IFS=$as_save_IFS
4753
4754if test $ac_prog_rejected = yes; then
4755 # We found a bogon in the path, so make sure we never use it.
4756 set dummy $ac_cv_prog_BUILD_CC
4757 shift
4758 if test $# != 0; then
4759 # We chose a different compiler from the bogus one.
4760 # However, it has the same basename, so the bogon will be chosen
4761 # first if we set BUILD_CC to just the basename; use the full file name.
4762 shift
4763 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4764 fi
4765fi
4766fi
4767fi
4768BUILD_CC=$ac_cv_prog_BUILD_CC
4769if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004770 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4771echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004773 { echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004775fi
4776
4777
4778 fi
4779 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4781echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4782 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004783 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4784 rm -f conftest*
4785 echo 'int main () { return 0; }' > conftest.$ac_ext
4786 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004788 (eval $ac_build_link) 2>&5
4789 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004792 for file in conftest.*; do
4793 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004794 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004795 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4796 esac
4797 done
4798 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004799 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4800echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4801 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004802 fi
4803 rm -f conftest*
4804 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4805fi
4806fi
4807
4808BUILD_EXEEXT=""
4809test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004810{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4811echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004812ac_build_exeext=$BUILD_EXEEXT
4813
Jim Grosbach673612e2008-10-02 22:56:44 +00004814 ac_build_prefix=${build_alias}-
4815 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4816set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004821else
4822 if test -n "$BUILD_CXX"; then
4823 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 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 +00004832 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004834 break 2
4835 fi
4836done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837done
Jim Grosbach673612e2008-10-02 22:56:44 +00004838IFS=$as_save_IFS
4839
4840fi
4841fi
4842BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004846else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847 { echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004849fi
4850
4851
4852 if test -z "$BUILD_CXX"; then
4853 # Extract the first word of "g++", so it can be a program name with args.
4854set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004859else
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 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 +00004870 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004872 break 2
4873 fi
4874done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875done
Jim Grosbach673612e2008-10-02 22:56:44 +00004876IFS=$as_save_IFS
4877
4878fi
4879fi
4880BUILD_CXX=$ac_cv_prog_BUILD_CXX
4881if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4883echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885 { echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004887fi
4888
4889
4890 if test -z "$BUILD_CXX"; then
4891 # Extract the first word of "c++", so it can be a program name with args.
4892set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004897else
4898 if test -n "$BUILD_CXX"; then
4899 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900else
4901 ac_prog_rejected=no
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 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 +00004909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4910 ac_prog_rejected=yes
4911 continue
4912 fi
4913 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004915 break 2
4916 fi
4917done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918done
Jim Grosbach673612e2008-10-02 22:56:44 +00004919IFS=$as_save_IFS
4920
4921if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_BUILD_CXX
4924 shift
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set BUILD_CXX to just the basename; use the full file name.
4929 shift
4930 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4931 fi
4932fi
4933fi
4934fi
4935BUILD_CXX=$ac_cv_prog_BUILD_CXX
4936if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4938echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004940 { echo "$as_me:$LINENO: result: no" >&5
4941echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004942fi
4943
4944
4945 fi
4946 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004947else
4948 LLVM_CROSS_COMPILING=0
4949
4950fi
4951
Dan Gohman56fb5f92010-08-04 16:25:01 +00004952if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004953 cvsbuild="yes"
4954 optimize="no"
4955 CVSBUILD=CVSBUILD=1
4956
4957else
4958 cvsbuild="no"
4959 optimize="yes"
4960fi
4961
4962
Eric Christopherbee515f2011-11-11 22:51:42 +00004963# Check whether --enable-libcpp was given.
4964if test "${enable_libcpp+set}" = set; then
4965 enableval=$enable_libcpp;
4966else
4967 enableval=default
4968fi
4969
4970case "$enableval" in
4971 yes) ENABLE_LIBCPP=1
4972 ;;
4973 no) ENABLE_LIBCPP=0
4974 ;;
4975 default) ENABLE_LIBCPP=0
4976;;
4977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4978echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4979 { (exit 1); exit 1; }; } ;;
4980esac
4981
Reid Spencera773bd52006-08-04 18:18:08 +00004982# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004983if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004984 enableval=$enable_optimized;
4985else
4986 enableval=$optimize
4987fi
4988
4989if test ${enableval} = "no" ; then
4990 ENABLE_OPTIMIZED=
4991
4992else
4993 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4994
4995fi
4996
David Greene2a5a12c2009-04-17 14:50:39 +00004997# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004998if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004999 enableval=$enable_profiling;
5000else
5001 enableval="no"
5002fi
5003
5004if test ${enableval} = "no" ; then
5005 ENABLE_PROFILING=
5006
5007else
5008 ENABLE_PROFILING=ENABLE_PROFILING=1
5009
5010fi
5011
Reid Spencera773bd52006-08-04 18:18:08 +00005012# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005013if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005014 enableval=$enable_assertions;
5015else
5016 enableval="yes"
5017fi
5018
5019if test ${enableval} = "yes" ; then
5020 DISABLE_ASSERTIONS=
5021
5022else
5023 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5024
5025fi
5026
David Greenea696d242007-06-28 19:36:08 +00005027# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005028if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005029 enableval=$enable_expensive_checks;
5030else
5031 enableval="no"
5032fi
5033
5034if test ${enableval} = "yes" ; then
5035 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5036
5037 EXPENSIVE_CHECKS=yes
5038
5039else
5040 ENABLE_EXPENSIVE_CHECKS=
5041
5042 EXPENSIVE_CHECKS=no
5043
5044fi
5045
Reid Spencer8b2e1412006-11-17 03:32:33 +00005046# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005047if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005048 enableval=$enable_debug_runtime;
5049else
5050 enableval=no
5051fi
5052
5053if test ${enableval} = "no" ; then
5054 DEBUG_RUNTIME=
5055
5056else
5057 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5058
5059fi
5060
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005061# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005062if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005063 enableval=$enable_debug_symbols;
5064else
5065 enableval=no
5066fi
5067
5068if test ${enableval} = "no" ; then
5069 DEBUG_SYMBOLS=
5070
5071else
5072 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5073
5074fi
5075
Reid Spencera773bd52006-08-04 18:18:08 +00005076# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005077if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005078 enableval=$enable_jit;
5079else
5080 enableval=default
5081fi
5082
5083if test ${enableval} = "no"
5084then
5085 JIT=
5086
5087else
5088 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005089 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005090 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005091 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005092 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005093 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005094 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005095 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005096 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005097 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005098 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005099 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005100 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005101 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005102 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005103 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005104 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005105 MBlaze) TARGET_HAS_JIT=0
5106 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005107 PTX) TARGET_HAS_JIT=0
5108 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005109 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005110 ;;
5111 esac
5112fi
5113
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005114# Check whether --enable-docs was given.
5115if test "${enable_docs+set}" = set; then
5116 enableval=$enable_docs;
5117else
5118 enableval=default
5119fi
5120
5121case "$enableval" in
5122 yes) ENABLE_DOCS=1
5123 ;;
5124 no) ENABLE_DOCS=0
5125 ;;
5126 default) ENABLE_DOCS=1
5127 ;;
5128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5129echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5131esac
5132
Reid Spencera773bd52006-08-04 18:18:08 +00005133# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005134if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005135 enableval=$enable_doxygen;
5136else
5137 enableval=default
5138fi
5139
5140case "$enableval" in
5141 yes) ENABLE_DOXYGEN=1
5142 ;;
5143 no) ENABLE_DOXYGEN=0
5144 ;;
5145 default) ENABLE_DOXYGEN=0
5146 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5148echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005150esac
5151
5152# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005153if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005154 enableval=$enable_threads;
5155else
Reid Spencer65c5d752006-11-05 17:08:18 +00005156 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005157fi
5158
5159case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005160 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005161 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005162 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005163 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005164 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005165 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005166 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5167echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5168 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005169esac
5170
Owen Andersona8603702009-05-19 22:18:56 +00005171cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005172#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005173_ACEOF
5174
5175
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005176# Check whether --enable-pthreads was given.
5177if test "${enable_pthreads+set}" = set; then
5178 enableval=$enable_pthreads;
5179else
5180 enableval=default
5181fi
5182
5183case "$enableval" in
5184 yes) ENABLE_PTHREADS=1
5185 ;;
5186 no) ENABLE_PTHREADS=0
5187 ;;
5188 default) ENABLE_PTHREADS=1
5189 ;;
5190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5191echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
5193esac
5194
Reid Spencer89b0d992006-12-16 22:07:52 +00005195# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005196if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005197 enableval=$enable_pic;
5198else
5199 enableval=default
5200fi
5201
5202case "$enableval" in
5203 yes) ENABLE_PIC=1
5204 ;;
5205 no) ENABLE_PIC=0
5206 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005207 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005208 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5210echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005212esac
5213
5214cat >>confdefs.h <<_ACEOF
5215#define ENABLE_PIC $ENABLE_PIC
5216_ACEOF
5217
5218
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005219# Check whether --enable-shared was given.
5220if test "${enable_shared+set}" = set; then
5221 enableval=$enable_shared;
5222else
5223 enableval=default
5224fi
5225
5226case "$enableval" in
5227 yes) ENABLE_SHARED=1
5228 ;;
5229 no) ENABLE_SHARED=0
5230 ;;
5231 default) ENABLE_SHARED=0
5232 ;;
5233 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5234echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5235 { (exit 1); exit 1; }; } ;;
5236esac
5237
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005238# Check whether --enable-embed-stdcxx was given.
5239if test "${enable_embed_stdcxx+set}" = set; then
5240 enableval=$enable_embed_stdcxx;
5241else
5242 enableval=default
5243fi
5244
5245case "$enableval" in
5246 yes) ENABLE_EMBED_STDCXX=1
5247 ;;
5248 no) ENABLE_EMBED_STDCXX=0
5249 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005250 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005251 ;;
5252 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5253echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5255esac
5256
Daniel Dunbardd464df2010-05-10 20:11:56 +00005257# Check whether --enable-timestamps was given.
5258if test "${enable_timestamps+set}" = set; then
5259 enableval=$enable_timestamps;
5260else
5261 enableval=default
5262fi
5263
5264case "$enableval" in
5265 yes) ENABLE_TIMESTAMPS=1
5266 ;;
5267 no) ENABLE_TIMESTAMPS=0
5268 ;;
5269 default) ENABLE_TIMESTAMPS=1
5270 ;;
5271 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5272echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5273 { (exit 1); exit 1; }; } ;;
5274esac
5275
5276cat >>confdefs.h <<_ACEOF
5277#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5278_ACEOF
5279
5280
Reid Spencera773bd52006-08-04 18:18:08 +00005281TARGETS_TO_BUILD=""
5282# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005283if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005284 enableval=$enable_targets;
5285else
5286 enableval=all
5287fi
5288
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005289if test "$enableval" = host-only ; then
5290 enableval=host
5291fi
Reid Spencera773bd52006-08-04 18:18:08 +00005292case "$enableval" in
Dan Gohman33ba8b02011-10-27 22:56:32 +00005293 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005294 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5295 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005296 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5297 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5298 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5299 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005300 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5301 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5302 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005303 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5304 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005305 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005306 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005307 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005308 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005309 host) case "$llvm_cv_target_arch" in
5310 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5313 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005314 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005316 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005317 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005318 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5319 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005320 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005321 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5322echo "$as_me: error: Can not set target to build" >&2;}
5323 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005324 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005325 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5326echo "$as_me: error: Unrecognized target $a_target" >&2;}
5327 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005328 esac
5329 done
5330 ;;
5331esac
Reid Spencera773bd52006-08-04 18:18:08 +00005332TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5333
5334
Douglas Gregor0711c302009-06-17 00:43:20 +00005335# Determine whether we are building LLVM support for the native architecture.
5336# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5337for a_target in $TARGETS_TO_BUILD; do
5338 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5339
5340cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005341#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5342_ACEOF
5343
5344 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5345 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005346 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005347 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005348 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5349 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5350 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005351
5352cat >>confdefs.h <<_ACEOF
5353#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005354_ACEOF
5355
5356
5357cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005358#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5359_ACEOF
5360
5361
5362cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005363#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005364_ACEOF
5365
5366
5367cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005368#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005369_ACEOF
5370
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005371 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005372
5373cat >>confdefs.h <<_ACEOF
5374#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5375_ACEOF
5376
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005377 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005378 fi
5379done
5380
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005381# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5382# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005383LLVM_ENUM_TARGETS=""
5384LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005385LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005386LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005387for target_to_build in $TARGETS_TO_BUILD; do
5388 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005389 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005390 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5391 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005392 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5393 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5394 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005395 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5396 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5397 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005398done
5399
5400
5401
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005402
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005403
Reid Spencer65c5d752006-11-05 17:08:18 +00005404# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005405if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005406 enableval=$enable_cbe_printf_a;
5407else
5408 enableval=default
5409fi
5410
5411case "$enableval" in
5412 yes) ENABLE_CBE_PRINTF_A=1
5413 ;;
5414 no) ENABLE_CBE_PRINTF_A=0
5415 ;;
5416 default) ENABLE_CBE_PRINTF_A=1
5417 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005418 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5419echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5420 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005421esac
5422
5423cat >>confdefs.h <<_ACEOF
5424#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5425_ACEOF
5426
5427
Reid Spencera773bd52006-08-04 18:18:08 +00005428
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005429# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005430if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005431 withval=$with_optimize_option;
5432else
5433 withval=default
5434fi
5435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436{ echo "$as_me:$LINENO: checking optimization flags" >&5
5437echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005438case "$withval" in
5439 default)
5440 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005441 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005442 MingW) optimize_option=-O2 ;;
5443 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005444 esac ;;
5445 *) optimize_option="$withval" ;;
5446esac
5447OPTIMIZE_OPTION=$optimize_option
5448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005449{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5450echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005451
5452
Reid Spencera773bd52006-08-04 18:18:08 +00005453# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005454if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005455 withval=$with_extra_options;
5456else
5457 withval=default
5458fi
5459
5460case "$withval" in
5461 default) EXTRA_OPTIONS= ;;
5462 *) EXTRA_OPTIONS=$withval ;;
5463esac
5464EXTRA_OPTIONS=$EXTRA_OPTIONS
5465
5466
Daniel Dunbared344d22011-06-16 22:30:41 +00005467
5468# Check whether --with-extra-ld-options was given.
5469if test "${with_extra_ld_options+set}" = set; then
5470 withval=$with_extra_ld_options;
5471else
5472 withval=default
5473fi
5474
5475case "$withval" in
5476 default) EXTRA_LD_OPTIONS= ;;
5477 *) EXTRA_LD_OPTIONS=$withval ;;
5478esac
5479EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5480
5481
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005482# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005483if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005484 enableval=$enable_bindings;
5485else
5486 enableval=default
5487fi
5488
5489BINDINGS_TO_BUILD=""
5490case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005491 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005492 all ) BINDINGS_TO_BUILD="ocaml" ;;
5493 none | no) BINDINGS_TO_BUILD="" ;;
5494 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5495 case "$a_binding" in
5496 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005497 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5498echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5499 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005500 esac
5501 done
5502 ;;
5503esac
5504
Reid Spencera773bd52006-08-04 18:18:08 +00005505
Gordon Henriksenf0915682007-10-02 16:42:22 +00005506# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005507if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005508 withval=$with_ocaml_libdir;
5509else
5510 withval=auto
5511fi
5512
5513case "$withval" in
5514 auto) with_ocaml_libdir="$withval" ;;
5515 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005516 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5517echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5518 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005519esac
5520
5521
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005522# Check whether --with-clang-srcdir was given.
5523if test "${with_clang_srcdir+set}" = set; then
5524 withval=$with_clang_srcdir;
5525else
5526 withval="-"
5527fi
5528
5529case "$withval" in
5530 -) clang_src_root="" ;;
5531 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5532 *) clang_src_root="$ac_pwd/$withval" ;;
5533esac
5534CLANG_SRC_ROOT=$clang_src_root
5535
5536
5537
Chandler Carruth6b241162010-10-19 08:21:25 +00005538# Check whether --with-clang-resource-dir was given.
5539if test "${with_clang_resource_dir+set}" = set; then
5540 withval=$with_clang_resource_dir;
5541else
5542 withval=""
5543fi
5544
5545
5546cat >>confdefs.h <<_ACEOF
5547#define CLANG_RESOURCE_DIR "$withval"
5548_ACEOF
5549
5550
5551
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005552# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005553if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005554 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005555else
5556 withval=""
5557fi
5558
5559
5560cat >>confdefs.h <<_ACEOF
5561#define C_INCLUDE_DIRS "$withval"
5562_ACEOF
5563
5564
5565
Rafael Espindola420d23c2009-11-16 19:46:55 +00005566# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005567if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005568 withval=$with_cxx_include_root;
5569else
5570 withval=""
5571fi
5572
5573
5574cat >>confdefs.h <<_ACEOF
5575#define CXX_INCLUDE_ROOT "$withval"
5576_ACEOF
5577
5578
5579
5580# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005581if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005582 withval=$with_cxx_include_arch;
5583else
5584 withval=""
5585fi
5586
5587
5588cat >>confdefs.h <<_ACEOF
5589#define CXX_INCLUDE_ARCH "$withval"
5590_ACEOF
5591
5592
5593
5594# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005595if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005596 withval=$with_cxx_include_32bit_dir;
5597else
5598 withval=""
5599fi
5600
5601
5602cat >>confdefs.h <<_ACEOF
5603#define CXX_INCLUDE_32BIT_DIR "$withval"
5604_ACEOF
5605
5606
5607
5608# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005609if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005610 withval=$with_cxx_include_64bit_dir;
5611else
5612 withval=""
5613fi
5614
5615
5616cat >>confdefs.h <<_ACEOF
5617#define CXX_INCLUDE_64BIT_DIR "$withval"
5618_ACEOF
5619
5620
5621
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005622# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005623if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005624 withval=$with_binutils_include;
5625else
5626 withval=default
5627fi
5628
5629case "$withval" in
5630 default) WITH_BINUTILS_INCDIR=default ;;
5631 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005632 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5633echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5634 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005635esac
5636if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5637 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5638
5639 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5640 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005641 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5642echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5643 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005644 fi
5645fi
5646
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005647
5648# Check whether --with-bug-report-url was given.
5649if test "${with_bug_report_url+set}" = set; then
5650 withval=$with_bug_report_url;
5651else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005652 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005653fi
5654
5655
5656cat >>confdefs.h <<_ACEOF
5657#define BUG_REPORT_URL "$withval"
5658_ACEOF
5659
5660
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005661# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005662if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005663 enableval=$enable_libffi; case "$enableval" in
5664 yes) llvm_cv_enable_libffi="yes" ;;
5665 no) llvm_cv_enable_libffi="no" ;;
5666 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005667echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5668 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005669 esac
5670else
5671 llvm_cv_enable_libffi=no
5672fi
5673
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005674
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005675
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005676# Check whether --with-internal-prefix was given.
5677if test "${with_internal_prefix+set}" = set; then
5678 withval=$with_internal_prefix;
5679else
5680 withval=""
5681fi
5682
5683INTERNAL_PREFIX=$withval
5684
5685
5686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005687{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5688echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5689if test "${lt_cv_path_NM+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005691else
5692 if test -n "$NM"; then
5693 # Let the user override the test.
5694 lt_cv_path_NM="$NM"
5695else
5696 lt_nm_to_check="${ac_tool_prefix}nm"
5697 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5698 lt_nm_to_check="$lt_nm_to_check nm"
5699 fi
5700 for lt_tmp_nm in $lt_nm_to_check; do
5701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5702 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5703 IFS="$lt_save_ifs"
5704 test -z "$ac_dir" && ac_dir=.
5705 tmp_nm="$ac_dir/$lt_tmp_nm"
5706 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5707 # Check to see if the nm accepts a BSD-compat flag.
5708 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5709 # nm: unknown option "B" ignored
5710 # Tru64's nm complains that /dev/null is an invalid object file
5711 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5712 */dev/null* | *'Invalid file or object type'*)
5713 lt_cv_path_NM="$tmp_nm -B"
5714 break
5715 ;;
5716 *)
5717 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5718 */dev/null*)
5719 lt_cv_path_NM="$tmp_nm -p"
5720 break
5721 ;;
5722 *)
5723 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5724 continue # so that we can try to find one that supports BSD flags
5725 ;;
5726 esac
5727 ;;
5728 esac
5729 fi
5730 done
5731 IFS="$lt_save_ifs"
5732 done
5733 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5734fi
5735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005736{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5737echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005738NM="$lt_cv_path_NM"
5739
5740
5741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005742{ echo "$as_me:$LINENO: checking for GNU make" >&5
5743echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5744if test "${llvm_cv_gnu_make_command+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005746else
5747 llvm_cv_gnu_make_command=''
5748 for a in "$MAKE" make gmake gnumake ; do
5749 if test -z "$a" ; then continue ; fi ;
5750 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5751 then
5752 llvm_cv_gnu_make_command=$a ;
5753 break;
5754 fi
5755 done
5756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005757{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5758echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005759 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5760 ifGNUmake='' ;
5761 else
5762 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005763 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5764echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005765 fi
5766
5767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5769echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005770LN_S=$as_ln_s
5771if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005772 { echo "$as_me:$LINENO: result: yes" >&5
5773echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005774else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005775 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5776echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005777fi
5778
5779# Extract the first word of "cmp", so it can be a program name with args.
5780set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783if test "${ac_cv_path_CMP+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005785else
5786 case $CMP in
5787 [\\/]* | ?:[\\/]*)
5788 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5789 ;;
5790 *)
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 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 +00005798 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005800 break 2
5801 fi
5802done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005803done
Reid Spencera773bd52006-08-04 18:18:08 +00005804IFS=$as_save_IFS
5805
5806 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5807 ;;
5808esac
5809fi
5810CMP=$ac_cv_path_CMP
5811if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005812 { echo "$as_me:$LINENO: result: $CMP" >&5
5813echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815 { echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005817fi
5818
5819
5820# Extract the first word of "cp", so it can be a program name with args.
5821set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824if test "${ac_cv_path_CP+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005826else
5827 case $CP in
5828 [\\/]* | ?:[\\/]*)
5829 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5830 ;;
5831 *)
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 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 +00005839 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005841 break 2
5842 fi
5843done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005844done
Reid Spencera773bd52006-08-04 18:18:08 +00005845IFS=$as_save_IFS
5846
5847 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5848 ;;
5849esac
5850fi
5851CP=$ac_cv_path_CP
5852if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853 { echo "$as_me:$LINENO: result: $CP" >&5
5854echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856 { echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005858fi
5859
5860
5861# Extract the first word of "date", so it can be a program name with args.
5862set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865if test "${ac_cv_path_DATE+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005867else
5868 case $DATE in
5869 [\\/]* | ?:[\\/]*)
5870 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5871 ;;
5872 *)
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 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 +00005880 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005882 break 2
5883 fi
5884done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885done
Reid Spencera773bd52006-08-04 18:18:08 +00005886IFS=$as_save_IFS
5887
5888 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5889 ;;
5890esac
5891fi
5892DATE=$ac_cv_path_DATE
5893if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894 { echo "$as_me:$LINENO: result: $DATE" >&5
5895echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005897 { echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005899fi
5900
5901
5902# Extract the first word of "find", so it can be a program name with args.
5903set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906if test "${ac_cv_path_FIND+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005908else
5909 case $FIND in
5910 [\\/]* | ?:[\\/]*)
5911 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5912 ;;
5913 *)
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 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 +00005921 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005923 break 2
5924 fi
5925done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005926done
Reid Spencera773bd52006-08-04 18:18:08 +00005927IFS=$as_save_IFS
5928
5929 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5930 ;;
5931esac
5932fi
5933FIND=$ac_cv_path_FIND
5934if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935 { echo "$as_me:$LINENO: result: $FIND" >&5
5936echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938 { echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005940fi
5941
5942
5943# Extract the first word of "grep", so it can be a program name with args.
5944set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947if test "${ac_cv_path_GREP+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005949else
5950 case $GREP in
5951 [\\/]* | ?:[\\/]*)
5952 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5953 ;;
5954 *)
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 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 +00005962 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005964 break 2
5965 fi
5966done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005967done
Reid Spencera773bd52006-08-04 18:18:08 +00005968IFS=$as_save_IFS
5969
5970 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5971 ;;
5972esac
5973fi
5974GREP=$ac_cv_path_GREP
5975if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005976 { echo "$as_me:$LINENO: result: $GREP" >&5
5977echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005979 { echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005981fi
5982
5983
5984# Extract the first word of "mkdir", so it can be a program name with args.
5985set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988if test "${ac_cv_path_MKDIR+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005990else
5991 case $MKDIR in
5992 [\\/]* | ?:[\\/]*)
5993 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5994 ;;
5995 *)
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 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 +00006003 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006005 break 2
6006 fi
6007done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006008done
Reid Spencera773bd52006-08-04 18:18:08 +00006009IFS=$as_save_IFS
6010
6011 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6012 ;;
6013esac
6014fi
6015MKDIR=$ac_cv_path_MKDIR
6016if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006017 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6018echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020 { echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006022fi
6023
6024
6025# Extract the first word of "mv", so it can be a program name with args.
6026set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029if test "${ac_cv_path_MV+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006031else
6032 case $MV in
6033 [\\/]* | ?:[\\/]*)
6034 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6035 ;;
6036 *)
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 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 +00006044 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006046 break 2
6047 fi
6048done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006049done
Reid Spencera773bd52006-08-04 18:18:08 +00006050IFS=$as_save_IFS
6051
6052 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6053 ;;
6054esac
6055fi
6056MV=$ac_cv_path_MV
6057if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006058 { echo "$as_me:$LINENO: result: $MV" >&5
6059echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061 { echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006063fi
6064
6065
6066if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6071if test "${ac_cv_prog_RANLIB+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006073else
6074 if test -n "$RANLIB"; then
6075 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 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 +00006084 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006086 break 2
6087 fi
6088done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006089done
Reid Spencera773bd52006-08-04 18:18:08 +00006090IFS=$as_save_IFS
6091
6092fi
6093fi
6094RANLIB=$ac_cv_prog_RANLIB
6095if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006096 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6097echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006098else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006099 { echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006101fi
6102
6103
6104fi
6105if test -z "$ac_cv_prog_RANLIB"; then
6106 ac_ct_RANLIB=$RANLIB
6107 # Extract the first word of "ranlib", so it can be a program name with args.
6108set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006113else
6114 if test -n "$ac_ct_RANLIB"; then
6115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 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 +00006124 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006126 break 2
6127 fi
6128done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129done
Reid Spencera773bd52006-08-04 18:18:08 +00006130IFS=$as_save_IFS
6131
6132fi
6133fi
6134ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6135if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006136 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6137echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006139 { echo "$as_me:$LINENO: result: no" >&5
6140echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006141fi
6142
6143 if test "x$ac_ct_RANLIB" = x; then
6144 RANLIB=":"
6145 else
6146 case $cross_compiling:$ac_tool_warned in
6147yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006148{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6149whose name does not start with the host triplet. If you think this
6150configuration is useful to you, please write to autoconf@gnu.org." >&5
6151echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6152whose name does not start with the host triplet. If you think this
6153configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006154ac_tool_warned=yes ;;
6155esac
6156 RANLIB=$ac_ct_RANLIB
6157 fi
6158else
6159 RANLIB="$ac_cv_prog_RANLIB"
6160fi
6161
Torok Edwin871384f2010-01-26 08:50:50 +00006162if test -n "$ac_tool_prefix"; then
6163 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6164set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6167if test "${ac_cv_prog_AR+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006169else
6170 if test -n "$AR"; then
6171 ac_cv_prog_AR="$AR" # Let the user override the test.
6172else
6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 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 +00006180 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006182 break 2
6183 fi
6184done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185done
Torok Edwin871384f2010-01-26 08:50:50 +00006186IFS=$as_save_IFS
6187
6188fi
6189fi
6190AR=$ac_cv_prog_AR
6191if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192 { echo "$as_me:$LINENO: result: $AR" >&5
6193echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006195 { echo "$as_me:$LINENO: result: no" >&5
6196echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006197fi
6198
6199
6200fi
6201if test -z "$ac_cv_prog_AR"; then
6202 ac_ct_AR=$AR
6203 # Extract the first word of "ar", so it can be a program name with args.
6204set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006209else
6210 if test -n "$ac_ct_AR"; then
6211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 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 +00006220 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006222 break 2
6223 fi
6224done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006225done
Torok Edwin871384f2010-01-26 08:50:50 +00006226IFS=$as_save_IFS
6227
6228fi
6229fi
6230ac_ct_AR=$ac_cv_prog_ac_ct_AR
6231if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6233echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006234else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006235 { echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006237fi
6238
6239 if test "x$ac_ct_AR" = x; then
6240 AR="false"
6241 else
6242 case $cross_compiling:$ac_tool_warned in
6243yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006244{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6245whose name does not start with the host triplet. If you think this
6246configuration is useful to you, please write to autoconf@gnu.org." >&5
6247echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6248whose name does not start with the host triplet. If you think this
6249configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006250ac_tool_warned=yes ;;
6251esac
6252 AR=$ac_ct_AR
6253 fi
6254else
6255 AR="$ac_cv_prog_AR"
6256fi
6257
Reid Spencera773bd52006-08-04 18:18:08 +00006258# Extract the first word of "rm", so it can be a program name with args.
6259set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262if test "${ac_cv_path_RM+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006264else
6265 case $RM in
6266 [\\/]* | ?:[\\/]*)
6267 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6268 ;;
6269 *)
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 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 +00006277 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006279 break 2
6280 fi
6281done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006282done
Reid Spencera773bd52006-08-04 18:18:08 +00006283IFS=$as_save_IFS
6284
6285 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6286 ;;
6287esac
6288fi
6289RM=$ac_cv_path_RM
6290if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291 { echo "$as_me:$LINENO: result: $RM" >&5
6292echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294 { echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006296fi
6297
6298
6299# Extract the first word of "sed", so it can be a program name with args.
6300set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303if test "${ac_cv_path_SED+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006305else
6306 case $SED in
6307 [\\/]* | ?:[\\/]*)
6308 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6309 ;;
6310 *)
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 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 +00006318 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006320 break 2
6321 fi
6322done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006323done
Reid Spencera773bd52006-08-04 18:18:08 +00006324IFS=$as_save_IFS
6325
6326 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6327 ;;
6328esac
6329fi
6330SED=$ac_cv_path_SED
6331if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332 { echo "$as_me:$LINENO: result: $SED" >&5
6333echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335 { echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006337fi
6338
6339
6340# Extract the first word of "tar", so it can be a program name with args.
6341set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344if test "${ac_cv_path_TAR+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006346else
6347 case $TAR in
6348 [\\/]* | ?:[\\/]*)
6349 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6350 ;;
6351 *)
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 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 +00006359 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006361 break 2
6362 fi
6363done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364done
Reid Spencera773bd52006-08-04 18:18:08 +00006365IFS=$as_save_IFS
6366
6367 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6368 ;;
6369esac
6370fi
6371TAR=$ac_cv_path_TAR
6372if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006373 { echo "$as_me:$LINENO: result: $TAR" >&5
6374echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006376 { echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006378fi
6379
6380
6381# Extract the first word of "pwd", so it can be a program name with args.
6382set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385if test "${ac_cv_path_BINPWD+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006387else
6388 case $BINPWD in
6389 [\\/]* | ?:[\\/]*)
6390 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6391 ;;
6392 *)
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 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 +00006400 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006402 break 2
6403 fi
6404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006405done
Reid Spencera773bd52006-08-04 18:18:08 +00006406IFS=$as_save_IFS
6407
6408 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6409 ;;
6410esac
6411fi
6412BINPWD=$ac_cv_path_BINPWD
6413if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006414 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6415echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417 { echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006419fi
6420
6421
6422
6423# Extract the first word of "Graphviz", so it can be a program name with args.
6424set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006429else
6430 case $GRAPHVIZ in
6431 [\\/]* | ?:[\\/]*)
6432 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6433 ;;
6434 *)
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 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 +00006442 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006444 break 2
6445 fi
6446done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006447done
Reid Spencera773bd52006-08-04 18:18:08 +00006448IFS=$as_save_IFS
6449
6450 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6451 ;;
6452esac
6453fi
6454GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6455if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006456 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6457echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006459 { echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006461fi
6462
6463
6464if test "$GRAPHVIZ" != "echo Graphviz" ; then
6465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006466cat >>confdefs.h <<\_ACEOF
6467#define HAVE_GRAPHVIZ 1
6468_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006469
Jeff Cohen28783c32007-01-12 18:22:38 +00006470 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006471 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6472 fi
6473
6474cat >>confdefs.h <<_ACEOF
6475#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6476_ACEOF
6477
6478fi
6479# Extract the first word of "dot", so it can be a program name with args.
6480set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483if test "${ac_cv_path_DOT+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006485else
6486 case $DOT in
6487 [\\/]* | ?:[\\/]*)
6488 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6489 ;;
6490 *)
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 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 +00006498 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006500 break 2
6501 fi
6502done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006503done
Reid Spencera773bd52006-08-04 18:18:08 +00006504IFS=$as_save_IFS
6505
6506 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6507 ;;
6508esac
6509fi
6510DOT=$ac_cv_path_DOT
6511if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006512 { echo "$as_me:$LINENO: result: $DOT" >&5
6513echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006515 { echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006517fi
6518
6519
6520if test "$DOT" != "echo dot" ; then
6521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006522cat >>confdefs.h <<\_ACEOF
6523#define HAVE_DOT 1
6524_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006525
Jeff Cohen28783c32007-01-12 18:22:38 +00006526 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006527 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6528 fi
6529
6530cat >>confdefs.h <<_ACEOF
6531#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6532_ACEOF
6533
6534fi
David Greenef0b9eff2009-07-09 17:16:26 +00006535# Extract the first word of "fdp", so it can be a program name with args.
6536set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539if test "${ac_cv_path_FDP+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006541else
6542 case $FDP in
6543 [\\/]* | ?:[\\/]*)
6544 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6545 ;;
6546 *)
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 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 +00006554 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006556 break 2
6557 fi
6558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559done
David Greenef0b9eff2009-07-09 17:16:26 +00006560IFS=$as_save_IFS
6561
6562 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6563 ;;
6564esac
6565fi
6566FDP=$ac_cv_path_FDP
6567if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568 { echo "$as_me:$LINENO: result: $FDP" >&5
6569echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006571 { echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006573fi
6574
6575
6576if test "$FDP" != "echo fdp" ; then
6577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006578cat >>confdefs.h <<\_ACEOF
6579#define HAVE_FDP 1
6580_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006581
6582 if test "$llvm_cv_os_type" = "MingW" ; then
6583 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6584 fi
6585
6586cat >>confdefs.h <<_ACEOF
6587#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6588_ACEOF
6589
6590fi
6591# Extract the first word of "neato", so it can be a program name with args.
6592set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595if test "${ac_cv_path_NEATO+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006597else
6598 case $NEATO in
6599 [\\/]* | ?:[\\/]*)
6600 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6601 ;;
6602 *)
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 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 +00006610 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006612 break 2
6613 fi
6614done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615done
David Greenef0b9eff2009-07-09 17:16:26 +00006616IFS=$as_save_IFS
6617
6618 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6619 ;;
6620esac
6621fi
6622NEATO=$ac_cv_path_NEATO
6623if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624 { echo "$as_me:$LINENO: result: $NEATO" >&5
6625echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006627 { echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006629fi
6630
6631
6632if test "$NEATO" != "echo neato" ; then
6633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006634cat >>confdefs.h <<\_ACEOF
6635#define HAVE_NEATO 1
6636_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006637
6638 if test "$llvm_cv_os_type" = "MingW" ; then
6639 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6640 fi
6641
6642cat >>confdefs.h <<_ACEOF
6643#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6644_ACEOF
6645
6646fi
6647# Extract the first word of "twopi", so it can be a program name with args.
6648set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651if test "${ac_cv_path_TWOPI+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006653else
6654 case $TWOPI in
6655 [\\/]* | ?:[\\/]*)
6656 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6657 ;;
6658 *)
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 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 +00006666 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006668 break 2
6669 fi
6670done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671done
David Greenef0b9eff2009-07-09 17:16:26 +00006672IFS=$as_save_IFS
6673
6674 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6675 ;;
6676esac
6677fi
6678TWOPI=$ac_cv_path_TWOPI
6679if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6681echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006682else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006683 { echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006685fi
6686
6687
6688if test "$TWOPI" != "echo twopi" ; then
6689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006690cat >>confdefs.h <<\_ACEOF
6691#define HAVE_TWOPI 1
6692_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006693
6694 if test "$llvm_cv_os_type" = "MingW" ; then
6695 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6696 fi
6697
6698cat >>confdefs.h <<_ACEOF
6699#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6700_ACEOF
6701
6702fi
6703# Extract the first word of "circo", so it can be a program name with args.
6704set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707if test "${ac_cv_path_CIRCO+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006709else
6710 case $CIRCO in
6711 [\\/]* | ?:[\\/]*)
6712 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6713 ;;
6714 *)
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 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 +00006722 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006724 break 2
6725 fi
6726done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727done
David Greenef0b9eff2009-07-09 17:16:26 +00006728IFS=$as_save_IFS
6729
6730 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6731 ;;
6732esac
6733fi
6734CIRCO=$ac_cv_path_CIRCO
6735if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6737echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006739 { echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006741fi
6742
6743
6744if test "$CIRCO" != "echo circo" ; then
6745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006746cat >>confdefs.h <<\_ACEOF
6747#define HAVE_CIRCO 1
6748_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006749
6750 if test "$llvm_cv_os_type" = "MingW" ; then
6751 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6752 fi
6753
6754cat >>confdefs.h <<_ACEOF
6755#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6756_ACEOF
6757
6758fi
Reid Spencera773bd52006-08-04 18:18:08 +00006759for ac_prog in gv gsview32
6760do
6761 # Extract the first word of "$ac_prog", so it can be a program name with args.
6762set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765if test "${ac_cv_path_GV+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006767else
6768 case $GV in
6769 [\\/]* | ?:[\\/]*)
6770 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6771 ;;
6772 *)
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 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 +00006780 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006782 break 2
6783 fi
6784done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785done
Reid Spencera773bd52006-08-04 18:18:08 +00006786IFS=$as_save_IFS
6787
6788 ;;
6789esac
6790fi
6791GV=$ac_cv_path_GV
6792if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793 { echo "$as_me:$LINENO: result: $GV" >&5
6794echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796 { echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006798fi
6799
6800
6801 test -n "$GV" && break
6802done
6803test -n "$GV" || GV="echo gv"
6804
6805if test "$GV" != "echo gv" ; then
6806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807cat >>confdefs.h <<\_ACEOF
6808#define HAVE_GV 1
6809_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006810
Jeff Cohen28783c32007-01-12 18:22:38 +00006811 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006812 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813 fi
6814
6815cat >>confdefs.h <<_ACEOF
6816#define LLVM_PATH_GV "$GV${EXEEXT}"
6817_ACEOF
6818
6819fi
6820# Extract the first word of "dotty", so it can be a program name with args.
6821set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824if test "${ac_cv_path_DOTTY+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006826else
6827 case $DOTTY in
6828 [\\/]* | ?:[\\/]*)
6829 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6830 ;;
6831 *)
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 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 +00006839 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006841 break 2
6842 fi
6843done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844done
Reid Spencera773bd52006-08-04 18:18:08 +00006845IFS=$as_save_IFS
6846
6847 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6848 ;;
6849esac
6850fi
6851DOTTY=$ac_cv_path_DOTTY
6852if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6854echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006856 { echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006858fi
6859
6860
6861if test "$DOTTY" != "echo dotty" ; then
6862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863cat >>confdefs.h <<\_ACEOF
6864#define HAVE_DOTTY 1
6865_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006866
Jeff Cohen28783c32007-01-12 18:22:38 +00006867 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006868 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6869 fi
6870
6871cat >>confdefs.h <<_ACEOF
6872#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6873_ACEOF
6874
6875fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006876# Extract the first word of "xdot.py", so it can be a program name with args.
6877set dummy xdot.py; ac_word=$2
6878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880if test "${ac_cv_path_XDOT_PY+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883 case $XDOT_PY in
6884 [\\/]* | ?:[\\/]*)
6885 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6886 ;;
6887 *)
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899done
6900done
6901IFS=$as_save_IFS
6902
6903 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6904 ;;
6905esac
6906fi
6907XDOT_PY=$ac_cv_path_XDOT_PY
6908if test -n "$XDOT_PY"; then
6909 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6910echo "${ECHO_T}$XDOT_PY" >&6; }
6911else
6912 { echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6; }
6914fi
6915
6916
6917if test "$XDOT_PY" != "echo xdot.py" ; then
6918
6919cat >>confdefs.h <<\_ACEOF
6920#define HAVE_XDOT_PY 1
6921_ACEOF
6922
6923 if test "$llvm_cv_os_type" = "MingW" ; then
6924 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6925 fi
6926
6927cat >>confdefs.h <<_ACEOF
6928#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6929_ACEOF
6930
6931fi
Reid Spencera773bd52006-08-04 18:18:08 +00006932
6933
6934# Extract the first word of "perl", so it can be a program name with args.
6935set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6938if test "${ac_cv_path_PERL+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006940else
6941 case $PERL in
6942 [\\/]* | ?:[\\/]*)
6943 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6944 ;;
6945 *)
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 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 +00006953 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006955 break 2
6956 fi
6957done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958done
Reid Spencera773bd52006-08-04 18:18:08 +00006959IFS=$as_save_IFS
6960
6961 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6962 ;;
6963esac
6964fi
6965PERL=$ac_cv_path_PERL
6966if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967 { echo "$as_me:$LINENO: result: $PERL" >&5
6968echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006970 { echo "$as_me:$LINENO: result: no" >&5
6971echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006972fi
6973
6974
6975if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6977echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006978 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979 { echo "$as_me:$LINENO: result: yes" >&5
6980echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006981 else
6982 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006983 { echo "$as_me:$LINENO: result: not found" >&5
6984echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006985 fi
6986fi
6987
6988
6989if test x"$PERL" = xnone; then
6990 HAVE_PERL=0
6991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006992 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6993echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6994 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006995else
6996 HAVE_PERL=1
6997
6998fi
6999
7000# Find a good install program. We prefer a C program (faster),
7001# so one script is as good as another. But avoid the broken or
7002# incompatible versions:
7003# SysV /etc/install, /usr/sbin/install
7004# SunOS /usr/etc/install
7005# IRIX /sbin/install
7006# AIX /bin/install
7007# AmigaOS /C/install, which installs bootblocks on floppy discs
7008# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7009# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7010# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7011# OS/2's system install, which has a completely different semantic
7012# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7014echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007015if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007016if test "${ac_cv_path_install+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007018else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007024 # Account for people who put trailing slashes in PATH elements.
7025case $as_dir/ in
7026 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007028 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007029 /usr/ucb/* ) ;;
7030 *)
7031 # OSF1 and SCO ODT 3.0 have their own names for install.
7032 # Don't use installbsd from OSF since it installs stuff as root
7033 # by default.
7034 for ac_prog in ginstall scoinst install; do
7035 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036 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 +00007037 if test $ac_prog = install &&
7038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7039 # AIX install. It has an incompatible calling convention.
7040 :
7041 elif test $ac_prog = install &&
7042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7043 # program-specific install script used by HP pwplus--don't use.
7044 :
7045 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7047 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007048 fi
7049 fi
7050 done
7051 done
7052 ;;
7053esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054done
Reid Spencera773bd52006-08-04 18:18:08 +00007055IFS=$as_save_IFS
7056
7057
7058fi
7059 if test "${ac_cv_path_install+set}" = set; then
7060 INSTALL=$ac_cv_path_install
7061 else
7062 # As a last resort, use the slow shell script. Don't cache a
7063 # value for INSTALL within a source directory, because that will
7064 # break other packages using the cache if that directory is
7065 # removed, or if the value is a relative name.
7066 INSTALL=$ac_install_sh
7067 fi
7068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7070echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007071
7072# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7073# It thinks the first close brace ends the variable substitution.
7074test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7075
7076test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7077
7078test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7079
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007080case "$INSTALL" in
7081 [\\/$]* | ?:[\\/]* ) ;;
7082 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7083esac
Reid Spencera773bd52006-08-04 18:18:08 +00007084
7085# Extract the first word of "bzip2", so it can be a program name with args.
7086set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089if test "${ac_cv_path_BZIP2+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007091else
7092 case $BZIP2 in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7095 ;;
7096 *)
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 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 +00007104 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007106 break 2
7107 fi
7108done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007109done
Reid Spencera773bd52006-08-04 18:18:08 +00007110IFS=$as_save_IFS
7111
Reid Spencera773bd52006-08-04 18:18:08 +00007112 ;;
7113esac
7114fi
7115BZIP2=$ac_cv_path_BZIP2
7116if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7118echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007119else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007120 { echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007122fi
7123
7124
mike-m68cb3192010-05-06 23:45:43 +00007125# Extract the first word of "cat", so it can be a program name with args.
7126set dummy cat; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_path_CAT+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 case $CAT in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152 ;;
7153esac
7154fi
7155CAT=$ac_cv_path_CAT
7156if test -n "$CAT"; then
7157 { echo "$as_me:$LINENO: result: $CAT" >&5
7158echo "${ECHO_T}$CAT" >&6; }
7159else
7160 { echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6; }
7162fi
7163
7164
Reid Spencera773bd52006-08-04 18:18:08 +00007165# Extract the first word of "doxygen", so it can be a program name with args.
7166set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169if test "${ac_cv_path_DOXYGEN+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007171else
7172 case $DOXYGEN in
7173 [\\/]* | ?:[\\/]*)
7174 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7175 ;;
7176 *)
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 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 +00007184 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007186 break 2
7187 fi
7188done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007189done
Reid Spencera773bd52006-08-04 18:18:08 +00007190IFS=$as_save_IFS
7191
Reid Spencera773bd52006-08-04 18:18:08 +00007192 ;;
7193esac
7194fi
7195DOXYGEN=$ac_cv_path_DOXYGEN
7196if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7198echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200 { echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007202fi
7203
7204
Reid Spencera773bd52006-08-04 18:18:08 +00007205# Extract the first word of "groff", so it can be a program name with args.
7206set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7209if test "${ac_cv_path_GROFF+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007211else
7212 case $GROFF in
7213 [\\/]* | ?:[\\/]*)
7214 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7215 ;;
7216 *)
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 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 +00007224 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007226 break 2
7227 fi
7228done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007229done
Reid Spencera773bd52006-08-04 18:18:08 +00007230IFS=$as_save_IFS
7231
Reid Spencera773bd52006-08-04 18:18:08 +00007232 ;;
7233esac
7234fi
7235GROFF=$ac_cv_path_GROFF
7236if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 { echo "$as_me:$LINENO: result: $GROFF" >&5
7238echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240 { echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007242fi
7243
7244
7245# Extract the first word of "gzip", so it can be a program name with args.
7246set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007249if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007250 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007251else
Eric Christopher031d3072010-12-10 01:31:51 +00007252 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007253 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007254 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007255 ;;
7256 *)
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007264 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007266 break 2
7267 fi
7268done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007269done
Reid Spencera773bd52006-08-04 18:18:08 +00007270IFS=$as_save_IFS
7271
Reid Spencera773bd52006-08-04 18:18:08 +00007272 ;;
7273esac
7274fi
Eric Christopher031d3072010-12-10 01:31:51 +00007275GZIPBIN=$ac_cv_path_GZIPBIN
7276if test -n "$GZIPBIN"; then
7277 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7278echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 { echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007282fi
7283
7284
7285# Extract the first word of "pod2html", so it can be a program name with args.
7286set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289if test "${ac_cv_path_POD2HTML+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007291else
7292 case $POD2HTML in
7293 [\\/]* | ?:[\\/]*)
7294 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7295 ;;
7296 *)
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007304 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007306 break 2
7307 fi
7308done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007309done
Reid Spencera773bd52006-08-04 18:18:08 +00007310IFS=$as_save_IFS
7311
Reid Spencera773bd52006-08-04 18:18:08 +00007312 ;;
7313esac
7314fi
7315POD2HTML=$ac_cv_path_POD2HTML
7316if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7318echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 { echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007322fi
7323
7324
7325# Extract the first word of "pod2man", so it can be a program name with args.
7326set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329if test "${ac_cv_path_POD2MAN+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007331else
7332 case $POD2MAN in
7333 [\\/]* | ?:[\\/]*)
7334 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7335 ;;
7336 *)
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 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 +00007344 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007346 break 2
7347 fi
7348done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007349done
Reid Spencera773bd52006-08-04 18:18:08 +00007350IFS=$as_save_IFS
7351
Reid Spencera773bd52006-08-04 18:18:08 +00007352 ;;
7353esac
7354fi
7355POD2MAN=$ac_cv_path_POD2MAN
7356if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7358echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360 { echo "$as_me:$LINENO: result: no" >&5
7361echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007362fi
7363
7364
mike-m68cb3192010-05-06 23:45:43 +00007365# Extract the first word of "pdfroff", so it can be a program name with args.
7366set dummy pdfroff; ac_word=$2
7367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369if test "${ac_cv_path_PDFROFF+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7371else
7372 case $PDFROFF in
7373 [\\/]* | ?:[\\/]*)
7374 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7375 ;;
7376 *)
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7387 fi
7388done
7389done
7390IFS=$as_save_IFS
7391
7392 ;;
7393esac
7394fi
7395PDFROFF=$ac_cv_path_PDFROFF
7396if test -n "$PDFROFF"; then
7397 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7398echo "${ECHO_T}$PDFROFF" >&6; }
7399else
7400 { echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6; }
7402fi
7403
7404
Reid Spencera773bd52006-08-04 18:18:08 +00007405# Extract the first word of "runtest", so it can be a program name with args.
7406set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409if test "${ac_cv_path_RUNTEST+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007411else
7412 case $RUNTEST in
7413 [\\/]* | ?:[\\/]*)
7414 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7415 ;;
7416 *)
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 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 +00007424 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007426 break 2
7427 fi
7428done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429done
Reid Spencera773bd52006-08-04 18:18:08 +00007430IFS=$as_save_IFS
7431
Reid Spencera773bd52006-08-04 18:18:08 +00007432 ;;
7433esac
7434fi
7435RUNTEST=$ac_cv_path_RUNTEST
7436if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7438echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007440 { echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007442fi
7443
7444
7445
7446no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007447{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7448echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007449
7450# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007452 withval=$with_tclinclude; with_tclinclude=${withval}
7453else
7454 with_tclinclude=''
7455fi
7456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457if test "${ac_cv_path_tclsh+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
7460
7461if test x"${with_tclinclude}" != x ; then
7462 if test -f ${with_tclinclude}/tclsh ; then
7463 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7464 elif test -f ${with_tclinclude}/src/tclsh ; then
7465 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7466 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7468echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7469 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007470 fi
7471fi
Torok Edwin871384f2010-01-26 08:50:50 +00007472fi
7473
Reid Spencera773bd52006-08-04 18:18:08 +00007474
7475if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476 { echo "$as_me:$LINENO: result: none" >&5
7477echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007478 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
7479do
7480 # Extract the first word of "$ac_prog", so it can be a program name with args.
7481set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484if test "${ac_cv_path_TCLSH+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007486else
7487 case $TCLSH in
7488 [\\/]* | ?:[\\/]*)
7489 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7490 ;;
7491 *)
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007499 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007501 break 2
7502 fi
7503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504done
Reid Spencera773bd52006-08-04 18:18:08 +00007505IFS=$as_save_IFS
7506
7507 ;;
7508esac
7509fi
7510TCLSH=$ac_cv_path_TCLSH
7511if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7513echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515 { echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007517fi
7518
7519
7520 test -n "$TCLSH" && break
7521done
7522
7523 if test x"${TCLSH}" = x ; then
7524 ac_cv_path_tclsh='';
7525 else
7526 ac_cv_path_tclsh="${TCLSH}";
7527 fi
7528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7530echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007531 TCLSH="${ac_cv_path_tclsh}"
7532
7533fi
7534
Reid Spencera773bd52006-08-04 18:18:08 +00007535# Extract the first word of "zip", so it can be a program name with args.
7536set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539if test "${ac_cv_path_ZIP+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007541else
7542 case $ZIP in
7543 [\\/]* | ?:[\\/]*)
7544 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7545 ;;
7546 *)
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 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 +00007554 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007556 break 2
7557 fi
7558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007559done
Reid Spencera773bd52006-08-04 18:18:08 +00007560IFS=$as_save_IFS
7561
Reid Spencera773bd52006-08-04 18:18:08 +00007562 ;;
7563esac
7564fi
7565ZIP=$ac_cv_path_ZIP
7566if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567 { echo "$as_me:$LINENO: result: $ZIP" >&5
7568echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570 { echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007572fi
7573
7574
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007575for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007576do
7577 # Extract the first word of "$ac_prog", so it can be a program name with args.
7578set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581if test "${ac_cv_path_OCAMLC+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007583else
7584 case $OCAMLC in
7585 [\\/]* | ?:[\\/]*)
7586 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7587 ;;
7588 *)
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 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 +00007596 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007598 break 2
7599 fi
7600done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007601done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007602IFS=$as_save_IFS
7603
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007604 ;;
7605esac
7606fi
7607OCAMLC=$ac_cv_path_OCAMLC
7608if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7610echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612 { echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007614fi
7615
7616
Gordon Henriksene7072162008-03-07 18:20:01 +00007617 test -n "$OCAMLC" && break
7618done
7619
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007620for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007621do
7622 # Extract the first word of "$ac_prog", so it can be a program name with args.
7623set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007628else
7629 case $OCAMLOPT in
7630 [\\/]* | ?:[\\/]*)
7631 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7632 ;;
7633 *)
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 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 +00007641 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007643 break 2
7644 fi
7645done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007646done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007647IFS=$as_save_IFS
7648
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007649 ;;
7650esac
7651fi
7652OCAMLOPT=$ac_cv_path_OCAMLOPT
7653if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007654 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7655echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007657 { echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007659fi
7660
7661
Gordon Henriksene7072162008-03-07 18:20:01 +00007662 test -n "$OCAMLOPT" && break
7663done
7664
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007665for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007666do
7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
7668set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007673else
7674 case $OCAMLDEP in
7675 [\\/]* | ?:[\\/]*)
7676 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7677 ;;
7678 *)
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 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 +00007686 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007688 break 2
7689 fi
7690done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007692IFS=$as_save_IFS
7693
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007694 ;;
7695esac
7696fi
7697OCAMLDEP=$ac_cv_path_OCAMLDEP
7698if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7700echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007702 { echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007704fi
7705
7706
Gordon Henriksene7072162008-03-07 18:20:01 +00007707 test -n "$OCAMLDEP" && break
7708done
7709
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007710for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007711do
7712 # Extract the first word of "$ac_prog", so it can be a program name with args.
7713set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007718else
7719 case $OCAMLDOC in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7722 ;;
7723 *)
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 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 +00007731 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007733 break 2
7734 fi
7735done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007737IFS=$as_save_IFS
7738
7739 ;;
7740esac
7741fi
7742OCAMLDOC=$ac_cv_path_OCAMLDOC
7743if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7745echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747 { echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007749fi
7750
7751
7752 test -n "$OCAMLDOC" && break
7753done
7754
Torok Edwincc499a42008-10-22 09:56:27 +00007755for ac_prog in gas as
7756do
7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
7758set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761if test "${ac_cv_path_GAS+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007763else
7764 case $GAS in
7765 [\\/]* | ?:[\\/]*)
7766 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7767 ;;
7768 *)
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 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 +00007776 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007778 break 2
7779 fi
7780done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007781done
Torok Edwincc499a42008-10-22 09:56:27 +00007782IFS=$as_save_IFS
7783
7784 ;;
7785esac
7786fi
7787GAS=$ac_cv_path_GAS
7788if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789 { echo "$as_me:$LINENO: result: $GAS" >&5
7790echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792 { echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007794fi
7795
7796
7797 test -n "$GAS" && break
7798done
7799
Reid Spencera773bd52006-08-04 18:18:08 +00007800
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007801{ echo "$as_me:$LINENO: checking for linker version" >&5
7802echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7803if test "${llvm_cv_link_version+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806
7807 version_string="$(ld -v 2>&1 | head -1)"
7808
7809 # Check for ld64.
7810 if (echo "$version_string" | grep -q "ld64"); then
7811 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7812 else
7813 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7814 fi
7815
7816fi
7817{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7818echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7819
7820cat >>confdefs.h <<_ACEOF
7821#define HOST_LINK_VERSION "$llvm_cv_link_version"
7822_ACEOF
7823
7824
7825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7827echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7828if test "${llvm_cv_link_use_r+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007830else
7831 ac_ext=c
7832ac_cpp='$CPP $CPPFLAGS'
7833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836
7837 oldcflags="$CFLAGS"
7838 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007839 cat >conftest.$ac_ext <<_ACEOF
7840/* confdefs.h. */
7841_ACEOF
7842cat confdefs.h >>conftest.$ac_ext
7843cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007844/* end confdefs.h. */
7845
7846int
7847main ()
7848{
Dan Gohman39ed6782010-04-25 00:12:20 +00007849
Reid Spencera773bd52006-08-04 18:18:08 +00007850 ;
7851 return 0;
7852}
7853_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007854rm -f conftest.$ac_objext conftest$ac_exeext
7855if { (ac_try="$ac_link"
7856case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_link") 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869 { (case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872esac
7873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_try") 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882esac
7883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_try") 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007888 llvm_cv_link_use_r=yes
7889else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007890 echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007895
Bill Wendlingebcceee2009-04-18 11:20:33 +00007896rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007897 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007898 CFLAGS="$oldcflags"
7899 ac_ext=c
7900ac_cpp='$CPP $CPPFLAGS'
7901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905
7906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007907{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7908echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007909if test "$llvm_cv_link_use_r" = yes ; then
7910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007911cat >>confdefs.h <<\_ACEOF
7912#define HAVE_LINK_R 1
7913_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007914
7915 fi
7916
7917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007918{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7919echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7920if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007922else
7923 ac_ext=c
7924ac_cpp='$CPP $CPPFLAGS'
7925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928
7929 oldcflags="$CFLAGS"
7930 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007931 cat >conftest.$ac_ext <<_ACEOF
7932/* confdefs.h. */
7933_ACEOF
7934cat confdefs.h >>conftest.$ac_ext
7935cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007936/* end confdefs.h. */
7937
7938int
7939main ()
7940{
Dan Gohman39ed6782010-04-25 00:12:20 +00007941
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007942 ;
7943 return 0;
7944}
7945_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007946rm -f conftest.$ac_objext conftest$ac_exeext
7947if { (ac_try="$ac_link"
7948case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951esac
7952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974esac
7975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_try") 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007980 llvm_cv_link_use_export_dynamic=yes
7981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007982 echo "$as_me: failed program was:" >&5
7983sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007986fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007987
Bill Wendlingebcceee2009-04-18 11:20:33 +00007988rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007989 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007990 CFLAGS="$oldcflags"
7991 ac_ext=c
7992ac_cpp='$CPP $CPPFLAGS'
7993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997
7998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007999{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8000echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008001if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008003cat >>confdefs.h <<\_ACEOF
8004#define HAVE_LINK_EXPORT_DYNAMIC 1
8005_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008006
8007 fi
8008
8009
Dan Gohmanda612d62010-06-01 14:56:56 +00008010{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8011echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8012if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 ac_ext=c
8016ac_cpp='$CPP $CPPFLAGS'
8017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020
8021 oldcflags="$CFLAGS"
8022
8023 # The following code is from the autoconf manual,
8024 # "11.13: Limitations of Usual Tools".
8025 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8026 # Use mktemp if possible; otherwise fall back on mkdir,
8027 # with $RANDOM to make collisions less likely.
8028 : ${TMPDIR=/tmp}
8029 {
8030 tmp=`
8031 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8032 ` &&
8033 test -n "$tmp" && test -d "$tmp"
8034 } || {
8035 tmp=$TMPDIR/foo$$-$RANDOM
8036 (umask 077 && mkdir "$tmp")
8037 } || exit $?
8038
Dan Gohmanda612d62010-06-01 14:56:56 +00008039 echo "{" > "$tmp/export.map"
8040 echo " global: main;" >> "$tmp/export.map"
8041 echo " local: *;" >> "$tmp/export.map"
8042 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008043
Dan Gohmanda612d62010-06-01 14:56:56 +00008044 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008045 cat >conftest.$ac_ext <<_ACEOF
8046/* confdefs.h. */
8047_ACEOF
8048cat confdefs.h >>conftest.$ac_ext
8049cat >>conftest.$ac_ext <<_ACEOF
8050/* end confdefs.h. */
8051
8052int
8053main ()
8054{
Dan Gohman39ed6782010-04-25 00:12:20 +00008055
Dan Gohman391569c2010-04-16 22:59:06 +00008056 ;
8057 return 0;
8058}
8059_ACEOF
8060rm -f conftest.$ac_objext conftest$ac_exeext
8061if { (ac_try="$ac_link"
8062case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_link") 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8075 { (case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8078esac
8079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_try") 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest$ac_exeext'
8085 { (case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088esac
8089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_try") 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008094 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008095else
8096 echo "$as_me: failed program was:" >&5
8097sed 's/^/| /' conftest.$ac_ext >&5
8098
Dan Gohman943005e2010-06-01 16:22:27 +00008099 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008100fi
8101
8102rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008104 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008105 rmdir "$tmp"
8106 CFLAGS="$oldcflags"
8107 ac_ext=c
8108ac_cpp='$CPP $CPPFLAGS'
8109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113
8114fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008115{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8116echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8117if test "$llvm_cv_link_use_version_script" = yes ; then
8118 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008119
8120 fi
8121
8122
Reid Spencera773bd52006-08-04 18:18:08 +00008123
8124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008125{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8126echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8127if test "${ac_cv_c_const+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008130 cat >conftest.$ac_ext <<_ACEOF
8131/* confdefs.h. */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008135/* end confdefs.h. */
8136
8137int
8138main ()
8139{
8140/* FIXME: Include the comments suggested by Paul. */
8141#ifndef __cplusplus
8142 /* Ultrix mips cc rejects this. */
8143 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008144 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008145 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008146 char const *const *ccp;
8147 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008148 /* NEC SVR4.0.2 mips cc rejects this. */
8149 struct point {int x, y;};
8150 static struct point const zero = {0,0};
8151 /* AIX XL C 1.02.0.0 rejects this.
8152 It does not let you subtract one const X* pointer from another in
8153 an arm of an if-expression whose if-part is not a constant
8154 expression */
8155 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008156 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008157 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158 ++ccp;
8159 p = (char**) ccp;
8160 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008161 { /* SCO 3.2v4 cc rejects this. */
8162 char *t;
8163 char const *s = 0 ? (char *) 0 : (char const *) 0;
8164
8165 *t++ = 0;
8166 if (s) return 0;
8167 }
8168 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8169 int x[] = {25, 17};
8170 const int *foo = &x[0];
8171 ++foo;
8172 }
8173 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8174 typedef const int *iptr;
8175 iptr p = 0;
8176 ++p;
8177 }
8178 { /* AIX XL C 1.02.0.0 rejects this saying
8179 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8180 struct s { int j; const int *ap[3]; };
8181 struct s *b; b->j = 5;
8182 }
8183 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8184 const int foo = 10;
8185 if (!foo) return 0;
8186 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008187 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008188#endif
8189
8190 ;
8191 return 0;
8192}
8193_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194rm -f conftest.$ac_objext
8195if { (ac_try="$ac_compile"
8196case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199esac
8200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209 { (case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212esac
8213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_try") 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest.$ac_objext'
8219 { (case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_try") 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008228 ac_cv_c_const=yes
8229else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230 echo "$as_me: failed program was:" >&5
8231sed 's/^/| /' conftest.$ac_ext >&5
8232
8233 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008235
Reid Spencera773bd52006-08-04 18:18:08 +00008236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8239echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008240if test $ac_cv_c_const = no; then
8241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242cat >>confdefs.h <<\_ACEOF
8243#define const
8244_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008245
8246fi
8247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248
8249
8250
8251
8252
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008253ac_header_dirent=no
8254for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008255 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8256{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8257echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261 cat >conftest.$ac_ext <<_ACEOF
8262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008266/* end confdefs.h. */
8267#include <sys/types.h>
8268#include <$ac_hdr>
8269
8270int
8271main ()
8272{
8273if ((DIR *) 0)
8274return 0;
8275 ;
8276 return 0;
8277}
8278_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279rm -f conftest.$ac_objext
8280if { (ac_try="$ac_compile"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297esac
8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest.$ac_objext'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008313 eval "$as_ac_Header=yes"
8314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008315 echo "$as_me: failed program was:" >&5
8316sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008319fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320
Reid Spencera773bd52006-08-04 18:18:08 +00008321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323ac_res=`eval echo '${'$as_ac_Header'}'`
8324 { echo "$as_me:$LINENO: result: $ac_res" >&5
8325echo "${ECHO_T}$ac_res" >&6; }
8326if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008327 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008329_ACEOF
8330
8331ac_header_dirent=$ac_hdr; break
8332fi
8333
8334done
8335# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8336if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8338echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8339if test "${ac_cv_search_opendir+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008341else
8342 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h. */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008348/* end confdefs.h. */
8349
Reid Spencera773bd52006-08-04 18:18:08 +00008350/* Override any GCC internal prototype to avoid an error.
8351 Use char because int might match the return type of a GCC
8352 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008353#ifdef __cplusplus
8354extern "C"
8355#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008356char opendir ();
8357int
8358main ()
8359{
Reid Spencera773bd52006-08-04 18:18:08 +00008360return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008361 ;
8362 return 0;
8363}
8364_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008365for ac_lib in '' dir; do
8366 if test -z "$ac_lib"; then
8367 ac_res="none required"
8368 else
8369 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008371 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008372 rm -f conftest.$ac_objext conftest$ac_exeext
8373if { (ac_try="$ac_link"
8374case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_link") 2>conftest.er1
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387 { (case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_try") 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; } &&
8396 { ac_try='test -s conftest$ac_exeext'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400esac
8401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008406 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008407else
8408 echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413
Bill Wendlingebcceee2009-04-18 11:20:33 +00008414rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008415 conftest$ac_exeext
8416 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008417 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008418fi
John Criswell7a73b802003-06-30 21:59:07 +00008419done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420if test "${ac_cv_search_opendir+set}" = set; then
8421 :
Reid Spencera773bd52006-08-04 18:18:08 +00008422else
8423 ac_cv_search_opendir=no
8424fi
8425rm conftest.$ac_ext
8426LIBS=$ac_func_search_save_LIBS
8427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8429echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008430ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008431if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008433
Reid Spencera773bd52006-08-04 18:18:08 +00008434fi
8435
8436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8438echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8439if test "${ac_cv_search_opendir+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008441else
8442 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443cat >conftest.$ac_ext <<_ACEOF
8444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008448/* end confdefs.h. */
8449
8450/* Override any GCC internal prototype to avoid an error.
8451 Use char because int might match the return type of a GCC
8452 builtin and then its argument prototype would still apply. */
8453#ifdef __cplusplus
8454extern "C"
8455#endif
8456char opendir ();
8457int
8458main ()
8459{
8460return opendir ();
8461 ;
8462 return 0;
8463}
8464_ACEOF
8465for ac_lib in '' x; do
8466 if test -z "$ac_lib"; then
8467 ac_res="none required"
8468 else
8469 ac_res=-l$ac_lib
8470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8471 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008472 rm -f conftest.$ac_objext conftest$ac_exeext
8473if { (ac_try="$ac_link"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008506 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008507else
8508 echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511
Reid Spencera773bd52006-08-04 18:18:08 +00008512fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513
Bill Wendlingebcceee2009-04-18 11:20:33 +00008514rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515 conftest$ac_exeext
8516 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008517 break
8518fi
8519done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008520if test "${ac_cv_search_opendir+set}" = set; then
8521 :
Reid Spencera773bd52006-08-04 18:18:08 +00008522else
8523 ac_cv_search_opendir=no
8524fi
8525rm conftest.$ac_ext
8526LIBS=$ac_func_search_save_LIBS
8527fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8529echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008530ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008531if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8533
8534fi
8535
8536fi
John Criswell7a73b802003-06-30 21:59:07 +00008537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008538
John Criswell7a73b802003-06-30 21:59:07 +00008539for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008540do
8541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547fi
8548ac_res=`eval echo '${'$as_ac_Header'}'`
8549 { echo "$as_me:$LINENO: result: $ac_res" >&5
8550echo "${ECHO_T}$ac_res" >&6; }
8551else
8552 # Is the header compilable?
8553{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8555cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h. */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h. */
8561$ac_includes_default
8562#include <$ac_header>
8563_ACEOF
8564rm -f conftest.$ac_objext
8565if { (ac_try="$ac_compile"
8566case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582esac
8583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_try") 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592esac
8593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_try") 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_header_compiler=yes
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 ac_header_compiler=no
8604fi
8605
8606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608echo "${ECHO_T}$ac_header_compiler" >&6; }
8609
8610# Is the header present?
8611{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8613cat >conftest.$ac_ext <<_ACEOF
8614/* confdefs.h. */
8615_ACEOF
8616cat confdefs.h >>conftest.$ac_ext
8617cat >>conftest.$ac_ext <<_ACEOF
8618/* end confdefs.h. */
8619#include <$ac_header>
8620_ACEOF
8621if { (ac_try="$ac_cpp conftest.$ac_ext"
8622case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625esac
8626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } >/dev/null; then
8634 if test -s conftest.err; then
8635 ac_cpp_err=$ac_c_preproc_warn_flag
8636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8637 else
8638 ac_cpp_err=
8639 fi
8640else
8641 ac_cpp_err=yes
8642fi
8643if test -z "$ac_cpp_err"; then
8644 ac_header_preproc=yes
8645else
8646 echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 ac_header_preproc=no
8650fi
8651
8652rm -f conftest.err conftest.$ac_ext
8653{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8654echo "${ECHO_T}$ac_header_preproc" >&6; }
8655
8656# So? What about this header?
8657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8658 yes:no: )
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8660echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8662echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8663 ac_header_preproc=yes
8664 ;;
8665 no:yes:* )
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8669echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8671echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8673echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8677echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8678 ( cat <<\_ASBOX
8679## ----------------------------------- ##
8680## Report this to llvmbugs@cs.uiuc.edu ##
8681## ----------------------------------- ##
8682_ASBOX
8683 ) | sed "s/^/$as_me: WARNING: /" >&2
8684 ;;
8685esac
8686{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690else
8691 eval "$as_ac_Header=\$ac_header_preproc"
8692fi
8693ac_res=`eval echo '${'$as_ac_Header'}'`
8694 { echo "$as_me:$LINENO: result: $ac_res" >&5
8695echo "${ECHO_T}$ac_res" >&6; }
8696
8697fi
8698if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008699 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008701_ACEOF
8702
8703fi
8704
8705done
8706
Reid Spencera773bd52006-08-04 18:18:08 +00008707# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008709 enableval=$enable_ltdl_install;
8710fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008711
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008713
8714
8715if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008716 INSTALL_LTDL_TRUE=
8717 INSTALL_LTDL_FALSE='#'
8718else
8719 INSTALL_LTDL_TRUE='#'
8720 INSTALL_LTDL_FALSE=
8721fi
8722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008723
8724
8725if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008726 CONVENIENCE_LTDL_TRUE=
8727 CONVENIENCE_LTDL_FALSE='#'
8728else
8729 CONVENIENCE_LTDL_TRUE='#'
8730 CONVENIENCE_LTDL_FALSE=
8731fi
8732
8733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008734{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8735echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008736library_names_spec=
8737libname_spec='lib$name'
8738soname_spec=
8739shrext_cmds=".so"
8740postinstall_cmds=
8741postuninstall_cmds=
8742finish_cmds=
8743finish_eval=
8744shlibpath_var=
8745shlibpath_overrides_runpath=unknown
8746version_type=none
8747dynamic_linker="$host_os ld.so"
8748sys_lib_dlsearch_path_spec="/lib /usr/lib"
8749if test "$GCC" = yes; then
8750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8752 # if the path contains ";" then we assume it to be the separator
8753 # otherwise default to the standard path separator (i.e. ":") - it is
8754 # assumed that no part of a normal pathname contains ";" but that should
8755 # okay in the real world where ";" in dirpaths is itself problematic.
8756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8757 else
8758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8759 fi
8760else
8761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8762fi
8763need_lib_prefix=unknown
8764hardcode_into_libs=no
8765
8766# when you set need_version to no, make sure it does not cause -set_version
8767# flags to be left without arguments
8768need_version=unknown
8769
8770case $host_os in
8771aix3*)
8772 version_type=linux
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8774 shlibpath_var=LIBPATH
8775
8776 # AIX 3 has no versioning support, so we append a major version to the name.
8777 soname_spec='${libname}${release}${shared_ext}$major'
8778 ;;
8779
8780aix4* | aix5*)
8781 version_type=linux
8782 need_lib_prefix=no
8783 need_version=no
8784 hardcode_into_libs=yes
8785 if test "$host_cpu" = ia64; then
8786 # AIX 5 supports IA64
8787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8788 shlibpath_var=LD_LIBRARY_PATH
8789 else
8790 # With GCC up to 2.95.x, collect2 would create an import file
8791 # for dependence libraries. The import file would start with
8792 # the line `#! .'. This would cause the generated library to
8793 # depend on `.', always an invalid library. This was fixed in
8794 # development snapshots of GCC prior to 3.0.
8795 case $host_os in
8796 aix4 | aix4.[01] | aix4.[01].*)
8797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8798 echo ' yes '
8799 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8800 :
8801 else
8802 can_build_shared=no
8803 fi
8804 ;;
8805 esac
8806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8807 # soname into executable. Probably we can add versioning support to
8808 # collect2, so additional links can be useful in future.
8809 if test "$aix_use_runtimelinking" = yes; then
8810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8811 # instead of lib<name>.a to let people know that these are not
8812 # typical AIX shared libraries.
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814 else
8815 # We preserve .a as extension for shared libraries through AIX4.2
8816 # and later when we are not doing run time linking.
8817 library_names_spec='${libname}${release}.a $libname.a'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 fi
8820 shlibpath_var=LIBPATH
8821 fi
8822 ;;
8823
8824amigaos*)
8825 library_names_spec='$libname.ixlibrary $libname.a'
8826 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8827 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'
8828 ;;
8829
8830beos*)
8831 library_names_spec='${libname}${shared_ext}'
8832 dynamic_linker="$host_os ld.so"
8833 shlibpath_var=LIBRARY_PATH
8834 ;;
8835
8836bsdi[45]*)
8837 version_type=linux
8838 need_version=no
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8842 shlibpath_var=LD_LIBRARY_PATH
8843 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8844 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8845 # the default ld.so.conf also contains /usr/contrib/lib and
8846 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8847 # libtool to hard-code these into programs
8848 ;;
8849
8850cygwin* | mingw* | pw32*)
8851 version_type=windows
8852 shrext_cmds=".dll"
8853 need_version=no
8854 need_lib_prefix=no
8855
8856 case $GCC,$host_os in
8857 yes,cygwin* | yes,mingw* | yes,pw32*)
8858 library_names_spec='$libname.dll.a'
8859 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8860 postinstall_cmds='base_file=`basename \${file}`~
8861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8862 dldir=$destdir/`dirname \$dlpath`~
8863 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008864 $install_prog $dir/$dlname \$dldir/$dlname~
8865 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867 dlpath=$dir/\$dldll~
8868 $rm \$dlpath'
8869 shlibpath_overrides_runpath=yes
8870
8871 case $host_os in
8872 cygwin*)
8873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8876 ;;
8877 mingw*)
8878 # MinGW DLLs use traditional 'lib' prefix
8879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8882 # It is most probably a Windows format PATH printed by
8883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884 # path with ; separators, and with drive letters. We can handle the
8885 # drive letters (cygwin fileutils understands them), so leave them,
8886 # especially as we might pass files found there to a mingw objdump,
8887 # which wouldn't understand a cygwinified path. Ahh.
8888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8889 else
8890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8891 fi
8892 ;;
8893 pw32*)
8894 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008895 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 +00008896 ;;
8897 esac
8898 ;;
8899
8900 *)
8901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8902 ;;
8903 esac
8904 dynamic_linker='Win32 ld.exe'
8905 # FIXME: first we should search . and the directory the executable is in
8906 shlibpath_var=PATH
8907 ;;
8908
8909darwin* | rhapsody*)
8910 dynamic_linker="$host_os dyld"
8911 version_type=darwin
8912 need_lib_prefix=no
8913 need_version=no
8914 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915 soname_spec='${libname}${release}${major}$shared_ext'
8916 shlibpath_overrides_runpath=yes
8917 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008918 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008919 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8920 if test "$GCC" = yes; then
8921 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"`
8922 else
8923 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8924 fi
8925 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8926 ;;
8927
8928dgux*)
8929 version_type=linux
8930 need_lib_prefix=no
8931 need_version=no
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 ;;
8936
Eric Christopher360fa9a2011-10-26 00:42:12 +00008937freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008938 dynamic_linker=no
8939 ;;
8940
8941kfreebsd*-gnu)
8942 version_type=linux
8943 need_lib_prefix=no
8944 need_version=no
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=no
8949 hardcode_into_libs=yes
8950 dynamic_linker='GNU ld.so'
8951 ;;
8952
Reid Spencera773bd52006-08-04 18:18:08 +00008953freebsd* | dragonfly*)
8954 # DragonFly does not have aout. When/if they implement a new
8955 # versioning mechanism, adjust this.
8956 if test -x /usr/bin/objformat; then
8957 objformat=`/usr/bin/objformat`
8958 else
8959 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008960 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008961 *) objformat=elf ;;
8962 esac
8963 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008964 version_type=freebsd-$objformat
8965 case $version_type in
8966 freebsd-elf*)
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8968 need_version=no
8969 need_lib_prefix=no
8970 ;;
8971 freebsd-*)
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8973 need_version=yes
8974 ;;
8975 esac
8976 shlibpath_var=LD_LIBRARY_PATH
8977 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008978 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008979 shlibpath_overrides_runpath=yes
8980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008981 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8984 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008987 shlibpath_overrides_runpath=no
8988 hardcode_into_libs=yes
8989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008990 freebsd*) # from 4.6 on
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8993 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008994 esac
8995 ;;
8996
8997gnu*)
8998 version_type=linux
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 hardcode_into_libs=yes
9005 ;;
9006
9007hpux9* | hpux10* | hpux11*)
9008 # Give a soname corresponding to the major version so that dld.sl refuses to
9009 # link against other versions.
9010 version_type=sunos
9011 need_lib_prefix=no
9012 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009013 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009014 ia64*)
9015 shrext_cmds='.so'
9016 hardcode_into_libs=yes
9017 dynamic_linker="$host_os dld.so"
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 if test "X$HPUX_IA64_MODE" = X32; then
9023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9024 else
9025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9026 fi
9027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9028 ;;
9029 hppa*64*)
9030 shrext_cmds='.sl'
9031 hardcode_into_libs=yes
9032 dynamic_linker="$host_os dld.sl"
9033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039 ;;
9040 *)
9041 shrext_cmds='.sl'
9042 dynamic_linker="$host_os dld.sl"
9043 shlibpath_var=SHLIB_PATH
9044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 ;;
9048 esac
9049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9050 postinstall_cmds='chmod 555 $lib'
9051 ;;
9052
Reid Spencera773bd52006-08-04 18:18:08 +00009053interix3*)
9054 version_type=linux
9055 need_lib_prefix=no
9056 need_version=no
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9063 ;;
9064
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009065irix5* | irix6* | nonstopux*)
9066 case $host_os in
9067 nonstopux*) version_type=nonstopux ;;
9068 *)
9069 if test "$lt_cv_prog_gnu_ld" = yes; then
9070 version_type=linux
9071 else
9072 version_type=irix
9073 fi ;;
9074 esac
9075 need_lib_prefix=no
9076 need_version=no
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9079 case $host_os in
9080 irix5* | nonstopux*)
9081 libsuff= shlibsuff=
9082 ;;
9083 *)
9084 case $LD in # libtool.m4 will add one of these switches to LD
9085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9086 libsuff= shlibsuff= libmagic=32-bit;;
9087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9088 libsuff=32 shlibsuff=N32 libmagic=N32;;
9089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9091 *) libsuff= shlibsuff= libmagic=never-match;;
9092 esac
9093 ;;
9094 esac
9095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9096 shlibpath_overrides_runpath=no
9097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9099 hardcode_into_libs=yes
9100 ;;
9101
9102# No shared lib support for Linux oldld, aout, or coff.
9103linux*oldld* | linux*aout* | linux*coff*)
9104 dynamic_linker=no
9105 ;;
9106
9107# This must be Linux ELF.
9108linux*)
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 # This implies no fast_install, which is unacceptable.
9118 # Some rework will be needed to allow for fast_install
9119 # before this can be enabled.
9120 hardcode_into_libs=yes
9121
9122 # Append ld.so.conf contents to the search path
9123 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009124 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 +00009125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9126 fi
9127
9128 # We used to test for /lib/ld.so.1 and disable shared libraries on
9129 # powerpc, because MkLinux only supported shared libraries with the
9130 # GNU dynamic linker. Since this was broken with cross compilers,
9131 # most powerpc-linux boxes support dynamic linking these days and
9132 # people can always --disable-shared, the test was removed, and we
9133 # assume the GNU/Linux dynamic linker is in use.
9134 dynamic_linker='GNU/Linux ld.so'
9135 ;;
9136
9137knetbsd*-gnu)
9138 version_type=linux
9139 need_lib_prefix=no
9140 need_version=no
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 shlibpath_overrides_runpath=no
9145 hardcode_into_libs=yes
9146 dynamic_linker='GNU ld.so'
9147 ;;
9148
9149netbsd*)
9150 version_type=sunos
9151 need_lib_prefix=no
9152 need_version=no
9153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156 dynamic_linker='NetBSD (a.out) ld.so'
9157 else
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 dynamic_linker='NetBSD ld.elf_so'
9161 fi
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes
9164 hardcode_into_libs=yes
9165 ;;
9166
9167newsos6)
9168 version_type=linux
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 ;;
9173
9174nto-qnx*)
9175 version_type=linux
9176 need_lib_prefix=no
9177 need_version=no
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9182 ;;
9183
9184openbsd*)
9185 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009186 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009187 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009188 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9189 case $host_os in
9190 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9191 *) need_version=no ;;
9192 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9197 case $host_os in
9198 openbsd2.[89] | openbsd2.[89].*)
9199 shlibpath_overrides_runpath=no
9200 ;;
9201 *)
9202 shlibpath_overrides_runpath=yes
9203 ;;
9204 esac
9205 else
9206 shlibpath_overrides_runpath=yes
9207 fi
9208 ;;
9209
9210os2*)
9211 libname_spec='$name'
9212 shrext_cmds=".dll"
9213 need_lib_prefix=no
9214 library_names_spec='$libname${shared_ext} $libname.a'
9215 dynamic_linker='OS/2 ld.exe'
9216 shlibpath_var=LIBPATH
9217 ;;
9218
9219osf3* | osf4* | osf5*)
9220 version_type=osf
9221 need_lib_prefix=no
9222 need_version=no
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9227 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9228 ;;
9229
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230solaris*)
9231 version_type=linux
9232 need_lib_prefix=no
9233 need_version=no
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 hardcode_into_libs=yes
9239 # ldd complains unless libraries are executable
9240 postinstall_cmds='chmod +x $lib'
9241 ;;
9242
9243sunos4*)
9244 version_type=sunos
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 if test "$with_gnu_ld" = yes; then
9250 need_lib_prefix=no
9251 fi
9252 need_version=yes
9253 ;;
9254
Reid Spencera773bd52006-08-04 18:18:08 +00009255sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009256 version_type=linux
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 case $host_vendor in
9261 sni)
9262 shlibpath_overrides_runpath=no
9263 need_lib_prefix=no
9264 export_dynamic_flag_spec='${wl}-Blargedynsym'
9265 runpath_var=LD_RUN_PATH
9266 ;;
9267 siemens)
9268 need_lib_prefix=no
9269 ;;
9270 motorola)
9271 need_lib_prefix=no
9272 need_version=no
9273 shlibpath_overrides_runpath=no
9274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9275 ;;
9276 esac
9277 ;;
9278
9279sysv4*MP*)
9280 if test -d /usr/nec ;then
9281 version_type=linux
9282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9283 soname_spec='$libname${shared_ext}.$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 fi
9286 ;;
9287
Reid Spencera773bd52006-08-04 18:18:08 +00009288sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9289 version_type=freebsd-elf
9290 need_lib_prefix=no
9291 need_version=no
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 hardcode_into_libs=yes
9296 if test "$with_gnu_ld" = yes; then
9297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9298 shlibpath_overrides_runpath=no
9299 else
9300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9301 shlibpath_overrides_runpath=yes
9302 case $host_os in
9303 sco3.2v5*)
9304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9305 ;;
9306 esac
9307 fi
9308 sys_lib_dlsearch_path_spec='/usr/lib'
9309 ;;
9310
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009311uts4*)
9312 version_type=linux
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 ;;
9317
9318*)
9319 dynamic_linker=no
9320 ;;
9321esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009322{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9323echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009324test "$dynamic_linker" = no && can_build_shared=no
9325
Reid Spencera773bd52006-08-04 18:18:08 +00009326variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9327if test "$GCC" = yes; then
9328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9329fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009330
Reid Spencera773bd52006-08-04 18:18:08 +00009331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009332{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9333echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9334if test "${libltdl_cv_shlibext+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336else
9337
9338module=yes
9339eval libltdl_cv_shlibext=$shrext_cmds
9340
9341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009342{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9343echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344if test -n "$libltdl_cv_shlibext"; then
9345
9346cat >>confdefs.h <<_ACEOF
9347#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9348_ACEOF
9349
9350fi
9351
9352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009353{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9354echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9355if test "${libltdl_cv_shlibpath_var+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357else
9358 libltdl_cv_shlibpath_var="$shlibpath_var"
9359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009360{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9361echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362if test -n "$libltdl_cv_shlibpath_var"; then
9363
9364cat >>confdefs.h <<_ACEOF
9365#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9366_ACEOF
9367
9368fi
9369
9370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009371{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9372echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9373if test "${libltdl_cv_sys_search_path+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009375else
9376 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009378{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9379echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009380if test -n "$libltdl_cv_sys_search_path"; then
9381 sys_search_path=
9382 for dir in $libltdl_cv_sys_search_path; do
9383 if test -z "$sys_search_path"; then
9384 sys_search_path="$dir"
9385 else
9386 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9387 fi
9388 done
9389
9390cat >>confdefs.h <<_ACEOF
9391#define LTDL_SYSSEARCHPATH "$sys_search_path"
9392_ACEOF
9393
9394fi
9395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009396{ echo "$as_me:$LINENO: checking for objdir" >&5
9397echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9398if test "${libltdl_cv_objdir+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400else
9401 libltdl_cv_objdir="$objdir"
9402 if test -n "$objdir"; then
9403 :
9404 else
9405 rm -f .libs 2>/dev/null
9406 mkdir .libs 2>/dev/null
9407 if test -d .libs; then
9408 libltdl_cv_objdir=.libs
9409 else
9410 # MS-DOS does not allow filenames that begin with a dot.
9411 libltdl_cv_objdir=_libs
9412 fi
9413 rmdir .libs 2>/dev/null
9414 fi
9415
9416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009417{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9418echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009419
9420cat >>confdefs.h <<_ACEOF
9421#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9422_ACEOF
9423
9424
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425
9426
9427
9428
9429# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009430{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9431echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9432if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009434else
9435
9436# These are sane defaults that work on at least a few old systems.
9437# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9438
9439# Character class describing NM global symbol codes.
9440symcode='[BCDEGRST]'
9441
9442# Regexp to match symbols that can be accessed directly from C.
9443sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9444
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009445# Transform an extracted symbol line into a proper C declaration
9446lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9447
9448# Transform an extracted symbol line into symbol name and symbol address
9449lt_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'"
9450
9451# Define system-specific variables.
9452case $host_os in
9453aix*)
9454 symcode='[BCDT]'
9455 ;;
9456cygwin* | mingw* | pw32*)
9457 symcode='[ABCDGISTW]'
9458 ;;
9459hpux*) # Its linker distinguishes data from code symbols
9460 if test "$host_cpu" = ia64; then
9461 symcode='[ABCDEGRST]'
9462 fi
9463 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9464 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'"
9465 ;;
9466linux*)
9467 if test "$host_cpu" = ia64; then
9468 symcode='[ABCDGIRSTW]'
9469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9470 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'"
9471 fi
9472 ;;
9473irix* | nonstopux*)
9474 symcode='[BCDEGRST]'
9475 ;;
9476osf*)
9477 symcode='[BCDEGQRST]'
9478 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009479solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009480 symcode='[BDRT]'
9481 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009482sco3.2v5*)
9483 symcode='[DT]'
9484 ;;
9485sysv4.2uw2*)
9486 symcode='[DT]'
9487 ;;
9488sysv5* | sco5v6* | unixware* | OpenUNIX*)
9489 symcode='[ABDT]'
9490 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491sysv4)
9492 symcode='[DFNSTU]'
9493 ;;
9494esac
9495
9496# Handle CRLF in mingw tool chain
9497opt_cr=
9498case $build_os in
9499mingw*)
9500 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9501 ;;
9502esac
9503
9504# If we're using GNU nm, then use its standard symbol codes.
9505case `$NM -V 2>&1` in
9506*GNU* | *'with BFD'*)
9507 symcode='[ABCDGIRSTW]' ;;
9508esac
9509
9510# Try without a prefix undercore, then with it.
9511for ac_symprfx in "" "_"; do
9512
Reid Spencera773bd52006-08-04 18:18:08 +00009513 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9514 symxfrm="\\1 $ac_symprfx\\2 \\2"
9515
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009516 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009517 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 +00009518
9519 # Check to see that the pipe works correctly.
9520 pipe_works=no
9521
9522 rm -f conftest*
9523 cat > conftest.$ac_ext <<EOF
9524#ifdef __cplusplus
9525extern "C" {
9526#endif
9527char nm_test_var;
9528void nm_test_func(){}
9529#ifdef __cplusplus
9530}
9531#endif
9532int main(){nm_test_var='a';nm_test_func();return(0);}
9533EOF
9534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009536 (eval $ac_compile) 2>&5
9537 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009540 # Now try to grab the symbols.
9541 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009542 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 +00009543 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9544 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009547 # Try sorting and uniquifying the output.
9548 if sort "$nlist" | uniq > "$nlist"T; then
9549 mv -f "$nlist"T "$nlist"
9550 else
9551 rm -f "$nlist"T
9552 fi
9553
9554 # Make sure that we snagged all the symbols we need.
9555 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9556 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9557 cat <<EOF > conftest.$ac_ext
9558#ifdef __cplusplus
9559extern "C" {
9560#endif
9561
9562EOF
9563 # Now generate the symbol file.
9564 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9565
9566 cat <<EOF >> conftest.$ac_ext
9567#if defined (__STDC__) && __STDC__
9568# define lt_ptr_t void *
9569#else
9570# define lt_ptr_t char *
9571# define const
9572#endif
9573
9574/* The mapping between symbol names and symbols. */
9575const struct {
9576 const char *name;
9577 lt_ptr_t address;
9578}
9579lt_preloaded_symbols[] =
9580{
9581EOF
9582 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9583 cat <<\EOF >> conftest.$ac_ext
9584 {0, (lt_ptr_t) 0}
9585};
9586
9587#ifdef __cplusplus
9588}
9589#endif
9590EOF
9591 # Now try linking the two files.
9592 mv conftest.$ac_objext conftstm.$ac_objext
9593 lt_save_LIBS="$LIBS"
9594 lt_save_CFLAGS="$CFLAGS"
9595 LIBS="conftstm.$ac_objext"
9596 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009598 (eval $ac_link) 2>&5
9599 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602 pipe_works=yes
9603 fi
9604 LIBS="$lt_save_LIBS"
9605 CFLAGS="$lt_save_CFLAGS"
9606 else
9607 echo "cannot find nm_test_func in $nlist" >&5
9608 fi
9609 else
9610 echo "cannot find nm_test_var in $nlist" >&5
9611 fi
9612 else
9613 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9614 fi
9615 else
9616 echo "$progname: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 fi
9619 rm -f conftest* conftst*
9620
9621 # Do not use the global_symbol_pipe unless it works.
9622 if test "$pipe_works" = yes; then
9623 break
9624 else
9625 lt_cv_sys_global_symbol_pipe=
9626 fi
9627done
9628
9629fi
9630
9631if test -z "$lt_cv_sys_global_symbol_pipe"; then
9632 lt_cv_sys_global_symbol_to_cdecl=
9633fi
9634if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009635 { echo "$as_me:$LINENO: result: failed" >&5
9636echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009638 { echo "$as_me:$LINENO: result: ok" >&5
9639echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009640fi
9641
9642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009643{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9644echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9645if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647else
9648 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9649 libltdl_cv_preloaded_symbols=yes
9650 else
9651 libltdl_cv_preloaded_symbols=no
9652 fi
9653
9654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009655{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9656echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009659cat >>confdefs.h <<\_ACEOF
9660#define HAVE_PRELOADED_SYMBOLS 1
9661_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009662
9663fi
9664
9665LIBADD_DL=
9666
9667ac_ext=c
9668ac_cpp='$CPP $CPPFLAGS'
9669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672
9673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009674{ echo "$as_me:$LINENO: checking for shl_load" >&5
9675echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9676if test "${ac_cv_func_shl_load+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678else
9679 cat >conftest.$ac_ext <<_ACEOF
9680/* confdefs.h. */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h. */
9685/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9687#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009689/* System header to define __stub macros and hopefully few prototypes,
9690 which can conflict with char shl_load (); below.
9691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9692 <limits.h> exists even on freestanding compilers. */
9693
9694#ifdef __STDC__
9695# include <limits.h>
9696#else
9697# include <assert.h>
9698#endif
9699
9700#undef shl_load
9701
9702/* Override any GCC internal prototype to avoid an error.
9703 Use char because int might match the return type of a GCC
9704 builtin and then its argument prototype would still apply. */
9705#ifdef __cplusplus
9706extern "C"
9707#endif
9708char shl_load ();
9709/* The GNU C library defines this for functions which it implements
9710 to always fail with ENOSYS. Some functions are actually named
9711 something starting with __ and the normal name is an alias. */
9712#if defined __stub_shl_load || defined __stub___shl_load
9713choke me
9714#endif
9715
9716int
9717main ()
9718{
9719return shl_load ();
9720 ;
9721 return 0;
9722}
9723_ACEOF
9724rm -f conftest.$ac_objext conftest$ac_exeext
9725if { (ac_try="$ac_link"
9726case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739 { (case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742esac
9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_try") 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_try") 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_func_shl_load=yes
9759else
9760 echo "$as_me: failed program was:" >&5
9761sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 ac_cv_func_shl_load=no
9764fi
9765
9766rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768fi
9769{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9770echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9771if test $ac_cv_func_shl_load = yes; then
9772
9773cat >>confdefs.h <<\_ACEOF
9774#define HAVE_SHL_LOAD 1
9775_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776
9777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009778 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9779echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9780if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009782else
9783 ac_check_lib_save_LIBS=$LIBS
9784LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009785cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h. */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790/* end confdefs.h. */
9791
Reid Spencera773bd52006-08-04 18:18:08 +00009792/* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795#ifdef __cplusplus
9796extern "C"
9797#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798char shl_load ();
9799int
9800main ()
9801{
Reid Spencera773bd52006-08-04 18:18:08 +00009802return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803 ;
9804 return 0;
9805}
9806_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009807rm -f conftest.$ac_objext conftest$ac_exeext
9808if { (ac_try="$ac_link"
9809case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812esac
9813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_link") 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9822 { (case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825esac
9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_try") 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; } &&
9831 { ac_try='test -s conftest$ac_exeext'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009841 ac_cv_lib_dld_shl_load=yes
9842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009848
Bill Wendlingebcceee2009-04-18 11:20:33 +00009849rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009850 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851LIBS=$ac_check_lib_save_LIBS
9852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009853{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9854echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9855if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009857cat >>confdefs.h <<\_ACEOF
9858#define HAVE_SHL_LOAD 1
9859_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860
9861 LIBADD_DL="$LIBADD_DL -ldld"
9862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009863 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9864echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9865if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867else
9868 ac_check_lib_save_LIBS=$LIBS
9869LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009870cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875/* end confdefs.h. */
9876
Reid Spencera773bd52006-08-04 18:18:08 +00009877/* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880#ifdef __cplusplus
9881extern "C"
9882#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883char dlopen ();
9884int
9885main ()
9886{
Reid Spencera773bd52006-08-04 18:18:08 +00009887return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888 ;
9889 return 0;
9890}
9891_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009892rm -f conftest.$ac_objext conftest$ac_exeext
9893if { (ac_try="$ac_link"
9894case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926 ac_cv_lib_dl_dlopen=yes
9927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009933
Bill Wendlingebcceee2009-04-18 11:20:33 +00009934rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009935 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936LIBS=$ac_check_lib_save_LIBS
9937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009938{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9939echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9940if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009942cat >>confdefs.h <<\_ACEOF
9943#define HAVE_LIBDL 1
9944_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945
9946 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009948 cat >conftest.$ac_ext <<_ACEOF
9949/* confdefs.h. */
9950_ACEOF
9951cat confdefs.h >>conftest.$ac_ext
9952cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953/* end confdefs.h. */
9954#if HAVE_DLFCN_H
9955# include <dlfcn.h>
9956#endif
9957
9958int
9959main ()
9960{
9961dlopen(0, 0);
9962 ;
9963 return 0;
9964}
9965_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009966rm -f conftest.$ac_objext conftest$ac_exeext
9967if { (ac_try="$ac_link"
9968case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_link") 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981 { (case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9984esac
9985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_try") 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010001cat >>confdefs.h <<\_ACEOF
10002#define HAVE_LIBDL 1
10003_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004 libltdl_cv_func_dlopen="yes"
10005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010006 echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10010echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10011if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013else
10014 ac_check_lib_save_LIBS=$LIBS
10015LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010016cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021/* end confdefs.h. */
10022
Reid Spencera773bd52006-08-04 18:18:08 +000010023/* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026#ifdef __cplusplus
10027extern "C"
10028#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029char dlopen ();
10030int
10031main ()
10032{
Reid Spencera773bd52006-08-04 18:18:08 +000010033return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034 ;
10035 return 0;
10036}
10037_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010038rm -f conftest.$ac_objext conftest$ac_exeext
10039if { (ac_try="$ac_link"
10040case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10043esac
10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_link") 2>conftest.er1
10046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066esac
10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072 ac_cv_lib_svld_dlopen=yes
10073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010074 echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010079
Bill Wendlingebcceee2009-04-18 11:20:33 +000010080rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010081 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082LIBS=$ac_check_lib_save_LIBS
10083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010084{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10085echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10086if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010088cat >>confdefs.h <<\_ACEOF
10089#define HAVE_LIBDL 1
10090_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010091
10092 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010094 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10095echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10096if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098else
10099 ac_check_lib_save_LIBS=$LIBS
10100LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010101cat >conftest.$ac_ext <<_ACEOF
10102/* confdefs.h. */
10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106/* end confdefs.h. */
10107
Reid Spencera773bd52006-08-04 18:18:08 +000010108/* Override any GCC internal prototype to avoid an error.
10109 Use char because int might match the return type of a GCC
10110 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010111#ifdef __cplusplus
10112extern "C"
10113#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114char dld_link ();
10115int
10116main ()
10117{
Reid Spencera773bd52006-08-04 18:18:08 +000010118return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119 ;
10120 return 0;
10121}
10122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010123rm -f conftest.$ac_objext conftest$ac_exeext
10124if { (ac_try="$ac_link"
10125case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
10131 ac_status=$?
10132 grep -v '^ *+' conftest.er1 >conftest.err
10133 rm -f conftest.er1
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } &&
10137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141esac
10142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157 ac_cv_lib_dld_dld_link=yes
10158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010159 echo "$as_me: failed program was:" >&5
10160sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010164
Bill Wendlingebcceee2009-04-18 11:20:33 +000010165rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010166 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167LIBS=$ac_check_lib_save_LIBS
10168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010169{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10171if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010173cat >>confdefs.h <<\_ACEOF
10174#define HAVE_DLD 1
10175_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176
10177 LIBADD_DL="$LIBADD_DL -ldld"
10178else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010179 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10180echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10181if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 cat >conftest.$ac_ext <<_ACEOF
10185/* confdefs.h. */
10186_ACEOF
10187cat confdefs.h >>conftest.$ac_ext
10188cat >>conftest.$ac_ext <<_ACEOF
10189/* end confdefs.h. */
10190/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10192#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010194/* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char _dyld_func_lookup (); below.
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010199#ifdef __STDC__
10200# include <limits.h>
10201#else
10202# include <assert.h>
10203#endif
10204
10205#undef _dyld_func_lookup
10206
10207/* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10210#ifdef __cplusplus
10211extern "C"
10212#endif
10213char _dyld_func_lookup ();
10214/* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
10217#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10218choke me
10219#endif
10220
10221int
10222main ()
10223{
10224return _dyld_func_lookup ();
10225 ;
10226 return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
10230if { (ac_try="$ac_link"
10231case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
10237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247esac
10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257esac
10258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 ac_cv_func__dyld_func_lookup=yes
10264else
10265 echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
10268 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269fi
Reid Spencera773bd52006-08-04 18:18:08 +000010270
Bill Wendlingebcceee2009-04-18 11:20:33 +000010271rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010272 conftest$ac_exeext conftest.$ac_ext
10273fi
10274{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10275echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10276if test $ac_cv_func__dyld_func_lookup = yes; then
10277
10278cat >>confdefs.h <<\_ACEOF
10279#define HAVE_DYLD 1
10280_ACEOF
10281
10282fi
10283
10284
10285fi
10286
10287
10288fi
10289
10290
10291fi
10292
10293rm -f core conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010295
10296fi
10297
10298
10299fi
10300
10301
10302fi
10303
10304
10305if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10306then
10307 lt_save_LIBS="$LIBS"
10308 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010309
10310for ac_func in dlerror
10311do
10312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10313{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10315if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317else
10318 cat >conftest.$ac_ext <<_ACEOF
10319/* confdefs.h. */
10320_ACEOF
10321cat confdefs.h >>conftest.$ac_ext
10322cat >>conftest.$ac_ext <<_ACEOF
10323/* end confdefs.h. */
10324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10326#define $ac_func innocuous_$ac_func
10327
10328/* System header to define __stub macros and hopefully few prototypes,
10329 which can conflict with char $ac_func (); below.
10330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10331 <limits.h> exists even on freestanding compilers. */
10332
10333#ifdef __STDC__
10334# include <limits.h>
10335#else
10336# include <assert.h>
10337#endif
10338
10339#undef $ac_func
10340
10341/* Override any GCC internal prototype to avoid an error.
10342 Use char because int might match the return type of a GCC
10343 builtin and then its argument prototype would still apply. */
10344#ifdef __cplusplus
10345extern "C"
10346#endif
10347char $ac_func ();
10348/* The GNU C library defines this for functions which it implements
10349 to always fail with ENOSYS. Some functions are actually named
10350 something starting with __ and the normal name is an alias. */
10351#if defined __stub_$ac_func || defined __stub___$ac_func
10352choke me
10353#endif
10354
10355int
10356main ()
10357{
10358return $ac_func ();
10359 ;
10360 return 0;
10361}
10362_ACEOF
10363rm -f conftest.$ac_objext conftest$ac_exeext
10364if { (ac_try="$ac_link"
10365case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368esac
10369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_link") 2>conftest.er1
10371 ac_status=$?
10372 grep -v '^ *+' conftest.er1 >conftest.err
10373 rm -f conftest.er1
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10378 { (case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_try") 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391esac
10392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 eval "$as_ac_var=yes"
10398else
10399 echo "$as_me: failed program was:" >&5
10400sed 's/^/| /' conftest.$ac_ext >&5
10401
10402 eval "$as_ac_var=no"
10403fi
10404
10405rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407fi
10408ac_res=`eval echo '${'$as_ac_var'}'`
10409 { echo "$as_me:$LINENO: result: $ac_res" >&5
10410echo "${ECHO_T}$ac_res" >&6; }
10411if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414_ACEOF
10415
10416fi
10417done
10418
10419 LIBS="$lt_save_LIBS"
10420fi
10421ac_ext=c
10422ac_cpp='$CPP $CPPFLAGS'
10423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10425ac_compiler_gnu=$ac_cv_c_compiler_gnu
10426
10427
10428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010429{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10430echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10431if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433else
10434 ac_cv_sys_symbol_underscore=no
10435 cat > conftest.$ac_ext <<EOF
10436void nm_test_func(){}
10437int main(){nm_test_func;return 0;}
10438EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440 (eval $ac_compile) 2>&5
10441 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444 # Now try to grab the symbols.
10445 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010446 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 +000010447 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10448 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 # See whether the symbols have a leading underscore.
10452 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10453 ac_cv_sys_symbol_underscore=yes
10454 else
10455 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10456 :
10457 else
10458 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10459 fi
10460 fi
10461 else
10462 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10463 fi
10464 else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.c >&5
10467 fi
10468 rm -rf conftest*
10469
10470fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010471{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10472echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473
10474
10475if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10476 if test x"$libltdl_cv_func_dlopen" = xyes ||
10477 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010478 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10479echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10480if test "${libltdl_cv_need_uscore+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482else
10483 libltdl_cv_need_uscore=unknown
10484 save_LIBS="$LIBS"
10485 LIBS="$LIBS $LIBADD_DL"
10486 if test "$cross_compiling" = yes; then :
10487 libltdl_cv_need_uscore=cross
10488else
10489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490 lt_status=$lt_dlunknown
10491 cat > conftest.$ac_ext <<EOF
Bob Wilsonae7e2a42011-11-28 07:59:52 +000010492#line 10492 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010493#include "confdefs.h"
10494
10495#if HAVE_DLFCN_H
10496#include <dlfcn.h>
10497#endif
10498
10499#include <stdio.h>
10500
10501#ifdef RTLD_GLOBAL
10502# define LT_DLGLOBAL RTLD_GLOBAL
10503#else
10504# ifdef DL_GLOBAL
10505# define LT_DLGLOBAL DL_GLOBAL
10506# else
10507# define LT_DLGLOBAL 0
10508# endif
10509#endif
10510
10511/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512 find out it does not work in some platform. */
10513#ifndef LT_DLLAZY_OR_NOW
10514# ifdef RTLD_LAZY
10515# define LT_DLLAZY_OR_NOW RTLD_LAZY
10516# else
10517# ifdef DL_LAZY
10518# define LT_DLLAZY_OR_NOW DL_LAZY
10519# else
10520# ifdef RTLD_NOW
10521# define LT_DLLAZY_OR_NOW RTLD_NOW
10522# else
10523# ifdef DL_NOW
10524# define LT_DLLAZY_OR_NOW DL_NOW
10525# else
10526# define LT_DLLAZY_OR_NOW 0
10527# endif
10528# endif
10529# endif
10530# endif
10531#endif
10532
10533#ifdef __cplusplus
10534extern "C" void exit (int);
10535#endif
10536
10537void fnord() { int i=42;}
10538int main ()
10539{
10540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541 int status = $lt_dlunknown;
10542
10543 if (self)
10544 {
10545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10546 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547 /* dlclose (self); */
10548 }
Reid Spencera773bd52006-08-04 18:18:08 +000010549 else
10550 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551
10552 exit (status);
10553}
10554EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556 (eval $ac_link) 2>&5
10557 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010560 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561 lt_status=$?
10562 case x$lt_status in
10563 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10564 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010565 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566 esac
10567 else :
10568 # compilation failed
10569
10570 fi
10571fi
10572rm -fr conftest*
10573
10574 LIBS="$save_LIBS"
10575
10576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010577{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10578echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579 fi
10580fi
10581
10582if test x"$libltdl_cv_need_uscore" = xyes; then
10583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010584cat >>confdefs.h <<\_ACEOF
10585#define NEED_USCORE 1
10586_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010587
10588fi
10589
10590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010591{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10592echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10593if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010595else
10596 # PORTME does your system automatically load deplibs for dlopen?
10597 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10598 # For now, we just catch OSes we know something about -- in the
10599 # future, we'll try test this programmatically.
10600 libltdl_cv_sys_dlopen_deplibs=unknown
10601 case "$host_os" in
10602 aix3*|aix4.1.*|aix4.2.*)
10603 # Unknown whether this is true for these versions of AIX, but
10604 # we want this `case' here to explicitly catch those versions.
10605 libltdl_cv_sys_dlopen_deplibs=unknown
10606 ;;
10607 aix[45]*)
10608 libltdl_cv_sys_dlopen_deplibs=yes
10609 ;;
10610 darwin*)
10611 # Assuming the user has installed a libdl from somewhere, this is true
10612 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10613 libltdl_cv_sys_dlopen_deplibs=yes
10614 ;;
10615 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10616 # GNU and its variants, using gnu ld.so (Glibc)
10617 libltdl_cv_sys_dlopen_deplibs=yes
10618 ;;
10619 hpux10*|hpux11*)
10620 libltdl_cv_sys_dlopen_deplibs=yes
10621 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010622 interix*)
10623 libltdl_cv_sys_dlopen_deplibs=yes
10624 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625 irix[12345]*|irix6.[01]*)
10626 # Catch all versions of IRIX before 6.2, and indicate that we don't
10627 # know how it worked for any of those versions.
10628 libltdl_cv_sys_dlopen_deplibs=unknown
10629 ;;
10630 irix*)
10631 # The case above catches anything before 6.2, and it's known that
10632 # at 6.2 and later dlopen does load deplibs.
10633 libltdl_cv_sys_dlopen_deplibs=yes
10634 ;;
10635 netbsd*)
10636 libltdl_cv_sys_dlopen_deplibs=yes
10637 ;;
10638 openbsd*)
10639 libltdl_cv_sys_dlopen_deplibs=yes
10640 ;;
10641 osf[1234]*)
10642 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10643 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010644 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010645 libltdl_cv_sys_dlopen_deplibs=no
10646 ;;
10647 osf5.0|osf5.0a|osf5.1)
10648 # dlopen *does* load deplibs and with the right loader patch applied
10649 # it even uses RPATH in a shared library to search for shared objects
10650 # that the library depends on, but there's no easy way to know if that
10651 # patch is installed. Since this is the case, all we can really
10652 # say is unknown -- it depends on the patch being installed. If
10653 # it is, this changes to `yes'. Without it, it would be `no'.
10654 libltdl_cv_sys_dlopen_deplibs=unknown
10655 ;;
10656 osf*)
10657 # the two cases above should catch all versions of osf <= 5.1. Read
10658 # the comments above for what we know about them.
10659 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10660 # is used to find them so we can finally say `yes'.
10661 libltdl_cv_sys_dlopen_deplibs=yes
10662 ;;
10663 solaris*)
10664 libltdl_cv_sys_dlopen_deplibs=yes
10665 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10667 libltdl_cv_sys_dlopen_deplibs=yes
10668 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010669 esac
10670
10671fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010672{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10673echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010676cat >>confdefs.h <<\_ACEOF
10677#define LTDL_DLOPEN_DEPLIBS 1
10678_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679
10680fi
10681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010682
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010683for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010684do
10685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10691fi
10692ac_res=`eval echo '${'$as_ac_Header'}'`
10693 { echo "$as_me:$LINENO: result: $ac_res" >&5
10694echo "${ECHO_T}$ac_res" >&6; }
10695else
10696 # Is the header compilable?
10697{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10699cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h. */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h. */
10705$ac_includes_default
10706#include <$ac_header>
10707_ACEOF
10708rm -f conftest.$ac_objext
10709if { (ac_try="$ac_compile"
10710case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713esac
10714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_compile") 2>conftest.er1
10716 ac_status=$?
10717 grep -v '^ *+' conftest.er1 >conftest.err
10718 rm -f conftest.er1
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10723 { (case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10726esac
10727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_try") 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10736esac
10737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738 (eval "$ac_try") 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_header_compiler=yes
10743else
10744 echo "$as_me: failed program was:" >&5
10745sed 's/^/| /' conftest.$ac_ext >&5
10746
10747 ac_header_compiler=no
10748fi
10749
10750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10752echo "${ECHO_T}$ac_header_compiler" >&6; }
10753
10754# Is the header present?
10755{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10757cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
10763#include <$ac_header>
10764_ACEOF
10765if { (ac_try="$ac_cpp conftest.$ac_ext"
10766case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } >/dev/null; then
10778 if test -s conftest.err; then
10779 ac_cpp_err=$ac_c_preproc_warn_flag
10780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10781 else
10782 ac_cpp_err=
10783 fi
10784else
10785 ac_cpp_err=yes
10786fi
10787if test -z "$ac_cpp_err"; then
10788 ac_header_preproc=yes
10789else
10790 echo "$as_me: failed program was:" >&5
10791sed 's/^/| /' conftest.$ac_ext >&5
10792
10793 ac_header_preproc=no
10794fi
10795
10796rm -f conftest.err conftest.$ac_ext
10797{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798echo "${ECHO_T}$ac_header_preproc" >&6; }
10799
10800# So? What about this header?
10801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10802 yes:no: )
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10807 ac_header_preproc=yes
10808 ;;
10809 no:yes:* )
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10822 ( cat <<\_ASBOX
10823## ----------------------------------- ##
10824## Report this to llvmbugs@cs.uiuc.edu ##
10825## ----------------------------------- ##
10826_ASBOX
10827 ) | sed "s/^/$as_me: WARNING: /" >&2
10828 ;;
10829esac
10830{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10834else
10835 eval "$as_ac_Header=\$ac_header_preproc"
10836fi
10837ac_res=`eval echo '${'$as_ac_Header'}'`
10838 { echo "$as_me:$LINENO: result: $ac_res" >&5
10839echo "${ECHO_T}$ac_res" >&6; }
10840
10841fi
10842if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845_ACEOF
10846
10847fi
10848
10849done
10850
10851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010852{ echo "$as_me:$LINENO: checking for error_t" >&5
10853echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10854if test "${ac_cv_type_error_t+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10856else
10857 cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h. */
10863#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010864# include <argz.h>
10865#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010866
10867typedef error_t ac__type_new_;
10868int
10869main ()
10870{
10871if ((ac__type_new_ *) 0)
10872 return 0;
10873if (sizeof (ac__type_new_))
10874 return 0;
10875 ;
10876 return 0;
10877}
10878_ACEOF
10879rm -f conftest.$ac_objext
10880if { (ac_try="$ac_compile"
10881case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_compile") 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897esac
10898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest.$ac_objext'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_type_error_t=yes
10914else
10915 echo "$as_me: failed program was:" >&5
10916sed 's/^/| /' conftest.$ac_ext >&5
10917
10918 ac_cv_type_error_t=no
10919fi
10920
10921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922fi
10923{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10924echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10925if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010926
10927cat >>confdefs.h <<_ACEOF
10928#define HAVE_ERROR_T 1
10929_ACEOF
10930
10931
10932else
10933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010934cat >>confdefs.h <<\_ACEOF
10935#define error_t int
10936_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010937
10938fi
10939
10940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010941
10942
10943
10944
10945
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010946for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010947do
10948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10951if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953else
10954 cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h. */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h. */
10960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10962#define $ac_func innocuous_$ac_func
10963
10964/* System header to define __stub macros and hopefully few prototypes,
10965 which can conflict with char $ac_func (); below.
10966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10967 <limits.h> exists even on freestanding compilers. */
10968
10969#ifdef __STDC__
10970# include <limits.h>
10971#else
10972# include <assert.h>
10973#endif
10974
10975#undef $ac_func
10976
10977/* Override any GCC internal prototype to avoid an error.
10978 Use char because int might match the return type of a GCC
10979 builtin and then its argument prototype would still apply. */
10980#ifdef __cplusplus
10981extern "C"
10982#endif
10983char $ac_func ();
10984/* The GNU C library defines this for functions which it implements
10985 to always fail with ENOSYS. Some functions are actually named
10986 something starting with __ and the normal name is an alias. */
10987#if defined __stub_$ac_func || defined __stub___$ac_func
10988choke me
10989#endif
10990
10991int
10992main ()
10993{
10994return $ac_func ();
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999rm -f conftest.$ac_objext conftest$ac_exeext
11000if { (ac_try="$ac_link"
11001case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_link") 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 eval "$as_ac_var=yes"
11034else
11035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 eval "$as_ac_var=no"
11039fi
11040
11041rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043fi
11044ac_res=`eval echo '${'$as_ac_var'}'`
11045 { echo "$as_me:$LINENO: result: $ac_res" >&5
11046echo "${ECHO_T}$ac_res" >&6; }
11047if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011048 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050_ACEOF
11051
11052fi
11053done
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011074
11075
11076
11077
11078
11079
11080
11081
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11083 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011084do
11085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091fi
11092ac_res=`eval echo '${'$as_ac_Header'}'`
11093 { echo "$as_me:$LINENO: result: $ac_res" >&5
11094echo "${ECHO_T}$ac_res" >&6; }
11095else
11096 # Is the header compilable?
11097{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11099cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h. */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */
11105$ac_includes_default
11106#include <$ac_header>
11107_ACEOF
11108rm -f conftest.$ac_objext
11109if { (ac_try="$ac_compile"
11110case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11113esac
11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_compile") 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123 { (case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126esac
11127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_try") 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; } &&
11132 { ac_try='test -s conftest.$ac_objext'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_header_compiler=yes
11143else
11144 echo "$as_me: failed program was:" >&5
11145sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ac_header_compiler=no
11148fi
11149
11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152echo "${ECHO_T}$ac_header_compiler" >&6; }
11153
11154# Is the header present?
11155{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157cat >conftest.$ac_ext <<_ACEOF
11158/* confdefs.h. */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h. */
11163#include <$ac_header>
11164_ACEOF
11165if { (ac_try="$ac_cpp conftest.$ac_ext"
11166case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
11180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11181 else
11182 ac_cpp_err=
11183 fi
11184else
11185 ac_cpp_err=yes
11186fi
11187if test -z "$ac_cpp_err"; then
11188 ac_header_preproc=yes
11189else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 ac_header_preproc=no
11194fi
11195
11196rm -f conftest.err conftest.$ac_ext
11197{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198echo "${ECHO_T}$ac_header_preproc" >&6; }
11199
11200# So? What about this header?
11201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11202 yes:no: )
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11207 ac_header_preproc=yes
11208 ;;
11209 no:yes:* )
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11213echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11217echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11222 ( cat <<\_ASBOX
11223## ----------------------------------- ##
11224## Report this to llvmbugs@cs.uiuc.edu ##
11225## ----------------------------------- ##
11226_ASBOX
11227 ) | sed "s/^/$as_me: WARNING: /" >&2
11228 ;;
11229esac
11230{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234else
11235 eval "$as_ac_Header=\$ac_header_preproc"
11236fi
11237ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239echo "${ECHO_T}$ac_res" >&6; }
11240
11241fi
11242if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245_ACEOF
11246
11247fi
11248
11249done
11250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251
11252
11253
11254
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011255for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011256do
11257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263fi
11264ac_res=`eval echo '${'$as_ac_Header'}'`
11265 { echo "$as_me:$LINENO: result: $ac_res" >&5
11266echo "${ECHO_T}$ac_res" >&6; }
11267else
11268 # Is the header compilable?
11269{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11271cat >conftest.$ac_ext <<_ACEOF
11272/* confdefs.h. */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h. */
11277$ac_includes_default
11278#include <$ac_header>
11279_ACEOF
11280rm -f conftest.$ac_objext
11281if { (ac_try="$ac_compile"
11282case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285esac
11286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_compile") 2>conftest.er1
11288 ac_status=$?
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11295 { (case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298esac
11299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_try") 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try='test -s conftest.$ac_objext'
11305 { (case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308esac
11309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_try") 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 ac_header_compiler=yes
11315else
11316 echo "$as_me: failed program was:" >&5
11317sed 's/^/| /' conftest.$ac_ext >&5
11318
11319 ac_header_compiler=no
11320fi
11321
11322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324echo "${ECHO_T}$ac_header_compiler" >&6; }
11325
11326# Is the header present?
11327{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11329cat >conftest.$ac_ext <<_ACEOF
11330/* confdefs.h. */
11331_ACEOF
11332cat confdefs.h >>conftest.$ac_ext
11333cat >>conftest.$ac_ext <<_ACEOF
11334/* end confdefs.h. */
11335#include <$ac_header>
11336_ACEOF
11337if { (ac_try="$ac_cpp conftest.$ac_ext"
11338case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341esac
11342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } >/dev/null; then
11350 if test -s conftest.err; then
11351 ac_cpp_err=$ac_c_preproc_warn_flag
11352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11353 else
11354 ac_cpp_err=
11355 fi
11356else
11357 ac_cpp_err=yes
11358fi
11359if test -z "$ac_cpp_err"; then
11360 ac_header_preproc=yes
11361else
11362 echo "$as_me: failed program was:" >&5
11363sed 's/^/| /' conftest.$ac_ext >&5
11364
11365 ac_header_preproc=no
11366fi
11367
11368rm -f conftest.err conftest.$ac_ext
11369{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11370echo "${ECHO_T}$ac_header_preproc" >&6; }
11371
11372# So? What about this header?
11373case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11374 yes:no: )
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11378echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11379 ac_header_preproc=yes
11380 ;;
11381 no:yes:* )
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11385echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11387echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11389echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11393echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11394 ( cat <<\_ASBOX
11395## ----------------------------------- ##
11396## Report this to llvmbugs@cs.uiuc.edu ##
11397## ----------------------------------- ##
11398_ASBOX
11399 ) | sed "s/^/$as_me: WARNING: /" >&2
11400 ;;
11401esac
11402{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407 eval "$as_ac_Header=\$ac_header_preproc"
11408fi
11409ac_res=`eval echo '${'$as_ac_Header'}'`
11410 { echo "$as_me:$LINENO: result: $ac_res" >&5
11411echo "${ECHO_T}$ac_res" >&6; }
11412
11413fi
11414if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011417_ACEOF
11418
11419fi
11420
11421done
11422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011423
11424
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011426do
11427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433fi
11434ac_res=`eval echo '${'$as_ac_Header'}'`
11435 { echo "$as_me:$LINENO: result: $ac_res" >&5
11436echo "${ECHO_T}$ac_res" >&6; }
11437else
11438 # Is the header compilable?
11439{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11441cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h. */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h. */
11447$ac_includes_default
11448#include <$ac_header>
11449_ACEOF
11450rm -f conftest.$ac_objext
11451if { (ac_try="$ac_compile"
11452case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455esac
11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_compile") 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11465 { (case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468esac
11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_try") 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478esac
11479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_try") 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 ac_header_compiler=yes
11485else
11486 echo "$as_me: failed program was:" >&5
11487sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 ac_header_compiler=no
11490fi
11491
11492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11494echo "${ECHO_T}$ac_header_compiler" >&6; }
11495
11496# Is the header present?
11497{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11499cat >conftest.$ac_ext <<_ACEOF
11500/* confdefs.h. */
11501_ACEOF
11502cat confdefs.h >>conftest.$ac_ext
11503cat >>conftest.$ac_ext <<_ACEOF
11504/* end confdefs.h. */
11505#include <$ac_header>
11506_ACEOF
11507if { (ac_try="$ac_cpp conftest.$ac_ext"
11508case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511esac
11512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } >/dev/null; then
11520 if test -s conftest.err; then
11521 ac_cpp_err=$ac_c_preproc_warn_flag
11522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11523 else
11524 ac_cpp_err=
11525 fi
11526else
11527 ac_cpp_err=yes
11528fi
11529if test -z "$ac_cpp_err"; then
11530 ac_header_preproc=yes
11531else
11532 echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 ac_header_preproc=no
11536fi
11537
11538rm -f conftest.err conftest.$ac_ext
11539{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11540echo "${ECHO_T}$ac_header_preproc" >&6; }
11541
11542# So? What about this header?
11543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11544 yes:no: )
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11549 ac_header_preproc=yes
11550 ;;
11551 no:yes:* )
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11555echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11559echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11564 ( cat <<\_ASBOX
11565## ----------------------------------- ##
11566## Report this to llvmbugs@cs.uiuc.edu ##
11567## ----------------------------------- ##
11568_ASBOX
11569 ) | sed "s/^/$as_me: WARNING: /" >&2
11570 ;;
11571esac
11572{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11576else
11577 eval "$as_ac_Header=\$ac_header_preproc"
11578fi
11579ac_res=`eval echo '${'$as_ac_Header'}'`
11580 { echo "$as_me:$LINENO: result: $ac_res" >&5
11581echo "${ECHO_T}$ac_res" >&6; }
11582
11583fi
11584if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011587_ACEOF
11588 break
11589fi
11590
11591done
11592
11593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011594
11595
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011597do
11598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11601if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603else
11604 cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11612#define $ac_func innocuous_$ac_func
11613
11614/* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $ac_func (); below.
11616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617 <limits.h> exists even on freestanding compilers. */
11618
11619#ifdef __STDC__
11620# include <limits.h>
11621#else
11622# include <assert.h>
11623#endif
11624
11625#undef $ac_func
11626
11627/* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11630#ifdef __cplusplus
11631extern "C"
11632#endif
11633char $ac_func ();
11634/* The GNU C library defines this for functions which it implements
11635 to always fail with ENOSYS. Some functions are actually named
11636 something starting with __ and the normal name is an alias. */
11637#if defined __stub_$ac_func || defined __stub___$ac_func
11638choke me
11639#endif
11640
11641int
11642main ()
11643{
11644return $ac_func ();
11645 ;
11646 return 0;
11647}
11648_ACEOF
11649rm -f conftest.$ac_objext conftest$ac_exeext
11650if { (ac_try="$ac_link"
11651case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654esac
11655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_link") 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11664 { (case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11667esac
11668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_try") 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677esac
11678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 eval "$as_ac_var=yes"
11684else
11685 echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688 eval "$as_ac_var=no"
11689fi
11690
11691rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693fi
11694ac_res=`eval echo '${'$as_ac_var'}'`
11695 { echo "$as_me:$LINENO: result: $ac_res" >&5
11696echo "${ECHO_T}$ac_res" >&6; }
11697if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011700_ACEOF
11701 break
11702fi
11703done
11704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011705
11706
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011707for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011708do
11709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714else
11715 cat >conftest.$ac_ext <<_ACEOF
11716/* confdefs.h. */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h. */
11721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11723#define $ac_func innocuous_$ac_func
11724
11725/* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char $ac_func (); below.
11727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728 <limits.h> exists even on freestanding compilers. */
11729
11730#ifdef __STDC__
11731# include <limits.h>
11732#else
11733# include <assert.h>
11734#endif
11735
11736#undef $ac_func
11737
11738/* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11741#ifdef __cplusplus
11742extern "C"
11743#endif
11744char $ac_func ();
11745/* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748#if defined __stub_$ac_func || defined __stub___$ac_func
11749choke me
11750#endif
11751
11752int
11753main ()
11754{
11755return $ac_func ();
11756 ;
11757 return 0;
11758}
11759_ACEOF
11760rm -f conftest.$ac_objext conftest$ac_exeext
11761if { (ac_try="$ac_link"
11762case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_link") 2>conftest.er1
11768 ac_status=$?
11769 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
11774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11775 { (case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11778esac
11779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_try") 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788esac
11789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 eval "$as_ac_var=yes"
11795else
11796 echo "$as_me: failed program was:" >&5
11797sed 's/^/| /' conftest.$ac_ext >&5
11798
11799 eval "$as_ac_var=no"
11800fi
11801
11802rm -f core conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804fi
11805ac_res=`eval echo '${'$as_ac_var'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807echo "${ECHO_T}$ac_res" >&6; }
11808if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011809 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011811_ACEOF
11812 break
11813fi
11814done
11815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011816
11817
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011818for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011819do
11820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825else
11826 cat >conftest.$ac_ext <<_ACEOF
11827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
11832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834#define $ac_func innocuous_$ac_func
11835
11836/* System header to define __stub macros and hopefully few prototypes,
11837 which can conflict with char $ac_func (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
11840
11841#ifdef __STDC__
11842# include <limits.h>
11843#else
11844# include <assert.h>
11845#endif
11846
11847#undef $ac_func
11848
11849/* Override any GCC internal prototype to avoid an error.
11850 Use char because int might match the return type of a GCC
11851 builtin and then its argument prototype would still apply. */
11852#ifdef __cplusplus
11853extern "C"
11854#endif
11855char $ac_func ();
11856/* The GNU C library defines this for functions which it implements
11857 to always fail with ENOSYS. Some functions are actually named
11858 something starting with __ and the normal name is an alias. */
11859#if defined __stub_$ac_func || defined __stub___$ac_func
11860choke me
11861#endif
11862
11863int
11864main ()
11865{
11866return $ac_func ();
11867 ;
11868 return 0;
11869}
11870_ACEOF
11871rm -f conftest.$ac_objext conftest$ac_exeext
11872if { (ac_try="$ac_link"
11873case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_link") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11886 { (case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11889esac
11890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_try") 2>&5
11892 ac_status=$?
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; } &&
11895 { ac_try='test -s conftest$ac_exeext'
11896 { (case "(($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_try") 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 eval "$as_ac_var=yes"
11906else
11907 echo "$as_me: failed program was:" >&5
11908sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 eval "$as_ac_var=no"
11911fi
11912
11913rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915fi
11916ac_res=`eval echo '${'$as_ac_var'}'`
11917 { echo "$as_me:$LINENO: result: $ac_res" >&5
11918echo "${ECHO_T}$ac_res" >&6; }
11919if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011920 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011922_ACEOF
11923 break
11924fi
11925done
11926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011927
11928
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011930do
11931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11934if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11936else
11937 cat >conftest.$ac_ext <<_ACEOF
11938/* confdefs.h. */
11939_ACEOF
11940cat confdefs.h >>conftest.$ac_ext
11941cat >>conftest.$ac_ext <<_ACEOF
11942/* end confdefs.h. */
11943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11945#define $ac_func innocuous_$ac_func
11946
11947/* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char $ac_func (); below.
11949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950 <limits.h> exists even on freestanding compilers. */
11951
11952#ifdef __STDC__
11953# include <limits.h>
11954#else
11955# include <assert.h>
11956#endif
11957
11958#undef $ac_func
11959
11960/* Override any GCC internal prototype to avoid an error.
11961 Use char because int might match the return type of a GCC
11962 builtin and then its argument prototype would still apply. */
11963#ifdef __cplusplus
11964extern "C"
11965#endif
11966char $ac_func ();
11967/* The GNU C library defines this for functions which it implements
11968 to always fail with ENOSYS. Some functions are actually named
11969 something starting with __ and the normal name is an alias. */
11970#if defined __stub_$ac_func || defined __stub___$ac_func
11971choke me
11972#endif
11973
11974int
11975main ()
11976{
11977return $ac_func ();
11978 ;
11979 return 0;
11980}
11981_ACEOF
11982rm -f conftest.$ac_objext conftest$ac_exeext
11983if { (ac_try="$ac_link"
11984case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_link") 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11997 { (case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12000esac
12001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_try") 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; } &&
12006 { ac_try='test -s conftest$ac_exeext'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010esac
12011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 eval "$as_ac_var=yes"
12017else
12018 echo "$as_me: failed program was:" >&5
12019sed 's/^/| /' conftest.$ac_ext >&5
12020
12021 eval "$as_ac_var=no"
12022fi
12023
12024rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026fi
12027ac_res=`eval echo '${'$as_ac_var'}'`
12028 { echo "$as_me:$LINENO: result: $ac_res" >&5
12029echo "${ECHO_T}$ac_res" >&6; }
12030if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012031 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012033_ACEOF
12034
12035fi
12036done
12037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012038
12039
12040
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012041for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012042do
12043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12044{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12046if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048else
12049 cat >conftest.$ac_ext <<_ACEOF
12050/* confdefs.h. */
12051_ACEOF
12052cat confdefs.h >>conftest.$ac_ext
12053cat >>conftest.$ac_ext <<_ACEOF
12054/* end confdefs.h. */
12055/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12057#define $ac_func innocuous_$ac_func
12058
12059/* System header to define __stub macros and hopefully few prototypes,
12060 which can conflict with char $ac_func (); below.
12061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062 <limits.h> exists even on freestanding compilers. */
12063
12064#ifdef __STDC__
12065# include <limits.h>
12066#else
12067# include <assert.h>
12068#endif
12069
12070#undef $ac_func
12071
12072/* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12075#ifdef __cplusplus
12076extern "C"
12077#endif
12078char $ac_func ();
12079/* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082#if defined __stub_$ac_func || defined __stub___$ac_func
12083choke me
12084#endif
12085
12086int
12087main ()
12088{
12089return $ac_func ();
12090 ;
12091 return 0;
12092}
12093_ACEOF
12094rm -f conftest.$ac_objext conftest$ac_exeext
12095if { (ac_try="$ac_link"
12096case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_link") 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109 { (case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112esac
12113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_try") 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122esac
12123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 eval "$as_ac_var=yes"
12129else
12130 echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133 eval "$as_ac_var=no"
12134fi
12135
12136rm -f core conftest.err conftest.$ac_objext \
12137 conftest$ac_exeext conftest.$ac_ext
12138fi
12139ac_res=`eval echo '${'$as_ac_var'}'`
12140 { echo "$as_me:$LINENO: result: $ac_res" >&5
12141echo "${ECHO_T}$ac_res" >&6; }
12142if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145_ACEOF
12146
12147fi
12148done
12149
12150
Douglas Gregor01746742009-05-11 18:05:52 +000012151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012152{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12153echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012154
Reid Spencer86901802004-12-08 23:07:27 +000012155ICC=no
12156IXX=no
12157case $CC in
12158 icc*|icpc*)
12159 ICC=yes
12160 IXX=yes
12161 ;;
12162 *)
12163 ;;
12164esac
12165
Duraid Madina937c60a2006-02-15 07:57:42 +000012166if test "$GCC" != "yes" && test "$ICC" != "yes"
12167then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012168 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12169echo "$as_me: error: gcc|icc required but not found" >&2;}
12170 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012171fi
12172
12173if test "$GXX" != "yes" && test "$IXX" != "yes"
12174then
Eric Christopher73e36da2010-12-08 02:02:14 +000012175 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12176echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012177 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012178fi
12179
Reid Spencer86901802004-12-08 23:07:27 +000012180if test "$GCC" = "yes"
12181then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012182 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012183#if !defined(__GNUC__) || __GNUC__ < 3
12184#error Unsupported GCC version
12185#endif
12186
12187_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012188rm -f conftest.$ac_objext
12189if { (ac_try="$ac_compile"
12190case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193esac
12194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_compile") 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12203 { (case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206esac
12207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_try") 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; } &&
12212 { ac_try='test -s conftest.$ac_objext'
12213 { (case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12216esac
12217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_try") 2>&5
12219 ac_status=$?
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
12222 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012223else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012224 echo "$as_me: failed program was:" >&5
12225sed 's/^/| /' conftest.$ac_ext >&5
12226
12227 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12228echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12229 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012231
Chris Lattner399c7c72008-02-05 19:43:53 +000012232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012233fi
12234
12235if test -z "$llvm_cv_gnu_make_command"
12236then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12238echo "$as_me: error: GNU Make required but not found" >&2;}
12239 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012240fi
12241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012242{ echo "$as_me:$LINENO: result: ok" >&5
12243echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012245{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12246echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012247NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12248
12249NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012251{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12252echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012253
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012255
12256{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12257echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12258if test "${ac_cv_lib_m_sin+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012260else
12261 ac_check_lib_save_LIBS=$LIBS
12262LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012263cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h. */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012268/* end confdefs.h. */
12269
Reid Spencera773bd52006-08-04 18:18:08 +000012270/* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012273#ifdef __cplusplus
12274extern "C"
12275#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012276char sin ();
12277int
12278main ()
12279{
Reid Spencera773bd52006-08-04 18:18:08 +000012280return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012281 ;
12282 return 0;
12283}
12284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012285rm -f conftest.$ac_objext conftest$ac_exeext
12286if { (ac_try="$ac_link"
12287case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290esac
12291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_link") 2>conftest.er1
12293 ac_status=$?
12294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12300 { (case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_try") 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest$ac_exeext'
12310 { (case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12313esac
12314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_try") 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012319 ac_cv_lib_m_sin=yes
12320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321 echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012326
Bill Wendlingebcceee2009-04-18 11:20:33 +000012327rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012329LIBS=$ac_check_lib_save_LIBS
12330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012331{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12332echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12333if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012334 cat >>confdefs.h <<_ACEOF
12335#define HAVE_LIBM 1
12336_ACEOF
12337
12338 LIBS="-lm $LIBS"
12339
12340fi
12341
Jeff Cohen28783c32007-01-12 18:22:38 +000012342if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012343
12344{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12345echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12346if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012348else
12349 ac_check_lib_save_LIBS=$LIBS
12350LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012351cat >conftest.$ac_ext <<_ACEOF
12352/* confdefs.h. */
12353_ACEOF
12354cat confdefs.h >>conftest.$ac_ext
12355cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012356/* end confdefs.h. */
12357
Reid Spencer48fdf912006-06-01 19:03:21 +000012358
Reid Spencer484fc8e2006-06-01 16:55:59 +000012359int
12360main ()
12361{
Reid Spencera773bd52006-08-04 18:18:08 +000012362return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012363 ;
12364 return 0;
12365}
12366_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012367rm -f conftest.$ac_objext conftest$ac_exeext
12368if { (ac_try="$ac_link"
12369case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_link") 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382 { (case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12385esac
12386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_try") 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
12392 { (case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395esac
12396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_try") 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012401 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012403 echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012408
Bill Wendlingebcceee2009-04-18 11:20:33 +000012409rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012410 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012411LIBS=$ac_check_lib_save_LIBS
12412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012413{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12414echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12415if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012416 cat >>confdefs.h <<_ACEOF
12417#define HAVE_LIBIMAGEHLP 1
12418_ACEOF
12419
12420 LIBS="-limagehlp $LIBS"
12421
12422fi
12423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012424
12425{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12426echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12427if test "${ac_cv_lib_psapi_main+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012429else
12430 ac_check_lib_save_LIBS=$LIBS
12431LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012432cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h. */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012437/* end confdefs.h. */
12438
Reid Spencer48fdf912006-06-01 19:03:21 +000012439
Reid Spencer484fc8e2006-06-01 16:55:59 +000012440int
12441main ()
12442{
Reid Spencera773bd52006-08-04 18:18:08 +000012443return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012444 ;
12445 return 0;
12446}
12447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012448rm -f conftest.$ac_objext conftest$ac_exeext
12449if { (ac_try="$ac_link"
12450case "(($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_link") 2>conftest.er1
12456 ac_status=$?
12457 grep -v '^ *+' conftest.er1 >conftest.err
12458 rm -f conftest.er1
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12463 { (case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466esac
12467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_try") 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476esac
12477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012482 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012484 echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012489
Bill Wendlingebcceee2009-04-18 11:20:33 +000012490rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012491 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012492LIBS=$ac_check_lib_save_LIBS
12493fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012494{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12495echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12496if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012497 cat >>confdefs.h <<_ACEOF
12498#define HAVE_LIBPSAPI 1
12499_ACEOF
12500
12501 LIBS="-lpsapi $LIBS"
12502
12503fi
12504
12505fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012507{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12508echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12509if test "${ac_cv_search_dlopen+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012511else
12512 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012513cat >conftest.$ac_ext <<_ACEOF
12514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012518/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012519
Reid Spencera773bd52006-08-04 18:18:08 +000012520/* Override any GCC internal prototype to avoid an error.
12521 Use char because int might match the return type of a GCC
12522 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012523#ifdef __cplusplus
12524extern "C"
12525#endif
John Criswell7a73b802003-06-30 21:59:07 +000012526char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012527int
12528main ()
12529{
Reid Spencera773bd52006-08-04 18:18:08 +000012530return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012531 ;
12532 return 0;
12533}
12534_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012535for ac_lib in '' dl; do
12536 if test -z "$ac_lib"; then
12537 ac_res="none required"
12538 else
12539 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012541 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012542 rm -f conftest.$ac_objext conftest$ac_exeext
12543if { (ac_try="$ac_link"
12544case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547esac
12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560esac
12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest$ac_exeext'
12567 { (case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12570esac
12571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_try") 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012576 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012577else
12578 echo "$as_me: failed program was:" >&5
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
12581
John Criswell7a73b802003-06-30 21:59:07 +000012582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012583
Bill Wendlingebcceee2009-04-18 11:20:33 +000012584rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012585 conftest$ac_exeext
12586 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012587 break
John Criswell7a73b802003-06-30 21:59:07 +000012588fi
Reid Spencera773bd52006-08-04 18:18:08 +000012589done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012590if test "${ac_cv_search_dlopen+set}" = set; then
12591 :
Reid Spencera773bd52006-08-04 18:18:08 +000012592else
12593 ac_cv_search_dlopen=no
12594fi
12595rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012596LIBS=$ac_func_search_save_LIBS
12597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012598{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12599echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012600ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012601if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012604cat >>confdefs.h <<\_ACEOF
12605#define HAVE_DLOPEN 1
12606_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012607
12608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012609 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12610echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012611fi
12612
12613
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012614if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012615 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12616echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12617if test "${ac_cv_search_ffi_call+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012619else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012620 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012621cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012626/* end confdefs.h. */
12627
12628/* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
12631#ifdef __cplusplus
12632extern "C"
12633#endif
12634char ffi_call ();
12635int
12636main ()
12637{
12638return ffi_call ();
12639 ;
12640 return 0;
12641}
12642_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012643for ac_lib in '' ffi; do
12644 if test -z "$ac_lib"; then
12645 ac_res="none required"
12646 else
12647 ac_res=-l$ac_lib
12648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12649 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012650 rm -f conftest.$ac_objext conftest$ac_exeext
12651if { (ac_try="$ac_link"
12652case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_link") 2>conftest.er1
12658 ac_status=$?
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12665 { (case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12668esac
12669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_try") 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; } &&
12674 { ac_try='test -s conftest$ac_exeext'
12675 { (case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678esac
12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_try") 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012684 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012685else
12686 echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012690fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012691
Bill Wendlingebcceee2009-04-18 11:20:33 +000012692rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012693 conftest$ac_exeext
12694 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012695 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012696fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012697done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012698if test "${ac_cv_search_ffi_call+set}" = set; then
12699 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012700else
12701 ac_cv_search_ffi_call=no
12702fi
12703rm conftest.$ac_ext
12704LIBS=$ac_func_search_save_LIBS
12705fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012706{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12707echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012708ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012709if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012712cat >>confdefs.h <<\_ACEOF
12713#define HAVE_FFI_CALL 1
12714_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012715
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012716else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012717 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12718echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12719 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012720fi
12721
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012722fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012724{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12725echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12726if test "${ac_cv_search_mallinfo+set}" = set; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012728else
12729 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730cat >conftest.$ac_ext <<_ACEOF
12731/* confdefs.h. */
12732_ACEOF
12733cat confdefs.h >>conftest.$ac_ext
12734cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012735/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012736
Reid Spencera773bd52006-08-04 18:18:08 +000012737/* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012740#ifdef __cplusplus
12741extern "C"
12742#endif
John Criswell7a73b802003-06-30 21:59:07 +000012743char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012744int
12745main ()
12746{
Reid Spencera773bd52006-08-04 18:18:08 +000012747return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012748 ;
12749 return 0;
12750}
12751_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012752for ac_lib in '' malloc; do
12753 if test -z "$ac_lib"; then
12754 ac_res="none required"
12755 else
12756 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012758 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012759 rm -f conftest.$ac_objext conftest$ac_exeext
12760if { (ac_try="$ac_link"
12761case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_link") 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12774 { (case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_try") 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest$ac_exeext'
12784 { (case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012793 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012794else
12795 echo "$as_me: failed program was:" >&5
12796sed 's/^/| /' conftest.$ac_ext >&5
12797
12798
John Criswell7a73b802003-06-30 21:59:07 +000012799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012800
Bill Wendlingebcceee2009-04-18 11:20:33 +000012801rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012802 conftest$ac_exeext
12803 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012804 break
John Criswell7a73b802003-06-30 21:59:07 +000012805fi
Reid Spencera773bd52006-08-04 18:18:08 +000012806done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012807if test "${ac_cv_search_mallinfo+set}" = set; then
12808 :
Reid Spencera773bd52006-08-04 18:18:08 +000012809else
12810 ac_cv_search_mallinfo=no
12811fi
12812rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012813LIBS=$ac_func_search_save_LIBS
12814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12816echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012817ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012818if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821cat >>confdefs.h <<\_ACEOF
12822#define HAVE_MALLINFO 1
12823_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012824
12825fi
12826
12827
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012828if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012829
12830{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12831echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12832if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012834else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012835 ac_check_lib_save_LIBS=$LIBS
12836LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837cat >conftest.$ac_ext <<_ACEOF
12838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012842/* end confdefs.h. */
12843
Reid Spencera773bd52006-08-04 18:18:08 +000012844/* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012847#ifdef __cplusplus
12848extern "C"
12849#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012850char pthread_mutex_init ();
12851int
12852main ()
12853{
Reid Spencera773bd52006-08-04 18:18:08 +000012854return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012855 ;
12856 return 0;
12857}
12858_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012859rm -f conftest.$ac_objext conftest$ac_exeext
12860if { (ac_try="$ac_link"
12861case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877esac
12878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012893 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012895 echo "$as_me: failed program was:" >&5
12896sed 's/^/| /' conftest.$ac_ext >&5
12897
12898 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012900
Bill Wendlingebcceee2009-04-18 11:20:33 +000012901rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012902 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012903LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012905{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12906echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12907if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012908 cat >>confdefs.h <<_ACEOF
12909#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012910_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012911
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012912 LIBS="-lpthread $LIBS"
12913
Reid Spencer22177fe2005-07-12 15:24:20 +000012914fi
12915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012916 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12917echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12918if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012920else
12921 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012922cat >conftest.$ac_ext <<_ACEOF
12923/* confdefs.h. */
12924_ACEOF
12925cat confdefs.h >>conftest.$ac_ext
12926cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012927/* end confdefs.h. */
12928
Reid Spencera773bd52006-08-04 18:18:08 +000012929/* Override any GCC internal prototype to avoid an error.
12930 Use char because int might match the return type of a GCC
12931 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012932#ifdef __cplusplus
12933extern "C"
12934#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012935char pthread_mutex_lock ();
12936int
12937main ()
12938{
Reid Spencera773bd52006-08-04 18:18:08 +000012939return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012940 ;
12941 return 0;
12942}
12943_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012944for ac_lib in '' pthread; do
12945 if test -z "$ac_lib"; then
12946 ac_res="none required"
12947 else
12948 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012950 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012951 rm -f conftest.$ac_objext conftest$ac_exeext
12952if { (ac_try="$ac_link"
12953case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_link") 2>conftest.er1
12959 ac_status=$?
12960 grep -v '^ *+' conftest.er1 >conftest.err
12961 rm -f conftest.er1
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } &&
12965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969esac
12970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_try") 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest$ac_exeext'
12976 { (case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979esac
12980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_try") 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012985 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012986else
12987 echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
12990
Brian Gaeke5f268f72003-12-05 19:29:01 +000012991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012992
Bill Wendlingebcceee2009-04-18 11:20:33 +000012993rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012994 conftest$ac_exeext
12995 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012996 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012997fi
Reid Spencera773bd52006-08-04 18:18:08 +000012998done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13000 :
Reid Spencera773bd52006-08-04 18:18:08 +000013001else
13002 ac_cv_search_pthread_mutex_lock=no
13003fi
13004rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013005LIBS=$ac_func_search_save_LIBS
13006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013007{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13008echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013009ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013010if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013013cat >>confdefs.h <<\_ACEOF
13014#define HAVE_PTHREAD_MUTEX_LOCK 1
13015_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013016
13017fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013019 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13020echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13021if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013023else
13024 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013025cat >conftest.$ac_ext <<_ACEOF
13026/* confdefs.h. */
13027_ACEOF
13028cat confdefs.h >>conftest.$ac_ext
13029cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013030/* end confdefs.h. */
13031
13032/* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13035#ifdef __cplusplus
13036extern "C"
13037#endif
13038char pthread_rwlock_init ();
13039int
13040main ()
13041{
13042return pthread_rwlock_init ();
13043 ;
13044 return 0;
13045}
13046_ACEOF
13047for ac_lib in '' pthread; do
13048 if test -z "$ac_lib"; then
13049 ac_res="none required"
13050 else
13051 ac_res=-l$ac_lib
13052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13053 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013054 rm -f conftest.$ac_objext conftest$ac_exeext
13055if { (ac_try="$ac_link"
13056case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_link") 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try='test -s conftest$ac_exeext'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013088 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013089else
13090 echo "$as_me: failed program was:" >&5
13091sed 's/^/| /' conftest.$ac_ext >&5
13092
13093
Owen Andersonde8aed22009-06-16 18:20:20 +000013094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013095
Owen Andersonde8aed22009-06-16 18:20:20 +000013096rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013097 conftest$ac_exeext
13098 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013099 break
13100fi
13101done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013102if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13103 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013104else
13105 ac_cv_search_pthread_rwlock_init=no
13106fi
13107rm conftest.$ac_ext
13108LIBS=$ac_func_search_save_LIBS
13109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13111echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013112ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013113if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013116cat >>confdefs.h <<\_ACEOF
13117#define HAVE_PTHREAD_RWLOCK_INIT 1
13118_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013119
13120fi
13121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013122 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13123echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13124if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013126else
13127 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128cat >conftest.$ac_ext <<_ACEOF
13129/* confdefs.h. */
13130_ACEOF
13131cat confdefs.h >>conftest.$ac_ext
13132cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013133/* end confdefs.h. */
13134
13135/* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13138#ifdef __cplusplus
13139extern "C"
13140#endif
13141char pthread_getspecific ();
13142int
13143main ()
13144{
13145return pthread_getspecific ();
13146 ;
13147 return 0;
13148}
13149_ACEOF
13150for ac_lib in '' pthread; do
13151 if test -z "$ac_lib"; then
13152 ac_res="none required"
13153 else
13154 ac_res=-l$ac_lib
13155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13156 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013157 rm -f conftest.$ac_objext conftest$ac_exeext
13158if { (ac_try="$ac_link"
13159case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_link") 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172 { (case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175esac
13176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_try") 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest$ac_exeext'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185esac
13186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013191 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013192else
13193 echo "$as_me: failed program was:" >&5
13194sed 's/^/| /' conftest.$ac_ext >&5
13195
13196
Owen Anderson27fcfe12009-06-25 23:10:26 +000013197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013198
Owen Anderson27fcfe12009-06-25 23:10:26 +000013199rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013200 conftest$ac_exeext
13201 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013202 break
13203fi
13204done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013205if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13206 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013207else
13208 ac_cv_search_pthread_getspecific=no
13209fi
13210rm conftest.$ac_ext
13211LIBS=$ac_func_search_save_LIBS
13212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013213{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13214echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013215ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013219cat >>confdefs.h <<\_ACEOF
13220#define HAVE_PTHREAD_GETSPECIFIC 1
13221_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013222
13223fi
13224
Reid Spencer0a262ba2005-08-24 10:07:20 +000013225fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013226
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013227
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013228# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013229if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013230 withval=$with_udis86;
13231 USE_UDIS86=1
13232
13233 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013234 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013235 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13236 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013237
13238{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13239echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13240if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013242else
13243 ac_check_lib_save_LIBS=$LIBS
13244LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013245cat >conftest.$ac_ext <<_ACEOF
13246/* confdefs.h. */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013250/* end confdefs.h. */
13251
13252/* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13255#ifdef __cplusplus
13256extern "C"
13257#endif
13258char ud_init ();
13259int
13260main ()
13261{
13262return ud_init ();
13263 ;
13264 return 0;
13265}
13266_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013267rm -f conftest.$ac_objext conftest$ac_exeext
13268if { (ac_try="$ac_link"
13269case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13272esac
13273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_link") 2>conftest.er1
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282 { (case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285esac
13286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_try") 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; } &&
13291 { ac_try='test -s conftest$ac_exeext'
13292 { (case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295esac
13296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_try") 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013301 ac_cv_lib_udis86_ud_init=yes
13302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303 echo "$as_me: failed program was:" >&5
13304sed 's/^/| /' conftest.$ac_ext >&5
13305
13306 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013308
Bill Wendlingebcceee2009-04-18 11:20:33 +000013309rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013310 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013311LIBS=$ac_check_lib_save_LIBS
13312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013313{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13314echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13315if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013316 cat >>confdefs.h <<_ACEOF
13317#define HAVE_LIBUDIS86 1
13318_ACEOF
13319
13320 LIBS="-ludis86 $LIBS"
13321
13322else
13323
13324 echo "Error! You need to have libudis86 around."
13325 exit -1
13326
13327fi
13328
13329
13330else
13331 USE_UDIS86=0
13332
13333fi
13334
13335
13336cat >>confdefs.h <<_ACEOF
13337#define USE_UDIS86 $USE_UDIS86
13338_ACEOF
13339
13340
13341
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013342# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013343if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013344 withval=$with_oprofile;
13345 USE_OPROFILE=1
13346
13347 case "$withval" in
13348 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013349 no) llvm_cv_oppath=
13350 USE_OPROFILE=0
13351 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013352 *) llvm_cv_oppath="${withval}/lib/oprofile"
13353 CPPFLAGS="-I${withval}/include";;
13354 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013355 if test -n "$llvm_cv_oppath" ; then
13356 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13358echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13359if test "${ac_cv_search_bfd_init+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013361else
13362 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013368/* end confdefs.h. */
13369
13370/* Override any GCC internal prototype to avoid an error.
13371 Use char because int might match the return type of a GCC
13372 builtin and then its argument prototype would still apply. */
13373#ifdef __cplusplus
13374extern "C"
13375#endif
13376char bfd_init ();
13377int
13378main ()
13379{
13380return bfd_init ();
13381 ;
13382 return 0;
13383}
13384_ACEOF
13385for ac_lib in '' bfd; do
13386 if test -z "$ac_lib"; then
13387 ac_res="none required"
13388 else
13389 ac_res=-l$ac_lib
13390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13391 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013392 rm -f conftest.$ac_objext conftest$ac_exeext
13393if { (ac_try="$ac_link"
13394case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397esac
13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407 { (case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_try") 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; } &&
13416 { ac_try='test -s conftest$ac_exeext'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013426 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013427else
13428 echo "$as_me: failed program was:" >&5
13429sed 's/^/| /' conftest.$ac_ext >&5
13430
13431
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013434rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013435 conftest$ac_exeext
13436 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013437 break
13438fi
13439done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013440if test "${ac_cv_search_bfd_init+set}" = set; then
13441 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013442else
13443 ac_cv_search_bfd_init=no
13444fi
13445rm conftest.$ac_ext
13446LIBS=$ac_func_search_save_LIBS
13447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013448{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13449echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013450ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13453
13454fi
13455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013456 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13457echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13458if test "${ac_cv_search_op_open_agent+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013460else
13461 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013462cat >conftest.$ac_ext <<_ACEOF
13463/* confdefs.h. */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013467/* end confdefs.h. */
13468
13469/* Override any GCC internal prototype to avoid an error.
13470 Use char because int might match the return type of a GCC
13471 builtin and then its argument prototype would still apply. */
13472#ifdef __cplusplus
13473extern "C"
13474#endif
13475char op_open_agent ();
13476int
13477main ()
13478{
13479return op_open_agent ();
13480 ;
13481 return 0;
13482}
13483_ACEOF
13484for ac_lib in '' opagent; do
13485 if test -z "$ac_lib"; then
13486 ac_res="none required"
13487 else
13488 ac_res=-l$ac_lib
13489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13490 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013491 rm -f conftest.$ac_objext conftest$ac_exeext
13492if { (ac_try="$ac_link"
13493case "(($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_link") 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13506 { (case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509esac
13510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_try") 2>&5
13512 ac_status=$?
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; } &&
13515 { ac_try='test -s conftest$ac_exeext'
13516 { (case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519esac
13520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_try") 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013525 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526else
13527 echo "$as_me: failed program was:" >&5
13528sed 's/^/| /' conftest.$ac_ext >&5
13529
13530
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013531fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013532
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013533rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013534 conftest$ac_exeext
13535 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013536 break
13537fi
13538done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013539if test "${ac_cv_search_op_open_agent+set}" = set; then
13540 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013541else
13542 ac_cv_search_op_open_agent=no
13543fi
13544rm conftest.$ac_ext
13545LIBS=$ac_func_search_save_LIBS
13546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013547{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13548echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013549ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013550if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13552
13553else
13554
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013555 echo "Error! You need to have libopagent around."
13556 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013557
13558fi
13559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013560 if test "${ac_cv_header_opagent_h+set}" = set; then
13561 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13562echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13563if test "${ac_cv_header_opagent_h+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565fi
13566{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13567echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13568else
13569 # Is the header compilable?
13570{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13571echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13572cat >conftest.$ac_ext <<_ACEOF
13573/* confdefs.h. */
13574_ACEOF
13575cat confdefs.h >>conftest.$ac_ext
13576cat >>conftest.$ac_ext <<_ACEOF
13577/* end confdefs.h. */
13578$ac_includes_default
13579#include <opagent.h>
13580_ACEOF
13581rm -f conftest.$ac_objext
13582if { (ac_try="$ac_compile"
13583case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_compile") 2>conftest.er1
13589 ac_status=$?
13590 grep -v '^ *+' conftest.er1 >conftest.err
13591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13596 { (case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13599esac
13600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_try") 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609esac
13610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 ac_header_compiler=yes
13616else
13617 echo "$as_me: failed program was:" >&5
13618sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620 ac_header_compiler=no
13621fi
13622
13623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13625echo "${ECHO_T}$ac_header_compiler" >&6; }
13626
13627# Is the header present?
13628{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13629echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13630cat >conftest.$ac_ext <<_ACEOF
13631/* confdefs.h. */
13632_ACEOF
13633cat confdefs.h >>conftest.$ac_ext
13634cat >>conftest.$ac_ext <<_ACEOF
13635/* end confdefs.h. */
13636#include <opagent.h>
13637_ACEOF
13638if { (ac_try="$ac_cpp conftest.$ac_ext"
13639case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642esac
13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } >/dev/null; then
13651 if test -s conftest.err; then
13652 ac_cpp_err=$ac_c_preproc_warn_flag
13653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13654 else
13655 ac_cpp_err=
13656 fi
13657else
13658 ac_cpp_err=yes
13659fi
13660if test -z "$ac_cpp_err"; then
13661 ac_header_preproc=yes
13662else
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666 ac_header_preproc=no
13667fi
13668
13669rm -f conftest.err conftest.$ac_ext
13670{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13671echo "${ECHO_T}$ac_header_preproc" >&6; }
13672
13673# So? What about this header?
13674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13675 yes:no: )
13676 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13677echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13679echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13680 ac_header_preproc=yes
13681 ;;
13682 no:yes:* )
13683 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13684echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13686echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13687 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13688echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13690echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13692echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13694echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13695 ( cat <<\_ASBOX
13696## ----------------------------------- ##
13697## Report this to llvmbugs@cs.uiuc.edu ##
13698## ----------------------------------- ##
13699_ASBOX
13700 ) | sed "s/^/$as_me: WARNING: /" >&2
13701 ;;
13702esac
13703{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13704echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13705if test "${ac_cv_header_opagent_h+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707else
13708 ac_cv_header_opagent_h=$ac_header_preproc
13709fi
13710{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13711echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13712
13713fi
13714if test $ac_cv_header_opagent_h = yes; then
13715 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013716else
13717
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013718 echo "Error! You need to have opagent.h around."
13719 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013720
13721fi
13722
13723
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013724 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013725
13726else
13727
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013728 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013729
13730
13731fi
13732
13733
13734cat >>confdefs.h <<_ACEOF
13735#define USE_OPROFILE $USE_OPROFILE
13736_ACEOF
13737
13738
13739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013740
13741
13742
13743
13744
Reid Spencer59473af2004-12-25 07:31:29 +000013745ac_header_dirent=no
13746for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013747 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13748{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13749echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753 cat >conftest.$ac_ext <<_ACEOF
13754/* confdefs.h. */
13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013758/* end confdefs.h. */
13759#include <sys/types.h>
13760#include <$ac_hdr>
13761
13762int
13763main ()
13764{
13765if ((DIR *) 0)
13766return 0;
13767 ;
13768 return 0;
13769}
13770_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013771rm -f conftest.$ac_objext
13772if { (ac_try="$ac_compile"
13773case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13776esac
13777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_compile") 2>conftest.er1
13779 ac_status=$?
13780 grep -v '^ *+' conftest.er1 >conftest.err
13781 rm -f conftest.er1
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13786 { (case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13789esac
13790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_try") 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799esac
13800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_try") 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013805 eval "$as_ac_Header=yes"
13806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013807 echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013812
Reid Spencera773bd52006-08-04 18:18:08 +000013813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013815ac_res=`eval echo '${'$as_ac_Header'}'`
13816 { echo "$as_me:$LINENO: result: $ac_res" >&5
13817echo "${ECHO_T}$ac_res" >&6; }
13818if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013819 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013820#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013821_ACEOF
13822
13823ac_header_dirent=$ac_hdr; break
13824fi
13825
13826done
13827# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13828if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013829 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13830echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13831if test "${ac_cv_search_opendir+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013833else
13834 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013835cat >conftest.$ac_ext <<_ACEOF
13836/* confdefs.h. */
13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013840/* end confdefs.h. */
13841
Reid Spencera773bd52006-08-04 18:18:08 +000013842/* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013845#ifdef __cplusplus
13846extern "C"
13847#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013848char opendir ();
13849int
13850main ()
13851{
Reid Spencera773bd52006-08-04 18:18:08 +000013852return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013853 ;
13854 return 0;
13855}
13856_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013857for ac_lib in '' dir; do
13858 if test -z "$ac_lib"; then
13859 ac_res="none required"
13860 else
13861 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013863 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013864 rm -f conftest.$ac_objext conftest$ac_exeext
13865if { (ac_try="$ac_link"
13866case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13879 { (case "(($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_try") 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest$ac_exeext'
13889 { (case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13892esac
13893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_try") 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013898 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013899else
13900 echo "$as_me: failed program was:" >&5
13901sed 's/^/| /' conftest.$ac_ext >&5
13902
13903
Reid Spencer59473af2004-12-25 07:31:29 +000013904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013905
Bill Wendlingebcceee2009-04-18 11:20:33 +000013906rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013907 conftest$ac_exeext
13908 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013909 break
Reid Spencer59473af2004-12-25 07:31:29 +000013910fi
Reid Spencera773bd52006-08-04 18:18:08 +000013911done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013912if test "${ac_cv_search_opendir+set}" = set; then
13913 :
Reid Spencera773bd52006-08-04 18:18:08 +000013914else
13915 ac_cv_search_opendir=no
13916fi
13917rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013918LIBS=$ac_func_search_save_LIBS
13919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13921echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013922ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013923if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013925
13926fi
13927
13928else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013929 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13930echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13931if test "${ac_cv_search_opendir+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013933else
13934 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013935cat >conftest.$ac_ext <<_ACEOF
13936/* confdefs.h. */
13937_ACEOF
13938cat confdefs.h >>conftest.$ac_ext
13939cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013940/* end confdefs.h. */
13941
Reid Spencera773bd52006-08-04 18:18:08 +000013942/* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013945#ifdef __cplusplus
13946extern "C"
13947#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013948char opendir ();
13949int
13950main ()
13951{
Reid Spencera773bd52006-08-04 18:18:08 +000013952return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013953 ;
13954 return 0;
13955}
13956_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013957for ac_lib in '' x; do
13958 if test -z "$ac_lib"; then
13959 ac_res="none required"
13960 else
13961 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013963 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013964 rm -f conftest.$ac_objext conftest$ac_exeext
13965if { (ac_try="$ac_link"
13966case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_link") 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982esac
13983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest$ac_exeext'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992esac
13993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013998 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013999else
14000 echo "$as_me: failed program was:" >&5
14001sed 's/^/| /' conftest.$ac_ext >&5
14002
14003
Reid Spencer59473af2004-12-25 07:31:29 +000014004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014005
Bill Wendlingebcceee2009-04-18 11:20:33 +000014006rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007 conftest$ac_exeext
14008 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014009 break
Reid Spencer59473af2004-12-25 07:31:29 +000014010fi
Reid Spencera773bd52006-08-04 18:18:08 +000014011done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012if test "${ac_cv_search_opendir+set}" = set; then
14013 :
Reid Spencera773bd52006-08-04 18:18:08 +000014014else
14015 ac_cv_search_opendir=no
14016fi
14017rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014018LIBS=$ac_func_search_save_LIBS
14019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14021echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014022ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014025
14026fi
14027
14028fi
14029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014030{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14031echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14032if test "${ac_cv_header_mmap_anon+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014034else
14035 ac_ext=c
14036ac_cpp='$CPP $CPPFLAGS'
14037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039ac_compiler_gnu=$ac_cv_c_compiler_gnu
14040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041 cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014046/* end confdefs.h. */
14047#include <sys/mman.h>
14048#include <unistd.h>
14049#include <fcntl.h>
14050int
14051main ()
14052{
14053mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14054 ;
14055 return 0;
14056}
14057_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014058rm -f conftest.$ac_objext
14059if { (ac_try="$ac_compile"
14060case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_compile") 2>conftest.er1
14066 ac_status=$?
14067 grep -v '^ *+' conftest.er1 >conftest.err
14068 rm -f conftest.er1
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076esac
14077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014092 ac_cv_header_mmap_anon=yes
14093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014094 echo "$as_me: failed program was:" >&5
14095sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014099
Reid Spencera773bd52006-08-04 18:18:08 +000014100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014101 ac_ext=c
14102ac_cpp='$CPP $CPPFLAGS'
14103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105ac_compiler_gnu=$ac_cv_c_compiler_gnu
14106
14107
14108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014109{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14110echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014111if test "$ac_cv_header_mmap_anon" = yes; then
14112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014113cat >>confdefs.h <<\_ACEOF
14114#define HAVE_MMAP_ANONYMOUS 1
14115_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014116
14117fi
14118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014119{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14120echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14121if test "${ac_cv_header_stat_broken+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124 cat >conftest.$ac_ext <<_ACEOF
14125/* confdefs.h. */
14126_ACEOF
14127cat confdefs.h >>conftest.$ac_ext
14128cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014129/* end confdefs.h. */
14130#include <sys/types.h>
14131#include <sys/stat.h>
14132
Reid Spencera773bd52006-08-04 18:18:08 +000014133#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134# if S_ISBLK (S_IFDIR)
14135You lose.
14136# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014137#endif
14138
Reid Spencera773bd52006-08-04 18:18:08 +000014139#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014140# if S_ISBLK (S_IFCHR)
14141You lose.
14142# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014143#endif
14144
Reid Spencera773bd52006-08-04 18:18:08 +000014145#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146# if S_ISLNK (S_IFREG)
14147You lose.
14148# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014149#endif
14150
Reid Spencera773bd52006-08-04 18:18:08 +000014151#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152# if S_ISSOCK (S_IFREG)
14153You lose.
14154# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014155#endif
14156
14157_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14159 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014160 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014161else
14162 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014163fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164rm -f conftest*
14165
Reid Spencer59473af2004-12-25 07:31:29 +000014166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014167{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14168echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014169if test $ac_cv_header_stat_broken = yes; then
14170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014171cat >>confdefs.h <<\_ACEOF
14172#define STAT_MACROS_BROKEN 1
14173_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014174
14175fi
14176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014177{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14178echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14179if test "${ac_cv_header_sys_wait_h+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182 cat >conftest.$ac_ext <<_ACEOF
14183/* confdefs.h. */
14184_ACEOF
14185cat confdefs.h >>conftest.$ac_ext
14186cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014188#include <sys/types.h>
14189#include <sys/wait.h>
14190#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014191# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014192#endif
14193#ifndef WIFEXITED
14194# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14195#endif
14196
John Criswell7a73b802003-06-30 21:59:07 +000014197int
14198main ()
14199{
14200 int s;
14201 wait (&s);
14202 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14203 ;
14204 return 0;
14205}
14206_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014207rm -f conftest.$ac_objext
14208if { (ac_try="$ac_compile"
14209case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_compile") 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14222 { (case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225esac
14226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_try") 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest.$ac_objext'
14232 { (case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14235esac
14236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_try") 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014241 ac_cv_header_sys_wait_h=yes
14242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243 echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248
Reid Spencera773bd52006-08-04 18:18:08 +000014249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014251{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14252echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014253if test $ac_cv_header_sys_wait_h = yes; then
14254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014255cat >>confdefs.h <<\_ACEOF
14256#define HAVE_SYS_WAIT_H 1
14257_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014258
14259fi
14260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014261{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14262echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14263if test "${ac_cv_header_time+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266 cat >conftest.$ac_ext <<_ACEOF
14267/* confdefs.h. */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014271/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014272#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014273#include <sys/time.h>
14274#include <time.h>
14275
14276int
14277main ()
14278{
14279if ((struct tm *) 0)
14280return 0;
14281 ;
14282 return 0;
14283}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014285rm -f conftest.$ac_objext
14286if { (ac_try="$ac_compile"
14287case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290esac
14291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_compile") 2>conftest.er1
14293 ac_status=$?
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
14299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try='test -s conftest.$ac_objext'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14313esac
14314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_try") 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014319 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014321 echo "$as_me: failed program was:" >&5
14322sed 's/^/| /' conftest.$ac_ext >&5
14323
14324 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014326
Reid Spencera773bd52006-08-04 18:18:08 +000014327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014329{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14330echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014331if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014333cat >>confdefs.h <<\_ACEOF
14334#define TIME_WITH_SYS_TIME 1
14335_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014336
14337fi
14338
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340
14341
14342
14343
14344
14345
Reid Spencer59473af2004-12-25 07:31:29 +000014346for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014347do
14348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354fi
14355ac_res=`eval echo '${'$as_ac_Header'}'`
14356 { echo "$as_me:$LINENO: result: $ac_res" >&5
14357echo "${ECHO_T}$ac_res" >&6; }
14358else
14359 # Is the header compilable?
14360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14362cat >conftest.$ac_ext <<_ACEOF
14363/* confdefs.h. */
14364_ACEOF
14365cat confdefs.h >>conftest.$ac_ext
14366cat >>conftest.$ac_ext <<_ACEOF
14367/* end confdefs.h. */
14368$ac_includes_default
14369#include <$ac_header>
14370_ACEOF
14371rm -f conftest.$ac_objext
14372if { (ac_try="$ac_compile"
14373case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14386 { (case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14389esac
14390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391 (eval "$ac_try") 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; } &&
14395 { ac_try='test -s conftest.$ac_objext'
14396 { (case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14399esac
14400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_try") 2>&5
14402 ac_status=$?
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14405 ac_header_compiler=yes
14406else
14407 echo "$as_me: failed program was:" >&5
14408sed 's/^/| /' conftest.$ac_ext >&5
14409
14410 ac_header_compiler=no
14411fi
14412
14413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14415echo "${ECHO_T}$ac_header_compiler" >&6; }
14416
14417# Is the header present?
14418{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14420cat >conftest.$ac_ext <<_ACEOF
14421/* confdefs.h. */
14422_ACEOF
14423cat confdefs.h >>conftest.$ac_ext
14424cat >>conftest.$ac_ext <<_ACEOF
14425/* end confdefs.h. */
14426#include <$ac_header>
14427_ACEOF
14428if { (ac_try="$ac_cpp conftest.$ac_ext"
14429case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432esac
14433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } >/dev/null; then
14441 if test -s conftest.err; then
14442 ac_cpp_err=$ac_c_preproc_warn_flag
14443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14444 else
14445 ac_cpp_err=
14446 fi
14447else
14448 ac_cpp_err=yes
14449fi
14450if test -z "$ac_cpp_err"; then
14451 ac_header_preproc=yes
14452else
14453 echo "$as_me: failed program was:" >&5
14454sed 's/^/| /' conftest.$ac_ext >&5
14455
14456 ac_header_preproc=no
14457fi
14458
14459rm -f conftest.err conftest.$ac_ext
14460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461echo "${ECHO_T}$ac_header_preproc" >&6; }
14462
14463# So? What about this header?
14464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14465 yes:no: )
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14470 ac_header_preproc=yes
14471 ;;
14472 no:yes:* )
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14485 ( cat <<\_ASBOX
14486## ----------------------------------- ##
14487## Report this to llvmbugs@cs.uiuc.edu ##
14488## ----------------------------------- ##
14489_ASBOX
14490 ) | sed "s/^/$as_me: WARNING: /" >&2
14491 ;;
14492esac
14493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 eval "$as_ac_Header=\$ac_header_preproc"
14499fi
14500ac_res=`eval echo '${'$as_ac_Header'}'`
14501 { echo "$as_me:$LINENO: result: $ac_res" >&5
14502echo "${ECHO_T}$ac_res" >&6; }
14503
14504fi
14505if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014506 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014508_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014509
14510fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014511
Reid Spencer59473af2004-12-25 07:31:29 +000014512done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014514
14515
14516
14517
14518
14519
Douglas Gregor071d73d2009-05-18 17:21:34 +000014520for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014521do
14522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528fi
14529ac_res=`eval echo '${'$as_ac_Header'}'`
14530 { echo "$as_me:$LINENO: result: $ac_res" >&5
14531echo "${ECHO_T}$ac_res" >&6; }
14532else
14533 # Is the header compilable?
14534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14536cat >conftest.$ac_ext <<_ACEOF
14537/* confdefs.h. */
14538_ACEOF
14539cat confdefs.h >>conftest.$ac_ext
14540cat >>conftest.$ac_ext <<_ACEOF
14541/* end confdefs.h. */
14542$ac_includes_default
14543#include <$ac_header>
14544_ACEOF
14545rm -f conftest.$ac_objext
14546if { (ac_try="$ac_compile"
14547case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_compile") 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14560 { (case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14563esac
14564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_try") 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14573esac
14574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_header_compiler=yes
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 ac_header_compiler=no
14585fi
14586
14587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14589echo "${ECHO_T}$ac_header_compiler" >&6; }
14590
14591# Is the header present?
14592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14594cat >conftest.$ac_ext <<_ACEOF
14595/* confdefs.h. */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h. */
14600#include <$ac_header>
14601_ACEOF
14602if { (ac_try="$ac_cpp conftest.$ac_ext"
14603case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606esac
14607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14609 ac_status=$?
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } >/dev/null; then
14615 if test -s conftest.err; then
14616 ac_cpp_err=$ac_c_preproc_warn_flag
14617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14618 else
14619 ac_cpp_err=
14620 fi
14621else
14622 ac_cpp_err=yes
14623fi
14624if test -z "$ac_cpp_err"; then
14625 ac_header_preproc=yes
14626else
14627 echo "$as_me: failed program was:" >&5
14628sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 ac_header_preproc=no
14631fi
14632
14633rm -f conftest.err conftest.$ac_ext
14634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14635echo "${ECHO_T}$ac_header_preproc" >&6; }
14636
14637# So? What about this header?
14638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14639 yes:no: )
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14644 ac_header_preproc=yes
14645 ;;
14646 no:yes:* )
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14659 ( cat <<\_ASBOX
14660## ----------------------------------- ##
14661## Report this to llvmbugs@cs.uiuc.edu ##
14662## ----------------------------------- ##
14663_ASBOX
14664 ) | sed "s/^/$as_me: WARNING: /" >&2
14665 ;;
14666esac
14667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14671else
14672 eval "$as_ac_Header=\$ac_header_preproc"
14673fi
14674ac_res=`eval echo '${'$as_ac_Header'}'`
14675 { echo "$as_me:$LINENO: result: $ac_res" >&5
14676echo "${ECHO_T}$ac_res" >&6; }
14677
14678fi
14679if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014680 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014682_ACEOF
14683
14684fi
14685
14686done
14687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014688
14689
Douglas Gregor071d73d2009-05-18 17:21:34 +000014690for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014691do
14692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14698fi
14699ac_res=`eval echo '${'$as_ac_Header'}'`
14700 { echo "$as_me:$LINENO: result: $ac_res" >&5
14701echo "${ECHO_T}$ac_res" >&6; }
14702else
14703 # Is the header compilable?
14704{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14706cat >conftest.$ac_ext <<_ACEOF
14707/* confdefs.h. */
14708_ACEOF
14709cat confdefs.h >>conftest.$ac_ext
14710cat >>conftest.$ac_ext <<_ACEOF
14711/* end confdefs.h. */
14712$ac_includes_default
14713#include <$ac_header>
14714_ACEOF
14715rm -f conftest.$ac_objext
14716if { (ac_try="$ac_compile"
14717case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_compile") 2>conftest.er1
14723 ac_status=$?
14724 grep -v '^ *+' conftest.er1 >conftest.err
14725 rm -f conftest.er1
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14730 { (case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14733esac
14734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_try") 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try='test -s conftest.$ac_objext'
14740 { (case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743esac
14744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_try") 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 ac_header_compiler=yes
14750else
14751 echo "$as_me: failed program was:" >&5
14752sed 's/^/| /' conftest.$ac_ext >&5
14753
14754 ac_header_compiler=no
14755fi
14756
14757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759echo "${ECHO_T}$ac_header_compiler" >&6; }
14760
14761# Is the header present?
14762{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14764cat >conftest.$ac_ext <<_ACEOF
14765/* confdefs.h. */
14766_ACEOF
14767cat confdefs.h >>conftest.$ac_ext
14768cat >>conftest.$ac_ext <<_ACEOF
14769/* end confdefs.h. */
14770#include <$ac_header>
14771_ACEOF
14772if { (ac_try="$ac_cpp conftest.$ac_ext"
14773case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776esac
14777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } >/dev/null; then
14785 if test -s conftest.err; then
14786 ac_cpp_err=$ac_c_preproc_warn_flag
14787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14788 else
14789 ac_cpp_err=
14790 fi
14791else
14792 ac_cpp_err=yes
14793fi
14794if test -z "$ac_cpp_err"; then
14795 ac_header_preproc=yes
14796else
14797 echo "$as_me: failed program was:" >&5
14798sed 's/^/| /' conftest.$ac_ext >&5
14799
14800 ac_header_preproc=no
14801fi
14802
14803rm -f conftest.err conftest.$ac_ext
14804{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14805echo "${ECHO_T}$ac_header_preproc" >&6; }
14806
14807# So? What about this header?
14808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14809 yes:no: )
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14814 ac_header_preproc=yes
14815 ;;
14816 no:yes:* )
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14829 ( cat <<\_ASBOX
14830## ----------------------------------- ##
14831## Report this to llvmbugs@cs.uiuc.edu ##
14832## ----------------------------------- ##
14833_ASBOX
14834 ) | sed "s/^/$as_me: WARNING: /" >&2
14835 ;;
14836esac
14837{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841else
14842 eval "$as_ac_Header=\$ac_header_preproc"
14843fi
14844ac_res=`eval echo '${'$as_ac_Header'}'`
14845 { echo "$as_me:$LINENO: result: $ac_res" >&5
14846echo "${ECHO_T}$ac_res" >&6; }
14847
14848fi
14849if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014850 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014851#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014852_ACEOF
14853
14854fi
14855
14856done
Reid Spencer59473af2004-12-25 07:31:29 +000014857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014858
14859
14860
14861
Daniel Dunbar3e462932011-02-03 02:40:02 +000014862
14863for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014864do
14865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14871fi
14872ac_res=`eval echo '${'$as_ac_Header'}'`
14873 { echo "$as_me:$LINENO: result: $ac_res" >&5
14874echo "${ECHO_T}$ac_res" >&6; }
14875else
14876 # Is the header compilable?
14877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14879cat >conftest.$ac_ext <<_ACEOF
14880/* confdefs.h. */
14881_ACEOF
14882cat confdefs.h >>conftest.$ac_ext
14883cat >>conftest.$ac_ext <<_ACEOF
14884/* end confdefs.h. */
14885$ac_includes_default
14886#include <$ac_header>
14887_ACEOF
14888rm -f conftest.$ac_objext
14889if { (ac_try="$ac_compile"
14890case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893esac
14894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_compile") 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14906esac
14907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest.$ac_objext'
14913 { (case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14916esac
14917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_try") 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_header_compiler=yes
14923else
14924 echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 ac_header_compiler=no
14928fi
14929
14930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932echo "${ECHO_T}$ac_header_compiler" >&6; }
14933
14934# Is the header present?
14935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14937cat >conftest.$ac_ext <<_ACEOF
14938/* confdefs.h. */
14939_ACEOF
14940cat confdefs.h >>conftest.$ac_ext
14941cat >>conftest.$ac_ext <<_ACEOF
14942/* end confdefs.h. */
14943#include <$ac_header>
14944_ACEOF
14945if { (ac_try="$ac_cpp conftest.$ac_ext"
14946case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14949esac
14950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } >/dev/null; then
14958 if test -s conftest.err; then
14959 ac_cpp_err=$ac_c_preproc_warn_flag
14960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14961 else
14962 ac_cpp_err=
14963 fi
14964else
14965 ac_cpp_err=yes
14966fi
14967if test -z "$ac_cpp_err"; then
14968 ac_header_preproc=yes
14969else
14970 echo "$as_me: failed program was:" >&5
14971sed 's/^/| /' conftest.$ac_ext >&5
14972
14973 ac_header_preproc=no
14974fi
14975
14976rm -f conftest.err conftest.$ac_ext
14977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978echo "${ECHO_T}$ac_header_preproc" >&6; }
14979
14980# So? What about this header?
14981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982 yes:no: )
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
14988 ;;
14989 no:yes:* )
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15002 ( cat <<\_ASBOX
15003## ----------------------------------- ##
15004## Report this to llvmbugs@cs.uiuc.edu ##
15005## ----------------------------------- ##
15006_ASBOX
15007 ) | sed "s/^/$as_me: WARNING: /" >&2
15008 ;;
15009esac
15010{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014else
15015 eval "$as_ac_Header=\$ac_header_preproc"
15016fi
15017ac_res=`eval echo '${'$as_ac_Header'}'`
15018 { echo "$as_me:$LINENO: result: $ac_res" >&5
15019echo "${ECHO_T}$ac_res" >&6; }
15020
15021fi
15022if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015023 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015025_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015026
15027fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015028
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015029done
15030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015031
15032
15033
15034
Douglas Gregor01746742009-05-11 18:05:52 +000015035for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015036do
15037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15043fi
15044ac_res=`eval echo '${'$as_ac_Header'}'`
15045 { echo "$as_me:$LINENO: result: $ac_res" >&5
15046echo "${ECHO_T}$ac_res" >&6; }
15047else
15048 # Is the header compilable?
15049{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15051cat >conftest.$ac_ext <<_ACEOF
15052/* confdefs.h. */
15053_ACEOF
15054cat confdefs.h >>conftest.$ac_ext
15055cat >>conftest.$ac_ext <<_ACEOF
15056/* end confdefs.h. */
15057$ac_includes_default
15058#include <$ac_header>
15059_ACEOF
15060rm -f conftest.$ac_objext
15061if { (ac_try="$ac_compile"
15062case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_compile") 2>conftest.er1
15068 ac_status=$?
15069 grep -v '^ *+' conftest.er1 >conftest.err
15070 rm -f conftest.er1
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15075 { (case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15078esac
15079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_try") 2>&5
15081 ac_status=$?
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; } &&
15084 { ac_try='test -s conftest.$ac_objext'
15085 { (case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088esac
15089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_try") 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15094 ac_header_compiler=yes
15095else
15096 echo "$as_me: failed program was:" >&5
15097sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 ac_header_compiler=no
15100fi
15101
15102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15104echo "${ECHO_T}$ac_header_compiler" >&6; }
15105
15106# Is the header present?
15107{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15109cat >conftest.$ac_ext <<_ACEOF
15110/* confdefs.h. */
15111_ACEOF
15112cat confdefs.h >>conftest.$ac_ext
15113cat >>conftest.$ac_ext <<_ACEOF
15114/* end confdefs.h. */
15115#include <$ac_header>
15116_ACEOF
15117if { (ac_try="$ac_cpp conftest.$ac_ext"
15118case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121esac
15122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } >/dev/null; then
15130 if test -s conftest.err; then
15131 ac_cpp_err=$ac_c_preproc_warn_flag
15132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15133 else
15134 ac_cpp_err=
15135 fi
15136else
15137 ac_cpp_err=yes
15138fi
15139if test -z "$ac_cpp_err"; then
15140 ac_header_preproc=yes
15141else
15142 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145 ac_header_preproc=no
15146fi
15147
15148rm -f conftest.err conftest.$ac_ext
15149{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15150echo "${ECHO_T}$ac_header_preproc" >&6; }
15151
15152# So? What about this header?
15153case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15154 yes:no: )
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15158echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15159 ac_header_preproc=yes
15160 ;;
15161 no:yes:* )
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15163echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15165echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15167echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15169echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15173echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15174 ( cat <<\_ASBOX
15175## ----------------------------------- ##
15176## Report this to llvmbugs@cs.uiuc.edu ##
15177## ----------------------------------- ##
15178_ASBOX
15179 ) | sed "s/^/$as_me: WARNING: /" >&2
15180 ;;
15181esac
15182{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186else
15187 eval "$as_ac_Header=\$ac_header_preproc"
15188fi
15189ac_res=`eval echo '${'$as_ac_Header'}'`
15190 { echo "$as_me:$LINENO: result: $ac_res" >&5
15191echo "${ECHO_T}$ac_res" >&6; }
15192
15193fi
15194if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015195 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015197_ACEOF
15198
15199fi
15200
15201done
15202
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015203
15204for ac_header in valgrind/valgrind.h
15205do
15206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212fi
15213ac_res=`eval echo '${'$as_ac_Header'}'`
15214 { echo "$as_me:$LINENO: result: $ac_res" >&5
15215echo "${ECHO_T}$ac_res" >&6; }
15216else
15217 # Is the header compilable?
15218{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15220cat >conftest.$ac_ext <<_ACEOF
15221/* confdefs.h. */
15222_ACEOF
15223cat confdefs.h >>conftest.$ac_ext
15224cat >>conftest.$ac_ext <<_ACEOF
15225/* end confdefs.h. */
15226$ac_includes_default
15227#include <$ac_header>
15228_ACEOF
15229rm -f conftest.$ac_objext
15230if { (ac_try="$ac_compile"
15231case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_compile") 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247esac
15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257esac
15258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_header_compiler=yes
15264else
15265 echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268 ac_header_compiler=no
15269fi
15270
15271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15272{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15273echo "${ECHO_T}$ac_header_compiler" >&6; }
15274
15275# Is the header present?
15276{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15278cat >conftest.$ac_ext <<_ACEOF
15279/* confdefs.h. */
15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h. */
15284#include <$ac_header>
15285_ACEOF
15286if { (ac_try="$ac_cpp conftest.$ac_ext"
15287case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290esac
15291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } >/dev/null; then
15299 if test -s conftest.err; then
15300 ac_cpp_err=$ac_c_preproc_warn_flag
15301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15302 else
15303 ac_cpp_err=
15304 fi
15305else
15306 ac_cpp_err=yes
15307fi
15308if test -z "$ac_cpp_err"; then
15309 ac_header_preproc=yes
15310else
15311 echo "$as_me: failed program was:" >&5
15312sed 's/^/| /' conftest.$ac_ext >&5
15313
15314 ac_header_preproc=no
15315fi
15316
15317rm -f conftest.err conftest.$ac_ext
15318{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319echo "${ECHO_T}$ac_header_preproc" >&6; }
15320
15321# So? What about this header?
15322case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15323 yes:no: )
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15327echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15328 ac_header_preproc=yes
15329 ;;
15330 no:yes:* )
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15332echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15334echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15336echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15338echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15342echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15343 ( cat <<\_ASBOX
15344## ----------------------------------- ##
15345## Report this to llvmbugs@cs.uiuc.edu ##
15346## ----------------------------------- ##
15347_ASBOX
15348 ) | sed "s/^/$as_me: WARNING: /" >&2
15349 ;;
15350esac
15351{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354 echo $ECHO_N "(cached) $ECHO_C" >&6
15355else
15356 eval "$as_ac_Header=\$ac_header_preproc"
15357fi
15358ac_res=`eval echo '${'$as_ac_Header'}'`
15359 { echo "$as_me:$LINENO: result: $ac_res" >&5
15360echo "${ECHO_T}$ac_res" >&6; }
15361
15362fi
15363if test `eval echo '${'$as_ac_Header'}'` = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15366_ACEOF
15367
15368fi
15369
15370done
15371
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015372
15373for ac_header in fenv.h
15374do
15375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15381fi
15382ac_res=`eval echo '${'$as_ac_Header'}'`
15383 { echo "$as_me:$LINENO: result: $ac_res" >&5
15384echo "${ECHO_T}$ac_res" >&6; }
15385else
15386 # Is the header compilable?
15387{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15389cat >conftest.$ac_ext <<_ACEOF
15390/* confdefs.h. */
15391_ACEOF
15392cat confdefs.h >>conftest.$ac_ext
15393cat >>conftest.$ac_ext <<_ACEOF
15394/* end confdefs.h. */
15395$ac_includes_default
15396#include <$ac_header>
15397_ACEOF
15398rm -f conftest.$ac_objext
15399if { (ac_try="$ac_compile"
15400case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_compile") 2>conftest.er1
15406 ac_status=$?
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416esac
15417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_try") 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; } &&
15422 { ac_try='test -s conftest.$ac_objext'
15423 { (case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15426esac
15427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_try") 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_header_compiler=yes
15433else
15434 echo "$as_me: failed program was:" >&5
15435sed 's/^/| /' conftest.$ac_ext >&5
15436
15437 ac_header_compiler=no
15438fi
15439
15440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15441{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15442echo "${ECHO_T}$ac_header_compiler" >&6; }
15443
15444# Is the header present?
15445{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15447cat >conftest.$ac_ext <<_ACEOF
15448/* confdefs.h. */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h. */
15453#include <$ac_header>
15454_ACEOF
15455if { (ac_try="$ac_cpp conftest.$ac_ext"
15456case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15459esac
15460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } >/dev/null; then
15468 if test -s conftest.err; then
15469 ac_cpp_err=$ac_c_preproc_warn_flag
15470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15471 else
15472 ac_cpp_err=
15473 fi
15474else
15475 ac_cpp_err=yes
15476fi
15477if test -z "$ac_cpp_err"; then
15478 ac_header_preproc=yes
15479else
15480 echo "$as_me: failed program was:" >&5
15481sed 's/^/| /' conftest.$ac_ext >&5
15482
15483 ac_header_preproc=no
15484fi
15485
15486rm -f conftest.err conftest.$ac_ext
15487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15488echo "${ECHO_T}$ac_header_preproc" >&6; }
15489
15490# So? What about this header?
15491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15492 yes:no: )
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15497 ac_header_preproc=yes
15498 ;;
15499 no:yes:* )
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15503echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15507echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15512 ( cat <<\_ASBOX
15513## ----------------------------------- ##
15514## Report this to llvmbugs@cs.uiuc.edu ##
15515## ----------------------------------- ##
15516_ASBOX
15517 ) | sed "s/^/$as_me: WARNING: /" >&2
15518 ;;
15519esac
15520{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15524else
15525 eval "$as_ac_Header=\$ac_header_preproc"
15526fi
15527ac_res=`eval echo '${'$as_ac_Header'}'`
15528 { echo "$as_me:$LINENO: result: $ac_res" >&5
15529echo "${ECHO_T}$ac_res" >&6; }
15530
15531fi
15532if test `eval echo '${'$as_ac_Header'}'` = yes; then
15533 cat >>confdefs.h <<_ACEOF
15534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15535_ACEOF
15536
15537fi
15538
15539done
15540
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015541if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015542
15543for ac_header in pthread.h
15544do
15545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551fi
15552ac_res=`eval echo '${'$as_ac_Header'}'`
15553 { echo "$as_me:$LINENO: result: $ac_res" >&5
15554echo "${ECHO_T}$ac_res" >&6; }
15555else
15556 # Is the header compilable?
15557{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15559cat >conftest.$ac_ext <<_ACEOF
15560/* confdefs.h. */
15561_ACEOF
15562cat confdefs.h >>conftest.$ac_ext
15563cat >>conftest.$ac_ext <<_ACEOF
15564/* end confdefs.h. */
15565$ac_includes_default
15566#include <$ac_header>
15567_ACEOF
15568rm -f conftest.$ac_objext
15569if { (ac_try="$ac_compile"
15570case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_compile") 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
15582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15583 { (case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15586esac
15587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_try") 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596esac
15597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_header_compiler=yes
15603else
15604 echo "$as_me: failed program was:" >&5
15605sed 's/^/| /' conftest.$ac_ext >&5
15606
15607 ac_header_compiler=no
15608fi
15609
15610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15612echo "${ECHO_T}$ac_header_compiler" >&6; }
15613
15614# Is the header present?
15615{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15617cat >conftest.$ac_ext <<_ACEOF
15618/* confdefs.h. */
15619_ACEOF
15620cat confdefs.h >>conftest.$ac_ext
15621cat >>conftest.$ac_ext <<_ACEOF
15622/* end confdefs.h. */
15623#include <$ac_header>
15624_ACEOF
15625if { (ac_try="$ac_cpp conftest.$ac_ext"
15626case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629esac
15630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15632 ac_status=$?
15633 grep -v '^ *+' conftest.er1 >conftest.err
15634 rm -f conftest.er1
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } >/dev/null; then
15638 if test -s conftest.err; then
15639 ac_cpp_err=$ac_c_preproc_warn_flag
15640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15641 else
15642 ac_cpp_err=
15643 fi
15644else
15645 ac_cpp_err=yes
15646fi
15647if test -z "$ac_cpp_err"; then
15648 ac_header_preproc=yes
15649else
15650 echo "$as_me: failed program was:" >&5
15651sed 's/^/| /' conftest.$ac_ext >&5
15652
15653 ac_header_preproc=no
15654fi
15655
15656rm -f conftest.err conftest.$ac_ext
15657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15658echo "${ECHO_T}$ac_header_preproc" >&6; }
15659
15660# So? What about this header?
15661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15662 yes:no: )
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15667 ac_header_preproc=yes
15668 ;;
15669 no:yes:* )
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15682 ( cat <<\_ASBOX
15683## ----------------------------------- ##
15684## Report this to llvmbugs@cs.uiuc.edu ##
15685## ----------------------------------- ##
15686_ASBOX
15687 ) | sed "s/^/$as_me: WARNING: /" >&2
15688 ;;
15689esac
15690{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694else
15695 eval "$as_ac_Header=\$ac_header_preproc"
15696fi
15697ac_res=`eval echo '${'$as_ac_Header'}'`
15698 { echo "$as_me:$LINENO: result: $ac_res" >&5
15699echo "${ECHO_T}$ac_res" >&6; }
15700
15701fi
15702if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015703 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015705_ACEOF
15706 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015707
15708else
15709 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015710
15711fi
15712
Reid Spencerbe3e4192007-08-17 05:45:26 +000015713done
Reid Spencer1000b732006-12-01 00:37:14 +000015714
15715else
15716 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015717
15718fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015719
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015720if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015721
15722
15723for ac_header in ffi.h ffi/ffi.h
15724do
15725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731fi
15732ac_res=`eval echo '${'$as_ac_Header'}'`
15733 { echo "$as_me:$LINENO: result: $ac_res" >&5
15734echo "${ECHO_T}$ac_res" >&6; }
15735else
15736 # Is the header compilable?
15737{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15739cat >conftest.$ac_ext <<_ACEOF
15740/* confdefs.h. */
15741_ACEOF
15742cat confdefs.h >>conftest.$ac_ext
15743cat >>conftest.$ac_ext <<_ACEOF
15744/* end confdefs.h. */
15745$ac_includes_default
15746#include <$ac_header>
15747_ACEOF
15748rm -f conftest.$ac_objext
15749if { (ac_try="$ac_compile"
15750case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753esac
15754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_compile") 2>conftest.er1
15756 ac_status=$?
15757 grep -v '^ *+' conftest.er1 >conftest.err
15758 rm -f conftest.er1
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15763 { (case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15766esac
15767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_try") 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15776esac
15777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_try") 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_header_compiler=yes
15783else
15784 echo "$as_me: failed program was:" >&5
15785sed 's/^/| /' conftest.$ac_ext >&5
15786
15787 ac_header_compiler=no
15788fi
15789
15790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15792echo "${ECHO_T}$ac_header_compiler" >&6; }
15793
15794# Is the header present?
15795{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15797cat >conftest.$ac_ext <<_ACEOF
15798/* confdefs.h. */
15799_ACEOF
15800cat confdefs.h >>conftest.$ac_ext
15801cat >>conftest.$ac_ext <<_ACEOF
15802/* end confdefs.h. */
15803#include <$ac_header>
15804_ACEOF
15805if { (ac_try="$ac_cpp conftest.$ac_ext"
15806case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15809esac
15810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } >/dev/null; then
15818 if test -s conftest.err; then
15819 ac_cpp_err=$ac_c_preproc_warn_flag
15820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15821 else
15822 ac_cpp_err=
15823 fi
15824else
15825 ac_cpp_err=yes
15826fi
15827if test -z "$ac_cpp_err"; then
15828 ac_header_preproc=yes
15829else
15830 echo "$as_me: failed program was:" >&5
15831sed 's/^/| /' conftest.$ac_ext >&5
15832
15833 ac_header_preproc=no
15834fi
15835
15836rm -f conftest.err conftest.$ac_ext
15837{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15838echo "${ECHO_T}$ac_header_preproc" >&6; }
15839
15840# So? What about this header?
15841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15842 yes:no: )
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15847 ac_header_preproc=yes
15848 ;;
15849 no:yes:* )
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15862 ( cat <<\_ASBOX
15863## ----------------------------------- ##
15864## Report this to llvmbugs@cs.uiuc.edu ##
15865## ----------------------------------- ##
15866_ASBOX
15867 ) | sed "s/^/$as_me: WARNING: /" >&2
15868 ;;
15869esac
15870{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15874else
15875 eval "$as_ac_Header=\$ac_header_preproc"
15876fi
15877ac_res=`eval echo '${'$as_ac_Header'}'`
15878 { echo "$as_me:$LINENO: result: $ac_res" >&5
15879echo "${ECHO_T}$ac_res" >&6; }
15880
15881fi
15882if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015883 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015885_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015886
15887fi
15888
15889done
15890
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015891fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015892
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015893
Eric Christopher654dee42010-06-22 21:01:04 +000015894for ac_header in CrashReporterClient.h
15895do
15896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15902fi
15903ac_res=`eval echo '${'$as_ac_Header'}'`
15904 { echo "$as_me:$LINENO: result: $ac_res" >&5
15905echo "${ECHO_T}$ac_res" >&6; }
15906else
15907 # Is the header compilable?
15908{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15910cat >conftest.$ac_ext <<_ACEOF
15911/* confdefs.h. */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h. */
15916$ac_includes_default
15917#include <$ac_header>
15918_ACEOF
15919rm -f conftest.$ac_objext
15920if { (ac_try="$ac_compile"
15921case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924esac
15925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_compile") 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15934 { (case "(($ac_try" in
15935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15937esac
15938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939 (eval "$ac_try") 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; } &&
15943 { ac_try='test -s conftest.$ac_objext'
15944 { (case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15947esac
15948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_try") 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_header_compiler=yes
15954else
15955 echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 ac_header_compiler=no
15959fi
15960
15961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15963echo "${ECHO_T}$ac_header_compiler" >&6; }
15964
15965# Is the header present?
15966{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15968cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974#include <$ac_header>
15975_ACEOF
15976if { (ac_try="$ac_cpp conftest.$ac_ext"
15977case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15980esac
15981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15983 ac_status=$?
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } >/dev/null; then
15989 if test -s conftest.err; then
15990 ac_cpp_err=$ac_c_preproc_warn_flag
15991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15992 else
15993 ac_cpp_err=
15994 fi
15995else
15996 ac_cpp_err=yes
15997fi
15998if test -z "$ac_cpp_err"; then
15999 ac_header_preproc=yes
16000else
16001 echo "$as_me: failed program was:" >&5
16002sed 's/^/| /' conftest.$ac_ext >&5
16003
16004 ac_header_preproc=no
16005fi
16006
16007rm -f conftest.err conftest.$ac_ext
16008{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16009echo "${ECHO_T}$ac_header_preproc" >&6; }
16010
16011# So? What about this header?
16012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16013 yes:no: )
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16018 ac_header_preproc=yes
16019 ;;
16020 no:yes:* )
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16033 ( cat <<\_ASBOX
16034## ----------------------------------- ##
16035## Report this to llvmbugs@cs.uiuc.edu ##
16036## ----------------------------------- ##
16037_ASBOX
16038 ) | sed "s/^/$as_me: WARNING: /" >&2
16039 ;;
16040esac
16041{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045else
16046 eval "$as_ac_Header=\$ac_header_preproc"
16047fi
16048ac_res=`eval echo '${'$as_ac_Header'}'`
16049 { echo "$as_me:$LINENO: result: $ac_res" >&5
16050echo "${ECHO_T}$ac_res" >&6; }
16051
16052fi
16053if test `eval echo '${'$as_ac_Header'}'` = yes; then
16054 cat >>confdefs.h <<_ACEOF
16055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16056_ACEOF
16057
16058fi
16059
16060done
16061
16062
Eric Christopher51e57132010-12-07 02:05:42 +000016063{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16064echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016065cat >conftest.$ac_ext <<_ACEOF
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016071extern const char *__crashreporter_info__;
16072 int main() {
16073 __crashreporter_info__ = "test";
16074 return 0;
16075 }
Eric Christopher481d4022010-12-03 07:45:22 +000016076
Eric Christopher481d4022010-12-03 07:45:22 +000016077_ACEOF
16078rm -f conftest.$ac_objext conftest$ac_exeext
16079if { (ac_try="$ac_link"
16080case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083esac
16084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_link") 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
16092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16093 { (case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16096esac
16097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_try") 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; } &&
16102 { ac_try='test -s conftest$ac_exeext'
16103 { (case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16106esac
16107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_try") 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016112 { echo "$as_me:$LINENO: result: yes" >&5
16113echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016114
16115cat >>confdefs.h <<\_ACEOF
16116#define HAVE_CRASHREPORTER_INFO 1
16117_ACEOF
16118
Eric Christopher51e57132010-12-07 02:05:42 +000016119else
16120 echo "$as_me: failed program was:" >&5
16121sed 's/^/| /' conftest.$ac_ext >&5
16122
16123 { echo "$as_me:$LINENO: result: no" >&5
16124echo "${ECHO_T}no" >&6; }
16125
16126cat >>confdefs.h <<\_ACEOF
16127#define HAVE_CRASHREPORTER_INFO 0
16128_ACEOF
16129
Eric Christopher481d4022010-12-03 07:45:22 +000016130fi
Eric Christopher654dee42010-06-22 21:01:04 +000016131
Eric Christopher51e57132010-12-07 02:05:42 +000016132rm -f core conftest.err conftest.$ac_objext \
16133 conftest$ac_exeext conftest.$ac_ext
16134
16135
Reid Spencer8085cff2005-01-16 02:58:39 +000016136
Torok Edwin871384f2010-01-26 08:50:50 +000016137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016138 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16139echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16140if test "${ac_cv_huge_val_sanity+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016142else
16143
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016144 ac_ext=cpp
16145ac_cpp='$CXXCPP $CPPFLAGS'
16146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016149
Eric Christopherc7718502010-03-02 05:06:54 +000016150 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016151 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016152 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016153 ac_cv_huge_val_sanity=yes
16154else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016155 cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016160/* end confdefs.h. */
16161#include <math.h>
16162int
16163main ()
16164{
16165double x = HUGE_VAL; return x != x;
16166 ;
16167 return 0;
16168}
16169_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016170rm -f conftest$ac_exeext
16171if { (ac_try="$ac_link"
16172case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175esac
16176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_link") 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16184esac
16185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_try") 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016190 ac_cv_huge_val_sanity=yes
16191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016192 echo "$as_me: program exited with status $ac_status" >&5
16193echo "$as_me: failed program was:" >&5
16194sed 's/^/| /' conftest.$ac_ext >&5
16195
16196( exit $ac_status )
16197ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016198fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016199rm -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 +000016200fi
16201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016202
Eric Christopherc7718502010-03-02 05:06:54 +000016203 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016204 ac_ext=c
16205ac_cpp='$CPP $CPPFLAGS'
16206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16208ac_compiler_gnu=$ac_cv_c_compiler_gnu
16209
16210
16211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016212{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16213echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016214 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16215
16216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016217{ echo "$as_me:$LINENO: checking for pid_t" >&5
16218echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16219if test "${ac_cv_type_pid_t+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221else
16222 cat >conftest.$ac_ext <<_ACEOF
16223/* confdefs.h. */
16224_ACEOF
16225cat confdefs.h >>conftest.$ac_ext
16226cat >>conftest.$ac_ext <<_ACEOF
16227/* end confdefs.h. */
16228$ac_includes_default
16229typedef pid_t ac__type_new_;
16230int
16231main ()
16232{
16233if ((ac__type_new_ *) 0)
16234 return 0;
16235if (sizeof (ac__type_new_))
16236 return 0;
16237 ;
16238 return 0;
16239}
16240_ACEOF
16241rm -f conftest.$ac_objext
16242if { (ac_try="$ac_compile"
16243case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_compile") 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256 { (case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259esac
16260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_try") 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; } &&
16265 { ac_try='test -s conftest.$ac_objext'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269esac
16270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_cv_type_pid_t=yes
16276else
16277 echo "$as_me: failed program was:" >&5
16278sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016280 ac_cv_type_pid_t=no
16281fi
16282
16283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284fi
16285{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16286echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16287if test $ac_cv_type_pid_t = yes; then
16288 :
John Criswell7a73b802003-06-30 21:59:07 +000016289else
16290
16291cat >>confdefs.h <<_ACEOF
16292#define pid_t int
16293_ACEOF
16294
16295fi
16296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016297{ echo "$as_me:$LINENO: checking for size_t" >&5
16298echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16299if test "${ac_cv_type_size_t+set}" = set; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301else
16302 cat >conftest.$ac_ext <<_ACEOF
16303/* confdefs.h. */
16304_ACEOF
16305cat confdefs.h >>conftest.$ac_ext
16306cat >>conftest.$ac_ext <<_ACEOF
16307/* end confdefs.h. */
16308$ac_includes_default
16309typedef size_t ac__type_new_;
16310int
16311main ()
16312{
16313if ((ac__type_new_ *) 0)
16314 return 0;
16315if (sizeof (ac__type_new_))
16316 return 0;
16317 ;
16318 return 0;
16319}
16320_ACEOF
16321rm -f conftest.$ac_objext
16322if { (ac_try="$ac_compile"
16323case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_compile") 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest.$ac_objext'
16346 { (case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16349esac
16350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_try") 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16355 ac_cv_type_size_t=yes
16356else
16357 echo "$as_me: failed program was:" >&5
16358sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016360 ac_cv_type_size_t=no
16361fi
16362
16363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364fi
16365{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16366echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16367if test $ac_cv_type_size_t = yes; then
16368 :
John Criswell7a73b802003-06-30 21:59:07 +000016369else
16370
16371cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016372#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016373_ACEOF
16374
16375fi
16376
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016377
16378cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016379#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016380_ACEOF
16381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016382{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16383echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16384if test "${ac_cv_struct_tm+set}" = set; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016387 cat >conftest.$ac_ext <<_ACEOF
16388/* confdefs.h. */
16389_ACEOF
16390cat confdefs.h >>conftest.$ac_ext
16391cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016392/* end confdefs.h. */
16393#include <sys/types.h>
16394#include <time.h>
16395
16396int
16397main ()
16398{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016399struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016400 ;
16401 return 0;
16402}
16403_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016404rm -f conftest.$ac_objext
16405if { (ac_try="$ac_compile"
16406case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_compile") 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
16418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16419 { (case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16422esac
16423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_try") 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432esac
16433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_try") 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016438 ac_cv_struct_tm=time.h
16439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016440 echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016445
Reid Spencera773bd52006-08-04 18:18:08 +000016446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016448{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16449echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016450if test $ac_cv_struct_tm = sys/time.h; then
16451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016452cat >>confdefs.h <<\_ACEOF
16453#define TM_IN_SYS_TIME 1
16454_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016455
16456fi
16457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016458{ echo "$as_me:$LINENO: checking for int64_t" >&5
16459echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16460if test "${ac_cv_type_int64_t+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462else
16463 cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469$ac_includes_default
16470typedef int64_t ac__type_new_;
16471int
16472main ()
16473{
16474if ((ac__type_new_ *) 0)
16475 return 0;
16476if (sizeof (ac__type_new_))
16477 return 0;
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext
16483if { (ac_try="$ac_compile"
16484case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_compile") 2>conftest.er1
16490 ac_status=$?
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16497 { (case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16500esac
16501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_try") 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest.$ac_objext'
16507 { (case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510esac
16511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_try") 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 ac_cv_type_int64_t=yes
16517else
16518 echo "$as_me: failed program was:" >&5
16519sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ac_cv_type_int64_t=no
16522fi
16523
16524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525fi
16526{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16527echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16528if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016529
16530cat >>confdefs.h <<_ACEOF
16531#define HAVE_INT64_T 1
16532_ACEOF
16533
16534
16535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016536 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16537echo "$as_me: error: Type int64_t required but not found" >&2;}
16538 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016539fi
16540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016541{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16542echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16543if test "${ac_cv_type_uint64_t+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545else
16546 cat >conftest.$ac_ext <<_ACEOF
16547/* confdefs.h. */
16548_ACEOF
16549cat confdefs.h >>conftest.$ac_ext
16550cat >>conftest.$ac_ext <<_ACEOF
16551/* end confdefs.h. */
16552$ac_includes_default
16553typedef uint64_t ac__type_new_;
16554int
16555main ()
16556{
16557if ((ac__type_new_ *) 0)
16558 return 0;
16559if (sizeof (ac__type_new_))
16560 return 0;
16561 ;
16562 return 0;
16563}
16564_ACEOF
16565rm -f conftest.$ac_objext
16566if { (ac_try="$ac_compile"
16567case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16570esac
16571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_compile") 2>conftest.er1
16573 ac_status=$?
16574 grep -v '^ *+' conftest.er1 >conftest.err
16575 rm -f conftest.er1
16576 cat conftest.err >&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16580 { (case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16583esac
16584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_try") 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try='test -s conftest.$ac_objext'
16590 { (case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16593esac
16594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_try") 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_cv_type_uint64_t=yes
16600else
16601 echo "$as_me: failed program was:" >&5
16602sed 's/^/| /' conftest.$ac_ext >&5
16603
16604 ac_cv_type_uint64_t=no
16605fi
16606
16607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608fi
16609{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16610echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16611if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016612
16613cat >>confdefs.h <<_ACEOF
16614#define HAVE_UINT64_T 1
16615_ACEOF
16616
16617
16618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016619 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16620echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16621if test "${ac_cv_type_u_int64_t+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16623else
16624 cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h. */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h. */
16630$ac_includes_default
16631typedef u_int64_t ac__type_new_;
16632int
16633main ()
16634{
16635if ((ac__type_new_ *) 0)
16636 return 0;
16637if (sizeof (ac__type_new_))
16638 return 0;
16639 ;
16640 return 0;
16641}
16642_ACEOF
16643rm -f conftest.$ac_objext
16644if { (ac_try="$ac_compile"
16645case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_compile") 2>conftest.er1
16651 ac_status=$?
16652 grep -v '^ *+' conftest.er1 >conftest.err
16653 rm -f conftest.er1
16654 cat conftest.err >&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } &&
16657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661esac
16662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
16668 { (case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16671esac
16672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_try") 2>&5
16674 ac_status=$?
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 ac_cv_type_u_int64_t=yes
16678else
16679 echo "$as_me: failed program was:" >&5
16680sed 's/^/| /' conftest.$ac_ext >&5
16681
16682 ac_cv_type_u_int64_t=no
16683fi
16684
16685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686fi
16687{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16688echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16689if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016690
16691cat >>confdefs.h <<_ACEOF
16692#define HAVE_U_INT64_T 1
16693_ACEOF
16694
16695
Misha Brukmanceca9042004-09-02 23:02:30 +000016696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016697 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16698echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16699 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016700fi
16701
John Criswell679ff312004-09-02 18:44:44 +000016702fi
16703
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016704
16705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016706
16707
16708
16709
16710
16711
16712
Reid Spencerdf3be822006-01-23 08:15:53 +000016713for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016714do
16715as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16716{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16717echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16718if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720else
16721 cat >conftest.$ac_ext <<_ACEOF
16722/* confdefs.h. */
16723_ACEOF
16724cat confdefs.h >>conftest.$ac_ext
16725cat >>conftest.$ac_ext <<_ACEOF
16726/* end confdefs.h. */
16727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16729#define $ac_func innocuous_$ac_func
16730
16731/* System header to define __stub macros and hopefully few prototypes,
16732 which can conflict with char $ac_func (); below.
16733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16734 <limits.h> exists even on freestanding compilers. */
16735
16736#ifdef __STDC__
16737# include <limits.h>
16738#else
16739# include <assert.h>
16740#endif
16741
16742#undef $ac_func
16743
16744/* Override any GCC internal prototype to avoid an error.
16745 Use char because int might match the return type of a GCC
16746 builtin and then its argument prototype would still apply. */
16747#ifdef __cplusplus
16748extern "C"
16749#endif
16750char $ac_func ();
16751/* The GNU C library defines this for functions which it implements
16752 to always fail with ENOSYS. Some functions are actually named
16753 something starting with __ and the normal name is an alias. */
16754#if defined __stub_$ac_func || defined __stub___$ac_func
16755choke me
16756#endif
16757
16758int
16759main ()
16760{
16761return $ac_func ();
16762 ;
16763 return 0;
16764}
16765_ACEOF
16766rm -f conftest.$ac_objext conftest$ac_exeext
16767if { (ac_try="$ac_link"
16768case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16771esac
16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_link") 2>conftest.er1
16774 ac_status=$?
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781 { (case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784esac
16785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_try") 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest$ac_exeext'
16791 { (case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16794esac
16795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796 (eval "$ac_try") 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 eval "$as_ac_var=yes"
16801else
16802 echo "$as_me: failed program was:" >&5
16803sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 eval "$as_ac_var=no"
16806fi
16807
16808rm -f core conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16810fi
16811ac_res=`eval echo '${'$as_ac_var'}'`
16812 { echo "$as_me:$LINENO: result: $ac_res" >&5
16813echo "${ECHO_T}$ac_res" >&6; }
16814if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016815 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016817_ACEOF
16818
16819fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016820done
John Criswell7a73b802003-06-30 21:59:07 +000016821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016822
16823
16824
16825
Reid Spencer96cf5872007-07-13 10:05:30 +000016826for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016827do
16828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833else
16834 cat >conftest.$ac_ext <<_ACEOF
16835/* confdefs.h. */
16836_ACEOF
16837cat confdefs.h >>conftest.$ac_ext
16838cat >>conftest.$ac_ext <<_ACEOF
16839/* end confdefs.h. */
16840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16842#define $ac_func innocuous_$ac_func
16843
16844/* System header to define __stub macros and hopefully few prototypes,
16845 which can conflict with char $ac_func (); below.
16846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16847 <limits.h> exists even on freestanding compilers. */
16848
16849#ifdef __STDC__
16850# include <limits.h>
16851#else
16852# include <assert.h>
16853#endif
16854
16855#undef $ac_func
16856
16857/* Override any GCC internal prototype to avoid an error.
16858 Use char because int might match the return type of a GCC
16859 builtin and then its argument prototype would still apply. */
16860#ifdef __cplusplus
16861extern "C"
16862#endif
16863char $ac_func ();
16864/* The GNU C library defines this for functions which it implements
16865 to always fail with ENOSYS. Some functions are actually named
16866 something starting with __ and the normal name is an alias. */
16867#if defined __stub_$ac_func || defined __stub___$ac_func
16868choke me
16869#endif
16870
16871int
16872main ()
16873{
16874return $ac_func ();
16875 ;
16876 return 0;
16877}
16878_ACEOF
16879rm -f conftest.$ac_objext conftest$ac_exeext
16880if { (ac_try="$ac_link"
16881case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest$ac_exeext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907esac
16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 eval "$as_ac_var=yes"
16914else
16915 echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
16918 eval "$as_ac_var=no"
16919fi
16920
16921rm -f core conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16923fi
16924ac_res=`eval echo '${'$as_ac_var'}'`
16925 { echo "$as_me:$LINENO: result: $ac_res" >&5
16926echo "${ECHO_T}$ac_res" >&6; }
16927if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016928 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016930_ACEOF
16931
16932fi
16933done
16934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016935
16936
16937
16938
16939
Reid Spencerb90645c2007-02-16 19:17:20 +000016940for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016941do
16942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947else
16948 cat >conftest.$ac_ext <<_ACEOF
16949/* confdefs.h. */
16950_ACEOF
16951cat confdefs.h >>conftest.$ac_ext
16952cat >>conftest.$ac_ext <<_ACEOF
16953/* end confdefs.h. */
16954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956#define $ac_func innocuous_$ac_func
16957
16958/* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char $ac_func (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16962
16963#ifdef __STDC__
16964# include <limits.h>
16965#else
16966# include <assert.h>
16967#endif
16968
16969#undef $ac_func
16970
16971/* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16974#ifdef __cplusplus
16975extern "C"
16976#endif
16977char $ac_func ();
16978/* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981#if defined __stub_$ac_func || defined __stub___$ac_func
16982choke me
16983#endif
16984
16985int
16986main ()
16987{
16988return $ac_func ();
16989 ;
16990 return 0;
16991}
16992_ACEOF
16993rm -f conftest.$ac_objext conftest$ac_exeext
16994if { (ac_try="$ac_link"
16995case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_link") 2>conftest.er1
17001 ac_status=$?
17002 grep -v '^ *+' conftest.er1 >conftest.err
17003 rm -f conftest.er1
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } &&
17007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17008 { (case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011esac
17012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_try") 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; } &&
17017 { ac_try='test -s conftest$ac_exeext'
17018 { (case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17021esac
17022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023 (eval "$ac_try") 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 eval "$as_ac_var=yes"
17028else
17029 echo "$as_me: failed program was:" >&5
17030sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 eval "$as_ac_var=no"
17033fi
17034
17035rm -f core conftest.err conftest.$ac_objext \
17036 conftest$ac_exeext conftest.$ac_ext
17037fi
17038ac_res=`eval echo '${'$as_ac_var'}'`
17039 { echo "$as_me:$LINENO: result: $ac_res" >&5
17040echo "${ECHO_T}$ac_res" >&6; }
17041if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017042 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017043#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017044_ACEOF
17045
17046fi
17047done
17048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017049
17050
17051
Reid Spencerb90645c2007-02-16 19:17:20 +000017052for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017053do
17054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17055{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17057if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17059else
17060 cat >conftest.$ac_ext <<_ACEOF
17061/* confdefs.h. */
17062_ACEOF
17063cat confdefs.h >>conftest.$ac_ext
17064cat >>conftest.$ac_ext <<_ACEOF
17065/* end confdefs.h. */
17066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17068#define $ac_func innocuous_$ac_func
17069
17070/* System header to define __stub macros and hopefully few prototypes,
17071 which can conflict with char $ac_func (); below.
17072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17073 <limits.h> exists even on freestanding compilers. */
17074
17075#ifdef __STDC__
17076# include <limits.h>
17077#else
17078# include <assert.h>
17079#endif
17080
17081#undef $ac_func
17082
17083/* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17086#ifdef __cplusplus
17087extern "C"
17088#endif
17089char $ac_func ();
17090/* The GNU C library defines this for functions which it implements
17091 to always fail with ENOSYS. Some functions are actually named
17092 something starting with __ and the normal name is an alias. */
17093#if defined __stub_$ac_func || defined __stub___$ac_func
17094choke me
17095#endif
17096
17097int
17098main ()
17099{
17100return $ac_func ();
17101 ;
17102 return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext conftest$ac_exeext
17106if { (ac_try="$ac_link"
17107case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110esac
17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_link") 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17120 { (case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17123esac
17124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_try") 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest$ac_exeext'
17130 { (case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17133esac
17134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_try") 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 eval "$as_ac_var=yes"
17140else
17141 echo "$as_me: failed program was:" >&5
17142sed 's/^/| /' conftest.$ac_ext >&5
17143
17144 eval "$as_ac_var=no"
17145fi
17146
17147rm -f core conftest.err conftest.$ac_objext \
17148 conftest$ac_exeext conftest.$ac_ext
17149fi
17150ac_res=`eval echo '${'$as_ac_var'}'`
17151 { echo "$as_me:$LINENO: result: $ac_res" >&5
17152echo "${ECHO_T}$ac_res" >&6; }
17153if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017154 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017156_ACEOF
17157
17158fi
17159done
17160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017161
17162
17163
17164
17165
Eric Christophere4291822010-04-16 05:14:21 +000017166
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017167
17168for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017169do
17170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17171{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17173if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175else
17176 cat >conftest.$ac_ext <<_ACEOF
17177/* confdefs.h. */
17178_ACEOF
17179cat confdefs.h >>conftest.$ac_ext
17180cat >>conftest.$ac_ext <<_ACEOF
17181/* end confdefs.h. */
17182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17184#define $ac_func innocuous_$ac_func
17185
17186/* System header to define __stub macros and hopefully few prototypes,
17187 which can conflict with char $ac_func (); below.
17188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17189 <limits.h> exists even on freestanding compilers. */
17190
17191#ifdef __STDC__
17192# include <limits.h>
17193#else
17194# include <assert.h>
17195#endif
17196
17197#undef $ac_func
17198
17199/* Override any GCC internal prototype to avoid an error.
17200 Use char because int might match the return type of a GCC
17201 builtin and then its argument prototype would still apply. */
17202#ifdef __cplusplus
17203extern "C"
17204#endif
17205char $ac_func ();
17206/* The GNU C library defines this for functions which it implements
17207 to always fail with ENOSYS. Some functions are actually named
17208 something starting with __ and the normal name is an alias. */
17209#if defined __stub_$ac_func || defined __stub___$ac_func
17210choke me
17211#endif
17212
17213int
17214main ()
17215{
17216return $ac_func ();
17217 ;
17218 return 0;
17219}
17220_ACEOF
17221rm -f conftest.$ac_objext conftest$ac_exeext
17222if { (ac_try="$ac_link"
17223case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>conftest.er1
17229 ac_status=$?
17230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239esac
17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; } &&
17245 { ac_try='test -s conftest$ac_exeext'
17246 { (case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249esac
17250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_try") 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 eval "$as_ac_var=yes"
17256else
17257 echo "$as_me: failed program was:" >&5
17258sed 's/^/| /' conftest.$ac_ext >&5
17259
17260 eval "$as_ac_var=no"
17261fi
17262
17263rm -f core conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17265fi
17266ac_res=`eval echo '${'$as_ac_var'}'`
17267 { echo "$as_me:$LINENO: result: $ac_res" >&5
17268echo "${ECHO_T}$ac_res" >&6; }
17269if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017270 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017272_ACEOF
17273
17274fi
17275done
Reid Spencerdf3be822006-01-23 08:15:53 +000017276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017277
17278
17279
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017280for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017281do
17282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17283{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17285if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287else
17288 cat >conftest.$ac_ext <<_ACEOF
17289/* confdefs.h. */
17290_ACEOF
17291cat confdefs.h >>conftest.$ac_ext
17292cat >>conftest.$ac_ext <<_ACEOF
17293/* end confdefs.h. */
17294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17296#define $ac_func innocuous_$ac_func
17297
17298/* System header to define __stub macros and hopefully few prototypes,
17299 which can conflict with char $ac_func (); below.
17300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17301 <limits.h> exists even on freestanding compilers. */
17302
17303#ifdef __STDC__
17304# include <limits.h>
17305#else
17306# include <assert.h>
17307#endif
17308
17309#undef $ac_func
17310
17311/* Override any GCC internal prototype to avoid an error.
17312 Use char because int might match the return type of a GCC
17313 builtin and then its argument prototype would still apply. */
17314#ifdef __cplusplus
17315extern "C"
17316#endif
17317char $ac_func ();
17318/* The GNU C library defines this for functions which it implements
17319 to always fail with ENOSYS. Some functions are actually named
17320 something starting with __ and the normal name is an alias. */
17321#if defined __stub_$ac_func || defined __stub___$ac_func
17322choke me
17323#endif
17324
17325int
17326main ()
17327{
17328return $ac_func ();
17329 ;
17330 return 0;
17331}
17332_ACEOF
17333rm -f conftest.$ac_objext conftest$ac_exeext
17334if { (ac_try="$ac_link"
17335case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_link") 2>conftest.er1
17341 ac_status=$?
17342 grep -v '^ *+' conftest.er1 >conftest.err
17343 rm -f conftest.er1
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17348 { (case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351esac
17352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_try") 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; } &&
17357 { ac_try='test -s conftest$ac_exeext'
17358 { (case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361esac
17362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 eval "$as_ac_var=yes"
17368else
17369 echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 eval "$as_ac_var=no"
17373fi
17374
17375rm -f core conftest.err conftest.$ac_objext \
17376 conftest$ac_exeext conftest.$ac_ext
17377fi
17378ac_res=`eval echo '${'$as_ac_var'}'`
17379 { echo "$as_me:$LINENO: result: $ac_res" >&5
17380echo "${ECHO_T}$ac_res" >&6; }
17381if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017382 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017384_ACEOF
17385
17386fi
17387done
17388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017389
17390
17391
17392
Chris Lattner511f11d2005-11-14 07:25:50 +000017393for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017394do
17395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17396{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17398if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
17401 cat >conftest.$ac_ext <<_ACEOF
17402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
17407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17409#define $ac_func innocuous_$ac_func
17410
17411/* System header to define __stub macros and hopefully few prototypes,
17412 which can conflict with char $ac_func (); below.
17413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414 <limits.h> exists even on freestanding compilers. */
17415
17416#ifdef __STDC__
17417# include <limits.h>
17418#else
17419# include <assert.h>
17420#endif
17421
17422#undef $ac_func
17423
17424/* Override any GCC internal prototype to avoid an error.
17425 Use char because int might match the return type of a GCC
17426 builtin and then its argument prototype would still apply. */
17427#ifdef __cplusplus
17428extern "C"
17429#endif
17430char $ac_func ();
17431/* The GNU C library defines this for functions which it implements
17432 to always fail with ENOSYS. Some functions are actually named
17433 something starting with __ and the normal name is an alias. */
17434#if defined __stub_$ac_func || defined __stub___$ac_func
17435choke me
17436#endif
17437
17438int
17439main ()
17440{
17441return $ac_func ();
17442 ;
17443 return 0;
17444}
17445_ACEOF
17446rm -f conftest.$ac_objext conftest$ac_exeext
17447if { (ac_try="$ac_link"
17448case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451esac
17452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_link") 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461 { (case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_try") 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest$ac_exeext'
17471 { (case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474esac
17475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_try") 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 eval "$as_ac_var=yes"
17481else
17482 echo "$as_me: failed program was:" >&5
17483sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 eval "$as_ac_var=no"
17486fi
17487
17488rm -f core conftest.err conftest.$ac_objext \
17489 conftest$ac_exeext conftest.$ac_ext
17490fi
17491ac_res=`eval echo '${'$as_ac_var'}'`
17492 { echo "$as_me:$LINENO: result: $ac_res" >&5
17493echo "${ECHO_T}$ac_res" >&6; }
17494if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017495 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017497_ACEOF
17498
17499fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017500done
John Criswell7a73b802003-06-30 21:59:07 +000017501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017502
17503
17504
17505
Daniel Dunbar3e462932011-02-03 02:40:02 +000017506
17507for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017508do
17509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17510{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17512if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17514else
17515 cat >conftest.$ac_ext <<_ACEOF
17516/* confdefs.h. */
17517_ACEOF
17518cat confdefs.h >>conftest.$ac_ext
17519cat >>conftest.$ac_ext <<_ACEOF
17520/* end confdefs.h. */
17521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17523#define $ac_func innocuous_$ac_func
17524
17525/* System header to define __stub macros and hopefully few prototypes,
17526 which can conflict with char $ac_func (); below.
17527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17528 <limits.h> exists even on freestanding compilers. */
17529
17530#ifdef __STDC__
17531# include <limits.h>
17532#else
17533# include <assert.h>
17534#endif
17535
17536#undef $ac_func
17537
17538/* Override any GCC internal prototype to avoid an error.
17539 Use char because int might match the return type of a GCC
17540 builtin and then its argument prototype would still apply. */
17541#ifdef __cplusplus
17542extern "C"
17543#endif
17544char $ac_func ();
17545/* The GNU C library defines this for functions which it implements
17546 to always fail with ENOSYS. Some functions are actually named
17547 something starting with __ and the normal name is an alias. */
17548#if defined __stub_$ac_func || defined __stub___$ac_func
17549choke me
17550#endif
17551
17552int
17553main ()
17554{
17555return $ac_func ();
17556 ;
17557 return 0;
17558}
17559_ACEOF
17560rm -f conftest.$ac_objext conftest$ac_exeext
17561if { (ac_try="$ac_link"
17562case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17565esac
17566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_link") 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
17574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17575 { (case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17578esac
17579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_try") 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; } &&
17584 { ac_try='test -s conftest$ac_exeext'
17585 { (case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588esac
17589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_try") 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594 eval "$as_ac_var=yes"
17595else
17596 echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599 eval "$as_ac_var=no"
17600fi
17601
17602rm -f core conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
17604fi
17605ac_res=`eval echo '${'$as_ac_var'}'`
17606 { echo "$as_me:$LINENO: result: $ac_res" >&5
17607echo "${ECHO_T}$ac_res" >&6; }
17608if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017609 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017611_ACEOF
17612
17613fi
17614done
17615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017616{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17617echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17618if test "${llvm_cv_c_printf_a+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017620else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017621 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017622ac_cpp='$CPP $CPPFLAGS'
17623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17625ac_compiler_gnu=$ac_cv_c_compiler_gnu
17626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017627 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017628 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017630 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017632 /* confdefs.h. */
17633_ACEOF
17634cat confdefs.h >>conftest.$ac_ext
17635cat >>conftest.$ac_ext <<_ACEOF
17636/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017637
John Criswella0137d32003-10-13 16:22:01 +000017638#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017639#include <stdlib.h>
17640
John Criswella0137d32003-10-13 16:22:01 +000017641int
17642main ()
17643{
17644
Reid Spencer2706f8c2004-09-19 23:53:36 +000017645volatile double A, B;
17646char Buffer[100];
17647A = 1;
17648A /= 10.0;
17649sprintf(Buffer, "%a", A);
17650B = atof(Buffer);
17651if (A != B)
17652 return (1);
17653if (A != 0x1.999999999999ap-4)
17654 return (1);
17655return (0);
John Criswella0137d32003-10-13 16:22:01 +000017656 ;
17657 return 0;
17658}
17659_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017660rm -f conftest$ac_exeext
17661if { (ac_try="$ac_link"
17662case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17665esac
17666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_link") 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17674esac
17675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_try") 2>&5
17677 ac_status=$?
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017680 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017682 echo "$as_me: program exited with status $ac_status" >&5
17683echo "$as_me: failed program was:" >&5
17684sed 's/^/| /' conftest.$ac_ext >&5
17685
17686( exit $ac_status )
17687llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017689rm -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 +000017690fi
Reid Spencera773bd52006-08-04 18:18:08 +000017691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017692
Reid Spencer2706f8c2004-09-19 23:53:36 +000017693 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017694ac_cpp='$CPP $CPPFLAGS'
17695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697ac_compiler_gnu=$ac_cv_c_compiler_gnu
17698
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017699fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017700{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17701echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017702 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017704cat >>confdefs.h <<\_ACEOF
17705#define HAVE_PRINTF_A 1
17706_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017707
Reid Spencer2706f8c2004-09-19 23:53:36 +000017708 fi
John Criswella0137d32003-10-13 16:22:01 +000017709
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017711{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17712echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17713if test "${ac_cv_func_rand48+set}" = set; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017715else
Reid Spencera773bd52006-08-04 18:18:08 +000017716 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017717ac_cpp='$CXXCPP $CPPFLAGS'
17718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017722 cat >conftest.$ac_ext <<_ACEOF
17723/* confdefs.h. */
17724_ACEOF
17725cat confdefs.h >>conftest.$ac_ext
17726cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017727/* end confdefs.h. */
17728#include <stdlib.h>
17729int
17730main ()
17731{
17732srand48(0);lrand48();drand48();
17733 ;
17734 return 0;
17735}
17736_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017737rm -f conftest.$ac_objext
17738if { (ac_try="$ac_compile"
17739case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_compile") 2>conftest.er1
17745 ac_status=$?
17746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17752 { (case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17755esac
17756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_try") 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } &&
17761 { ac_try='test -s conftest.$ac_objext'
17762 { (case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17765esac
17766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_try") 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017771 ac_cv_func_rand48=yes
17772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017773 echo "$as_me: failed program was:" >&5
17774sed 's/^/| /' conftest.$ac_ext >&5
17775
17776 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017778
Reid Spencera773bd52006-08-04 18:18:08 +000017779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017780 ac_ext=c
17781ac_cpp='$CPP $CPPFLAGS'
17782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784ac_compiler_gnu=$ac_cv_c_compiler_gnu
17785
17786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017787{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17788echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017789
17790if test "$ac_cv_func_rand48" = "yes" ; then
17791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017792cat >>confdefs.h <<\_ACEOF
17793#define HAVE_RAND48 1
17794_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017795
17796fi
John Criswell0021c312004-02-13 21:57:29 +000017797
17798
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017799{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17800echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17801if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17803else
17804 cat >conftest.$ac_ext <<_ACEOF
17805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
17810$ac_includes_default
17811int
17812main ()
17813{
17814#ifndef strerror_s
17815 char *p = (char *) strerror_s;
17816 return !p;
17817#endif
17818
17819 ;
17820 return 0;
17821}
17822_ACEOF
17823rm -f conftest.$ac_objext
17824if { (ac_try="$ac_compile"
17825case "(($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_compile") 2>conftest.er1
17831 ac_status=$?
17832 grep -v '^ *+' conftest.er1 >conftest.err
17833 rm -f conftest.er1
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest.$ac_objext'
17848 { (case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17851esac
17852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_try") 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_cv_have_decl_strerror_s=yes
17858else
17859 echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 ac_cv_have_decl_strerror_s=no
17863fi
17864
17865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17866fi
17867{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17868echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17869if test $ac_cv_have_decl_strerror_s = yes; then
17870
17871cat >>confdefs.h <<_ACEOF
17872#define HAVE_DECL_STRERROR_S 1
17873_ACEOF
17874
17875
17876else
17877 cat >>confdefs.h <<_ACEOF
17878#define HAVE_DECL_STRERROR_S 0
17879_ACEOF
17880
17881
17882fi
17883
17884
17885
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017886if test "$llvm_cv_os_type" = "MingW" ; then
17887 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17888echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17889if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891else
17892 ac_check_lib_save_LIBS=$LIBS
17893LIBS="-lgcc $LIBS"
17894cat >conftest.$ac_ext <<_ACEOF
17895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */
17900
17901/* Override any GCC internal prototype to avoid an error.
17902 Use char because int might match the return type of a GCC
17903 builtin and then its argument prototype would still apply. */
17904#ifdef __cplusplus
17905extern "C"
17906#endif
17907char _alloca ();
17908int
17909main ()
17910{
17911return _alloca ();
17912 ;
17913 return 0;
17914}
17915_ACEOF
17916rm -f conftest.$ac_objext conftest$ac_exeext
17917if { (ac_try="$ac_link"
17918case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921esac
17922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_link") 2>conftest.er1
17924 ac_status=$?
17925 grep -v '^ *+' conftest.er1 >conftest.err
17926 rm -f conftest.er1
17927 cat conftest.err >&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } &&
17930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17934esac
17935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } &&
17940 { ac_try='test -s conftest$ac_exeext'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944esac
17945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_lib_gcc__alloca=yes
17951else
17952 echo "$as_me: failed program was:" >&5
17953sed 's/^/| /' conftest.$ac_ext >&5
17954
17955 ac_cv_lib_gcc__alloca=no
17956fi
17957
17958rm -f core conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960LIBS=$ac_check_lib_save_LIBS
17961fi
17962{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17963echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17964if test $ac_cv_lib_gcc__alloca = yes; then
17965
17966cat >>confdefs.h <<\_ACEOF
17967#define HAVE__ALLOCA 1
17968_ACEOF
17969
17970fi
17971
17972 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17973echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17974if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976else
17977 ac_check_lib_save_LIBS=$LIBS
17978LIBS="-lgcc $LIBS"
17979cat >conftest.$ac_ext <<_ACEOF
17980/* confdefs.h. */
17981_ACEOF
17982cat confdefs.h >>conftest.$ac_ext
17983cat >>conftest.$ac_ext <<_ACEOF
17984/* end confdefs.h. */
17985
17986/* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17989#ifdef __cplusplus
17990extern "C"
17991#endif
17992char __alloca ();
17993int
17994main ()
17995{
17996return __alloca ();
17997 ;
17998 return 0;
17999}
18000_ACEOF
18001rm -f conftest.$ac_objext conftest$ac_exeext
18002if { (ac_try="$ac_link"
18003case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006esac
18007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_link") 2>conftest.er1
18009 ac_status=$?
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18019esac
18020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest$ac_exeext'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029esac
18030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 ac_cv_lib_gcc___alloca=yes
18036else
18037 echo "$as_me: failed program was:" >&5
18038sed 's/^/| /' conftest.$ac_ext >&5
18039
18040 ac_cv_lib_gcc___alloca=no
18041fi
18042
18043rm -f core conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045LIBS=$ac_check_lib_save_LIBS
18046fi
18047{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18048echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18049if test $ac_cv_lib_gcc___alloca = yes; then
18050
18051cat >>confdefs.h <<\_ACEOF
18052#define HAVE___ALLOCA 1
18053_ACEOF
18054
18055fi
18056
18057 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18058echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18059if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18061else
18062 ac_check_lib_save_LIBS=$LIBS
18063LIBS="-lgcc $LIBS"
18064cat >conftest.$ac_ext <<_ACEOF
18065/* confdefs.h. */
18066_ACEOF
18067cat confdefs.h >>conftest.$ac_ext
18068cat >>conftest.$ac_ext <<_ACEOF
18069/* end confdefs.h. */
18070
18071/* Override any GCC internal prototype to avoid an error.
18072 Use char because int might match the return type of a GCC
18073 builtin and then its argument prototype would still apply. */
18074#ifdef __cplusplus
18075extern "C"
18076#endif
18077char __chkstk ();
18078int
18079main ()
18080{
18081return __chkstk ();
18082 ;
18083 return 0;
18084}
18085_ACEOF
18086rm -f conftest.$ac_objext conftest$ac_exeext
18087if { (ac_try="$ac_link"
18088case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest$ac_exeext'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18114esac
18115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_cv_lib_gcc___chkstk=yes
18121else
18122 echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
18125 ac_cv_lib_gcc___chkstk=no
18126fi
18127
18128rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18130LIBS=$ac_check_lib_save_LIBS
18131fi
18132{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18133echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18134if test $ac_cv_lib_gcc___chkstk = yes; then
18135
18136cat >>confdefs.h <<\_ACEOF
18137#define HAVE___CHKSTK 1
18138_ACEOF
18139
18140fi
18141
18142 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18143echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18144if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146else
18147 ac_check_lib_save_LIBS=$LIBS
18148LIBS="-lgcc $LIBS"
18149cat >conftest.$ac_ext <<_ACEOF
18150/* confdefs.h. */
18151_ACEOF
18152cat confdefs.h >>conftest.$ac_ext
18153cat >>conftest.$ac_ext <<_ACEOF
18154/* end confdefs.h. */
18155
18156/* Override any GCC internal prototype to avoid an error.
18157 Use char because int might match the return type of a GCC
18158 builtin and then its argument prototype would still apply. */
18159#ifdef __cplusplus
18160extern "C"
18161#endif
18162char ___chkstk ();
18163int
18164main ()
18165{
18166return ___chkstk ();
18167 ;
18168 return 0;
18169}
18170_ACEOF
18171rm -f conftest.$ac_objext conftest$ac_exeext
18172if { (ac_try="$ac_link"
18173case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18176esac
18177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_link") 2>conftest.er1
18179 ac_status=$?
18180 grep -v '^ *+' conftest.er1 >conftest.err
18181 rm -f conftest.er1
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } &&
18185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18186 { (case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189esac
18190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_try") 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; } &&
18195 { ac_try='test -s conftest$ac_exeext'
18196 { (case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18199esac
18200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201 (eval "$ac_try") 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_cv_lib_gcc____chkstk=yes
18206else
18207 echo "$as_me: failed program was:" >&5
18208sed 's/^/| /' conftest.$ac_ext >&5
18209
18210 ac_cv_lib_gcc____chkstk=no
18211fi
18212
18213rm -f core conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215LIBS=$ac_check_lib_save_LIBS
18216fi
18217{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18218echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18219if test $ac_cv_lib_gcc____chkstk = yes; then
18220
18221cat >>confdefs.h <<\_ACEOF
18222#define HAVE____CHKSTK 1
18223_ACEOF
18224
18225fi
18226
18227
18228 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18229echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18230if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232else
18233 ac_check_lib_save_LIBS=$LIBS
18234LIBS="-lgcc $LIBS"
18235cat >conftest.$ac_ext <<_ACEOF
18236/* confdefs.h. */
18237_ACEOF
18238cat confdefs.h >>conftest.$ac_ext
18239cat >>conftest.$ac_ext <<_ACEOF
18240/* end confdefs.h. */
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 __ashldi3 ();
18249int
18250main ()
18251{
18252return __ashldi3 ();
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext conftest$ac_exeext
18258if { (ac_try="$ac_link"
18259case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_link") 2>conftest.er1
18265 ac_status=$?
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272 { (case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275esac
18276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_try") 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest$ac_exeext'
18282 { (case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18285esac
18286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_try") 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_lib_gcc___ashldi3=yes
18292else
18293 echo "$as_me: failed program was:" >&5
18294sed 's/^/| /' conftest.$ac_ext >&5
18295
18296 ac_cv_lib_gcc___ashldi3=no
18297fi
18298
18299rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301LIBS=$ac_check_lib_save_LIBS
18302fi
18303{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18304echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18305if test $ac_cv_lib_gcc___ashldi3 = yes; then
18306
18307cat >>confdefs.h <<\_ACEOF
18308#define HAVE___ASHLDI3 1
18309_ACEOF
18310
18311fi
18312
18313 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18314echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18315if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18317else
18318 ac_check_lib_save_LIBS=$LIBS
18319LIBS="-lgcc $LIBS"
18320cat >conftest.$ac_ext <<_ACEOF
18321/* confdefs.h. */
18322_ACEOF
18323cat confdefs.h >>conftest.$ac_ext
18324cat >>conftest.$ac_ext <<_ACEOF
18325/* end confdefs.h. */
18326
18327/* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18330#ifdef __cplusplus
18331extern "C"
18332#endif
18333char __ashrdi3 ();
18334int
18335main ()
18336{
18337return __ashrdi3 ();
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext conftest$ac_exeext
18343if { (ac_try="$ac_link"
18344case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18350 ac_status=$?
18351 grep -v '^ *+' conftest.er1 >conftest.err
18352 rm -f conftest.er1
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18360esac
18361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest$ac_exeext'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370esac
18371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_gcc___ashrdi3=yes
18377else
18378 echo "$as_me: failed program was:" >&5
18379sed 's/^/| /' conftest.$ac_ext >&5
18380
18381 ac_cv_lib_gcc___ashrdi3=no
18382fi
18383
18384rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386LIBS=$ac_check_lib_save_LIBS
18387fi
18388{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18389echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18390if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18391
18392cat >>confdefs.h <<\_ACEOF
18393#define HAVE___ASHRDI3 1
18394_ACEOF
18395
18396fi
18397
18398 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18399echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18400if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18402else
18403 ac_check_lib_save_LIBS=$LIBS
18404LIBS="-lgcc $LIBS"
18405cat >conftest.$ac_ext <<_ACEOF
18406/* confdefs.h. */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h. */
18411
18412/* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18415#ifdef __cplusplus
18416extern "C"
18417#endif
18418char __divdi3 ();
18419int
18420main ()
18421{
18422return __divdi3 ();
18423 ;
18424 return 0;
18425}
18426_ACEOF
18427rm -f conftest.$ac_objext conftest$ac_exeext
18428if { (ac_try="$ac_link"
18429case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432esac
18433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455esac
18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_cv_lib_gcc___divdi3=yes
18462else
18463 echo "$as_me: failed program was:" >&5
18464sed 's/^/| /' conftest.$ac_ext >&5
18465
18466 ac_cv_lib_gcc___divdi3=no
18467fi
18468
18469rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471LIBS=$ac_check_lib_save_LIBS
18472fi
18473{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18474echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18475if test $ac_cv_lib_gcc___divdi3 = yes; then
18476
18477cat >>confdefs.h <<\_ACEOF
18478#define HAVE___DIVDI3 1
18479_ACEOF
18480
18481fi
18482
18483 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18484echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18485if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488 ac_check_lib_save_LIBS=$LIBS
18489LIBS="-lgcc $LIBS"
18490cat >conftest.$ac_ext <<_ACEOF
18491/* confdefs.h. */
18492_ACEOF
18493cat confdefs.h >>conftest.$ac_ext
18494cat >>conftest.$ac_ext <<_ACEOF
18495/* end confdefs.h. */
18496
18497/* Override any GCC internal prototype to avoid an error.
18498 Use char because int might match the return type of a GCC
18499 builtin and then its argument prototype would still apply. */
18500#ifdef __cplusplus
18501extern "C"
18502#endif
18503char __fixdfdi ();
18504int
18505main ()
18506{
18507return __fixdfdi ();
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext conftest$ac_exeext
18513if { (ac_try="$ac_link"
18514case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_link") 2>conftest.er1
18520 ac_status=$?
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530esac
18531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540esac
18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_lib_gcc___fixdfdi=yes
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551 ac_cv_lib_gcc___fixdfdi=no
18552fi
18553
18554rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556LIBS=$ac_check_lib_save_LIBS
18557fi
18558{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18559echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18560if test $ac_cv_lib_gcc___fixdfdi = yes; then
18561
18562cat >>confdefs.h <<\_ACEOF
18563#define HAVE___FIXDFDI 1
18564_ACEOF
18565
18566fi
18567
18568 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18569echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18570if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572else
18573 ac_check_lib_save_LIBS=$LIBS
18574LIBS="-lgcc $LIBS"
18575cat >conftest.$ac_ext <<_ACEOF
18576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
18581
18582/* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18585#ifdef __cplusplus
18586extern "C"
18587#endif
18588char __fixsfdi ();
18589int
18590main ()
18591{
18592return __fixsfdi ();
18593 ;
18594 return 0;
18595}
18596_ACEOF
18597rm -f conftest.$ac_objext conftest$ac_exeext
18598if { (ac_try="$ac_link"
18599case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18602esac
18603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612 { (case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615esac
18616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_try") 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625esac
18626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_lib_gcc___fixsfdi=yes
18632else
18633 echo "$as_me: failed program was:" >&5
18634sed 's/^/| /' conftest.$ac_ext >&5
18635
18636 ac_cv_lib_gcc___fixsfdi=no
18637fi
18638
18639rm -f core conftest.err conftest.$ac_objext \
18640 conftest$ac_exeext conftest.$ac_ext
18641LIBS=$ac_check_lib_save_LIBS
18642fi
18643{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18644echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18645if test $ac_cv_lib_gcc___fixsfdi = yes; then
18646
18647cat >>confdefs.h <<\_ACEOF
18648#define HAVE___FIXSFDI 1
18649_ACEOF
18650
18651fi
18652
18653 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18654echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18655if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657else
18658 ac_check_lib_save_LIBS=$LIBS
18659LIBS="-lgcc $LIBS"
18660cat >conftest.$ac_ext <<_ACEOF
18661/* confdefs.h. */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h. */
18666
18667/* Override any GCC internal prototype to avoid an error.
18668 Use char because int might match the return type of a GCC
18669 builtin and then its argument prototype would still apply. */
18670#ifdef __cplusplus
18671extern "C"
18672#endif
18673char __floatdidf ();
18674int
18675main ()
18676{
18677return __floatdidf ();
18678 ;
18679 return 0;
18680}
18681_ACEOF
18682rm -f conftest.$ac_objext conftest$ac_exeext
18683if { (ac_try="$ac_link"
18684case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687esac
18688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700esac
18701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (case "(($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_try") 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_cv_lib_gcc___floatdidf=yes
18717else
18718 echo "$as_me: failed program was:" >&5
18719sed 's/^/| /' conftest.$ac_ext >&5
18720
18721 ac_cv_lib_gcc___floatdidf=no
18722fi
18723
18724rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18726LIBS=$ac_check_lib_save_LIBS
18727fi
18728{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18729echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18730if test $ac_cv_lib_gcc___floatdidf = yes; then
18731
18732cat >>confdefs.h <<\_ACEOF
18733#define HAVE___FLOATDIDF 1
18734_ACEOF
18735
18736fi
18737
18738 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18739echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18740if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743 ac_check_lib_save_LIBS=$LIBS
18744LIBS="-lgcc $LIBS"
18745cat >conftest.$ac_ext <<_ACEOF
18746/* confdefs.h. */
18747_ACEOF
18748cat confdefs.h >>conftest.$ac_ext
18749cat >>conftest.$ac_ext <<_ACEOF
18750/* end confdefs.h. */
18751
18752/* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18755#ifdef __cplusplus
18756extern "C"
18757#endif
18758char __lshrdi3 ();
18759int
18760main ()
18761{
18762return __lshrdi3 ();
18763 ;
18764 return 0;
18765}
18766_ACEOF
18767rm -f conftest.$ac_objext conftest$ac_exeext
18768if { (ac_try="$ac_link"
18769case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18772esac
18773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_link") 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782 { (case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785esac
18786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_try") 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest$ac_exeext'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18795esac
18796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_cv_lib_gcc___lshrdi3=yes
18802else
18803 echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 ac_cv_lib_gcc___lshrdi3=no
18807fi
18808
18809rm -f core conftest.err conftest.$ac_objext \
18810 conftest$ac_exeext conftest.$ac_ext
18811LIBS=$ac_check_lib_save_LIBS
18812fi
18813{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18814echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18815if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18816
18817cat >>confdefs.h <<\_ACEOF
18818#define HAVE___LSHRDI3 1
18819_ACEOF
18820
18821fi
18822
18823 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18824echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18825if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827else
18828 ac_check_lib_save_LIBS=$LIBS
18829LIBS="-lgcc $LIBS"
18830cat >conftest.$ac_ext <<_ACEOF
18831/* confdefs.h. */
18832_ACEOF
18833cat confdefs.h >>conftest.$ac_ext
18834cat >>conftest.$ac_ext <<_ACEOF
18835/* end confdefs.h. */
18836
18837/* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18840#ifdef __cplusplus
18841extern "C"
18842#endif
18843char __moddi3 ();
18844int
18845main ()
18846{
18847return __moddi3 ();
18848 ;
18849 return 0;
18850}
18851_ACEOF
18852rm -f conftest.$ac_objext conftest$ac_exeext
18853if { (ac_try="$ac_link"
18854case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857esac
18858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_link") 2>conftest.er1
18860 ac_status=$?
18861 grep -v '^ *+' conftest.er1 >conftest.err
18862 rm -f conftest.er1
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870esac
18871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; } &&
18876 { ac_try='test -s conftest$ac_exeext'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880esac
18881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
18886 ac_cv_lib_gcc___moddi3=yes
18887else
18888 echo "$as_me: failed program was:" >&5
18889sed 's/^/| /' conftest.$ac_ext >&5
18890
18891 ac_cv_lib_gcc___moddi3=no
18892fi
18893
18894rm -f core conftest.err conftest.$ac_objext \
18895 conftest$ac_exeext conftest.$ac_ext
18896LIBS=$ac_check_lib_save_LIBS
18897fi
18898{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18899echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18900if test $ac_cv_lib_gcc___moddi3 = yes; then
18901
18902cat >>confdefs.h <<\_ACEOF
18903#define HAVE___MODDI3 1
18904_ACEOF
18905
18906fi
18907
18908 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18909echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18910if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912else
18913 ac_check_lib_save_LIBS=$LIBS
18914LIBS="-lgcc $LIBS"
18915cat >conftest.$ac_ext <<_ACEOF
18916/* confdefs.h. */
18917_ACEOF
18918cat confdefs.h >>conftest.$ac_ext
18919cat >>conftest.$ac_ext <<_ACEOF
18920/* end confdefs.h. */
18921
18922/* Override any GCC internal prototype to avoid an error.
18923 Use char because int might match the return type of a GCC
18924 builtin and then its argument prototype would still apply. */
18925#ifdef __cplusplus
18926extern "C"
18927#endif
18928char __udivdi3 ();
18929int
18930main ()
18931{
18932return __udivdi3 ();
18933 ;
18934 return 0;
18935}
18936_ACEOF
18937rm -f conftest.$ac_objext conftest$ac_exeext
18938if { (ac_try="$ac_link"
18939case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18942esac
18943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_link") 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965esac
18966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_cv_lib_gcc___udivdi3=yes
18972else
18973 echo "$as_me: failed program was:" >&5
18974sed 's/^/| /' conftest.$ac_ext >&5
18975
18976 ac_cv_lib_gcc___udivdi3=no
18977fi
18978
18979rm -f core conftest.err conftest.$ac_objext \
18980 conftest$ac_exeext conftest.$ac_ext
18981LIBS=$ac_check_lib_save_LIBS
18982fi
18983{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18984echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18985if test $ac_cv_lib_gcc___udivdi3 = yes; then
18986
18987cat >>confdefs.h <<\_ACEOF
18988#define HAVE___UDIVDI3 1
18989_ACEOF
18990
18991fi
18992
18993 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18994echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18995if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997else
18998 ac_check_lib_save_LIBS=$LIBS
18999LIBS="-lgcc $LIBS"
19000cat >conftest.$ac_ext <<_ACEOF
19001/* confdefs.h. */
19002_ACEOF
19003cat confdefs.h >>conftest.$ac_ext
19004cat >>conftest.$ac_ext <<_ACEOF
19005/* end confdefs.h. */
19006
19007/* Override any GCC internal prototype to avoid an error.
19008 Use char because int might match the return type of a GCC
19009 builtin and then its argument prototype would still apply. */
19010#ifdef __cplusplus
19011extern "C"
19012#endif
19013char __umoddi3 ();
19014int
19015main ()
19016{
19017return __umoddi3 ();
19018 ;
19019 return 0;
19020}
19021_ACEOF
19022rm -f conftest.$ac_objext conftest$ac_exeext
19023if { (ac_try="$ac_link"
19024case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19027esac
19028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_link") 2>conftest.er1
19030 ac_status=$?
19031 grep -v '^ *+' conftest.er1 >conftest.err
19032 rm -f conftest.er1
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
19036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037 { (case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_try") 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_try") 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 ac_cv_lib_gcc___umoddi3=yes
19057else
19058 echo "$as_me: failed program was:" >&5
19059sed 's/^/| /' conftest.$ac_ext >&5
19060
19061 ac_cv_lib_gcc___umoddi3=no
19062fi
19063
19064rm -f core conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19066LIBS=$ac_check_lib_save_LIBS
19067fi
19068{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19069echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19070if test $ac_cv_lib_gcc___umoddi3 = yes; then
19071
19072cat >>confdefs.h <<\_ACEOF
19073#define HAVE___UMODDI3 1
19074_ACEOF
19075
19076fi
19077
19078
19079 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19080echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19081if test "${ac_cv_lib_gcc___main+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19083else
19084 ac_check_lib_save_LIBS=$LIBS
19085LIBS="-lgcc $LIBS"
19086cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h. */
19092
19093/* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19096#ifdef __cplusplus
19097extern "C"
19098#endif
19099char __main ();
19100int
19101main ()
19102{
19103return __main ();
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext conftest$ac_exeext
19109if { (ac_try="$ac_link"
19110case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_link") 2>conftest.er1
19116 ac_status=$?
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126esac
19127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19136esac
19137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_lib_gcc___main=yes
19143else
19144 echo "$as_me: failed program was:" >&5
19145sed 's/^/| /' conftest.$ac_ext >&5
19146
19147 ac_cv_lib_gcc___main=no
19148fi
19149
19150rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152LIBS=$ac_check_lib_save_LIBS
19153fi
19154{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19155echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19156if test $ac_cv_lib_gcc___main = yes; then
19157
19158cat >>confdefs.h <<\_ACEOF
19159#define HAVE___MAIN 1
19160_ACEOF
19161
19162fi
19163
19164 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19165echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19166if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168else
19169 ac_check_lib_save_LIBS=$LIBS
19170LIBS="-lgcc $LIBS"
19171cat >conftest.$ac_ext <<_ACEOF
19172/* confdefs.h. */
19173_ACEOF
19174cat confdefs.h >>conftest.$ac_ext
19175cat >>conftest.$ac_ext <<_ACEOF
19176/* end confdefs.h. */
19177
19178/* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19181#ifdef __cplusplus
19182extern "C"
19183#endif
19184char __cmpdi2 ();
19185int
19186main ()
19187{
19188return __cmpdi2 ();
19189 ;
19190 return 0;
19191}
19192_ACEOF
19193rm -f conftest.$ac_objext conftest$ac_exeext
19194if { (ac_try="$ac_link"
19195case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19201 ac_status=$?
19202 grep -v '^ *+' conftest.er1 >conftest.err
19203 rm -f conftest.er1
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211esac
19212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest$ac_exeext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221esac
19222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_lib_gcc___cmpdi2=yes
19228else
19229 echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 ac_cv_lib_gcc___cmpdi2=no
19233fi
19234
19235rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19237LIBS=$ac_check_lib_save_LIBS
19238fi
19239{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19240echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19241if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19242
19243cat >>confdefs.h <<\_ACEOF
19244#define HAVE___CMPDI2 1
19245_ACEOF
19246
19247fi
19248
19249fi
19250
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019251if test "$llvm_cv_os_type" = "MingW" ; then
19252 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19253echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19254 cat >conftest.$ac_ext <<_ACEOF
19255#include <windows.h>
19256#include <imagehlp.h>
19257extern void foo(PENUMLOADED_MODULES_CALLBACK);
19258extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19259_ACEOF
19260rm -f conftest.$ac_objext
19261if { (ac_try="$ac_compile"
19262case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_compile") 2>conftest.er1
19268 ac_status=$?
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278esac
19279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294
19295 { echo "$as_me:$LINENO: result: yes" >&5
19296echo "${ECHO_T}yes" >&6; }
19297 llvm_cv_win32_elmcb_pcstr="PCSTR"
19298
19299else
19300 echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303
19304 { echo "$as_me:$LINENO: result: no" >&5
19305echo "${ECHO_T}no" >&6; }
19306 llvm_cv_win32_elmcb_pcstr="PSTR"
19307
19308fi
19309
19310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311
19312cat >>confdefs.h <<_ACEOF
19313#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19314_ACEOF
19315
19316fi
19317
Torok Edwin871384f2010-01-26 08:50:50 +000019318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019319{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19320echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19321if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019323else
Reid Spencera773bd52006-08-04 18:18:08 +000019324 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019325ac_cpp='$CXXCPP $CPPFLAGS'
19326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019330 cat >conftest.$ac_ext <<_ACEOF
19331/* confdefs.h. */
19332_ACEOF
19333cat confdefs.h >>conftest.$ac_ext
19334cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019335/* end confdefs.h. */
19336#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019337int
19338main ()
19339{
19340float f; isnan(f);
19341 ;
19342 return 0;
19343}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019344_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019345rm -f conftest.$ac_objext
19346if { (ac_try="$ac_compile"
19347case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_compile") 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19360 { (case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_try") 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest.$ac_objext'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373esac
19374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019379 ac_cv_func_isnan_in_math_h=yes
19380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019381 echo "$as_me: failed program was:" >&5
19382sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019386
Reid Spencera773bd52006-08-04 18:18:08 +000019387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019388 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019389ac_cpp='$CPP $CPPFLAGS'
19390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393
19394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019395{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19396echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019397
19398
19399if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019401cat >>confdefs.h <<\_ACEOF
19402#define HAVE_ISNAN_IN_MATH_H 1
19403_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019404
Reid Spencerabec8f92004-10-27 23:03:44 +000019405fi
19406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019407{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19408echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19409if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019411else
Reid Spencera773bd52006-08-04 18:18:08 +000019412 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019413ac_cpp='$CXXCPP $CPPFLAGS'
19414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019418 cat >conftest.$ac_ext <<_ACEOF
19419/* confdefs.h. */
19420_ACEOF
19421cat confdefs.h >>conftest.$ac_ext
19422cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019423/* end confdefs.h. */
19424#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019425int
19426main ()
19427{
19428float f; isnan(f);
19429 ;
19430 return 0;
19431}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019432_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019433rm -f conftest.$ac_objext
19434if { (ac_try="$ac_compile"
19435case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_compile") 2>conftest.er1
19441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19448 { (case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19451esac
19452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_try") 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461esac
19462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019467 ac_cv_func_isnan_in_cmath=yes
19468else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019469 echo "$as_me: failed program was:" >&5
19470sed 's/^/| /' conftest.$ac_ext >&5
19471
19472 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019474
Reid Spencera773bd52006-08-04 18:18:08 +000019475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019476 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019477ac_cpp='$CPP $CPPFLAGS'
19478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480ac_compiler_gnu=$ac_cv_c_compiler_gnu
19481
19482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019483{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19484echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019485
19486if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019488cat >>confdefs.h <<\_ACEOF
19489#define HAVE_ISNAN_IN_CMATH 1
19490_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019491
Reid Spencerabec8f92004-10-27 23:03:44 +000019492fi
19493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019494{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19495echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19496if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019498else
Reid Spencera773bd52006-08-04 18:18:08 +000019499 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019500ac_cpp='$CXXCPP $CPPFLAGS'
19501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019505 cat >conftest.$ac_ext <<_ACEOF
19506/* confdefs.h. */
19507_ACEOF
19508cat confdefs.h >>conftest.$ac_ext
19509cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019510/* end confdefs.h. */
19511#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019512int
19513main ()
19514{
19515float f; std::isnan(f);
19516 ;
19517 return 0;
19518}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019519_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019520rm -f conftest.$ac_objext
19521if { (ac_try="$ac_compile"
19522case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_compile") 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538esac
19539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_try") 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19548esac
19549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_try") 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019554 ac_cv_func_std_isnan_in_cmath=yes
19555else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019556 echo "$as_me: failed program was:" >&5
19557sed 's/^/| /' conftest.$ac_ext >&5
19558
19559 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019561
Reid Spencera773bd52006-08-04 18:18:08 +000019562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019563 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019564ac_cpp='$CPP $CPPFLAGS'
19565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567ac_compiler_gnu=$ac_cv_c_compiler_gnu
19568
19569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19571echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019572
19573if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019575cat >>confdefs.h <<\_ACEOF
19576#define HAVE_STD_ISNAN_IN_CMATH 1
19577_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019578
Reid Spencerabec8f92004-10-27 23:03:44 +000019579fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019580
19581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019582{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19583echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19584if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019586else
Reid Spencera773bd52006-08-04 18:18:08 +000019587 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019588ac_cpp='$CXXCPP $CPPFLAGS'
19589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019593 cat >conftest.$ac_ext <<_ACEOF
19594/* confdefs.h. */
19595_ACEOF
19596cat confdefs.h >>conftest.$ac_ext
19597cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019598/* end confdefs.h. */
19599#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019600int
19601main ()
19602{
19603float f; isinf(f);
19604 ;
19605 return 0;
19606}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019607_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019608rm -f conftest.$ac_objext
19609if { (ac_try="$ac_compile"
19610case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613esac
19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_compile") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19623 { (case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626esac
19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_try") 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest.$ac_objext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636esac
19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019642 ac_cv_func_isinf_in_math_h=yes
19643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019644 echo "$as_me: failed program was:" >&5
19645sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019649
Reid Spencera773bd52006-08-04 18:18:08 +000019650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019651 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019652ac_cpp='$CPP $CPPFLAGS'
19653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19655ac_compiler_gnu=$ac_cv_c_compiler_gnu
19656
19657fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019658{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19659echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019660
19661if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019663cat >>confdefs.h <<\_ACEOF
19664#define HAVE_ISINF_IN_MATH_H 1
19665_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019666
Reid Spencerabec8f92004-10-27 23:03:44 +000019667fi
19668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19670echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19671if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019673else
Reid Spencera773bd52006-08-04 18:18:08 +000019674 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019675ac_cpp='$CXXCPP $CPPFLAGS'
19676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019680 cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019685/* end confdefs.h. */
19686#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019687int
19688main ()
19689{
19690float f; isinf(f);
19691 ;
19692 return 0;
19693}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019694_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019695rm -f conftest.$ac_objext
19696if { (ac_try="$ac_compile"
19697case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700esac
19701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_compile") 2>conftest.er1
19703 ac_status=$?
19704 grep -v '^ *+' conftest.er1 >conftest.err
19705 rm -f conftest.er1
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19710 { (case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713esac
19714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_try") 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest.$ac_objext'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723esac
19724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019729 ac_cv_func_isinf_in_cmath=yes
19730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019731 echo "$as_me: failed program was:" >&5
19732sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019736
Reid Spencera773bd52006-08-04 18:18:08 +000019737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019738 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019739ac_cpp='$CPP $CPPFLAGS'
19740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019745{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19746echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019747
19748if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019750cat >>confdefs.h <<\_ACEOF
19751#define HAVE_ISINF_IN_CMATH 1
19752_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019753
Reid Spencerabec8f92004-10-27 23:03:44 +000019754fi
19755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019756{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19757echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19758if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019760else
Reid Spencera773bd52006-08-04 18:18:08 +000019761 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019762ac_cpp='$CXXCPP $CPPFLAGS'
19763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019767 cat >conftest.$ac_ext <<_ACEOF
19768/* confdefs.h. */
19769_ACEOF
19770cat confdefs.h >>conftest.$ac_ext
19771cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019772/* end confdefs.h. */
19773#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019774int
19775main ()
19776{
19777float f; std::isinf(f)}
19778 ;
19779 return 0;
19780}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019781_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019782rm -f conftest.$ac_objext
19783if { (ac_try="$ac_compile"
19784case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19787esac
19788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest.$ac_objext'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019816 ac_cv_func_std_isinf_in_cmath=yes
19817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019818 echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019823
Reid Spencera773bd52006-08-04 18:18:08 +000019824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019825 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019826ac_cpp='$CPP $CPPFLAGS'
19827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829ac_compiler_gnu=$ac_cv_c_compiler_gnu
19830
19831fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019832{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19833echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019834
19835if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019836
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019837cat >>confdefs.h <<\_ACEOF
19838#define HAVE_STD_ISINF_IN_CMATH 1
19839_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019840
Reid Spencerabec8f92004-10-27 23:03:44 +000019841fi
19842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19844echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19845if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019847else
Reid Spencera773bd52006-08-04 18:18:08 +000019848 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019849ac_cpp='$CXXCPP $CPPFLAGS'
19850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019854 cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019859/* end confdefs.h. */
19860#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019861int
19862main ()
19863{
19864float f; finite(f);
19865 ;
19866 return 0;
19867}
Brian Gaeked59a6472004-07-21 03:33:58 +000019868_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019869rm -f conftest.$ac_objext
19870if { (ac_try="$ac_compile"
19871case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884 { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887esac
19888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try='test -s conftest.$ac_objext'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19897esac
19898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019903 ac_cv_func_finite_in_ieeefp_h=yes
19904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019905 echo "$as_me: failed program was:" >&5
19906sed 's/^/| /' conftest.$ac_ext >&5
19907
19908 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019910
Reid Spencera773bd52006-08-04 18:18:08 +000019911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019912 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019913ac_cpp='$CPP $CPPFLAGS'
19914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916ac_compiler_gnu=$ac_cv_c_compiler_gnu
19917
19918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019919{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19920echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019921
Brian Gaeke6802b552004-10-28 05:06:45 +000019922if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019924cat >>confdefs.h <<\_ACEOF
19925#define HAVE_FINITE_IN_IEEEFP_H 1
19926_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019927
Reid Spencerabec8f92004-10-27 23:03:44 +000019928fi
19929
19930
19931
Reid Spencer30fe5262007-01-20 07:48:49 +000019932if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019933
19934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019935for ac_header in stdlib.h unistd.h
19936do
19937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19943fi
19944ac_res=`eval echo '${'$as_ac_Header'}'`
19945 { echo "$as_me:$LINENO: result: $ac_res" >&5
19946echo "${ECHO_T}$ac_res" >&6; }
19947else
19948 # Is the header compilable?
19949{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19951cat >conftest.$ac_ext <<_ACEOF
19952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
19957$ac_includes_default
19958#include <$ac_header>
19959_ACEOF
19960rm -f conftest.$ac_objext
19961if { (ac_try="$ac_compile"
19962case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965esac
19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
19974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19975 { (case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19978esac
19979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_try") 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
19985 { (case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19988esac
19989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_try") 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_header_compiler=yes
19995else
19996 echo "$as_me: failed program was:" >&5
19997sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019999 ac_header_compiler=no
20000fi
20001
20002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20004echo "${ECHO_T}$ac_header_compiler" >&6; }
20005
20006# Is the header present?
20007{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20009cat >conftest.$ac_ext <<_ACEOF
20010/* confdefs.h. */
20011_ACEOF
20012cat confdefs.h >>conftest.$ac_ext
20013cat >>conftest.$ac_ext <<_ACEOF
20014/* end confdefs.h. */
20015#include <$ac_header>
20016_ACEOF
20017if { (ac_try="$ac_cpp conftest.$ac_ext"
20018case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021esac
20022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20024 ac_status=$?
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } >/dev/null; then
20030 if test -s conftest.err; then
20031 ac_cpp_err=$ac_c_preproc_warn_flag
20032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20033 else
20034 ac_cpp_err=
20035 fi
20036else
20037 ac_cpp_err=yes
20038fi
20039if test -z "$ac_cpp_err"; then
20040 ac_header_preproc=yes
20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045 ac_header_preproc=no
20046fi
20047
20048rm -f conftest.err conftest.$ac_ext
20049{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20050echo "${ECHO_T}$ac_header_preproc" >&6; }
20051
20052# So? What about this header?
20053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20054 yes:no: )
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20059 ac_header_preproc=yes
20060 ;;
20061 no:yes:* )
20062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20074 ( cat <<\_ASBOX
20075## ----------------------------------- ##
20076## Report this to llvmbugs@cs.uiuc.edu ##
20077## ----------------------------------- ##
20078_ASBOX
20079 ) | sed "s/^/$as_me: WARNING: /" >&2
20080 ;;
20081esac
20082{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086else
20087 eval "$as_ac_Header=\$ac_header_preproc"
20088fi
20089ac_res=`eval echo '${'$as_ac_Header'}'`
20090 { echo "$as_me:$LINENO: result: $ac_res" >&5
20091echo "${ECHO_T}$ac_res" >&6; }
20092
20093fi
20094if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020095 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020097_ACEOF
20098
20099fi
20100
20101done
20102
20103
20104for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020105do
20106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111else
20112 cat >conftest.$ac_ext <<_ACEOF
20113/* confdefs.h. */
20114_ACEOF
20115cat confdefs.h >>conftest.$ac_ext
20116cat >>conftest.$ac_ext <<_ACEOF
20117/* end confdefs.h. */
20118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20120#define $ac_func innocuous_$ac_func
20121
20122/* System header to define __stub macros and hopefully few prototypes,
20123 which can conflict with char $ac_func (); below.
20124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20125 <limits.h> exists even on freestanding compilers. */
20126
20127#ifdef __STDC__
20128# include <limits.h>
20129#else
20130# include <assert.h>
20131#endif
20132
20133#undef $ac_func
20134
20135/* Override any GCC internal prototype to avoid an error.
20136 Use char because int might match the return type of a GCC
20137 builtin and then its argument prototype would still apply. */
20138#ifdef __cplusplus
20139extern "C"
20140#endif
20141char $ac_func ();
20142/* The GNU C library defines this for functions which it implements
20143 to always fail with ENOSYS. Some functions are actually named
20144 something starting with __ and the normal name is an alias. */
20145#if defined __stub_$ac_func || defined __stub___$ac_func
20146choke me
20147#endif
20148
20149int
20150main ()
20151{
20152return $ac_func ();
20153 ;
20154 return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext conftest$ac_exeext
20158if { (ac_try="$ac_link"
20159case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162esac
20163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_link") 2>conftest.er1
20165 ac_status=$?
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20172 { (case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20175esac
20176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_try") 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; } &&
20181 { ac_try='test -s conftest$ac_exeext'
20182 { (case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185esac
20186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_try") 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 eval "$as_ac_var=yes"
20192else
20193 echo "$as_me: failed program was:" >&5
20194sed 's/^/| /' conftest.$ac_ext >&5
20195
20196 eval "$as_ac_var=no"
20197fi
20198
20199rm -f core conftest.err conftest.$ac_objext \
20200 conftest$ac_exeext conftest.$ac_ext
20201fi
20202ac_res=`eval echo '${'$as_ac_var'}'`
20203 { echo "$as_me:$LINENO: result: $ac_res" >&5
20204echo "${ECHO_T}$ac_res" >&6; }
20205if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020206 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020208_ACEOF
20209
20210fi
20211done
20212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020213{ echo "$as_me:$LINENO: checking for working mmap" >&5
20214echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20215if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020217else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020218 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020219 ac_cv_func_mmap_fixed_mapped=no
20220else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020221 cat >conftest.$ac_ext <<_ACEOF
20222/* confdefs.h. */
20223_ACEOF
20224cat confdefs.h >>conftest.$ac_ext
20225cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020226/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020227$ac_includes_default
20228/* malloc might have been renamed as rpl_malloc. */
20229#undef malloc
20230
20231/* Thanks to Mike Haertel and Jim Avera for this test.
20232 Here is a matrix of mmap possibilities:
20233 mmap private not fixed
20234 mmap private fixed at somewhere currently unmapped
20235 mmap private fixed at somewhere already mapped
20236 mmap shared not fixed
20237 mmap shared fixed at somewhere currently unmapped
20238 mmap shared fixed at somewhere already mapped
20239 For private mappings, we should verify that changes cannot be read()
20240 back from the file, nor mmap's back from the file at a different
20241 address. (There have been systems where private was not correctly
20242 implemented like the infamous i386 svr4.0, and systems where the
20243 VM page cache was not coherent with the file system buffer cache
20244 like early versions of FreeBSD and possibly contemporary NetBSD.)
20245 For shared mappings, we should conversely verify that changes get
20246 propagated back to all the places they're supposed to be.
20247
20248 Grep wants private fixed already mapped.
20249 The main things grep needs to know about mmap are:
20250 * does it exist and is it safe to write into the mmap'd area
20251 * how to use it (BSD variants) */
20252
20253#include <fcntl.h>
20254#include <sys/mman.h>
20255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020256#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020257char *malloc ();
20258#endif
20259
20260/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020261#if !HAVE_GETPAGESIZE
20262/* Assume that all systems that can run configure have sys/param.h. */
20263# if !HAVE_SYS_PARAM_H
20264# define HAVE_SYS_PARAM_H 1
20265# endif
20266
John Criswell7a73b802003-06-30 21:59:07 +000020267# ifdef _SC_PAGESIZE
20268# define getpagesize() sysconf(_SC_PAGESIZE)
20269# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020270# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020271# include <sys/param.h>
20272# ifdef EXEC_PAGESIZE
20273# define getpagesize() EXEC_PAGESIZE
20274# else /* no EXEC_PAGESIZE */
20275# ifdef NBPG
20276# define getpagesize() NBPG * CLSIZE
20277# ifndef CLSIZE
20278# define CLSIZE 1
20279# endif /* no CLSIZE */
20280# else /* no NBPG */
20281# ifdef NBPC
20282# define getpagesize() NBPC
20283# else /* no NBPC */
20284# ifdef PAGESIZE
20285# define getpagesize() PAGESIZE
20286# endif /* PAGESIZE */
20287# endif /* no NBPC */
20288# endif /* no NBPG */
20289# endif /* no EXEC_PAGESIZE */
20290# else /* no HAVE_SYS_PARAM_H */
20291# define getpagesize() 8192 /* punt totally */
20292# endif /* no HAVE_SYS_PARAM_H */
20293# endif /* no _SC_PAGESIZE */
20294
20295#endif /* no HAVE_GETPAGESIZE */
20296
20297int
20298main ()
20299{
20300 char *data, *data2, *data3;
20301 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020302 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020303
20304 pagesize = getpagesize ();
20305
20306 /* First, make a file with some known garbage in it. */
20307 data = (char *) malloc (pagesize);
20308 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020309 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020310 for (i = 0; i < pagesize; ++i)
20311 *(data + i) = rand ();
20312 umask (0);
20313 fd = creat ("conftest.mmap", 0600);
20314 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020315 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020316 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020317 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020318 close (fd);
20319
20320 /* Next, try to mmap the file at a fixed address which already has
20321 something else allocated at it. If we can, also make sure that
20322 we see the same garbage. */
20323 fd = open ("conftest.mmap", O_RDWR);
20324 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020325 return 1;
20326 data2 = (char *) malloc (2 * pagesize);
20327 if (!data2)
20328 return 1;
20329 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020330 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020331 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020332 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020333 for (i = 0; i < pagesize; ++i)
20334 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020335 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020336
20337 /* Finally, make sure that changes to the mapped area do not
20338 percolate back to the file as seen by read(). (This is a bug on
20339 some variants of i386 svr4.0.) */
20340 for (i = 0; i < pagesize; ++i)
20341 *(data2 + i) = *(data2 + i) + 1;
20342 data3 = (char *) malloc (pagesize);
20343 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020344 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020345 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020346 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020347 for (i = 0; i < pagesize; ++i)
20348 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020349 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020350 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020351 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020352}
20353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020354rm -f conftest$ac_exeext
20355if { (ac_try="$ac_link"
20356case "(($ac_try" in
20357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358 *) ac_try_echo=$ac_try;;
20359esac
20360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_link") 2>&5
20362 ac_status=$?
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20365 { (case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368esac
20369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_try") 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020374 ac_cv_func_mmap_fixed_mapped=yes
20375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020376 echo "$as_me: program exited with status $ac_status" >&5
20377echo "$as_me: failed program was:" >&5
20378sed 's/^/| /' conftest.$ac_ext >&5
20379
20380( exit $ac_status )
20381ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020382fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020383rm -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 +000020384fi
Reid Spencera773bd52006-08-04 18:18:08 +000020385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020386
John Criswell7a73b802003-06-30 21:59:07 +000020387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020388{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20389echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020390if test $ac_cv_func_mmap_fixed_mapped = yes; then
20391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020392cat >>confdefs.h <<\_ACEOF
20393#define HAVE_MMAP 1
20394_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020395
20396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020397rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020399 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20400echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20401if test "${ac_cv_func_mmap_file+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020403else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020404 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020405ac_cpp='$CPP $CPPFLAGS'
20406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408ac_compiler_gnu=$ac_cv_c_compiler_gnu
20409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020411 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020413 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020415 /* confdefs.h. */
20416_ACEOF
20417cat confdefs.h >>conftest.$ac_ext
20418cat >>conftest.$ac_ext <<_ACEOF
20419/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020420
John Criswell7a73b802003-06-30 21:59:07 +000020421#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020422#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020423#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020424
20425int
20426main ()
20427{
John Criswell7a73b802003-06-30 21:59:07 +000020428
20429 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020430 fd = creat ("foo",0777);
20431 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20432 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020433 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020434 ;
20435 return 0;
20436}
John Criswell7a73b802003-06-30 21:59:07 +000020437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020438rm -f conftest$ac_exeext
20439if { (ac_try="$ac_link"
20440case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20443esac
20444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_link") 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020458 ac_cv_func_mmap_file=yes
20459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020460 echo "$as_me: program exited with status $ac_status" >&5
20461echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
20464( exit $ac_status )
20465ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020467rm -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 +000020468fi
Reid Spencera773bd52006-08-04 18:18:08 +000020469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020470
John Criswell7a73b802003-06-30 21:59:07 +000020471 ac_ext=c
20472ac_cpp='$CPP $CPPFLAGS'
20473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475ac_compiler_gnu=$ac_cv_c_compiler_gnu
20476
20477
20478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020479{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20480echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020481if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020483cat >>confdefs.h <<\_ACEOF
20484#define HAVE_MMAP_FILE
20485_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020486
20487 MMAP_FILE=yes
20488
20489fi
20490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020491 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20492echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20493if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020495else
Reid Spencer582a23c2004-12-29 07:07:57 +000020496 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020497 ac_cv_need_dev_zero_for_mmap=yes
20498 else
20499 ac_cv_need_dev_zero_for_mmap=no
20500 fi
20501
20502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020503{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20504echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020505if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020507cat >>confdefs.h <<\_ACEOF
20508#define NEED_DEV_ZERO_FOR_MMAP 1
20509_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020510
20511fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020512
Reid Spencer30fe5262007-01-20 07:48:49 +000020513 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20514 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020515 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20516echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020517 fi
20518 if test "$ac_cv_func_mmap_file" = "no"
20519 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20521echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020522 fi
John Criswellb13092b2003-07-22 21:00:24 +000020523fi
John Criswell7a73b802003-06-30 21:59:07 +000020524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020525{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20526echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020527ac_ext=cpp
20528ac_cpp='$CXXCPP $CPPFLAGS'
20529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533cat >conftest.$ac_ext <<_ACEOF
20534/* confdefs.h. */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020538/* end confdefs.h. */
20539int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020540 volatile unsigned long val = 1;
20541 __sync_synchronize();
20542 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020543 __sync_add_and_fetch(&val, 1);
20544 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020545 return 0;
20546 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020547
20548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020549rm -f conftest.$ac_objext conftest$ac_exeext
20550if { (ac_try="$ac_link"
20551case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554esac
20555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_link") 2>conftest.er1
20557 ac_status=$?
20558 grep -v '^ *+' conftest.er1 >conftest.err
20559 rm -f conftest.er1
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20564 { (case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567esac
20568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_try") 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; } &&
20573 { ac_try='test -s conftest$ac_exeext'
20574 { (case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20577esac
20578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_try") 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020583 ac_ext=c
20584ac_cpp='$CPP $CPPFLAGS'
20585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589 { echo "$as_me:$LINENO: result: yes" >&5
20590echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020593#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020594_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020595
Owen Andersond4b272b2009-05-18 23:58:51 +000020596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020597 echo "$as_me: failed program was:" >&5
20598sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600 { echo "$as_me:$LINENO: result: no" >&5
20601echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020603cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020604#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020605_ACEOF
20606
20607 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20608echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020610
Owen Andersond4b272b2009-05-18 23:58:51 +000020611rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020612 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020613
John Criswell7a73b802003-06-30 21:59:07 +000020614
Nick Lewycky4372e692009-09-29 06:18:23 +000020615if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20617echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20618if test "${llvm_cv_linux_mixed+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020620else
20621 ac_ext=c
20622ac_cpp='$CPP $CPPFLAGS'
20623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20625ac_compiler_gnu=$ac_cv_c_compiler_gnu
20626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020627 cat >conftest.$ac_ext <<_ACEOF
20628/* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020632/* end confdefs.h. */
20633#ifndef __x86_64__
20634 error: Not x86-64 even if uname says so!
20635 #endif
20636
20637int
20638main ()
20639{
20640
20641 ;
20642 return 0;
20643}
20644_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020645rm -f conftest.$ac_objext
20646if { (ac_try="$ac_compile"
20647case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650esac
20651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_compile") 2>conftest.er1
20653 ac_status=$?
20654 grep -v '^ *+' conftest.er1 >conftest.err
20655 rm -f conftest.er1
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } &&
20659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20660 { (case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663esac
20664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_try") 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; } &&
20669 { ac_try='test -s conftest.$ac_objext'
20670 { (case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673esac
20674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_try") 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020679 llvm_cv_linux_mixed=no
20680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020681 echo "$as_me: failed program was:" >&5
20682sed 's/^/| /' conftest.$ac_ext >&5
20683
20684 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020686
Nick Lewycky4372e692009-09-29 06:18:23 +000020687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20688 ac_ext=c
20689ac_cpp='$CPP $CPPFLAGS'
20690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20692ac_compiler_gnu=$ac_cv_c_compiler_gnu
20693
20694
20695fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020696{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20697echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020698
20699 if test "$llvm_cv_linux_mixed" = "yes"; then
20700 llvm_cv_target_arch="x86"
20701 ARCH="x86"
20702 fi
20703fi
20704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020705
Reid Spencer9372f152007-07-30 20:13:24 +000020706for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020707do
20708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20709{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20711if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20713else
20714 cat >conftest.$ac_ext <<_ACEOF
20715/* confdefs.h. */
20716_ACEOF
20717cat confdefs.h >>conftest.$ac_ext
20718cat >>conftest.$ac_ext <<_ACEOF
20719/* end confdefs.h. */
20720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20722#define $ac_func innocuous_$ac_func
20723
20724/* System header to define __stub macros and hopefully few prototypes,
20725 which can conflict with char $ac_func (); below.
20726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20727 <limits.h> exists even on freestanding compilers. */
20728
20729#ifdef __STDC__
20730# include <limits.h>
20731#else
20732# include <assert.h>
20733#endif
20734
20735#undef $ac_func
20736
20737/* Override any GCC internal prototype to avoid an error.
20738 Use char because int might match the return type of a GCC
20739 builtin and then its argument prototype would still apply. */
20740#ifdef __cplusplus
20741extern "C"
20742#endif
20743char $ac_func ();
20744/* The GNU C library defines this for functions which it implements
20745 to always fail with ENOSYS. Some functions are actually named
20746 something starting with __ and the normal name is an alias. */
20747#if defined __stub_$ac_func || defined __stub___$ac_func
20748choke me
20749#endif
20750
20751int
20752main ()
20753{
20754return $ac_func ();
20755 ;
20756 return 0;
20757}
20758_ACEOF
20759rm -f conftest.$ac_objext conftest$ac_exeext
20760if { (ac_try="$ac_link"
20761case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20764esac
20765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_link") 2>conftest.er1
20767 ac_status=$?
20768 grep -v '^ *+' conftest.er1 >conftest.err
20769 rm -f conftest.er1
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20774 { (case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20777esac
20778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_try") 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; } &&
20783 { ac_try='test -s conftest$ac_exeext'
20784 { (case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787esac
20788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_try") 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 eval "$as_ac_var=yes"
20794else
20795 echo "$as_me: failed program was:" >&5
20796sed 's/^/| /' conftest.$ac_ext >&5
20797
20798 eval "$as_ac_var=no"
20799fi
20800
20801rm -f core conftest.err conftest.$ac_objext \
20802 conftest$ac_exeext conftest.$ac_ext
20803fi
20804ac_res=`eval echo '${'$as_ac_var'}'`
20805 { echo "$as_me:$LINENO: result: $ac_res" >&5
20806echo "${ECHO_T}$ac_res" >&6; }
20807if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020808 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020810_ACEOF
20811
20812fi
20813done
20814
20815
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020816SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020817
20818
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020819SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20820
20821
Reid Spencere9de0912004-08-20 09:03:57 +000020822# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020823# information into substitutions that will end up in Makefile.config.in
20824# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020825if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020826 prefix="/usr/local"
20827fi
Reid Spencere9de0912004-08-20 09:03:57 +000020828eval LLVM_PREFIX="${prefix}";
20829eval LLVM_BINDIR="${prefix}/bin";
20830eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020831eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020832eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020833eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020834eval LLVM_INCLUDEDIR="${prefix}/include";
20835eval LLVM_INFODIR="${prefix}/info";
20836eval LLVM_MANDIR="${prefix}/man";
20837LLVM_CONFIGTIME=`date`
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020849# Place the various directores into the config.h file as #defines so that we
20850# can know about the installation paths within LLVM.
20851
Reid Spencere9de0912004-08-20 09:03:57 +000020852cat >>confdefs.h <<_ACEOF
20853#define LLVM_PREFIX "$LLVM_PREFIX"
20854_ACEOF
20855
20856
20857cat >>confdefs.h <<_ACEOF
20858#define LLVM_BINDIR "$LLVM_BINDIR"
20859_ACEOF
20860
20861
20862cat >>confdefs.h <<_ACEOF
20863#define LLVM_LIBDIR "$LLVM_LIBDIR"
20864_ACEOF
20865
20866
20867cat >>confdefs.h <<_ACEOF
20868#define LLVM_DATADIR "$LLVM_DATADIR"
20869_ACEOF
20870
20871
20872cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020873#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020874_ACEOF
20875
20876
20877cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020878#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020879_ACEOF
20880
20881
20882cat >>confdefs.h <<_ACEOF
20883#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20884_ACEOF
20885
20886
20887cat >>confdefs.h <<_ACEOF
20888#define LLVM_INFODIR "$LLVM_INFODIR"
20889_ACEOF
20890
20891
20892cat >>confdefs.h <<_ACEOF
20893#define LLVM_MANDIR "$LLVM_MANDIR"
20894_ACEOF
20895
20896
20897cat >>confdefs.h <<_ACEOF
20898#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20899_ACEOF
20900
20901
Eric Christopher790e11c2007-12-01 00:34:39 +000020902cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020903#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020904_ACEOF
20905
20906
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020907# Determine which bindings to build.
20908if test "$BINDINGS_TO_BUILD" = auto ; then
20909 BINDINGS_TO_BUILD=""
20910 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20911 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20912 fi
20913fi
20914BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20915
20916
20917# This isn't really configurey, but it avoids having to repeat the list in
20918# other files.
20919ALL_BINDINGS=ocaml
20920
20921
Gordon Henriksenf0915682007-10-02 16:42:22 +000020922# Do any work necessary to ensure that bindings have what they need.
20923binding_prereqs_failed=0
20924for a_binding in $BINDINGS_TO_BUILD ; do
20925 case "$a_binding" in
20926 ocaml)
20927 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020928 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20929echo "$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 +000020930 binding_prereqs_failed=1
20931 fi
20932 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020933 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20934echo "$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 +000020935 binding_prereqs_failed=1
20936 fi
20937 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020938 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20939echo "$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 +000020940 fi
20941 if test "x$with_ocaml_libdir" != xauto ; then
20942 OCAML_LIBDIR=$with_ocaml_libdir
20943
20944 else
20945 ocaml_stdlib="`"$OCAMLC" -where`"
20946 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20947 then
20948 # ocaml stdlib is beneath our prefix; use stdlib
20949 OCAML_LIBDIR=$ocaml_stdlib
20950
20951 else
20952 # ocaml stdlib is outside our prefix; use libdir/ocaml
20953 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20954
20955 fi
20956 fi
20957 ;;
20958 esac
20959done
20960if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020961 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20962echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20963 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020964fi
20965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020966{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20967echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20968if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020970else
20971 ac_ext=cpp
20972ac_cpp='$CXXCPP $CPPFLAGS'
20973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20976
20977 oldcxxflags="$CXXFLAGS"
20978 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020979 cat >conftest.$ac_ext <<_ACEOF
20980/* confdefs.h. */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020984/* end confdefs.h. */
20985
20986int
20987main ()
20988{
20989
20990 ;
20991 return 0;
20992}
20993_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020994rm -f conftest.$ac_objext
20995if { (ac_try="$ac_compile"
20996case "(($ac_try" in
20997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20998 *) ac_try_echo=$ac_try;;
20999esac
21000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21001 (eval "$ac_compile") 2>conftest.er1
21002 ac_status=$?
21003 grep -v '^ *+' conftest.er1 >conftest.err
21004 rm -f conftest.er1
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21009 { (case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21012esac
21013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_try") 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest.$ac_objext'
21019 { (case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21022esac
21023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_try") 2>&5
21025 ac_status=$?
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021028 llvm_cv_cxx_visibility_inlines_hidden=yes
21029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021030 echo "$as_me: failed program was:" >&5
21031sed 's/^/| /' conftest.$ac_ext >&5
21032
21033 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021035
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 CXXFLAGS="$oldcxxflags"
21038 ac_ext=c
21039ac_cpp='$CPP $CPPFLAGS'
21040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042ac_compiler_gnu=$ac_cv_c_compiler_gnu
21043
21044
21045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021046{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21047echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021048if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21049 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21050
21051else
21052 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21053
21054fi
21055
Gordon Henriksenf0915682007-10-02 16:42:22 +000021056
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021057if test "$llvm_cv_link_use_r" = "yes" ; then
21058 RPATH="-Wl,-R"
21059else
21060 RPATH="-Wl,-rpath"
21061fi
21062
21063
21064if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21065 RDYNAMIC="-Wl,-export-dynamic"
21066else
21067 RDYNAMIC=""
21068fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021069
21070
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021071
Eric Christophera1cba682010-08-08 02:44:25 +000021072ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021073
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021074
21075
21076
21077
21078
Douglas Gregor1555a232009-06-16 20:12:29 +000021079ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21080
21081ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21082
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021083ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21084
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021085ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21086
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021087ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021088
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021089
Reid Spencera773bd52006-08-04 18:18:08 +000021090ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021091
Eric Christopher360fa9a2011-10-26 00:42:12 +000021092
Reid Spencerea949cf2006-08-16 00:45:38 +000021093ac_config_files="$ac_config_files llvm.spec"
21094
21095
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021096ac_config_files="$ac_config_files docs/doxygen.cfg"
21097
21098if test -f ${srcdir}/tools/clang/README.txt; then
21099 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21100
21101fi
21102
Daniel Dunbar1ad92132011-11-10 19:59:35 +000021103ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021104
Eric Christopher360fa9a2011-10-26 00:42:12 +000021105
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021106ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021107
Eric Christopher360fa9a2011-10-26 00:42:12 +000021108
Reid Spencera773bd52006-08-04 18:18:08 +000021109ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021110
Reid Spencera773bd52006-08-04 18:18:08 +000021111ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021112
21113
Reid Spencera773bd52006-08-04 18:18:08 +000021114ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021115
21116
Reid Spencera773bd52006-08-04 18:18:08 +000021117ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021118
21119
Reid Spencera773bd52006-08-04 18:18:08 +000021120ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021121
21122
Reid Spencer8b2e1412006-11-17 03:32:33 +000021123ac_config_commands="$ac_config_commands runtime/Makefile"
21124
21125
Reid Spencera773bd52006-08-04 18:18:08 +000021126ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021127
21128
Reid Spencera773bd52006-08-04 18:18:08 +000021129ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021130
21131
Bill Wendlingf24eb392009-01-04 23:12:30 +000021132ac_config_commands="$ac_config_commands unittests/Makefile"
21133
21134
Reid Spencera773bd52006-08-04 18:18:08 +000021135ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021136
21137
Reid Spencera773bd52006-08-04 18:18:08 +000021138ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021139
21140
Reid Spencera773bd52006-08-04 18:18:08 +000021141ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021142
21143
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021144ac_config_commands="$ac_config_commands bindings/Makefile"
21145
21146
21147ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21148
21149
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021150
John Criswell7a73b802003-06-30 21:59:07 +000021151cat >confcache <<\_ACEOF
21152# This file is a shell script that caches the results of configure
21153# tests run on this system so they can be shared between configure
21154# scripts and configure runs, see configure's option --config-cache.
21155# It is not useful on other systems. If it contains results you don't
21156# want to keep, you may remove or edit it.
21157#
21158# config.status only pays attention to the cache file if you give it
21159# the --recheck option to rerun configure.
21160#
John Criswell0c38eaf2003-09-10 15:17:25 +000021161# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021162# loading this file, other *unset* `ac_cv_foo' will be assigned the
21163# following values.
21164
21165_ACEOF
21166
21167# The following way of writing the cache mishandles newlines in values,
21168# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021169# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021170# Ultrix sh set writes to stderr and can't be redirected directly,
21171# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021172(
21173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21174 eval ac_val=\$$ac_var
21175 case $ac_val in #(
21176 *${as_nl}*)
21177 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021178 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21179echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021180 esac
21181 case $ac_var in #(
21182 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021183 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021184 esac ;;
21185 esac
21186 done
21187
John Criswell7a73b802003-06-30 21:59:07 +000021188 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21190 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021191 # `set' does not quote correctly, so add quotes (double-quote
21192 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021193 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021194 "s/'/'\\\\''/g;
21195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021196 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021197 *)
21198 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021200 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021201 esac |
21202 sort
21203) |
John Criswell7a73b802003-06-30 21:59:07 +000021204 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021205 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021206 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021207 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21209 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21211 :end' >>confcache
21212if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21213 if test -w "$cache_file"; then
21214 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021215 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21216echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021217 cat confcache >$cache_file
21218 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021219 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21220echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021221 fi
21222fi
21223rm -f confcache
21224
21225test "x$prefix" = xNONE && prefix=$ac_default_prefix
21226# Let make expand exec_prefix.
21227test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21228
John Criswell7a73b802003-06-30 21:59:07 +000021229DEFS=-DHAVE_CONFIG_H
21230
John Criswell0c38eaf2003-09-10 15:17:25 +000021231ac_libobjs=
21232ac_ltlibobjs=
21233for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21234 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21238 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021239 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21240 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021241done
21242LIBOBJS=$ac_libobjs
21243
21244LTLIBOBJS=$ac_ltlibobjs
21245
21246
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021247if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021248 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21249Usually this means the macro was only invoked conditionally." >&5
21250echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21251Usually this means the macro was only invoked conditionally." >&2;}
21252 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021253fi
21254if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021255 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21256Usually this means the macro was only invoked conditionally." >&5
21257echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21258Usually this means the macro was only invoked conditionally." >&2;}
21259 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021260fi
John Criswell7a73b802003-06-30 21:59:07 +000021261
21262: ${CONFIG_STATUS=./config.status}
21263ac_clean_files_save=$ac_clean_files
21264ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21266echo "$as_me: creating $CONFIG_STATUS" >&6;}
21267cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021268#! $SHELL
21269# Generated by $as_me.
21270# Run this file to recreate the current configuration.
21271# Compiler output produced by configure, useful for debugging
21272# configure, is in config.log if it exists.
21273
21274debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021275ac_cs_recheck=false
21276ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021277SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280cat >>$CONFIG_STATUS <<\_ACEOF
21281## --------------------- ##
21282## M4sh Initialization. ##
21283## --------------------- ##
21284
21285# Be Bourne compatible
21286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021287 emulate sh
21288 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021289 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021290 # is contrary to our usage. Disable this feature.
21291 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021292 setopt NO_GLOB_SUBST
21293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021294 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021296BIN_SH=xpg4; export BIN_SH # for Tru64
21297DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021298
John Criswell7a73b802003-06-30 21:59:07 +000021299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300# PATH needs CR
21301# Avoid depending upon Character Ranges.
21302as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21303as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21304as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21305as_cr_digits='0123456789'
21306as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021307
21308# The user is always right.
21309if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021310 echo "#! /bin/sh" >conf$$.sh
21311 echo "exit 0" >>conf$$.sh
21312 chmod +x conf$$.sh
21313 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21314 PATH_SEPARATOR=';'
21315 else
21316 PATH_SEPARATOR=:
21317 fi
21318 rm -f conf$$.sh
21319fi
21320
21321# Support unset when possible.
21322if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21323 as_unset=unset
21324else
21325 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021326fi
John Criswell7a73b802003-06-30 21:59:07 +000021327
Reid Spencera773bd52006-08-04 18:18:08 +000021328
21329# IFS
21330# We need space, tab and new line, in precisely that order. Quoting is
21331# there to prevent editors from complaining about space-tab.
21332# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21333# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021334as_nl='
21335'
Reid Spencera773bd52006-08-04 18:18:08 +000021336IFS=" "" $as_nl"
21337
21338# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021339case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021340 *[\\/]* ) as_myself=$0 ;;
21341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021342for as_dir in $PATH
21343do
21344 IFS=$as_save_IFS
21345 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21347done
Reid Spencera773bd52006-08-04 18:18:08 +000021348IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021349
Reid Spencera773bd52006-08-04 18:18:08 +000021350 ;;
21351esac
21352# We did not find ourselves, most probably we were run as `sh COMMAND'
21353# in which case we are not to be found in the path.
21354if test "x$as_myself" = x; then
21355 as_myself=$0
21356fi
21357if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021358 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21359 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021360fi
21361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021362# Work around bugs in pre-3.0 UWIN ksh.
21363for as_var in ENV MAIL MAILPATH
21364do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021365done
21366PS1='$ '
21367PS2='> '
21368PS4='+ '
21369
21370# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021371for as_var in \
21372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21374 LC_TELEPHONE LC_TIME
21375do
21376 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21377 eval $as_var=C; export $as_var
21378 else
21379 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021380 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021381done
Torok Edwin871384f2010-01-26 08:50:50 +000021382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021384if expr a : '\(a\)' >/dev/null 2>&1 &&
21385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21386 as_expr=expr
21387else
21388 as_expr=false
21389fi
21390
21391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21392 as_basename=basename
21393else
21394 as_basename=false
21395fi
21396
21397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021398# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021399as_me=`$as_basename -- "$0" ||
21400$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21401 X"$0" : 'X\(//\)$' \| \
21402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021403echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021404 sed '/^.*\/\([^/][^/]*\)\/*$/{
21405 s//\1/
21406 q
21407 }
21408 /^X\/\(\/\/\)$/{
21409 s//\1/
21410 q
21411 }
21412 /^X\/\(\/\).*/{
21413 s//\1/
21414 q
21415 }
21416 s/.*/./; q'`
21417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021418# CDPATH.
21419$as_unset CDPATH
21420
21421
21422
21423 as_lineno_1=$LINENO
21424 as_lineno_2=$LINENO
21425 test "x$as_lineno_1" != "x$as_lineno_2" &&
21426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21427
21428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21429 # uniformly replaced by the line number. The first 'sed' inserts a
21430 # line-number line after each line using $LINENO; the second 'sed'
21431 # does the real work. The second script uses 'N' to pair each
21432 # line-number line with the line containing $LINENO, and appends
21433 # trailing '-' during substitution so that $LINENO is not a special
21434 # case at line end.
21435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21436 # scripts with optimization help from Paolo Bonzini. Blame Lee
21437 # E. McMahon (1931-1989) for sed's syntax. :-)
21438 sed -n '
21439 p
21440 /[$]LINENO/=
21441 ' <$as_myself |
21442 sed '
21443 s/[$]LINENO.*/&-/
21444 t lineno
21445 b
21446 :lineno
21447 N
21448 :loop
21449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21450 t loop
21451 s/-\n.*//
21452 ' >$as_me.lineno &&
21453 chmod +x "$as_me.lineno" ||
21454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21455 { (exit 1); exit 1; }; }
21456
21457 # Don't try to exec as it changes $[0], causing all sort of problems
21458 # (the dirname of $[0] is not the place where we might find the
21459 # original and so on. Autoconf is especially sensitive to this).
21460 . "./$as_me.lineno"
21461 # Exit status is that of the last command.
21462 exit
21463}
21464
21465
21466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21467 as_dirname=dirname
21468else
21469 as_dirname=false
21470fi
Reid Spencera773bd52006-08-04 18:18:08 +000021471
21472ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021473case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021474-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021475 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021477 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021478 esac;;
21479*)
21480 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021481esac
21482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021483if expr a : '\(a\)' >/dev/null 2>&1 &&
21484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21485 as_expr=expr
21486else
21487 as_expr=false
21488fi
21489
John Criswell7a73b802003-06-30 21:59:07 +000021490rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021491if test -d conf$$.dir; then
21492 rm -f conf$$.dir/conf$$.file
21493else
21494 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021495 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021497echo >conf$$.file
21498if ln -s conf$$.file conf$$ 2>/dev/null; then
21499 as_ln_s='ln -s'
21500 # ... but there are two gotchas:
21501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21503 # In both cases, we have to default to `cp -p'.
21504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021505 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021506elif ln conf$$.file conf$$ 2>/dev/null; then
21507 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021508else
21509 as_ln_s='cp -p'
21510fi
Reid Spencera773bd52006-08-04 18:18:08 +000021511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21512rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021513
John Criswell0c38eaf2003-09-10 15:17:25 +000021514if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021515 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021516else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021517 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021518 as_mkdir_p=false
21519fi
21520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021521# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21522# systems may use methods other than mode bits to determine executability.
21523cat >conf$$.file <<_ASEOF
21524#! /bin/sh
21525exit 0
21526_ASEOF
21527chmod +x conf$$.file
21528if test -x conf$$.file >/dev/null 2>&1; then
21529 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021532fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021534
21535# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021536as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021537
21538# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021539as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021540
21541
John Criswell7a73b802003-06-30 21:59:07 +000021542exec 6>&1
21543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021544# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021545# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021546# values after options handling.
21547ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021548This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021550
21551 CONFIG_FILES = $CONFIG_FILES
21552 CONFIG_HEADERS = $CONFIG_HEADERS
21553 CONFIG_LINKS = $CONFIG_LINKS
21554 CONFIG_COMMANDS = $CONFIG_COMMANDS
21555 $ $0 $@
21556
Reid Spencera773bd52006-08-04 18:18:08 +000021557on `(hostname || uname -n) 2>/dev/null | sed 1q`
21558"
21559
John Criswell7a73b802003-06-30 21:59:07 +000021560_ACEOF
21561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021562cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021563# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021564config_files="$ac_config_files"
21565config_headers="$ac_config_headers"
21566config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021567
Reid Spencera773bd52006-08-04 18:18:08 +000021568_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021570cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021571ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572\`$as_me' instantiates files from templates according to the
21573current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021576
21577 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021578 -V, --version print version number, then exit
21579 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021580 -d, --debug don't remove temporary files
21581 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582 --file=FILE[:TEMPLATE]
21583 instantiate the configuration file FILE
21584 --header=FILE[:TEMPLATE]
21585 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021586
21587Configuration files:
21588$config_files
21589
21590Configuration headers:
21591$config_headers
21592
John Criswellc764fbc2003-09-06 15:17:13 +000021593Configuration commands:
21594$config_commands
21595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021596Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021597
Reid Spencera773bd52006-08-04 18:18:08 +000021598_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021599cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021600ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021601llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602configured by $0, generated by GNU Autoconf 2.60,
21603 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021605Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021606This config.status script is free software; the Free Software Foundation
21607gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021608
21609ac_pwd='$ac_pwd'
21610srcdir='$srcdir'
21611INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021612_ACEOF
21613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021614cat >>$CONFIG_STATUS <<\_ACEOF
21615# If no file are specified by the user, then we need to provide default
21616# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021617ac_need_defaults=:
21618while test $# != 0
21619do
21620 case $1 in
21621 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021622 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21623 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021624 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021625 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021626 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021627 ac_option=$1
21628 ac_optarg=$2
21629 ac_shift=shift
21630 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021631 esac
21632
John Criswell0c38eaf2003-09-10 15:17:25 +000021633 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021634 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21636 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021638 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021639 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021640 debug=: ;;
21641 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021642 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021643 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021644 ac_need_defaults=false;;
21645 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021646 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021648 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021649 --he | --h)
21650 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021651 { echo "$as_me: error: ambiguous option: $1
21652Try \`$0 --help' for more information." >&2
21653 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021654 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021655 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21658 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021659
21660 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021661 -*) { echo "$as_me: error: unrecognized option: $1
21662Try \`$0 --help' for more information." >&2
21663 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021665 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021666 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021667
21668 esac
21669 shift
21670done
21671
John Criswell0c38eaf2003-09-10 15:17:25 +000021672ac_configure_extra_args=
21673
21674if $ac_cs_silent; then
21675 exec 6>/dev/null
21676 ac_configure_extra_args="$ac_configure_extra_args --silent"
21677fi
21678
21679_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021680cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021681if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021682 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21683 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021684 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021685 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021686fi
21687
John Criswell7a73b802003-06-30 21:59:07 +000021688_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021689cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021690exec 5>>config.log
21691{
21692 echo
21693 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21694## Running $as_me. ##
21695_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021696 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021697} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021698
Reid Spencera773bd52006-08-04 18:18:08 +000021699_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021700cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021701#
Reid Spencera773bd52006-08-04 18:18:08 +000021702# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021703#
Reid Spencerc0682832005-02-24 19:05:19 +000021704llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021705
21706_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021709
21710# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021711for ac_config_target in $ac_config_targets
21712do
Reid Spencera773bd52006-08-04 18:18:08 +000021713 case $ac_config_target in
21714 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021715 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021716 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21717 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021718 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021719 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021720 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021721 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021722 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021723 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21724 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021725 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021726 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021727 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21728 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21729 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21730 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21731 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021732 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021733 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21734 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021735 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021736 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21737 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21738 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021739 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21740 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021742 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21743echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21744 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021745 esac
21746done
21747
Reid Spencera773bd52006-08-04 18:18:08 +000021748
John Criswell7a73b802003-06-30 21:59:07 +000021749# If the user did not use the arguments to specify the items to instantiate,
21750# then the envvar interface is used. Set only those that are not.
21751# We use the long form for the default assignment because of an extremely
21752# bizarre bug on SunOS 4.1.3.
21753if $ac_need_defaults; then
21754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021757fi
21758
John Criswell0c38eaf2003-09-10 15:17:25 +000021759# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021760# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021761# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021762# Hook for its removal unless debugging.
21763# Note that there is a small window in which the directory will not be cleaned:
21764# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021765$debug ||
21766{
Reid Spencera773bd52006-08-04 18:18:08 +000021767 tmp=
21768 trap 'exit_status=$?
21769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21770' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021771 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021772}
John Criswell7a73b802003-06-30 21:59:07 +000021773# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021774
John Criswell7a73b802003-06-30 21:59:07 +000021775{
Reid Spencera773bd52006-08-04 18:18:08 +000021776 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021777 test -n "$tmp" && test -d "$tmp"
21778} ||
21779{
Reid Spencera773bd52006-08-04 18:18:08 +000021780 tmp=./conf$$-$RANDOM
21781 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021782} ||
21783{
21784 echo "$me: cannot create a temporary directory in ." >&2
21785 { (exit 1); exit 1; }
21786}
John Criswell7a73b802003-06-30 21:59:07 +000021787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021788#
21789# Set up the sed scripts for CONFIG_FILES section.
21790#
21791
21792# No need to generate the scripts if there are no CONFIG_FILES.
21793# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021794if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021795
21796_ACEOF
21797
Reid Spencera773bd52006-08-04 18:18:08 +000021798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021799
Reid Spencera773bd52006-08-04 18:18:08 +000021800ac_delim='%!_!# '
21801for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802 cat >conf$$subs.sed <<_ACEOF
21803SHELL!$SHELL$ac_delim
21804PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21805PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21806PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21807PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21808PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21809PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21810exec_prefix!$exec_prefix$ac_delim
21811prefix!$prefix$ac_delim
21812program_transform_name!$program_transform_name$ac_delim
21813bindir!$bindir$ac_delim
21814sbindir!$sbindir$ac_delim
21815libexecdir!$libexecdir$ac_delim
21816datarootdir!$datarootdir$ac_delim
21817datadir!$datadir$ac_delim
21818sysconfdir!$sysconfdir$ac_delim
21819sharedstatedir!$sharedstatedir$ac_delim
21820localstatedir!$localstatedir$ac_delim
21821includedir!$includedir$ac_delim
21822oldincludedir!$oldincludedir$ac_delim
21823docdir!$docdir$ac_delim
21824infodir!$infodir$ac_delim
21825htmldir!$htmldir$ac_delim
21826dvidir!$dvidir$ac_delim
21827pdfdir!$pdfdir$ac_delim
21828psdir!$psdir$ac_delim
21829libdir!$libdir$ac_delim
21830localedir!$localedir$ac_delim
21831mandir!$mandir$ac_delim
21832DEFS!$DEFS$ac_delim
21833ECHO_C!$ECHO_C$ac_delim
21834ECHO_N!$ECHO_N$ac_delim
21835ECHO_T!$ECHO_T$ac_delim
21836LIBS!$LIBS$ac_delim
21837build_alias!$build_alias$ac_delim
21838host_alias!$host_alias$ac_delim
21839target_alias!$target_alias$ac_delim
21840LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021841CC!$CC$ac_delim
21842CFLAGS!$CFLAGS$ac_delim
21843LDFLAGS!$LDFLAGS$ac_delim
21844CPPFLAGS!$CPPFLAGS$ac_delim
21845ac_ct_CC!$ac_ct_CC$ac_delim
21846EXEEXT!$EXEEXT$ac_delim
21847OBJEXT!$OBJEXT$ac_delim
21848CXX!$CXX$ac_delim
21849CXXFLAGS!$CXXFLAGS$ac_delim
21850ac_ct_CXX!$ac_ct_CXX$ac_delim
21851CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021853ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21854LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021855build!$build$ac_delim
21856build_cpu!$build_cpu$ac_delim
21857build_vendor!$build_vendor$ac_delim
21858build_os!$build_os$ac_delim
21859host!$host$ac_delim
21860host_cpu!$host_cpu$ac_delim
21861host_vendor!$host_vendor$ac_delim
21862host_os!$host_os$ac_delim
21863target!$target$ac_delim
21864target_cpu!$target_cpu$ac_delim
21865target_vendor!$target_vendor$ac_delim
21866target_os!$target_os$ac_delim
21867OS!$OS$ac_delim
21868HOST_OS!$HOST_OS$ac_delim
21869TARGET_OS!$TARGET_OS$ac_delim
21870LINKALL!$LINKALL$ac_delim
21871NOLINKALL!$NOLINKALL$ac_delim
21872LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21873LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21874ARCH!$ARCH$ac_delim
21875ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021876GREP!$GREP$ac_delim
21877EGREP!$EGREP$ac_delim
21878LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21879BUILD_CC!$BUILD_CC$ac_delim
21880BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21881BUILD_CXX!$BUILD_CXX$ac_delim
21882CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021883ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021884ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21885ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21886DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21887ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21888EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21889DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21890DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21891JIT!$JIT$ac_delim
21892TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021893ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021894ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021895LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021896ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021898ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021899ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021900_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021903 break
21904 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021905 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21906echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21907 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021908 else
21909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021910 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021911done
21912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021913ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21914if test -n "$ac_eof"; then
21915 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21916 ac_eof=`expr $ac_eof + 1`
21917fi
21918
21919cat >>$CONFIG_STATUS <<_ACEOF
21920cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21921/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021923sed '
21924s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21925s/^/s,@/; s/!/@,|#_!!_#|/
21926:n
21927t n
21928s/'"$ac_delim"'$/,g/; t
21929s/$/\\/; p
21930N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21931' >>$CONFIG_STATUS <conf$$subs.sed
21932rm -f conf$$subs.sed
21933cat >>$CONFIG_STATUS <<_ACEOF
21934CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021935_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021936
21937
21938ac_delim='%!_!# '
21939for ac_last_try in false false false false false :; do
21940 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021941ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021942TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21943LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21944LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021945LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021946LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021947ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021948OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021949EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021950EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021951CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021952BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021953INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021954NM!$NM$ac_delim
21955ifGNUmake!$ifGNUmake$ac_delim
21956LN_S!$LN_S$ac_delim
21957CMP!$CMP$ac_delim
21958CP!$CP$ac_delim
21959DATE!$DATE$ac_delim
21960FIND!$FIND$ac_delim
21961MKDIR!$MKDIR$ac_delim
21962MV!$MV$ac_delim
21963RANLIB!$RANLIB$ac_delim
21964AR!$AR$ac_delim
21965RM!$RM$ac_delim
21966SED!$SED$ac_delim
21967TAR!$TAR$ac_delim
21968BINPWD!$BINPWD$ac_delim
21969GRAPHVIZ!$GRAPHVIZ$ac_delim
21970DOT!$DOT$ac_delim
21971FDP!$FDP$ac_delim
21972NEATO!$NEATO$ac_delim
21973TWOPI!$TWOPI$ac_delim
21974CIRCO!$CIRCO$ac_delim
21975GV!$GV$ac_delim
21976DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021977XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021978PERL!$PERL$ac_delim
21979HAVE_PERL!$HAVE_PERL$ac_delim
21980INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21981INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21982INSTALL_DATA!$INSTALL_DATA$ac_delim
21983BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021984CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021985DOXYGEN!$DOXYGEN$ac_delim
21986GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021987GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988POD2HTML!$POD2HTML$ac_delim
21989POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021990PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021991RUNTEST!$RUNTEST$ac_delim
21992TCLSH!$TCLSH$ac_delim
21993ZIP!$ZIP$ac_delim
21994OCAMLC!$OCAMLC$ac_delim
21995OCAMLOPT!$OCAMLOPT$ac_delim
21996OCAMLDEP!$OCAMLDEP$ac_delim
21997OCAMLDOC!$OCAMLDOC$ac_delim
21998GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021999HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022000INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22001INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22002CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22003CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22004LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022005NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22006NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22007USE_UDIS86!$USE_UDIS86$ac_delim
22008USE_OPROFILE!$USE_OPROFILE$ac_delim
22009HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22010HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22011MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022013SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022014LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22015LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22016LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22017LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22018LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22019LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22020LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22021LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22022LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22023LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22024BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22025ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022026OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22027ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22028RPATH!$RPATH$ac_delim
22029RDYNAMIC!$RDYNAMIC$ac_delim
22030LIBOBJS!$LIBOBJS$ac_delim
22031LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022032_ACEOF
22033
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022034 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022035 break
22036 elif $ac_last_try; then
22037 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22038echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22039 { (exit 1); exit 1; }; }
22040 else
22041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22042 fi
22043done
22044
22045ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22046if test -n "$ac_eof"; then
22047 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22048 ac_eof=`expr $ac_eof + 1`
22049fi
22050
22051cat >>$CONFIG_STATUS <<_ACEOF
22052cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22054_ACEOF
22055sed '
22056s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22057s/^/s,@/; s/!/@,|#_!!_#|/
22058:n
22059t n
22060s/'"$ac_delim"'$/,g/; t
22061s/$/\\/; p
22062N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22063' >>$CONFIG_STATUS <conf$$subs.sed
22064rm -f conf$$subs.sed
22065cat >>$CONFIG_STATUS <<_ACEOF
22066:end
22067s/|#_!!_#|//g
22068CEOF$ac_eof
22069_ACEOF
22070
22071
Reid Spencera773bd52006-08-04 18:18:08 +000022072# VPATH may cause trouble with some makes, so we remove $(srcdir),
22073# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22074# trailing colons and then remove the whole line if VPATH becomes empty
22075# (actually we leave an empty line to preserve line numbers).
22076if test "x$srcdir" = x.; then
22077 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22078s/:*\$(srcdir):*/:/
22079s/:*\${srcdir}:*/:/
22080s/:*@srcdir@:*/:/
22081s/^\([^=]*=[ ]*\):*/\1/
22082s/:*$//
22083s/^[^=]*=[ ]*$//
22084}'
22085fi
22086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022087cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022088fi # test -n "$CONFIG_FILES"
22089
Reid Spencera773bd52006-08-04 18:18:08 +000022090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022091for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022092do
22093 case $ac_tag in
22094 :[FHLC]) ac_mode=$ac_tag; continue;;
22095 esac
22096 case $ac_mode$ac_tag in
22097 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22099echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22100 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022101 :[FH]-) ac_tag=-:-;;
22102 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22103 esac
22104 ac_save_IFS=$IFS
22105 IFS=:
22106 set x $ac_tag
22107 IFS=$ac_save_IFS
22108 shift
22109 ac_file=$1
22110 shift
22111
22112 case $ac_mode in
22113 :L) ac_source=$1;;
22114 :[FH])
22115 ac_file_inputs=
22116 for ac_f
22117 do
22118 case $ac_f in
22119 -) ac_f="$tmp/stdin";;
22120 *) # Look for the file first in the build tree, then in the source tree
22121 # (if the path is not absolute). The absolute path cannot be DOS-style,
22122 # because $ac_f cannot contain `:'.
22123 test -f "$ac_f" ||
22124 case $ac_f in
22125 [\\/$]*) false;;
22126 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22127 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022128 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22129echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22130 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022131 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022132 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022133 done
22134
22135 # Let's still pretend it is `configure' which instantiates (i.e., don't
22136 # use $as_me), people would be surprised to read:
22137 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022138 configure_input="Generated from "`IFS=:
22139 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022140 if test x"$ac_file" != x-; then
22141 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022142 { echo "$as_me:$LINENO: creating $ac_file" >&5
22143echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022144 fi
22145
22146 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022147 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022148 esac
22149 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022150 esac
22151
Reid Spencera773bd52006-08-04 18:18:08 +000022152 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022153$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022154 X"$ac_file" : 'X\(//\)[^/]' \| \
22155 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022156 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022157echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22159 s//\1/
22160 q
22161 }
22162 /^X\(\/\/\)[^/].*/{
22163 s//\1/
22164 q
22165 }
22166 /^X\(\/\/\)$/{
22167 s//\1/
22168 q
22169 }
22170 /^X\(\/\).*/{
22171 s//\1/
22172 q
22173 }
22174 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022175 { as_dir="$ac_dir"
22176 case $as_dir in #(
22177 -*) as_dir=./$as_dir;;
22178 esac
22179 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22180 as_dirs=
22181 while :; do
22182 case $as_dir in #(
22183 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22184 *) as_qdir=$as_dir;;
22185 esac
22186 as_dirs="'$as_qdir' $as_dirs"
22187 as_dir=`$as_dirname -- "$as_dir" ||
22188$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22189 X"$as_dir" : 'X\(//\)[^/]' \| \
22190 X"$as_dir" : 'X\(//\)$' \| \
22191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22192echo X"$as_dir" |
22193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22194 s//\1/
22195 q
22196 }
22197 /^X\(\/\/\)[^/].*/{
22198 s//\1/
22199 q
22200 }
22201 /^X\(\/\/\)$/{
22202 s//\1/
22203 q
22204 }
22205 /^X\(\/\).*/{
22206 s//\1/
22207 q
22208 }
22209 s/.*/./; q'`
22210 test -d "$as_dir" && break
22211 done
22212 test -z "$as_dirs" || eval "mkdir $as_dirs"
22213 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22214echo "$as_me: error: cannot create directory $as_dir" >&2;}
22215 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022216 ac_builddir=.
22217
Reid Spencera773bd52006-08-04 18:18:08 +000022218case "$ac_dir" in
22219.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22220*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022221 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022222 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022223 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022224 case $ac_top_builddir_sub in
22225 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22226 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22227 esac ;;
22228esac
22229ac_abs_top_builddir=$ac_pwd
22230ac_abs_builddir=$ac_pwd$ac_dir_suffix
22231# for backward compatibility:
22232ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022233
22234case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022235 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022236 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022237 ac_top_srcdir=$ac_top_builddir_sub
22238 ac_abs_top_srcdir=$ac_pwd ;;
22239 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022240 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022241 ac_top_srcdir=$srcdir
22242 ac_abs_top_srcdir=$srcdir ;;
22243 *) # Relative name.
22244 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22245 ac_top_srcdir=$ac_top_build_prefix$srcdir
22246 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022247esac
Reid Spencera773bd52006-08-04 18:18:08 +000022248ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022249
John Criswell7a73b802003-06-30 21:59:07 +000022250
Reid Spencera773bd52006-08-04 18:18:08 +000022251 case $ac_mode in
22252 :F)
22253 #
22254 # CONFIG_FILE
22255 #
John Criswell7a73b802003-06-30 21:59:07 +000022256
22257 case $INSTALL in
22258 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022259 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022260 esac
John Criswell7a73b802003-06-30 21:59:07 +000022261_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022263cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022264# If the template does not know about datarootdir, expand it.
22265# FIXME: This hack should be removed a few years after 2.60.
22266ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022267
22268case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022269 p
22270 q
22271}
22272/@datadir@/p
22273/@docdir@/p
22274/@infodir@/p
22275/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022276/@mandir@/p
22277' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022278*datarootdir*) ac_datarootdir_seen=yes;;
22279*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022280 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22281echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022282_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022283cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022284 ac_datarootdir_hack='
22285 s&@datadir@&$datadir&g
22286 s&@docdir@&$docdir&g
22287 s&@infodir@&$infodir&g
22288 s&@localedir@&$localedir&g
22289 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022291esac
22292_ACEOF
22293
22294# Neutralize VPATH when `$srcdir' = `.'.
22295# Shell code in configure.ac might set extrasub.
22296# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022297cat >>$CONFIG_STATUS <<_ACEOF
22298 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022299$extrasub
22300_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022301cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022302:t
22303/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022304s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022305s&@top_builddir@&$ac_top_builddir_sub&;t t
22306s&@srcdir@&$ac_srcdir&;t t
22307s&@abs_srcdir@&$ac_abs_srcdir&;t t
22308s&@top_srcdir@&$ac_top_srcdir&;t t
22309s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22310s&@builddir@&$ac_builddir&;t t
22311s&@abs_builddir@&$ac_abs_builddir&;t t
22312s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22313s&@INSTALL@&$ac_INSTALL&;t t
22314$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022315" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022316
Reid Spencera773bd52006-08-04 18:18:08 +000022317test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22318 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022320 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022321which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022322echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022323which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022324
Reid Spencera773bd52006-08-04 18:18:08 +000022325 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022326 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022327 -) cat "$tmp/out"; rm -f "$tmp/out";;
22328 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22329 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022330 ;;
22331 :H)
22332 #
22333 # CONFIG_HEADER
22334 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022335_ACEOF
22336
22337# Transform confdefs.h into a sed script `conftest.defines', that
22338# substitutes the proper values into config.h.in to produce config.h.
22339rm -f conftest.defines conftest.tail
22340# First, append a space to every undef/define line, to ease matching.
22341echo 's/$/ /' >conftest.defines
22342# Then, protect against being on the right side of a sed subst, or in
22343# an unquoted here document, in config.status. If some macros were
22344# called several times there might be several #defines for the same
22345# symbol, which is useless. But do not sort them, since the last
22346# AC_DEFINE must be honored.
22347ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22348# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22349# NAME is the cpp macro being defined, VALUE is the value it is being given.
22350# PARAMS is the parameter list in the macro definition--in most cases, it's
22351# just an empty string.
22352ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22353ac_dB='\\)[ (].*,\\1define\\2'
22354ac_dC=' '
22355ac_dD=' ,'
22356
22357uniq confdefs.h |
22358 sed -n '
22359 t rset
22360 :rset
22361 s/^[ ]*#[ ]*define[ ][ ]*//
22362 t ok
22363 d
22364 :ok
22365 s/[\\&,]/\\&/g
22366 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22367 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22368 ' >>conftest.defines
22369
22370# Remove the space that was appended to ease matching.
22371# Then replace #undef with comments. This is necessary, for
22372# example, in the case of _POSIX_SOURCE, which is predefined and required
22373# on some systems where configure will not decide to define it.
22374# (The regexp can be short, since the line contains either #define or #undef.)
22375echo 's/ $//
22376s,^[ #]*u.*,/* & */,' >>conftest.defines
22377
22378# Break up conftest.defines:
22379ac_max_sed_lines=50
22380
22381# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22382# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22383# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22384# et cetera.
22385ac_in='$ac_file_inputs'
22386ac_out='"$tmp/out1"'
22387ac_nxt='"$tmp/out2"'
22388
22389while :
22390do
22391 # Write a here document:
22392 cat >>$CONFIG_STATUS <<_ACEOF
22393 # First, check the format of the line:
22394 cat >"\$tmp/defines.sed" <<\\CEOF
22395/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22396/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22397b
22398:def
22399_ACEOF
22400 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22401 echo 'CEOF
22402 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22403 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22404 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22405 grep . conftest.tail >/dev/null || break
22406 rm -f conftest.defines
22407 mv conftest.tail conftest.defines
22408done
22409rm -f conftest.defines conftest.tail
22410
22411echo "ac_result=$ac_in" >>$CONFIG_STATUS
22412cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022413 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022414 echo "/* $configure_input */" >"$tmp/config.h"
22415 cat "$ac_result" >>"$tmp/config.h"
22416 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22417 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22418echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022419 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022420 rm -f $ac_file
22421 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022422 fi
22423 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022424 echo "/* $configure_input */"
22425 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022426 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022427 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022428 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022430 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22431echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022432 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022433 esac
John Criswell7a73b802003-06-30 21:59:07 +000022434
Reid Spencera773bd52006-08-04 18:18:08 +000022435
22436 case $ac_file$ac_mode in
22437 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022438 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022439 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022441 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022443 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022445 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022447 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022449 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022451 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022453 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022455 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022457 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022459 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022460 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022461 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022462 ${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 +000022463
22464 esac
22465done # for ac_tag
22466
John Criswell7a73b802003-06-30 21:59:07 +000022467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022468{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022469_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022470chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022471ac_clean_files=$ac_clean_files_save
22472
22473
22474# configure is writing to config.log, and then calls config.status.
22475# config.status does its own redirection, appending to config.log.
22476# Unfortunately, on DOS this fails, as config.log is still kept open
22477# by configure, so config.status won't be able to write to it; its
22478# output is simply discarded. So we exec the FD to /dev/null,
22479# effectively closing config.log, so it can be properly (re)opened and
22480# appended to by config.status. When coming back to configure, we
22481# need to make the FD available again.
22482if test "$no_create" != yes; then
22483 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022484 ac_config_status_args=
22485 test "$silent" = yes &&
22486 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022487 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022489 exec 5>>config.log
22490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22491 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022492 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022493fi
22494
John Criswell12399a12003-09-30 15:55:44 +000022495#
22496# CONFIG_SUBDIRS section.
22497#
22498if test "$no_recursion" != yes; then
22499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022500 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022501 ac_sub_configure_args=
22502 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022503 eval "set x $ac_configure_args"
22504 shift
22505 for ac_arg
22506 do
John Criswell12399a12003-09-30 15:55:44 +000022507 if test -n "$ac_prev"; then
22508 ac_prev=
22509 continue
22510 fi
22511 case $ac_arg in
22512 -cache-file | --cache-file | --cache-fil | --cache-fi \
22513 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22514 ac_prev=cache_file ;;
22515 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22516 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22517 | --c=*)
22518 ;;
22519 --config-cache | -C)
22520 ;;
22521 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22522 ac_prev=srcdir ;;
22523 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22524 ;;
22525 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22526 ac_prev=prefix ;;
22527 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22528 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022529 *)
22530 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022531 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022532 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022533 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022534 esac
22535 done
22536
22537 # Always prepend --prefix to ensure using the same prefix
22538 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022539 ac_arg="--prefix=$prefix"
22540 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022541 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022542 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022543 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022544
22545 ac_popdir=`pwd`
22546 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22547
22548 # Do not complain, so a configure script can configure whichever
22549 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022550 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022551
Reid Spencera773bd52006-08-04 18:18:08 +000022552 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022553 echo "$as_me:$LINENO: $ac_msg" >&5
22554 echo "$ac_msg" >&6
22555 { as_dir="$ac_dir"
22556 case $as_dir in #(
22557 -*) as_dir=./$as_dir;;
22558 esac
22559 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22560 as_dirs=
22561 while :; do
22562 case $as_dir in #(
22563 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22564 *) as_qdir=$as_dir;;
22565 esac
22566 as_dirs="'$as_qdir' $as_dirs"
22567 as_dir=`$as_dirname -- "$as_dir" ||
22568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22569 X"$as_dir" : 'X\(//\)[^/]' \| \
22570 X"$as_dir" : 'X\(//\)$' \| \
22571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22572echo X"$as_dir" |
22573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22574 s//\1/
22575 q
22576 }
22577 /^X\(\/\/\)[^/].*/{
22578 s//\1/
22579 q
22580 }
22581 /^X\(\/\/\)$/{
22582 s//\1/
22583 q
22584 }
22585 /^X\(\/\).*/{
22586 s//\1/
22587 q
22588 }
22589 s/.*/./; q'`
22590 test -d "$as_dir" && break
22591 done
22592 test -z "$as_dirs" || eval "mkdir $as_dirs"
22593 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22594echo "$as_me: error: cannot create directory $as_dir" >&2;}
22595 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022596 ac_builddir=.
22597
Reid Spencera773bd52006-08-04 18:18:08 +000022598case "$ac_dir" in
22599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22600*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022602 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022603 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022604 case $ac_top_builddir_sub in
22605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22607 esac ;;
22608esac
22609ac_abs_top_builddir=$ac_pwd
22610ac_abs_builddir=$ac_pwd$ac_dir_suffix
22611# for backward compatibility:
22612ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022613
22614case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022615 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022616 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022617 ac_top_srcdir=$ac_top_builddir_sub
22618 ac_abs_top_srcdir=$ac_pwd ;;
22619 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022620 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022621 ac_top_srcdir=$srcdir
22622 ac_abs_top_srcdir=$srcdir ;;
22623 *) # Relative name.
22624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22625 ac_top_srcdir=$ac_top_build_prefix$srcdir
22626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022627esac
Reid Spencera773bd52006-08-04 18:18:08 +000022628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022629
22630
Reid Spencera773bd52006-08-04 18:18:08 +000022631 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022632
22633 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022634 if test -f "$ac_srcdir/configure.gnu"; then
22635 ac_sub_configure=$ac_srcdir/configure.gnu
22636 elif test -f "$ac_srcdir/configure"; then
22637 ac_sub_configure=$ac_srcdir/configure
22638 elif test -f "$ac_srcdir/configure.in"; then
22639 # This should be Cygnus configure.
22640 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022641 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022642 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22643echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022644 ac_sub_configure=
22645 fi
22646
22647 # The recursion is here.
22648 if test -n "$ac_sub_configure"; then
22649 # Make the cache file name correct relative to the subdirectory.
22650 case $cache_file in
22651 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022652 *) # Relative name.
22653 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022654 esac
22655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022656 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22657echo "$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 +000022658 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022659 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22660 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022661 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22662echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22663 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022664 fi
22665
Reid Spencera773bd52006-08-04 18:18:08 +000022666 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022667 done
22668fi
22669