blob: 1d30b1c407e73d844fbb3447d83a27ca7cbd051c [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,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001422 hexagon, 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 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003496 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003497 llvm-gcc) ;;
3498 test-suite) ;;
3499 llvm-test) ;;
3500 poolalloc) ;;
3501 llvm-poolalloc) ;;
3502 *)
3503 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505 ;;
3506 esac
3507 fi
3508done
3509
3510# Check whether --enable-polly was given.
3511if test "${enable_polly+set}" = set; then
3512 enableval=$enable_polly;
3513else
3514 enableval=default
3515fi
3516
3517case "$enableval" in
3518 yes) ENABLE_POLLY=1
3519 ;;
3520 no) ENABLE_POLLY=0
3521 ;;
3522 default) ENABLE_POLLY=1
3523 ;;
3524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526 { (exit 1); exit 1; }; } ;;
3527esac
3528
3529
3530if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3531 LLVM_HAS_POLLY=1
3532
3533 subdirs="$subdirs tools/polly"
3534
3535fi
3536
3537
3538# Make sure we can run config.sub.
3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3543
3544{ echo "$as_me:$LINENO: checking build system type" >&5
3545echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 ac_build_alias=$build_alias
3550test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552test "x$ac_build_alias" = x &&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3560
3561fi
3562{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563echo "${ECHO_T}$ac_cv_build" >&6; }
3564case $ac_cv_build in
3565*-*-*) ;;
3566*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3569esac
3570build=$ac_cv_build
3571ac_save_IFS=$IFS; IFS='-'
3572set x $ac_cv_build
3573shift
3574build_cpu=$1
3575build_vendor=$2
3576shift; shift
3577# Remember, the first character of IFS is used to create $*,
3578# except with old shells:
3579build_os=$*
3580IFS=$ac_save_IFS
3581case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3582
3583
3584{ echo "$as_me:$LINENO: checking host system type" >&5
3585echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 if test "x$host_alias" = x; then
3590 ac_cv_host=$ac_cv_build
3591else
3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3596fi
3597
3598fi
3599{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600echo "${ECHO_T}$ac_cv_host" >&6; }
3601case $ac_cv_host in
3602*-*-*) ;;
3603*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3606esac
3607host=$ac_cv_host
3608ac_save_IFS=$IFS; IFS='-'
3609set x $ac_cv_host
3610shift
3611host_cpu=$1
3612host_vendor=$2
3613shift; shift
3614# Remember, the first character of IFS is used to create $*,
3615# except with old shells:
3616host_os=$*
3617IFS=$ac_save_IFS
3618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
3621{ echo "$as_me:$LINENO: checking target system type" >&5
3622echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623if test "${ac_cv_target+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3628else
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632 { (exit 1); exit 1; }; }
3633fi
3634
3635fi
3636{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637echo "${ECHO_T}$ac_cv_target" >&6; }
3638case $ac_cv_target in
3639*-*-*) ;;
3640*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641echo "$as_me: error: invalid value of canonical target" >&2;}
3642 { (exit 1); exit 1; }; };;
3643esac
3644target=$ac_cv_target
3645ac_save_IFS=$IFS; IFS='-'
3646set x $ac_cv_target
3647shift
3648target_cpu=$1
3649target_vendor=$2
3650shift; shift
3651# Remember, the first character of IFS is used to create $*,
3652# except with old shells:
3653target_os=$*
3654IFS=$ac_save_IFS
3655case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658# The aliases save the names the user supplied, while $host etc.
3659# will get canonicalized.
3660test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3662 NONENONEs,x,x, &&
3663 program_prefix=${target_alias}-
3664
3665{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667if test "${llvm_cv_os_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670 case $host in
3671 *-*-aix*)
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="AIX"
3675 llvm_cv_platform_type="Unix" ;;
3676 *-*-irix*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="IRIX"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-cygwin*)
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Cygwin"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-darwin*)
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Darwin"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-minix*)
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Minix"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-freebsd*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="FreeBSD"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-openbsd*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="OpenBSD"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-netbsd*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="NetBSD"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-dragonfly*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="DragonFly"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-hpux*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="HP-UX"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-interix*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Interix"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-linux*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Linux"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-solaris*)
3732 llvm_cv_link_all_option="-Wl,-z,allextract"
3733 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3734 llvm_cv_os_type="SunOS"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-auroraux*)
3737 llvm_cv_link_all_option="-Wl,-z,allextract"
3738 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3739 llvm_cv_os_type="AuroraUX"
3740 llvm_cv_platform_type="Unix" ;;
3741 *-*-win32*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Win32"
3745 llvm_cv_platform_type="Win32" ;;
3746 *-*-mingw*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="MingW"
3750 llvm_cv_platform_type="Win32" ;;
3751 *-*-haiku*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Haiku"
3755 llvm_cv_platform_type="Unix" ;;
3756 *-unknown-eabi*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Freestanding"
3760 llvm_cv_platform_type="Unix" ;;
3761 *-unknown-elf*)
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Freestanding"
3765 llvm_cv_platform_type="Unix" ;;
3766 *)
3767 llvm_cv_link_all_option=""
3768 llvm_cv_no_link_all_option=""
3769 llvm_cv_os_type="Unknown"
3770 llvm_cv_platform_type="Unknown" ;;
3771esac
3772fi
3773{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3774echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3775
3776{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3777echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3778if test "${llvm_cv_target_os_type+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 case $target in
3782 *-*-aix*)
3783 llvm_cv_target_os_type="AIX" ;;
3784 *-*-irix*)
3785 llvm_cv_target_os_type="IRIX" ;;
3786 *-*-cygwin*)
3787 llvm_cv_target_os_type="Cygwin" ;;
3788 *-*-darwin*)
3789 llvm_cv_target_os_type="Darwin" ;;
3790 *-*-minix*)
3791 llvm_cv_target_os_type="Minix" ;;
3792 *-*-freebsd*)
3793 llvm_cv_target_os_type="FreeBSD" ;;
3794 *-*-openbsd*)
3795 llvm_cv_target_os_type="OpenBSD" ;;
3796 *-*-netbsd*)
3797 llvm_cv_target_os_type="NetBSD" ;;
3798 *-*-dragonfly*)
3799 llvm_cv_target_os_type="DragonFly" ;;
3800 *-*-hpux*)
3801 llvm_cv_target_os_type="HP-UX" ;;
3802 *-*-interix*)
3803 llvm_cv_target_os_type="Interix" ;;
3804 *-*-linux*)
3805 llvm_cv_target_os_type="Linux" ;;
3806 *-*-solaris*)
3807 llvm_cv_target_os_type="SunOS" ;;
3808 *-*-auroraux*)
3809 llvm_cv_target_os_type="AuroraUX" ;;
3810 *-*-win32*)
3811 llvm_cv_target_os_type="Win32" ;;
3812 *-*-mingw*)
3813 llvm_cv_target_os_type="MingW" ;;
3814 *-*-haiku*)
3815 llvm_cv_target_os_type="Haiku" ;;
3816 *-*-rtems*)
3817 llvm_cv_target_os_type="RTEMS" ;;
3818 *-*-nacl*)
3819 llvm_cv_target_os_type="NativeClient" ;;
3820 *-unknown-eabi*)
3821 llvm_cv_target_os_type="Freestanding" ;;
3822 *)
3823 llvm_cv_target_os_type="Unknown" ;;
3824esac
3825fi
3826{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3827echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3828
3829if test "$llvm_cv_os_type" = "Unknown" ; then
3830 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3831echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3832 { (exit 1); exit 1; }; }
3833fi
3834
3835OS=$llvm_cv_os_type
3836
3837HOST_OS=$llvm_cv_os_type
3838
3839TARGET_OS=$llvm_cv_target_os_type
3840
3841
3842LINKALL=$llvm_cv_link_all_option
3843
3844NOLINKALL=$llvm_cv_no_link_all_option
3845
3846
3847case $llvm_cv_platform_type in
3848 Unix)
3849
3850cat >>confdefs.h <<\_ACEOF
3851#define LLVM_ON_UNIX 1
3852_ACEOF
3853
3854 LLVM_ON_UNIX=1
3855
3856 LLVM_ON_WIN32=0
3857
3858 ;;
3859 Win32)
3860
3861cat >>confdefs.h <<\_ACEOF
3862#define LLVM_ON_WIN32 1
3863_ACEOF
3864
3865 LLVM_ON_UNIX=0
3866
3867 LLVM_ON_WIN32=1
3868
3869 ;;
3870esac
3871
3872{ echo "$as_me:$LINENO: checking target architecture" >&5
3873echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3874if test "${llvm_cv_target_arch+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877 case $target in
3878 i?86-*) llvm_cv_target_arch="x86" ;;
3879 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3880 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3881 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003882 arm*-*) llvm_cv_target_arch="ARM" ;;
3883 mips-*) llvm_cv_target_arch="Mips" ;;
3884 xcore-*) llvm_cv_target_arch="XCore" ;;
3885 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003886 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003887 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3888 ptx-*) llvm_cv_target_arch="PTX" ;;
3889 *) llvm_cv_target_arch="Unknown" ;;
3890esac
3891fi
3892{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3893echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3894
3895if test "$llvm_cv_target_arch" = "Unknown" ; then
3896 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3897echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3898fi
3899
3900# Determine the LLVM native architecture for the target
3901case "$llvm_cv_target_arch" in
3902 x86) LLVM_NATIVE_ARCH="X86" ;;
3903 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3904 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3905esac
3906
3907ARCH=$llvm_cv_target_arch
3908
3909
3910
3911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3913echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3914if test "${ac_cv_path_GREP+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003917 # Extract the first word of "grep ggrep" to use in msg output
3918if test -z "$GREP"; then
3919set dummy grep ggrep; ac_prog_name=$2
3920if test "${ac_cv_path_GREP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
Reid Spencera773bd52006-08-04 18:18:08 +00003923 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003924# Loop through the user's path and test for each of PROGNAME-LIST
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003926for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003927do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003930 for ac_prog in grep ggrep; do
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3933 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3934 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003935 # Check for GNU $ac_path_GREP
3936case `"$ac_path_GREP" --version 2>&1` in
3937*GNU*)
3938 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3939*)
3940 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003941 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003942 while :
3943 do
3944 cat "conftest.in" "conftest.in" >"conftest.tmp"
3945 mv "conftest.tmp" "conftest.in"
3946 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003948 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003950 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003951 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3952 # Best one so far, save it but keep looking for a better one
3953 ac_cv_path_GREP="$ac_path_GREP"
3954 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003955 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003956 # 10*(2^10) chars as input seems more than enough
3957 test $ac_count -gt 10 && break
3958 done
3959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3960esac
3961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962
3963 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003964 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003965done
3966
3967done
Reid Spencera773bd52006-08-04 18:18:08 +00003968IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003969
3970
3971fi
3972
3973GREP="$ac_cv_path_GREP"
3974if test -z "$GREP"; then
3975 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3976echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3977 { (exit 1); exit 1; }; }
3978fi
3979
Reid Spencera773bd52006-08-04 18:18:08 +00003980else
3981 ac_cv_path_GREP=$GREP
3982fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984
Reid Spencera773bd52006-08-04 18:18:08 +00003985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3987echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003988 GREP="$ac_cv_path_GREP"
3989
3990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003991{ echo "$as_me:$LINENO: checking for egrep" >&5
3992echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3993if test "${ac_cv_path_EGREP+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003995else
3996 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3997 then ac_cv_path_EGREP="$GREP -E"
3998 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999 # Extract the first word of "egrep" to use in msg output
4000if test -z "$EGREP"; then
4001set dummy egrep; ac_prog_name=$2
4002if test "${ac_cv_path_EGREP+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004else
Reid Spencera773bd52006-08-04 18:18:08 +00004005 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004006# Loop through the user's path and test for each of PROGNAME-LIST
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012 for ac_prog in egrep; do
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4015 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4016 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004017 # Check for GNU $ac_path_EGREP
4018case `"$ac_path_EGREP" --version 2>&1` in
4019*GNU*)
4020 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4021*)
4022 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004023 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004024 while :
4025 do
4026 cat "conftest.in" "conftest.in" >"conftest.tmp"
4027 mv "conftest.tmp" "conftest.in"
4028 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004030 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004032 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004033 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4034 # Best one so far, save it but keep looking for a better one
4035 ac_cv_path_EGREP="$ac_path_EGREP"
4036 ac_path_EGREP_max=$ac_count
4037 fi
4038 # 10*(2^10) chars as input seems more than enough
4039 test $ac_count -gt 10 && break
4040 done
4041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042esac
4043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004044
4045 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004046 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047done
4048
4049done
Reid Spencera773bd52006-08-04 18:18:08 +00004050IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004051
4052
4053fi
4054
4055EGREP="$ac_cv_path_EGREP"
4056if test -z "$EGREP"; then
4057 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4058echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4059 { (exit 1); exit 1; }; }
4060fi
4061
Reid Spencera773bd52006-08-04 18:18:08 +00004062else
4063 ac_cv_path_EGREP=$EGREP
4064fi
4065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004066
Reid Spencera773bd52006-08-04 18:18:08 +00004067 fi
4068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004069{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4070echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004071 EGREP="$ac_cv_path_EGREP"
4072
4073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4075echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4076if test "${ac_cv_header_stdc+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004078else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079 cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h. */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004085#include <stdlib.h>
4086#include <stdarg.h>
4087#include <string.h>
4088#include <float.h>
4089
John Criswell0c38eaf2003-09-10 15:17:25 +00004090int
4091main ()
4092{
4093
4094 ;
4095 return 0;
4096}
John Criswell7a73b802003-06-30 21:59:07 +00004097_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004098rm -f conftest.$ac_objext
4099if { (ac_try="$ac_compile"
4100case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103esac
4104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_compile") 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4113 { (case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116esac
4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_try") 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_try") 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004132 ac_cv_header_stdc=yes
4133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004134 echo "$as_me: failed program was:" >&5
4135sed 's/^/| /' conftest.$ac_ext >&5
4136
4137 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004139
Reid Spencera773bd52006-08-04 18:18:08 +00004140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004141
4142if test $ac_cv_header_stdc = yes; then
4143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004144 cat >conftest.$ac_ext <<_ACEOF
4145/* confdefs.h. */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004150#include <string.h>
4151
4152_ACEOF
4153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004154 $EGREP "memchr" >/dev/null 2>&1; then
4155 :
John Criswell7a73b802003-06-30 21:59:07 +00004156else
4157 ac_cv_header_stdc=no
4158fi
4159rm -f conftest*
4160
4161fi
4162
4163if test $ac_cv_header_stdc = yes; then
4164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004165 cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h. */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004171#include <stdlib.h>
4172
4173_ACEOF
4174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004175 $EGREP "free" >/dev/null 2>&1; then
4176 :
John Criswell7a73b802003-06-30 21:59:07 +00004177else
4178 ac_cv_header_stdc=no
4179fi
4180rm -f conftest*
4181
4182fi
4183
4184if test $ac_cv_header_stdc = yes; then
4185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004186 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004187 :
4188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004189 cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h. */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004194/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004195#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004196#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004197#if ((' ' & 0x0FF) == 0x020)
4198# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4199# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4200#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004201# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004202 (('a' <= (c) && (c) <= 'i') \
4203 || ('j' <= (c) && (c) <= 'r') \
4204 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004205# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4206#endif
4207
4208#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209int
4210main ()
4211{
4212 int i;
4213 for (i = 0; i < 256; i++)
4214 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004215 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004216 return 2;
4217 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004218}
4219_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004220rm -f conftest$ac_exeext
4221if { (ac_try="$ac_link"
4222case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_link") 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 :
John Criswell7a73b802003-06-30 21:59:07 +00004241else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004242 echo "$as_me: program exited with status $ac_status" >&5
4243echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246( exit $ac_status )
4247ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004249rm -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 +00004250fi
4251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004252
John Criswell7a73b802003-06-30 21:59:07 +00004253fi
4254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4256echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004257if test $ac_cv_header_stdc = yes; then
4258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004259cat >>confdefs.h <<\_ACEOF
4260#define STDC_HEADERS 1
4261_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004262
4263fi
4264
Reid Spencera773bd52006-08-04 18:18:08 +00004265# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004266
4267
4268
4269
4270
4271
4272
4273
4274
Reid Spencera773bd52006-08-04 18:18:08 +00004275for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4276 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004277do
4278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284 cat >conftest.$ac_ext <<_ACEOF
4285/* confdefs.h. */
4286_ACEOF
4287cat confdefs.h >>conftest.$ac_ext
4288cat >>conftest.$ac_ext <<_ACEOF
4289/* end confdefs.h. */
4290$ac_includes_default
4291
4292#include <$ac_header>
4293_ACEOF
4294rm -f conftest.$ac_objext
4295if { (ac_try="$ac_compile"
4296case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_compile") 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } &&
4308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4309 { (case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
4313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_try") 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 eval "$as_ac_Header=yes"
4329else
4330 echo "$as_me: failed program was:" >&5
4331sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 eval "$as_ac_Header=no"
4334fi
4335
4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337fi
4338ac_res=`eval echo '${'$as_ac_Header'}'`
4339 { echo "$as_me:$LINENO: result: $ac_res" >&5
4340echo "${ECHO_T}$ac_res" >&6; }
4341if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004342 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004344_ACEOF
4345
4346fi
4347
4348done
4349
4350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004351{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4352echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4353if test "${ac_cv_c_bigendian+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004355else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356 # See if sys/param.h defines the BYTE_ORDER macro.
4357cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004359_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004362/* end confdefs.h. */
4363#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004364#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004365
4366int
4367main ()
4368{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004369#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4370 bogus endian macros
4371#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004372
4373 ;
4374 return 0;
4375}
4376_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004377rm -f conftest.$ac_objext
4378if { (ac_try="$ac_compile"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395esac
4396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_try") 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_try") 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004411 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004417/* end confdefs.h. */
4418#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004419#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004420
4421int
4422main ()
4423{
4424#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425 not big endian
4426#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004427
4428 ;
4429 return 0;
4430}
4431_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004432rm -f conftest.$ac_objext
4433if { (ac_try="$ac_compile"
4434case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437esac
4438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_compile") 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_try") 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004466 ac_cv_c_bigendian=yes
4467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004468 echo "$as_me: failed program was:" >&5
4469sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004471 ac_cv_c_bigendian=no
4472fi
4473
4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475else
4476 echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 # It does not; compile a test program.
4480if test "$cross_compiling" = yes; then
4481 # try to guess the endianness by grepping values into an object file
4482 ac_cv_c_bigendian=unknown
4483 cat >conftest.$ac_ext <<_ACEOF
4484/* confdefs.h. */
4485_ACEOF
4486cat confdefs.h >>conftest.$ac_ext
4487cat >>conftest.$ac_ext <<_ACEOF
4488/* end confdefs.h. */
4489short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4490short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4491void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4492short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4493short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4494void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004495int
4496main ()
4497{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004498 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004499 ;
4500 return 0;
4501}
4502_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004503rm -f conftest.$ac_objext
4504if { (ac_try="$ac_compile"
4505case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508esac
4509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_compile") 2>conftest.er1
4511 ac_status=$?
4512 grep -v '^ *+' conftest.er1 >conftest.err
4513 rm -f conftest.er1
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4518 { (case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521esac
4522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_try") 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_try") 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004538 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004539fi
4540if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4541 if test "$ac_cv_c_bigendian" = unknown; then
4542 ac_cv_c_bigendian=no
4543 else
4544 # finding both strings is unlikely to happen, but who knows?
4545 ac_cv_c_bigendian=unknown
4546 fi
4547fi
Reid Spencera773bd52006-08-04 18:18:08 +00004548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552
Torok Edwin871384f2010-01-26 08:50:50 +00004553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554
Reid Spencera773bd52006-08-04 18:18:08 +00004555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557 cat >conftest.$ac_ext <<_ACEOF
4558/* confdefs.h. */
4559_ACEOF
4560cat confdefs.h >>conftest.$ac_ext
4561cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004562/* end confdefs.h. */
4563$ac_includes_default
4564int
4565main ()
4566{
4567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568 /* Are we little or big endian? From Harbison&Steele. */
4569 union
4570 {
4571 long int l;
4572 char c[sizeof (long int)];
4573 } u;
4574 u.l = 1;
4575 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004576
4577 ;
4578 return 0;
4579}
4580_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004581rm -f conftest$ac_exeext
4582if { (ac_try="$ac_link"
4583case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
4587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_link") 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4592 { (case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595esac
4596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_try") 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004601 ac_cv_c_bigendian=no
4602else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603 echo "$as_me: program exited with status $ac_status" >&5
4604echo "$as_me: failed program was:" >&5
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
4607( exit $ac_status )
4608ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610rm -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 +00004611fi
4612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004613
Reid Spencera773bd52006-08-04 18:18:08 +00004614fi
4615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617fi
4618{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4619echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4620case $ac_cv_c_bigendian in
4621 yes)
4622 ENDIAN=big
4623 ;;
4624 no)
4625 ENDIAN=little
4626 ;;
4627 *)
4628 { { echo "$as_me:$LINENO: error: unknown endianness
4629presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4630echo "$as_me: error: unknown endianness
4631presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4632 { (exit 1); exit 1; }; } ;;
4633esac
Reid Spencera773bd52006-08-04 18:18:08 +00004634
4635
4636if test "$cross_compiling" = yes; then
4637 LLVM_CROSS_COMPILING=1
4638
4639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004640{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4641echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4642if test "${ac_cv_build_exeext+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004644else
4645 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4646 ac_cv_build_exeext=.exe
4647else
4648 ac_build_prefix=${build_alias}-
4649
4650 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4651set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004656else
4657 if test -n "$BUILD_CC"; then
4658 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 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 +00004667 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004669 break 2
4670 fi
4671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004672done
Reid Spencera773bd52006-08-04 18:18:08 +00004673IFS=$as_save_IFS
4674
4675fi
4676fi
4677BUILD_CC=$ac_cv_prog_BUILD_CC
4678if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004679 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004682 { echo "$as_me:$LINENO: result: no" >&5
4683echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004684fi
4685
4686
4687 if test -z "$BUILD_CC"; then
4688 # Extract the first word of "gcc", so it can be a program name with args.
4689set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004694else
4695 if test -n "$BUILD_CC"; then
4696 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 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 +00004705 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004707 break 2
4708 fi
4709done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004710done
Reid Spencera773bd52006-08-04 18:18:08 +00004711IFS=$as_save_IFS
4712
4713fi
4714fi
4715BUILD_CC=$ac_cv_prog_BUILD_CC
4716if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4718echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004720 { echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004722fi
4723
4724
4725 if test -z "$BUILD_CC"; then
4726 # Extract the first word of "cc", so it can be a program name with args.
4727set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004732else
4733 if test -n "$BUILD_CC"; then
4734 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4735else
4736 ac_prog_rejected=no
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 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 +00004744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4745 ac_prog_rejected=yes
4746 continue
4747 fi
4748 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004750 break 2
4751 fi
4752done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004753done
Reid Spencera773bd52006-08-04 18:18:08 +00004754IFS=$as_save_IFS
4755
4756if test $ac_prog_rejected = yes; then
4757 # We found a bogon in the path, so make sure we never use it.
4758 set dummy $ac_cv_prog_BUILD_CC
4759 shift
4760 if test $# != 0; then
4761 # We chose a different compiler from the bogus one.
4762 # However, it has the same basename, so the bogon will be chosen
4763 # first if we set BUILD_CC to just the basename; use the full file name.
4764 shift
4765 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4766 fi
4767fi
4768fi
4769fi
4770BUILD_CC=$ac_cv_prog_BUILD_CC
4771if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004772 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4773echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004774else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004775 { echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004777fi
4778
4779
4780 fi
4781 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004782 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4783echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4784 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004785 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4786 rm -f conftest*
4787 echo 'int main () { return 0; }' > conftest.$ac_ext
4788 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004790 (eval $ac_build_link) 2>&5
4791 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004794 for file in conftest.*; do
4795 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004796 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004797 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4798 esac
4799 done
4800 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004801 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4802echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4803 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004804 fi
4805 rm -f conftest*
4806 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4807fi
4808fi
4809
4810BUILD_EXEEXT=""
4811test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4813echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004814ac_build_exeext=$BUILD_EXEEXT
4815
Jim Grosbach673612e2008-10-02 22:56:44 +00004816 ac_build_prefix=${build_alias}-
4817 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4818set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004823else
4824 if test -n "$BUILD_CXX"; then
4825 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826else
4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 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 +00004834 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004836 break 2
4837 fi
4838done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839done
Jim Grosbach673612e2008-10-02 22:56:44 +00004840IFS=$as_save_IFS
4841
4842fi
4843fi
4844BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004846 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004849 { echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004851fi
4852
4853
4854 if test -z "$BUILD_CXX"; then
4855 # Extract the first word of "g++", so it can be a program name with args.
4856set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004861else
4862 if test -n "$BUILD_CXX"; then
4863 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864else
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 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 +00004872 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004874 break 2
4875 fi
4876done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004877done
Jim Grosbach673612e2008-10-02 22:56:44 +00004878IFS=$as_save_IFS
4879
4880fi
4881fi
4882BUILD_CXX=$ac_cv_prog_BUILD_CXX
4883if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4885echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004886else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004887 { echo "$as_me:$LINENO: result: no" >&5
4888echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004889fi
4890
4891
4892 if test -z "$BUILD_CXX"; then
4893 # Extract the first word of "c++", so it can be a program name with args.
4894set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004899else
4900 if test -n "$BUILD_CXX"; then
4901 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4902else
4903 ac_prog_rejected=no
4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 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 +00004911 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4912 ac_prog_rejected=yes
4913 continue
4914 fi
4915 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004917 break 2
4918 fi
4919done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920done
Jim Grosbach673612e2008-10-02 22:56:44 +00004921IFS=$as_save_IFS
4922
4923if test $ac_prog_rejected = yes; then
4924 # We found a bogon in the path, so make sure we never use it.
4925 set dummy $ac_cv_prog_BUILD_CXX
4926 shift
4927 if test $# != 0; then
4928 # We chose a different compiler from the bogus one.
4929 # However, it has the same basename, so the bogon will be chosen
4930 # first if we set BUILD_CXX to just the basename; use the full file name.
4931 shift
4932 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4933 fi
4934fi
4935fi
4936fi
4937BUILD_CXX=$ac_cv_prog_BUILD_CXX
4938if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4940echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004942 { echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004944fi
4945
4946
4947 fi
4948 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004949else
4950 LLVM_CROSS_COMPILING=0
4951
4952fi
4953
Dan Gohman56fb5f92010-08-04 16:25:01 +00004954if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004955 cvsbuild="yes"
4956 optimize="no"
4957 CVSBUILD=CVSBUILD=1
4958
4959else
4960 cvsbuild="no"
4961 optimize="yes"
4962fi
4963
4964
Eric Christopherbee515f2011-11-11 22:51:42 +00004965# Check whether --enable-libcpp was given.
4966if test "${enable_libcpp+set}" = set; then
4967 enableval=$enable_libcpp;
4968else
4969 enableval=default
4970fi
4971
4972case "$enableval" in
4973 yes) ENABLE_LIBCPP=1
4974 ;;
4975 no) ENABLE_LIBCPP=0
4976 ;;
4977 default) ENABLE_LIBCPP=0
4978;;
4979 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4980echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4981 { (exit 1); exit 1; }; } ;;
4982esac
4983
Reid Spencera773bd52006-08-04 18:18:08 +00004984# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004985if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004986 enableval=$enable_optimized;
4987else
4988 enableval=$optimize
4989fi
4990
4991if test ${enableval} = "no" ; then
4992 ENABLE_OPTIMIZED=
4993
4994else
4995 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4996
4997fi
4998
David Greene2a5a12c2009-04-17 14:50:39 +00004999# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005000if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005001 enableval=$enable_profiling;
5002else
5003 enableval="no"
5004fi
5005
5006if test ${enableval} = "no" ; then
5007 ENABLE_PROFILING=
5008
5009else
5010 ENABLE_PROFILING=ENABLE_PROFILING=1
5011
5012fi
5013
Reid Spencera773bd52006-08-04 18:18:08 +00005014# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005015if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005016 enableval=$enable_assertions;
5017else
5018 enableval="yes"
5019fi
5020
5021if test ${enableval} = "yes" ; then
5022 DISABLE_ASSERTIONS=
5023
5024else
5025 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5026
5027fi
5028
David Greenea696d242007-06-28 19:36:08 +00005029# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005030if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005031 enableval=$enable_expensive_checks;
5032else
5033 enableval="no"
5034fi
5035
5036if test ${enableval} = "yes" ; then
5037 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5038
5039 EXPENSIVE_CHECKS=yes
5040
5041else
5042 ENABLE_EXPENSIVE_CHECKS=
5043
5044 EXPENSIVE_CHECKS=no
5045
5046fi
5047
Reid Spencer8b2e1412006-11-17 03:32:33 +00005048# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005049if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005050 enableval=$enable_debug_runtime;
5051else
5052 enableval=no
5053fi
5054
5055if test ${enableval} = "no" ; then
5056 DEBUG_RUNTIME=
5057
5058else
5059 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5060
5061fi
5062
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005063# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005064if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005065 enableval=$enable_debug_symbols;
5066else
5067 enableval=no
5068fi
5069
5070if test ${enableval} = "no" ; then
5071 DEBUG_SYMBOLS=
5072
5073else
5074 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5075
5076fi
5077
Reid Spencera773bd52006-08-04 18:18:08 +00005078# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005079if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005080 enableval=$enable_jit;
5081else
5082 enableval=default
5083fi
5084
5085if test ${enableval} = "no"
5086then
5087 JIT=
5088
5089else
5090 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005091 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005092 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005093 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005094 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005095 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005096 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005097 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005098 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005099 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005100 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005101 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005102 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005103 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005104 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005105 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005106 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005107 Hexagon) TARGET_HAS_JIT=0
5108 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005109 MBlaze) TARGET_HAS_JIT=0
5110 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005111 PTX) TARGET_HAS_JIT=0
5112 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005113 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005114 ;;
5115 esac
5116fi
5117
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005118# Check whether --enable-docs was given.
5119if test "${enable_docs+set}" = set; then
5120 enableval=$enable_docs;
5121else
5122 enableval=default
5123fi
5124
5125case "$enableval" in
5126 yes) ENABLE_DOCS=1
5127 ;;
5128 no) ENABLE_DOCS=0
5129 ;;
5130 default) ENABLE_DOCS=1
5131 ;;
5132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5133echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5135esac
5136
Reid Spencera773bd52006-08-04 18:18:08 +00005137# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005138if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005139 enableval=$enable_doxygen;
5140else
5141 enableval=default
5142fi
5143
5144case "$enableval" in
5145 yes) ENABLE_DOXYGEN=1
5146 ;;
5147 no) ENABLE_DOXYGEN=0
5148 ;;
5149 default) ENABLE_DOXYGEN=0
5150 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5152echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5153 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005154esac
5155
5156# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005157if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005158 enableval=$enable_threads;
5159else
Reid Spencer65c5d752006-11-05 17:08:18 +00005160 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005161fi
5162
5163case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005164 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005165 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005166 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005167 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005168 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005169 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5171echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005173esac
5174
Owen Andersona8603702009-05-19 22:18:56 +00005175cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005176#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005177_ACEOF
5178
5179
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005180# Check whether --enable-pthreads was given.
5181if test "${enable_pthreads+set}" = set; then
5182 enableval=$enable_pthreads;
5183else
5184 enableval=default
5185fi
5186
5187case "$enableval" in
5188 yes) ENABLE_PTHREADS=1
5189 ;;
5190 no) ENABLE_PTHREADS=0
5191 ;;
5192 default) ENABLE_PTHREADS=1
5193 ;;
5194 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5195echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5196 { (exit 1); exit 1; }; } ;;
5197esac
5198
Reid Spencer89b0d992006-12-16 22:07:52 +00005199# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005200if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005201 enableval=$enable_pic;
5202else
5203 enableval=default
5204fi
5205
5206case "$enableval" in
5207 yes) ENABLE_PIC=1
5208 ;;
5209 no) ENABLE_PIC=0
5210 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005211 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005212 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5214echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005216esac
5217
5218cat >>confdefs.h <<_ACEOF
5219#define ENABLE_PIC $ENABLE_PIC
5220_ACEOF
5221
5222
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005223# Check whether --enable-shared was given.
5224if test "${enable_shared+set}" = set; then
5225 enableval=$enable_shared;
5226else
5227 enableval=default
5228fi
5229
5230case "$enableval" in
5231 yes) ENABLE_SHARED=1
5232 ;;
5233 no) ENABLE_SHARED=0
5234 ;;
5235 default) ENABLE_SHARED=0
5236 ;;
5237 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5238echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5240esac
5241
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005242# Check whether --enable-embed-stdcxx was given.
5243if test "${enable_embed_stdcxx+set}" = set; then
5244 enableval=$enable_embed_stdcxx;
5245else
5246 enableval=default
5247fi
5248
5249case "$enableval" in
5250 yes) ENABLE_EMBED_STDCXX=1
5251 ;;
5252 no) ENABLE_EMBED_STDCXX=0
5253 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005254 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005255 ;;
5256 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5257echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5258 { (exit 1); exit 1; }; } ;;
5259esac
5260
Daniel Dunbardd464df2010-05-10 20:11:56 +00005261# Check whether --enable-timestamps was given.
5262if test "${enable_timestamps+set}" = set; then
5263 enableval=$enable_timestamps;
5264else
5265 enableval=default
5266fi
5267
5268case "$enableval" in
5269 yes) ENABLE_TIMESTAMPS=1
5270 ;;
5271 no) ENABLE_TIMESTAMPS=0
5272 ;;
5273 default) ENABLE_TIMESTAMPS=1
5274 ;;
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5276echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5278esac
5279
5280cat >>confdefs.h <<_ACEOF
5281#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5282_ACEOF
5283
5284
Reid Spencera773bd52006-08-04 18:18:08 +00005285TARGETS_TO_BUILD=""
5286# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005287if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005288 enableval=$enable_targets;
5289else
5290 enableval=all
5291fi
5292
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005293if test "$enableval" = host-only ; then
5294 enableval=host
5295fi
Reid Spencera773bd52006-08-04 18:18:08 +00005296case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005297 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005298 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5299 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005300 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5301 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5302 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5303 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005304 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5305 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5306 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005307 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5308 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005309 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005310 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005311 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005312 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005313 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005314 host) case "$llvm_cv_target_arch" in
5315 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5316 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5318 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005319 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5320 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005321 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005322 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005323 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5324 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005325 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005326 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005327 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5328echo "$as_me: error: Can not set target to build" >&2;}
5329 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005330 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005331 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5332echo "$as_me: error: Unrecognized target $a_target" >&2;}
5333 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005334 esac
5335 done
5336 ;;
5337esac
Reid Spencera773bd52006-08-04 18:18:08 +00005338TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5339
5340
Douglas Gregor0711c302009-06-17 00:43:20 +00005341# Determine whether we are building LLVM support for the native architecture.
5342# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5343for a_target in $TARGETS_TO_BUILD; do
5344 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5345
5346cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005347#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5348_ACEOF
5349
5350 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5351 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005352 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005353 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005354 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5355 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5356 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005357
5358cat >>confdefs.h <<_ACEOF
5359#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005360_ACEOF
5361
5362
5363cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005364#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5365_ACEOF
5366
5367
5368cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005369#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005370_ACEOF
5371
5372
5373cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005374#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005375_ACEOF
5376
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005377 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005378
5379cat >>confdefs.h <<_ACEOF
5380#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5381_ACEOF
5382
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005383 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005384 fi
5385done
5386
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005387# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5388# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005389LLVM_ENUM_TARGETS=""
5390LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005391LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005392LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005393for target_to_build in $TARGETS_TO_BUILD; do
5394 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005395 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005396 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5397 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005398 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5399 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5400 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005401 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5402 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5403 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005404done
5405
5406
5407
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005408
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005409
Reid Spencer65c5d752006-11-05 17:08:18 +00005410# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005411if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005412 enableval=$enable_cbe_printf_a;
5413else
5414 enableval=default
5415fi
5416
5417case "$enableval" in
5418 yes) ENABLE_CBE_PRINTF_A=1
5419 ;;
5420 no) ENABLE_CBE_PRINTF_A=0
5421 ;;
5422 default) ENABLE_CBE_PRINTF_A=1
5423 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005424 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5425echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5426 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005427esac
5428
5429cat >>confdefs.h <<_ACEOF
5430#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5431_ACEOF
5432
5433
Reid Spencera773bd52006-08-04 18:18:08 +00005434
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005435# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005437 withval=$with_optimize_option;
5438else
5439 withval=default
5440fi
5441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005442{ echo "$as_me:$LINENO: checking optimization flags" >&5
5443echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005444case "$withval" in
5445 default)
5446 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005447 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005448 MingW) optimize_option=-O2 ;;
5449 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005450 esac ;;
5451 *) optimize_option="$withval" ;;
5452esac
5453OPTIMIZE_OPTION=$optimize_option
5454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005455{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5456echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005457
5458
Reid Spencera773bd52006-08-04 18:18:08 +00005459# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005461 withval=$with_extra_options;
5462else
5463 withval=default
5464fi
5465
5466case "$withval" in
5467 default) EXTRA_OPTIONS= ;;
5468 *) EXTRA_OPTIONS=$withval ;;
5469esac
5470EXTRA_OPTIONS=$EXTRA_OPTIONS
5471
5472
Daniel Dunbared344d22011-06-16 22:30:41 +00005473
5474# Check whether --with-extra-ld-options was given.
5475if test "${with_extra_ld_options+set}" = set; then
5476 withval=$with_extra_ld_options;
5477else
5478 withval=default
5479fi
5480
5481case "$withval" in
5482 default) EXTRA_LD_OPTIONS= ;;
5483 *) EXTRA_LD_OPTIONS=$withval ;;
5484esac
5485EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5486
5487
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005488# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005489if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005490 enableval=$enable_bindings;
5491else
5492 enableval=default
5493fi
5494
5495BINDINGS_TO_BUILD=""
5496case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005497 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005498 all ) BINDINGS_TO_BUILD="ocaml" ;;
5499 none | no) BINDINGS_TO_BUILD="" ;;
5500 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5501 case "$a_binding" in
5502 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005503 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5504echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5505 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005506 esac
5507 done
5508 ;;
5509esac
5510
Reid Spencera773bd52006-08-04 18:18:08 +00005511
Gordon Henriksenf0915682007-10-02 16:42:22 +00005512# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005513if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005514 withval=$with_ocaml_libdir;
5515else
5516 withval=auto
5517fi
5518
5519case "$withval" in
5520 auto) with_ocaml_libdir="$withval" ;;
5521 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005522 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5523echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5524 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005525esac
5526
5527
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005528# Check whether --with-clang-srcdir was given.
5529if test "${with_clang_srcdir+set}" = set; then
5530 withval=$with_clang_srcdir;
5531else
5532 withval="-"
5533fi
5534
5535case "$withval" in
5536 -) clang_src_root="" ;;
5537 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5538 *) clang_src_root="$ac_pwd/$withval" ;;
5539esac
5540CLANG_SRC_ROOT=$clang_src_root
5541
5542
5543
Chandler Carruth6b241162010-10-19 08:21:25 +00005544# Check whether --with-clang-resource-dir was given.
5545if test "${with_clang_resource_dir+set}" = set; then
5546 withval=$with_clang_resource_dir;
5547else
5548 withval=""
5549fi
5550
5551
5552cat >>confdefs.h <<_ACEOF
5553#define CLANG_RESOURCE_DIR "$withval"
5554_ACEOF
5555
5556
5557
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005558# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005559if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005560 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005561else
5562 withval=""
5563fi
5564
5565
5566cat >>confdefs.h <<_ACEOF
5567#define C_INCLUDE_DIRS "$withval"
5568_ACEOF
5569
5570
5571
Rafael Espindola420d23c2009-11-16 19:46:55 +00005572# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005573if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005574 withval=$with_cxx_include_root;
5575else
5576 withval=""
5577fi
5578
5579
5580cat >>confdefs.h <<_ACEOF
5581#define CXX_INCLUDE_ROOT "$withval"
5582_ACEOF
5583
5584
5585
5586# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005588 withval=$with_cxx_include_arch;
5589else
5590 withval=""
5591fi
5592
5593
5594cat >>confdefs.h <<_ACEOF
5595#define CXX_INCLUDE_ARCH "$withval"
5596_ACEOF
5597
5598
5599
5600# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005601if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005602 withval=$with_cxx_include_32bit_dir;
5603else
5604 withval=""
5605fi
5606
5607
5608cat >>confdefs.h <<_ACEOF
5609#define CXX_INCLUDE_32BIT_DIR "$withval"
5610_ACEOF
5611
5612
5613
5614# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005615if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005616 withval=$with_cxx_include_64bit_dir;
5617else
5618 withval=""
5619fi
5620
5621
5622cat >>confdefs.h <<_ACEOF
5623#define CXX_INCLUDE_64BIT_DIR "$withval"
5624_ACEOF
5625
5626
5627
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005628# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005629if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005630 withval=$with_binutils_include;
5631else
5632 withval=default
5633fi
5634
5635case "$withval" in
5636 default) WITH_BINUTILS_INCDIR=default ;;
5637 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005638 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5639echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5640 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005641esac
5642if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5643 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5644
5645 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5646 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005647 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5648echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5649 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005650 fi
5651fi
5652
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005653
5654# Check whether --with-bug-report-url was given.
5655if test "${with_bug_report_url+set}" = set; then
5656 withval=$with_bug_report_url;
5657else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005658 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005659fi
5660
5661
5662cat >>confdefs.h <<_ACEOF
5663#define BUG_REPORT_URL "$withval"
5664_ACEOF
5665
5666
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005667# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005668if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005669 enableval=$enable_libffi; case "$enableval" in
5670 yes) llvm_cv_enable_libffi="yes" ;;
5671 no) llvm_cv_enable_libffi="no" ;;
5672 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005673echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5674 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005675 esac
5676else
5677 llvm_cv_enable_libffi=no
5678fi
5679
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005680
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005681
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005682# Check whether --with-internal-prefix was given.
5683if test "${with_internal_prefix+set}" = set; then
5684 withval=$with_internal_prefix;
5685else
5686 withval=""
5687fi
5688
5689INTERNAL_PREFIX=$withval
5690
5691
5692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005693{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5694echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5695if test "${lt_cv_path_NM+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005697else
5698 if test -n "$NM"; then
5699 # Let the user override the test.
5700 lt_cv_path_NM="$NM"
5701else
5702 lt_nm_to_check="${ac_tool_prefix}nm"
5703 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5704 lt_nm_to_check="$lt_nm_to_check nm"
5705 fi
5706 for lt_tmp_nm in $lt_nm_to_check; do
5707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5708 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5709 IFS="$lt_save_ifs"
5710 test -z "$ac_dir" && ac_dir=.
5711 tmp_nm="$ac_dir/$lt_tmp_nm"
5712 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5713 # Check to see if the nm accepts a BSD-compat flag.
5714 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5715 # nm: unknown option "B" ignored
5716 # Tru64's nm complains that /dev/null is an invalid object file
5717 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5718 */dev/null* | *'Invalid file or object type'*)
5719 lt_cv_path_NM="$tmp_nm -B"
5720 break
5721 ;;
5722 *)
5723 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5724 */dev/null*)
5725 lt_cv_path_NM="$tmp_nm -p"
5726 break
5727 ;;
5728 *)
5729 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5730 continue # so that we can try to find one that supports BSD flags
5731 ;;
5732 esac
5733 ;;
5734 esac
5735 fi
5736 done
5737 IFS="$lt_save_ifs"
5738 done
5739 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5740fi
5741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005742{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5743echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005744NM="$lt_cv_path_NM"
5745
5746
5747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748{ echo "$as_me:$LINENO: checking for GNU make" >&5
5749echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5750if test "${llvm_cv_gnu_make_command+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005752else
5753 llvm_cv_gnu_make_command=''
5754 for a in "$MAKE" make gmake gnumake ; do
5755 if test -z "$a" ; then continue ; fi ;
5756 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5757 then
5758 llvm_cv_gnu_make_command=$a ;
5759 break;
5760 fi
5761 done
5762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005763{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5764echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005765 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5766 ifGNUmake='' ;
5767 else
5768 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5770echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005771 fi
5772
5773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5775echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005776LN_S=$as_ln_s
5777if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005778 { echo "$as_me:$LINENO: result: yes" >&5
5779echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005781 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5782echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005783fi
5784
5785# Extract the first word of "cmp", so it can be a program name with args.
5786set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5789if test "${ac_cv_path_CMP+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005791else
5792 case $CMP in
5793 [\\/]* | ?:[\\/]*)
5794 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5795 ;;
5796 *)
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 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 +00005804 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005806 break 2
5807 fi
5808done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005809done
Reid Spencera773bd52006-08-04 18:18:08 +00005810IFS=$as_save_IFS
5811
5812 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5813 ;;
5814esac
5815fi
5816CMP=$ac_cv_path_CMP
5817if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818 { echo "$as_me:$LINENO: result: $CMP" >&5
5819echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005821 { echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005823fi
5824
5825
5826# Extract the first word of "cp", so it can be a program name with args.
5827set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830if test "${ac_cv_path_CP+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005832else
5833 case $CP in
5834 [\\/]* | ?:[\\/]*)
5835 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5836 ;;
5837 *)
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 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 +00005845 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005847 break 2
5848 fi
5849done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005850done
Reid Spencera773bd52006-08-04 18:18:08 +00005851IFS=$as_save_IFS
5852
5853 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5854 ;;
5855esac
5856fi
5857CP=$ac_cv_path_CP
5858if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859 { echo "$as_me:$LINENO: result: $CP" >&5
5860echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005861else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862 { echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005864fi
5865
5866
5867# Extract the first word of "date", so it can be a program name with args.
5868set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871if test "${ac_cv_path_DATE+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005873else
5874 case $DATE in
5875 [\\/]* | ?:[\\/]*)
5876 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5877 ;;
5878 *)
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 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 +00005886 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005888 break 2
5889 fi
5890done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891done
Reid Spencera773bd52006-08-04 18:18:08 +00005892IFS=$as_save_IFS
5893
5894 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5895 ;;
5896esac
5897fi
5898DATE=$ac_cv_path_DATE
5899if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900 { echo "$as_me:$LINENO: result: $DATE" >&5
5901echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005903 { echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005905fi
5906
5907
5908# Extract the first word of "find", so it can be a program name with args.
5909set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5912if test "${ac_cv_path_FIND+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005914else
5915 case $FIND in
5916 [\\/]* | ?:[\\/]*)
5917 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5918 ;;
5919 *)
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 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 +00005927 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005929 break 2
5930 fi
5931done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005932done
Reid Spencera773bd52006-08-04 18:18:08 +00005933IFS=$as_save_IFS
5934
5935 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5936 ;;
5937esac
5938fi
5939FIND=$ac_cv_path_FIND
5940if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941 { echo "$as_me:$LINENO: result: $FIND" >&5
5942echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944 { echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005946fi
5947
5948
5949# Extract the first word of "grep", so it can be a program name with args.
5950set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953if test "${ac_cv_path_GREP+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005955else
5956 case $GREP in
5957 [\\/]* | ?:[\\/]*)
5958 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5959 ;;
5960 *)
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 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 +00005968 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005970 break 2
5971 fi
5972done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973done
Reid Spencera773bd52006-08-04 18:18:08 +00005974IFS=$as_save_IFS
5975
5976 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5977 ;;
5978esac
5979fi
5980GREP=$ac_cv_path_GREP
5981if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982 { echo "$as_me:$LINENO: result: $GREP" >&5
5983echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985 { echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005987fi
5988
5989
5990# Extract the first word of "mkdir", so it can be a program name with args.
5991set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5994if test "${ac_cv_path_MKDIR+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005996else
5997 case $MKDIR in
5998 [\\/]* | ?:[\\/]*)
5999 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6000 ;;
6001 *)
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 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 +00006009 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006011 break 2
6012 fi
6013done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006014done
Reid Spencera773bd52006-08-04 18:18:08 +00006015IFS=$as_save_IFS
6016
6017 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6018 ;;
6019esac
6020fi
6021MKDIR=$ac_cv_path_MKDIR
6022if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6024echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026 { echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006028fi
6029
6030
6031# Extract the first word of "mv", so it can be a program name with args.
6032set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035if test "${ac_cv_path_MV+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006037else
6038 case $MV in
6039 [\\/]* | ?:[\\/]*)
6040 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6041 ;;
6042 *)
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 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 +00006050 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006052 break 2
6053 fi
6054done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006055done
Reid Spencera773bd52006-08-04 18:18:08 +00006056IFS=$as_save_IFS
6057
6058 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6059 ;;
6060esac
6061fi
6062MV=$ac_cv_path_MV
6063if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064 { echo "$as_me:$LINENO: result: $MV" >&5
6065echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006066else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067 { echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006069fi
6070
6071
6072if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6074set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006075{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077if test "${ac_cv_prog_RANLIB+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006079else
6080 if test -n "$RANLIB"; then
6081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 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 +00006090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006092 break 2
6093 fi
6094done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006095done
Reid Spencera773bd52006-08-04 18:18:08 +00006096IFS=$as_save_IFS
6097
6098fi
6099fi
6100RANLIB=$ac_cv_prog_RANLIB
6101if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006102 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6103echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 { echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006107fi
6108
6109
6110fi
6111if test -z "$ac_cv_prog_RANLIB"; then
6112 ac_ct_RANLIB=$RANLIB
6113 # Extract the first word of "ranlib", so it can be a program name with args.
6114set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006115{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006119else
6120 if test -n "$ac_ct_RANLIB"; then
6121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 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 +00006130 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006132 break 2
6133 fi
6134done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006135done
Reid Spencera773bd52006-08-04 18:18:08 +00006136IFS=$as_save_IFS
6137
6138fi
6139fi
6140ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6143echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006144else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145 { echo "$as_me:$LINENO: result: no" >&5
6146echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006147fi
6148
6149 if test "x$ac_ct_RANLIB" = x; then
6150 RANLIB=":"
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006154{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6155whose name does not start with the host triplet. If you think this
6156configuration is useful to you, please write to autoconf@gnu.org." >&5
6157echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6158whose name does not start with the host triplet. If you think this
6159configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006160ac_tool_warned=yes ;;
6161esac
6162 RANLIB=$ac_ct_RANLIB
6163 fi
6164else
6165 RANLIB="$ac_cv_prog_RANLIB"
6166fi
6167
Torok Edwin871384f2010-01-26 08:50:50 +00006168if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6170set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173if test "${ac_cv_prog_AR+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006175else
6176 if test -n "$AR"; then
6177 ac_cv_prog_AR="$AR" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 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 +00006186 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006188 break 2
6189 fi
6190done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191done
Torok Edwin871384f2010-01-26 08:50:50 +00006192IFS=$as_save_IFS
6193
6194fi
6195fi
6196AR=$ac_cv_prog_AR
6197if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198 { echo "$as_me:$LINENO: result: $AR" >&5
6199echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201 { echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006203fi
6204
6205
6206fi
6207if test -z "$ac_cv_prog_AR"; then
6208 ac_ct_AR=$AR
6209 # Extract the first word of "ar", so it can be a program name with args.
6210set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006211{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006215else
6216 if test -n "$ac_ct_AR"; then
6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006226 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006228 break 2
6229 fi
6230done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231done
Torok Edwin871384f2010-01-26 08:50:50 +00006232IFS=$as_save_IFS
6233
6234fi
6235fi
6236ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006238 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6239echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006241 { echo "$as_me:$LINENO: result: no" >&5
6242echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006243fi
6244
6245 if test "x$ac_ct_AR" = x; then
6246 AR="false"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251whose name does not start with the host triplet. If you think this
6252configuration is useful to you, please write to autoconf@gnu.org." >&5
6253echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254whose name does not start with the host triplet. If you think this
6255configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006256ac_tool_warned=yes ;;
6257esac
6258 AR=$ac_ct_AR
6259 fi
6260else
6261 AR="$ac_cv_prog_AR"
6262fi
6263
Reid Spencera773bd52006-08-04 18:18:08 +00006264# Extract the first word of "rm", so it can be a program name with args.
6265set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268if test "${ac_cv_path_RM+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006270else
6271 case $RM in
6272 [\\/]* | ?:[\\/]*)
6273 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6274 ;;
6275 *)
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 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 +00006283 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006285 break 2
6286 fi
6287done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006288done
Reid Spencera773bd52006-08-04 18:18:08 +00006289IFS=$as_save_IFS
6290
6291 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6292 ;;
6293esac
6294fi
6295RM=$ac_cv_path_RM
6296if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297 { echo "$as_me:$LINENO: result: $RM" >&5
6298echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300 { echo "$as_me:$LINENO: result: no" >&5
6301echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006302fi
6303
6304
6305# Extract the first word of "sed", so it can be a program name with args.
6306set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309if test "${ac_cv_path_SED+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006311else
6312 case $SED in
6313 [\\/]* | ?:[\\/]*)
6314 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6315 ;;
6316 *)
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 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 +00006324 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006326 break 2
6327 fi
6328done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329done
Reid Spencera773bd52006-08-04 18:18:08 +00006330IFS=$as_save_IFS
6331
6332 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6333 ;;
6334esac
6335fi
6336SED=$ac_cv_path_SED
6337if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338 { echo "$as_me:$LINENO: result: $SED" >&5
6339echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341 { echo "$as_me:$LINENO: result: no" >&5
6342echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006343fi
6344
6345
6346# Extract the first word of "tar", so it can be a program name with args.
6347set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350if test "${ac_cv_path_TAR+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006352else
6353 case $TAR in
6354 [\\/]* | ?:[\\/]*)
6355 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6356 ;;
6357 *)
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 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 +00006365 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006367 break 2
6368 fi
6369done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370done
Reid Spencera773bd52006-08-04 18:18:08 +00006371IFS=$as_save_IFS
6372
6373 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6374 ;;
6375esac
6376fi
6377TAR=$ac_cv_path_TAR
6378if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006379 { echo "$as_me:$LINENO: result: $TAR" >&5
6380echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382 { echo "$as_me:$LINENO: result: no" >&5
6383echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006384fi
6385
6386
6387# Extract the first word of "pwd", so it can be a program name with args.
6388set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391if test "${ac_cv_path_BINPWD+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006393else
6394 case $BINPWD in
6395 [\\/]* | ?:[\\/]*)
6396 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6397 ;;
6398 *)
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 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 +00006406 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006408 break 2
6409 fi
6410done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411done
Reid Spencera773bd52006-08-04 18:18:08 +00006412IFS=$as_save_IFS
6413
6414 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6415 ;;
6416esac
6417fi
6418BINPWD=$ac_cv_path_BINPWD
6419if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6421echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423 { echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006425fi
6426
6427
6428
6429# Extract the first word of "Graphviz", so it can be a program name with args.
6430set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006435else
6436 case $GRAPHVIZ in
6437 [\\/]* | ?:[\\/]*)
6438 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6439 ;;
6440 *)
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 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 +00006448 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006450 break 2
6451 fi
6452done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453done
Reid Spencera773bd52006-08-04 18:18:08 +00006454IFS=$as_save_IFS
6455
6456 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6457 ;;
6458esac
6459fi
6460GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6461if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6463echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006465 { echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006467fi
6468
6469
6470if test "$GRAPHVIZ" != "echo Graphviz" ; then
6471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006472cat >>confdefs.h <<\_ACEOF
6473#define HAVE_GRAPHVIZ 1
6474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006475
Jeff Cohen28783c32007-01-12 18:22:38 +00006476 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006477 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6478 fi
6479
6480cat >>confdefs.h <<_ACEOF
6481#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6482_ACEOF
6483
6484fi
6485# Extract the first word of "dot", so it can be a program name with args.
6486set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489if test "${ac_cv_path_DOT+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006491else
6492 case $DOT in
6493 [\\/]* | ?:[\\/]*)
6494 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6495 ;;
6496 *)
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 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 +00006504 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006506 break 2
6507 fi
6508done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509done
Reid Spencera773bd52006-08-04 18:18:08 +00006510IFS=$as_save_IFS
6511
6512 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6513 ;;
6514esac
6515fi
6516DOT=$ac_cv_path_DOT
6517if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006518 { echo "$as_me:$LINENO: result: $DOT" >&5
6519echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006521 { echo "$as_me:$LINENO: result: no" >&5
6522echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006523fi
6524
6525
6526if test "$DOT" != "echo dot" ; then
6527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006528cat >>confdefs.h <<\_ACEOF
6529#define HAVE_DOT 1
6530_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006531
Jeff Cohen28783c32007-01-12 18:22:38 +00006532 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006533 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6534 fi
6535
6536cat >>confdefs.h <<_ACEOF
6537#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6538_ACEOF
6539
6540fi
David Greenef0b9eff2009-07-09 17:16:26 +00006541# Extract the first word of "fdp", so it can be a program name with args.
6542set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6545if test "${ac_cv_path_FDP+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006547else
6548 case $FDP in
6549 [\\/]* | ?:[\\/]*)
6550 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6551 ;;
6552 *)
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 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 +00006560 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006562 break 2
6563 fi
6564done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006565done
David Greenef0b9eff2009-07-09 17:16:26 +00006566IFS=$as_save_IFS
6567
6568 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6569 ;;
6570esac
6571fi
6572FDP=$ac_cv_path_FDP
6573if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006574 { echo "$as_me:$LINENO: result: $FDP" >&5
6575echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006577 { echo "$as_me:$LINENO: result: no" >&5
6578echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006579fi
6580
6581
6582if test "$FDP" != "echo fdp" ; then
6583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006584cat >>confdefs.h <<\_ACEOF
6585#define HAVE_FDP 1
6586_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006587
6588 if test "$llvm_cv_os_type" = "MingW" ; then
6589 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6590 fi
6591
6592cat >>confdefs.h <<_ACEOF
6593#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6594_ACEOF
6595
6596fi
6597# Extract the first word of "neato", so it can be a program name with args.
6598set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601if test "${ac_cv_path_NEATO+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006603else
6604 case $NEATO in
6605 [\\/]* | ?:[\\/]*)
6606 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6607 ;;
6608 *)
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610for as_dir in $PATH
6611do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 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 +00006616 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006618 break 2
6619 fi
6620done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621done
David Greenef0b9eff2009-07-09 17:16:26 +00006622IFS=$as_save_IFS
6623
6624 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6625 ;;
6626esac
6627fi
6628NEATO=$ac_cv_path_NEATO
6629if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630 { echo "$as_me:$LINENO: result: $NEATO" >&5
6631echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006633 { echo "$as_me:$LINENO: result: no" >&5
6634echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006635fi
6636
6637
6638if test "$NEATO" != "echo neato" ; then
6639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006640cat >>confdefs.h <<\_ACEOF
6641#define HAVE_NEATO 1
6642_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006643
6644 if test "$llvm_cv_os_type" = "MingW" ; then
6645 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6646 fi
6647
6648cat >>confdefs.h <<_ACEOF
6649#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6650_ACEOF
6651
6652fi
6653# Extract the first word of "twopi", so it can be a program name with args.
6654set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657if test "${ac_cv_path_TWOPI+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006659else
6660 case $TWOPI in
6661 [\\/]* | ?:[\\/]*)
6662 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6663 ;;
6664 *)
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 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 +00006672 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006674 break 2
6675 fi
6676done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006677done
David Greenef0b9eff2009-07-09 17:16:26 +00006678IFS=$as_save_IFS
6679
6680 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6681 ;;
6682esac
6683fi
6684TWOPI=$ac_cv_path_TWOPI
6685if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006686 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6687echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006688else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006689 { echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006691fi
6692
6693
6694if test "$TWOPI" != "echo twopi" ; then
6695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696cat >>confdefs.h <<\_ACEOF
6697#define HAVE_TWOPI 1
6698_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006699
6700 if test "$llvm_cv_os_type" = "MingW" ; then
6701 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6702 fi
6703
6704cat >>confdefs.h <<_ACEOF
6705#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6706_ACEOF
6707
6708fi
6709# Extract the first word of "circo", so it can be a program name with args.
6710set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713if test "${ac_cv_path_CIRCO+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006715else
6716 case $CIRCO in
6717 [\\/]* | ?:[\\/]*)
6718 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6719 ;;
6720 *)
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 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 +00006728 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006730 break 2
6731 fi
6732done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733done
David Greenef0b9eff2009-07-09 17:16:26 +00006734IFS=$as_save_IFS
6735
6736 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6737 ;;
6738esac
6739fi
6740CIRCO=$ac_cv_path_CIRCO
6741if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6743echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006744else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745 { echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006747fi
6748
6749
6750if test "$CIRCO" != "echo circo" ; then
6751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752cat >>confdefs.h <<\_ACEOF
6753#define HAVE_CIRCO 1
6754_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006755
6756 if test "$llvm_cv_os_type" = "MingW" ; then
6757 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6758 fi
6759
6760cat >>confdefs.h <<_ACEOF
6761#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6762_ACEOF
6763
6764fi
Reid Spencera773bd52006-08-04 18:18:08 +00006765for ac_prog in gv gsview32
6766do
6767 # Extract the first word of "$ac_prog", so it can be a program name with args.
6768set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771if test "${ac_cv_path_GV+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006773else
6774 case $GV in
6775 [\\/]* | ?:[\\/]*)
6776 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6777 ;;
6778 *)
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 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 +00006786 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006788 break 2
6789 fi
6790done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006791done
Reid Spencera773bd52006-08-04 18:18:08 +00006792IFS=$as_save_IFS
6793
6794 ;;
6795esac
6796fi
6797GV=$ac_cv_path_GV
6798if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006799 { echo "$as_me:$LINENO: result: $GV" >&5
6800echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006802 { echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006804fi
6805
6806
6807 test -n "$GV" && break
6808done
6809test -n "$GV" || GV="echo gv"
6810
6811if test "$GV" != "echo gv" ; then
6812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006813cat >>confdefs.h <<\_ACEOF
6814#define HAVE_GV 1
6815_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006816
Jeff Cohen28783c32007-01-12 18:22:38 +00006817 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006818 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6819 fi
6820
6821cat >>confdefs.h <<_ACEOF
6822#define LLVM_PATH_GV "$GV${EXEEXT}"
6823_ACEOF
6824
6825fi
6826# Extract the first word of "dotty", so it can be a program name with args.
6827set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830if test "${ac_cv_path_DOTTY+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006832else
6833 case $DOTTY in
6834 [\\/]* | ?:[\\/]*)
6835 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6836 ;;
6837 *)
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 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 +00006845 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006847 break 2
6848 fi
6849done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850done
Reid Spencera773bd52006-08-04 18:18:08 +00006851IFS=$as_save_IFS
6852
6853 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6854 ;;
6855esac
6856fi
6857DOTTY=$ac_cv_path_DOTTY
6858if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6860echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006861else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862 { echo "$as_me:$LINENO: result: no" >&5
6863echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006864fi
6865
6866
6867if test "$DOTTY" != "echo dotty" ; then
6868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006869cat >>confdefs.h <<\_ACEOF
6870#define HAVE_DOTTY 1
6871_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006872
Jeff Cohen28783c32007-01-12 18:22:38 +00006873 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006874 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6875 fi
6876
6877cat >>confdefs.h <<_ACEOF
6878#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6879_ACEOF
6880
6881fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006882# Extract the first word of "xdot.py", so it can be a program name with args.
6883set dummy xdot.py; ac_word=$2
6884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886if test "${ac_cv_path_XDOT_PY+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889 case $XDOT_PY in
6890 [\\/]* | ?:[\\/]*)
6891 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6892 ;;
6893 *)
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906done
6907IFS=$as_save_IFS
6908
6909 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6910 ;;
6911esac
6912fi
6913XDOT_PY=$ac_cv_path_XDOT_PY
6914if test -n "$XDOT_PY"; then
6915 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6916echo "${ECHO_T}$XDOT_PY" >&6; }
6917else
6918 { echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6; }
6920fi
6921
6922
6923if test "$XDOT_PY" != "echo xdot.py" ; then
6924
6925cat >>confdefs.h <<\_ACEOF
6926#define HAVE_XDOT_PY 1
6927_ACEOF
6928
6929 if test "$llvm_cv_os_type" = "MingW" ; then
6930 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6931 fi
6932
6933cat >>confdefs.h <<_ACEOF
6934#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6935_ACEOF
6936
6937fi
Reid Spencera773bd52006-08-04 18:18:08 +00006938
6939
6940# Extract the first word of "perl", so it can be a program name with args.
6941set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944if test "${ac_cv_path_PERL+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006946else
6947 case $PERL in
6948 [\\/]* | ?:[\\/]*)
6949 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6950 ;;
6951 *)
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 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 +00006959 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006961 break 2
6962 fi
6963done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964done
Reid Spencera773bd52006-08-04 18:18:08 +00006965IFS=$as_save_IFS
6966
6967 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6968 ;;
6969esac
6970fi
6971PERL=$ac_cv_path_PERL
6972if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006973 { echo "$as_me:$LINENO: result: $PERL" >&5
6974echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976 { echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006978fi
6979
6980
6981if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6983echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006984 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006985 { echo "$as_me:$LINENO: result: yes" >&5
6986echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006987 else
6988 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006989 { echo "$as_me:$LINENO: result: not found" >&5
6990echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006991 fi
6992fi
6993
6994
6995if test x"$PERL" = xnone; then
6996 HAVE_PERL=0
6997
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6999echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7000 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007001else
7002 HAVE_PERL=1
7003
7004fi
7005
7006# Find a good install program. We prefer a C program (faster),
7007# so one script is as good as another. But avoid the broken or
7008# incompatible versions:
7009# SysV /etc/install, /usr/sbin/install
7010# SunOS /usr/etc/install
7011# IRIX /sbin/install
7012# AIX /bin/install
7013# AmigaOS /C/install, which installs bootblocks on floppy discs
7014# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7015# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7016# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7017# OS/2's system install, which has a completely different semantic
7018# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7020echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007021if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022if test "${ac_cv_path_install+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007024else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030 # Account for people who put trailing slashes in PATH elements.
7031case $as_dir/ in
7032 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007035 /usr/ucb/* ) ;;
7036 *)
7037 # OSF1 and SCO ODT 3.0 have their own names for install.
7038 # Don't use installbsd from OSF since it installs stuff as root
7039 # by default.
7040 for ac_prog in ginstall scoinst install; do
7041 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042 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 +00007043 if test $ac_prog = install &&
7044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7045 # AIX install. It has an incompatible calling convention.
7046 :
7047 elif test $ac_prog = install &&
7048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7049 # program-specific install script used by HP pwplus--don't use.
7050 :
7051 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007052 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7053 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007054 fi
7055 fi
7056 done
7057 done
7058 ;;
7059esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060done
Reid Spencera773bd52006-08-04 18:18:08 +00007061IFS=$as_save_IFS
7062
7063
7064fi
7065 if test "${ac_cv_path_install+set}" = set; then
7066 INSTALL=$ac_cv_path_install
7067 else
7068 # As a last resort, use the slow shell script. Don't cache a
7069 # value for INSTALL within a source directory, because that will
7070 # break other packages using the cache if that directory is
7071 # removed, or if the value is a relative name.
7072 INSTALL=$ac_install_sh
7073 fi
7074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007075{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7076echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007077
7078# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7079# It thinks the first close brace ends the variable substitution.
7080test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7081
7082test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7083
7084test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7085
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007086case "$INSTALL" in
7087 [\\/$]* | ?:[\\/]* ) ;;
7088 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7089esac
Reid Spencera773bd52006-08-04 18:18:08 +00007090
7091# Extract the first word of "bzip2", so it can be a program name with args.
7092set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095if test "${ac_cv_path_BZIP2+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007097else
7098 case $BZIP2 in
7099 [\\/]* | ?:[\\/]*)
7100 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7101 ;;
7102 *)
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104for as_dir in $PATH
7105do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 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 +00007110 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007112 break 2
7113 fi
7114done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115done
Reid Spencera773bd52006-08-04 18:18:08 +00007116IFS=$as_save_IFS
7117
Reid Spencera773bd52006-08-04 18:18:08 +00007118 ;;
7119esac
7120fi
7121BZIP2=$ac_cv_path_BZIP2
7122if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7124echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126 { echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007128fi
7129
7130
mike-m68cb3192010-05-06 23:45:43 +00007131# Extract the first word of "cat", so it can be a program name with args.
7132set dummy cat; ac_word=$2
7133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135if test "${ac_cv_path_CAT+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138 case $CAT in
7139 [\\/]* | ?:[\\/]*)
7140 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7141 ;;
7142 *)
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154done
7155done
7156IFS=$as_save_IFS
7157
7158 ;;
7159esac
7160fi
7161CAT=$ac_cv_path_CAT
7162if test -n "$CAT"; then
7163 { echo "$as_me:$LINENO: result: $CAT" >&5
7164echo "${ECHO_T}$CAT" >&6; }
7165else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
7168fi
7169
7170
Reid Spencera773bd52006-08-04 18:18:08 +00007171# Extract the first word of "doxygen", so it can be a program name with args.
7172set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175if test "${ac_cv_path_DOXYGEN+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007177else
7178 case $DOXYGEN in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7181 ;;
7182 *)
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 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 +00007190 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007192 break 2
7193 fi
7194done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007195done
Reid Spencera773bd52006-08-04 18:18:08 +00007196IFS=$as_save_IFS
7197
Reid Spencera773bd52006-08-04 18:18:08 +00007198 ;;
7199esac
7200fi
7201DOXYGEN=$ac_cv_path_DOXYGEN
7202if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7204echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007208fi
7209
7210
Reid Spencera773bd52006-08-04 18:18:08 +00007211# Extract the first word of "groff", so it can be a program name with args.
7212set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215if test "${ac_cv_path_GROFF+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007217else
7218 case $GROFF in
7219 [\\/]* | ?:[\\/]*)
7220 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7221 ;;
7222 *)
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007230 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007232 break 2
7233 fi
7234done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235done
Reid Spencera773bd52006-08-04 18:18:08 +00007236IFS=$as_save_IFS
7237
Reid Spencera773bd52006-08-04 18:18:08 +00007238 ;;
7239esac
7240fi
7241GROFF=$ac_cv_path_GROFF
7242if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243 { echo "$as_me:$LINENO: result: $GROFF" >&5
7244echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246 { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007248fi
7249
7250
7251# Extract the first word of "gzip", so it can be a program name with args.
7252set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007255if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007257else
Eric Christopher031d3072010-12-10 01:31:51 +00007258 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007259 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007260 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007261 ;;
7262 *)
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 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 +00007270 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007272 break 2
7273 fi
7274done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275done
Reid Spencera773bd52006-08-04 18:18:08 +00007276IFS=$as_save_IFS
7277
Reid Spencera773bd52006-08-04 18:18:08 +00007278 ;;
7279esac
7280fi
Eric Christopher031d3072010-12-10 01:31:51 +00007281GZIPBIN=$ac_cv_path_GZIPBIN
7282if test -n "$GZIPBIN"; then
7283 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7284echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286 { echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007288fi
7289
7290
7291# Extract the first word of "pod2html", so it can be a program name with args.
7292set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295if test "${ac_cv_path_POD2HTML+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007297else
7298 case $POD2HTML in
7299 [\\/]* | ?:[\\/]*)
7300 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7301 ;;
7302 *)
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 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 +00007310 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007312 break 2
7313 fi
7314done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315done
Reid Spencera773bd52006-08-04 18:18:08 +00007316IFS=$as_save_IFS
7317
Reid Spencera773bd52006-08-04 18:18:08 +00007318 ;;
7319esac
7320fi
7321POD2HTML=$ac_cv_path_POD2HTML
7322if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7324echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007325else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326 { echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007328fi
7329
7330
7331# Extract the first word of "pod2man", so it can be a program name with args.
7332set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335if test "${ac_cv_path_POD2MAN+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007337else
7338 case $POD2MAN in
7339 [\\/]* | ?:[\\/]*)
7340 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7341 ;;
7342 *)
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 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 +00007350 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007352 break 2
7353 fi
7354done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007355done
Reid Spencera773bd52006-08-04 18:18:08 +00007356IFS=$as_save_IFS
7357
Reid Spencera773bd52006-08-04 18:18:08 +00007358 ;;
7359esac
7360fi
7361POD2MAN=$ac_cv_path_POD2MAN
7362if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007363 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7364echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007365else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366 { echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007368fi
7369
7370
mike-m68cb3192010-05-06 23:45:43 +00007371# Extract the first word of "pdfroff", so it can be a program name with args.
7372set dummy pdfroff; ac_word=$2
7373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375if test "${ac_cv_path_PDFROFF+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377else
7378 case $PDFROFF in
7379 [\\/]* | ?:[\\/]*)
7380 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7381 ;;
7382 *)
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394done
7395done
7396IFS=$as_save_IFS
7397
7398 ;;
7399esac
7400fi
7401PDFROFF=$ac_cv_path_PDFROFF
7402if test -n "$PDFROFF"; then
7403 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7404echo "${ECHO_T}$PDFROFF" >&6; }
7405else
7406 { echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6; }
7408fi
7409
7410
Reid Spencera773bd52006-08-04 18:18:08 +00007411# Extract the first word of "runtest", so it can be a program name with args.
7412set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415if test "${ac_cv_path_RUNTEST+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007417else
7418 case $RUNTEST in
7419 [\\/]* | ?:[\\/]*)
7420 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7421 ;;
7422 *)
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 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 +00007430 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007432 break 2
7433 fi
7434done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435done
Reid Spencera773bd52006-08-04 18:18:08 +00007436IFS=$as_save_IFS
7437
Reid Spencera773bd52006-08-04 18:18:08 +00007438 ;;
7439esac
7440fi
7441RUNTEST=$ac_cv_path_RUNTEST
7442if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007443 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7444echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007446 { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007448fi
7449
7450
7451
7452no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007453{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7454echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007455
7456# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007458 withval=$with_tclinclude; with_tclinclude=${withval}
7459else
7460 with_tclinclude=''
7461fi
7462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007463if test "${ac_cv_path_tclsh+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007465else
7466
7467if test x"${with_tclinclude}" != x ; then
7468 if test -f ${with_tclinclude}/tclsh ; then
7469 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7470 elif test -f ${with_tclinclude}/src/tclsh ; then
7471 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7472 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7474echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7475 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007476 fi
7477fi
Torok Edwin871384f2010-01-26 08:50:50 +00007478fi
7479
Reid Spencera773bd52006-08-04 18:18:08 +00007480
7481if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482 { echo "$as_me:$LINENO: result: none" >&5
7483echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007484 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
7485do
7486 # Extract the first word of "$ac_prog", so it can be a program name with args.
7487set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490if test "${ac_cv_path_TCLSH+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007492else
7493 case $TCLSH in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7496 ;;
7497 *)
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 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 +00007505 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007507 break 2
7508 fi
7509done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007510done
Reid Spencera773bd52006-08-04 18:18:08 +00007511IFS=$as_save_IFS
7512
7513 ;;
7514esac
7515fi
7516TCLSH=$ac_cv_path_TCLSH
7517if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7519echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007521 { echo "$as_me:$LINENO: result: no" >&5
7522echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007523fi
7524
7525
7526 test -n "$TCLSH" && break
7527done
7528
7529 if test x"${TCLSH}" = x ; then
7530 ac_cv_path_tclsh='';
7531 else
7532 ac_cv_path_tclsh="${TCLSH}";
7533 fi
7534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007535 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7536echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007537 TCLSH="${ac_cv_path_tclsh}"
7538
7539fi
7540
Reid Spencera773bd52006-08-04 18:18:08 +00007541# Extract the first word of "zip", so it can be a program name with args.
7542set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545if test "${ac_cv_path_ZIP+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007547else
7548 case $ZIP in
7549 [\\/]* | ?:[\\/]*)
7550 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7551 ;;
7552 *)
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 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 +00007560 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007562 break 2
7563 fi
7564done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565done
Reid Spencera773bd52006-08-04 18:18:08 +00007566IFS=$as_save_IFS
7567
Reid Spencera773bd52006-08-04 18:18:08 +00007568 ;;
7569esac
7570fi
7571ZIP=$ac_cv_path_ZIP
7572if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007573 { echo "$as_me:$LINENO: result: $ZIP" >&5
7574echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007575else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576 { echo "$as_me:$LINENO: result: no" >&5
7577echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007578fi
7579
7580
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007581for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007582do
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587if test "${ac_cv_path_OCAMLC+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007589else
7590 case $OCAMLC in
7591 [\\/]* | ?:[\\/]*)
7592 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7593 ;;
7594 *)
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 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 +00007602 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007604 break 2
7605 fi
7606done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007607done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007608IFS=$as_save_IFS
7609
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007610 ;;
7611esac
7612fi
7613OCAMLC=$ac_cv_path_OCAMLC
7614if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007615 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7616echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007618 { echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007620fi
7621
7622
Gordon Henriksene7072162008-03-07 18:20:01 +00007623 test -n "$OCAMLC" && break
7624done
7625
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007626for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007627do
7628 # Extract the first word of "$ac_prog", so it can be a program name with args.
7629set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007634else
7635 case $OCAMLOPT in
7636 [\\/]* | ?:[\\/]*)
7637 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7638 ;;
7639 *)
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 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 +00007647 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007649 break 2
7650 fi
7651done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007652done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007653IFS=$as_save_IFS
7654
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007655 ;;
7656esac
7657fi
7658OCAMLOPT=$ac_cv_path_OCAMLOPT
7659if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007660 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7661echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007663 { echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007665fi
7666
7667
Gordon Henriksene7072162008-03-07 18:20:01 +00007668 test -n "$OCAMLOPT" && break
7669done
7670
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007671for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007672do
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007679else
7680 case $OCAMLDEP in
7681 [\\/]* | ?:[\\/]*)
7682 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7683 ;;
7684 *)
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 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 +00007692 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007694 break 2
7695 fi
7696done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007698IFS=$as_save_IFS
7699
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007700 ;;
7701esac
7702fi
7703OCAMLDEP=$ac_cv_path_OCAMLDEP
7704if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007705 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7706echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007707else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708 { echo "$as_me:$LINENO: result: no" >&5
7709echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007710fi
7711
7712
Gordon Henriksene7072162008-03-07 18:20:01 +00007713 test -n "$OCAMLDEP" && break
7714done
7715
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007716for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007717do
7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
7719set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007724else
7725 case $OCAMLDOC in
7726 [\\/]* | ?:[\\/]*)
7727 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7728 ;;
7729 *)
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 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 +00007737 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007739 break 2
7740 fi
7741done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007742done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007743IFS=$as_save_IFS
7744
7745 ;;
7746esac
7747fi
7748OCAMLDOC=$ac_cv_path_OCAMLDOC
7749if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007750 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7751echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753 { echo "$as_me:$LINENO: result: no" >&5
7754echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007755fi
7756
7757
7758 test -n "$OCAMLDOC" && break
7759done
7760
Torok Edwincc499a42008-10-22 09:56:27 +00007761for ac_prog in gas as
7762do
7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
7764set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7767if test "${ac_cv_path_GAS+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007769else
7770 case $GAS in
7771 [\\/]* | ?:[\\/]*)
7772 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7773 ;;
7774 *)
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 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 +00007782 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007784 break 2
7785 fi
7786done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007787done
Torok Edwincc499a42008-10-22 09:56:27 +00007788IFS=$as_save_IFS
7789
7790 ;;
7791esac
7792fi
7793GAS=$ac_cv_path_GAS
7794if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007795 { echo "$as_me:$LINENO: result: $GAS" >&5
7796echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798 { echo "$as_me:$LINENO: result: no" >&5
7799echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007800fi
7801
7802
7803 test -n "$GAS" && break
7804done
7805
Reid Spencera773bd52006-08-04 18:18:08 +00007806
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007807{ echo "$as_me:$LINENO: checking for linker version" >&5
7808echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7809if test "${llvm_cv_link_version+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811else
7812
7813 version_string="$(ld -v 2>&1 | head -1)"
7814
7815 # Check for ld64.
7816 if (echo "$version_string" | grep -q "ld64"); then
7817 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7818 else
7819 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7820 fi
7821
7822fi
7823{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7824echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7825
7826cat >>confdefs.h <<_ACEOF
7827#define HOST_LINK_VERSION "$llvm_cv_link_version"
7828_ACEOF
7829
7830
7831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007832{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7833echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7834if test "${llvm_cv_link_use_r+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007836else
7837 ac_ext=c
7838ac_cpp='$CPP $CPPFLAGS'
7839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842
7843 oldcflags="$CFLAGS"
7844 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007845 cat >conftest.$ac_ext <<_ACEOF
7846/* confdefs.h. */
7847_ACEOF
7848cat confdefs.h >>conftest.$ac_ext
7849cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007850/* end confdefs.h. */
7851
7852int
7853main ()
7854{
Dan Gohman39ed6782010-04-25 00:12:20 +00007855
Reid Spencera773bd52006-08-04 18:18:08 +00007856 ;
7857 return 0;
7858}
7859_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007860rm -f conftest.$ac_objext conftest$ac_exeext
7861if { (ac_try="$ac_link"
7862case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865esac
7866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_link") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878esac
7879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888esac
7889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_try") 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007894 llvm_cv_link_use_r=yes
7895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007896 echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007900fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007901
Bill Wendlingebcceee2009-04-18 11:20:33 +00007902rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007904 CFLAGS="$oldcflags"
7905 ac_ext=c
7906ac_cpp='$CPP $CPPFLAGS'
7907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910
7911
7912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7914echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007915if test "$llvm_cv_link_use_r" = yes ; then
7916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007917cat >>confdefs.h <<\_ACEOF
7918#define HAVE_LINK_R 1
7919_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007920
7921 fi
7922
7923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007924{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7925echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7926if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007928else
7929 ac_ext=c
7930ac_cpp='$CPP $CPPFLAGS'
7931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
7935 oldcflags="$CFLAGS"
7936 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007937 cat >conftest.$ac_ext <<_ACEOF
7938/* confdefs.h. */
7939_ACEOF
7940cat confdefs.h >>conftest.$ac_ext
7941cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007942/* end confdefs.h. */
7943
7944int
7945main ()
7946{
Dan Gohman39ed6782010-04-25 00:12:20 +00007947
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007948 ;
7949 return 0;
7950}
7951_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007952rm -f conftest.$ac_objext conftest$ac_exeext
7953if { (ac_try="$ac_link"
7954case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957esac
7958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_link") 2>conftest.er1
7960 ac_status=$?
7961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967 { (case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7970esac
7971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_try") 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (case "(($ac_try" in
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7980esac
7981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_try") 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007986 llvm_cv_link_use_export_dynamic=yes
7987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007988 echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007992fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007993
Bill Wendlingebcceee2009-04-18 11:20:33 +00007994rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007995 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007996 CFLAGS="$oldcflags"
7997 ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003
8004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008005{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8006echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008007if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008009cat >>confdefs.h <<\_ACEOF
8010#define HAVE_LINK_EXPORT_DYNAMIC 1
8011_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008012
8013 fi
8014
8015
Dan Gohmanda612d62010-06-01 14:56:56 +00008016{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8017echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8018if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020else
8021 ac_ext=c
8022ac_cpp='$CPP $CPPFLAGS'
8023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026
8027 oldcflags="$CFLAGS"
8028
8029 # The following code is from the autoconf manual,
8030 # "11.13: Limitations of Usual Tools".
8031 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8032 # Use mktemp if possible; otherwise fall back on mkdir,
8033 # with $RANDOM to make collisions less likely.
8034 : ${TMPDIR=/tmp}
8035 {
8036 tmp=`
8037 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8038 ` &&
8039 test -n "$tmp" && test -d "$tmp"
8040 } || {
8041 tmp=$TMPDIR/foo$$-$RANDOM
8042 (umask 077 && mkdir "$tmp")
8043 } || exit $?
8044
Dan Gohmanda612d62010-06-01 14:56:56 +00008045 echo "{" > "$tmp/export.map"
8046 echo " global: main;" >> "$tmp/export.map"
8047 echo " local: *;" >> "$tmp/export.map"
8048 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008049
Dan Gohmanda612d62010-06-01 14:56:56 +00008050 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008051 cat >conftest.$ac_ext <<_ACEOF
8052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
8057
8058int
8059main ()
8060{
Dan Gohman39ed6782010-04-25 00:12:20 +00008061
Dan Gohman391569c2010-04-16 22:59:06 +00008062 ;
8063 return 0;
8064}
8065_ACEOF
8066rm -f conftest.$ac_objext conftest$ac_exeext
8067if { (ac_try="$ac_link"
8068case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071esac
8072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_link") 2>conftest.er1
8074 ac_status=$?
8075 grep -v '^ *+' conftest.er1 >conftest.err
8076 rm -f conftest.er1
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8081 { (case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084esac
8085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_try") 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest$ac_exeext'
8091 { (case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8094esac
8095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_try") 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008100 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008101else
8102 echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
Dan Gohman943005e2010-06-01 16:22:27 +00008105 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008106fi
8107
8108rm -f core conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008110 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008111 rmdir "$tmp"
8112 CFLAGS="$oldcflags"
8113 ac_ext=c
8114ac_cpp='$CPP $CPPFLAGS'
8115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8117ac_compiler_gnu=$ac_cv_c_compiler_gnu
8118
8119
8120fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008121{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8122echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8123if test "$llvm_cv_link_use_version_script" = yes ; then
8124 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008125
8126 fi
8127
8128
Reid Spencera773bd52006-08-04 18:18:08 +00008129
8130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8132echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8133if test "${ac_cv_c_const+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008136 cat >conftest.$ac_ext <<_ACEOF
8137/* confdefs.h. */
8138_ACEOF
8139cat confdefs.h >>conftest.$ac_ext
8140cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008141/* end confdefs.h. */
8142
8143int
8144main ()
8145{
8146/* FIXME: Include the comments suggested by Paul. */
8147#ifndef __cplusplus
8148 /* Ultrix mips cc rejects this. */
8149 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008150 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008151 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152 char const *const *ccp;
8153 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008154 /* NEC SVR4.0.2 mips cc rejects this. */
8155 struct point {int x, y;};
8156 static struct point const zero = {0,0};
8157 /* AIX XL C 1.02.0.0 rejects this.
8158 It does not let you subtract one const X* pointer from another in
8159 an arm of an if-expression whose if-part is not a constant
8160 expression */
8161 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008163 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008164 ++ccp;
8165 p = (char**) ccp;
8166 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008167 { /* SCO 3.2v4 cc rejects this. */
8168 char *t;
8169 char const *s = 0 ? (char *) 0 : (char const *) 0;
8170
8171 *t++ = 0;
8172 if (s) return 0;
8173 }
8174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8175 int x[] = {25, 17};
8176 const int *foo = &x[0];
8177 ++foo;
8178 }
8179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8180 typedef const int *iptr;
8181 iptr p = 0;
8182 ++p;
8183 }
8184 { /* AIX XL C 1.02.0.0 rejects this saying
8185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8186 struct s { int j; const int *ap[3]; };
8187 struct s *b; b->j = 5;
8188 }
8189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8190 const int foo = 10;
8191 if (!foo) return 0;
8192 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008193 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008194#endif
8195
8196 ;
8197 return 0;
8198}
8199_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200rm -f conftest.$ac_objext
8201if { (ac_try="$ac_compile"
8202case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205esac
8206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008234 ac_cv_c_const=yes
8235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236 echo "$as_me: failed program was:" >&5
8237sed 's/^/| /' conftest.$ac_ext >&5
8238
8239 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241
Reid Spencera773bd52006-08-04 18:18:08 +00008242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008244{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8245echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008246if test $ac_cv_c_const = no; then
8247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248cat >>confdefs.h <<\_ACEOF
8249#define const
8250_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008251
8252fi
8253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254
8255
8256
8257
8258
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008259ac_header_dirent=no
8260for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8262{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8263echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008267 cat >conftest.$ac_ext <<_ACEOF
8268/* confdefs.h. */
8269_ACEOF
8270cat confdefs.h >>conftest.$ac_ext
8271cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008272/* end confdefs.h. */
8273#include <sys/types.h>
8274#include <$ac_hdr>
8275
8276int
8277main ()
8278{
8279if ((DIR *) 0)
8280return 0;
8281 ;
8282 return 0;
8283}
8284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285rm -f conftest.$ac_objext
8286if { (ac_try="$ac_compile"
8287case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290esac
8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8293 ac_status=$?
8294 grep -v '^ *+' conftest.er1 >conftest.err
8295 rm -f conftest.er1
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008319 eval "$as_ac_Header=yes"
8320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008321 echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326
Reid Spencera773bd52006-08-04 18:18:08 +00008327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329ac_res=`eval echo '${'$as_ac_Header'}'`
8330 { echo "$as_me:$LINENO: result: $ac_res" >&5
8331echo "${ECHO_T}$ac_res" >&6; }
8332if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008333 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008335_ACEOF
8336
8337ac_header_dirent=$ac_hdr; break
8338fi
8339
8340done
8341# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8342if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8344echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8345if test "${ac_cv_search_opendir+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008347else
8348 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008349cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h. */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008354/* end confdefs.h. */
8355
Reid Spencera773bd52006-08-04 18:18:08 +00008356/* Override any GCC internal prototype to avoid an error.
8357 Use char because int might match the return type of a GCC
8358 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008359#ifdef __cplusplus
8360extern "C"
8361#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008362char opendir ();
8363int
8364main ()
8365{
Reid Spencera773bd52006-08-04 18:18:08 +00008366return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008367 ;
8368 return 0;
8369}
8370_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008371for ac_lib in '' dir; do
8372 if test -z "$ac_lib"; then
8373 ac_res="none required"
8374 else
8375 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008377 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378 rm -f conftest.$ac_objext conftest$ac_exeext
8379if { (ac_try="$ac_link"
8380case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8383esac
8384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_link") 2>conftest.er1
8386 ac_status=$?
8387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393 { (case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396esac
8397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_try") 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008412 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413else
8414 echo "$as_me: failed program was:" >&5
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
8417
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008419
Bill Wendlingebcceee2009-04-18 11:20:33 +00008420rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421 conftest$ac_exeext
8422 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008423 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008424fi
John Criswell7a73b802003-06-30 21:59:07 +00008425done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426if test "${ac_cv_search_opendir+set}" = set; then
8427 :
Reid Spencera773bd52006-08-04 18:18:08 +00008428else
8429 ac_cv_search_opendir=no
8430fi
8431rm conftest.$ac_ext
8432LIBS=$ac_func_search_save_LIBS
8433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8435echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008436ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008439
Reid Spencera773bd52006-08-04 18:18:08 +00008440fi
8441
8442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445if test "${ac_cv_search_opendir+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008447else
8448 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008449cat >conftest.$ac_ext <<_ACEOF
8450/* confdefs.h. */
8451_ACEOF
8452cat confdefs.h >>conftest.$ac_ext
8453cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008454/* end confdefs.h. */
8455
8456/* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
8459#ifdef __cplusplus
8460extern "C"
8461#endif
8462char opendir ();
8463int
8464main ()
8465{
8466return opendir ();
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471for ac_lib in '' x; do
8472 if test -z "$ac_lib"; then
8473 ac_res="none required"
8474 else
8475 ac_res=-l$ac_lib
8476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8477 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008478 rm -f conftest.$ac_objext conftest$ac_exeext
8479if { (ac_try="$ac_link"
8480case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483esac
8484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_link") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496esac
8497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506esac
8507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008512 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513else
8514 echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517
Reid Spencera773bd52006-08-04 18:18:08 +00008518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008519
Bill Wendlingebcceee2009-04-18 11:20:33 +00008520rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008521 conftest$ac_exeext
8522 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008523 break
8524fi
8525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526if test "${ac_cv_search_opendir+set}" = set; then
8527 :
Reid Spencera773bd52006-08-04 18:18:08 +00008528else
8529 ac_cv_search_opendir=no
8530fi
8531rm conftest.$ac_ext
8532LIBS=$ac_func_search_save_LIBS
8533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008534{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008536ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008537if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8539
8540fi
8541
8542fi
John Criswell7a73b802003-06-30 21:59:07 +00008543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544
John Criswell7a73b802003-06-30 21:59:07 +00008545for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546do
8547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553fi
8554ac_res=`eval echo '${'$as_ac_Header'}'`
8555 { echo "$as_me:$LINENO: result: $ac_res" >&5
8556echo "${ECHO_T}$ac_res" >&6; }
8557else
8558 # Is the header compilable?
8559{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8560echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8561cat >conftest.$ac_ext <<_ACEOF
8562/* confdefs.h. */
8563_ACEOF
8564cat confdefs.h >>conftest.$ac_ext
8565cat >>conftest.$ac_ext <<_ACEOF
8566/* end confdefs.h. */
8567$ac_includes_default
8568#include <$ac_header>
8569_ACEOF
8570rm -f conftest.$ac_objext
8571if { (ac_try="$ac_compile"
8572case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575esac
8576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_compile") 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8585 { (case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588esac
8589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_try") 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8598esac
8599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_try") 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_header_compiler=yes
8605else
8606 echo "$as_me: failed program was:" >&5
8607sed 's/^/| /' conftest.$ac_ext >&5
8608
8609 ac_header_compiler=no
8610fi
8611
8612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8614echo "${ECHO_T}$ac_header_compiler" >&6; }
8615
8616# Is the header present?
8617{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8618echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8619cat >conftest.$ac_ext <<_ACEOF
8620/* confdefs.h. */
8621_ACEOF
8622cat confdefs.h >>conftest.$ac_ext
8623cat >>conftest.$ac_ext <<_ACEOF
8624/* end confdefs.h. */
8625#include <$ac_header>
8626_ACEOF
8627if { (ac_try="$ac_cpp conftest.$ac_ext"
8628case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631esac
8632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } >/dev/null; then
8640 if test -s conftest.err; then
8641 ac_cpp_err=$ac_c_preproc_warn_flag
8642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8643 else
8644 ac_cpp_err=
8645 fi
8646else
8647 ac_cpp_err=yes
8648fi
8649if test -z "$ac_cpp_err"; then
8650 ac_header_preproc=yes
8651else
8652 echo "$as_me: failed program was:" >&5
8653sed 's/^/| /' conftest.$ac_ext >&5
8654
8655 ac_header_preproc=no
8656fi
8657
8658rm -f conftest.err conftest.$ac_ext
8659{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8660echo "${ECHO_T}$ac_header_preproc" >&6; }
8661
8662# So? What about this header?
8663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8664 yes:no: )
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8666echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8668echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8669 ac_header_preproc=yes
8670 ;;
8671 no:yes:* )
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8673echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8675echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8677echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8679echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8683echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8684 ( cat <<\_ASBOX
8685## ----------------------------------- ##
8686## Report this to llvmbugs@cs.uiuc.edu ##
8687## ----------------------------------- ##
8688_ASBOX
8689 ) | sed "s/^/$as_me: WARNING: /" >&2
8690 ;;
8691esac
8692{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697 eval "$as_ac_Header=\$ac_header_preproc"
8698fi
8699ac_res=`eval echo '${'$as_ac_Header'}'`
8700 { echo "$as_me:$LINENO: result: $ac_res" >&5
8701echo "${ECHO_T}$ac_res" >&6; }
8702
8703fi
8704if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008705 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008707_ACEOF
8708
8709fi
8710
8711done
8712
Reid Spencera773bd52006-08-04 18:18:08 +00008713# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008715 enableval=$enable_ltdl_install;
8716fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008717
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008719
8720
8721if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008722 INSTALL_LTDL_TRUE=
8723 INSTALL_LTDL_FALSE='#'
8724else
8725 INSTALL_LTDL_TRUE='#'
8726 INSTALL_LTDL_FALSE=
8727fi
8728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008729
8730
8731if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008732 CONVENIENCE_LTDL_TRUE=
8733 CONVENIENCE_LTDL_FALSE='#'
8734else
8735 CONVENIENCE_LTDL_TRUE='#'
8736 CONVENIENCE_LTDL_FALSE=
8737fi
8738
8739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008740{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8741echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008742library_names_spec=
8743libname_spec='lib$name'
8744soname_spec=
8745shrext_cmds=".so"
8746postinstall_cmds=
8747postuninstall_cmds=
8748finish_cmds=
8749finish_eval=
8750shlibpath_var=
8751shlibpath_overrides_runpath=unknown
8752version_type=none
8753dynamic_linker="$host_os ld.so"
8754sys_lib_dlsearch_path_spec="/lib /usr/lib"
8755if test "$GCC" = yes; then
8756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8757 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8758 # if the path contains ";" then we assume it to be the separator
8759 # otherwise default to the standard path separator (i.e. ":") - it is
8760 # assumed that no part of a normal pathname contains ";" but that should
8761 # okay in the real world where ";" in dirpaths is itself problematic.
8762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8763 else
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8765 fi
8766else
8767 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8768fi
8769need_lib_prefix=unknown
8770hardcode_into_libs=no
8771
8772# when you set need_version to no, make sure it does not cause -set_version
8773# flags to be left without arguments
8774need_version=unknown
8775
8776case $host_os in
8777aix3*)
8778 version_type=linux
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8780 shlibpath_var=LIBPATH
8781
8782 # AIX 3 has no versioning support, so we append a major version to the name.
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 ;;
8785
8786aix4* | aix5*)
8787 version_type=linux
8788 need_lib_prefix=no
8789 need_version=no
8790 hardcode_into_libs=yes
8791 if test "$host_cpu" = ia64; then
8792 # AIX 5 supports IA64
8793 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8794 shlibpath_var=LD_LIBRARY_PATH
8795 else
8796 # With GCC up to 2.95.x, collect2 would create an import file
8797 # for dependence libraries. The import file would start with
8798 # the line `#! .'. This would cause the generated library to
8799 # depend on `.', always an invalid library. This was fixed in
8800 # development snapshots of GCC prior to 3.0.
8801 case $host_os in
8802 aix4 | aix4.[01] | aix4.[01].*)
8803 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8804 echo ' yes '
8805 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8806 :
8807 else
8808 can_build_shared=no
8809 fi
8810 ;;
8811 esac
8812 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8813 # soname into executable. Probably we can add versioning support to
8814 # collect2, so additional links can be useful in future.
8815 if test "$aix_use_runtimelinking" = yes; then
8816 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8817 # instead of lib<name>.a to let people know that these are not
8818 # typical AIX shared libraries.
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820 else
8821 # We preserve .a as extension for shared libraries through AIX4.2
8822 # and later when we are not doing run time linking.
8823 library_names_spec='${libname}${release}.a $libname.a'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 fi
8826 shlibpath_var=LIBPATH
8827 fi
8828 ;;
8829
8830amigaos*)
8831 library_names_spec='$libname.ixlibrary $libname.a'
8832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8833 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'
8834 ;;
8835
8836beos*)
8837 library_names_spec='${libname}${shared_ext}'
8838 dynamic_linker="$host_os ld.so"
8839 shlibpath_var=LIBRARY_PATH
8840 ;;
8841
8842bsdi[45]*)
8843 version_type=linux
8844 need_version=no
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8850 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8851 # the default ld.so.conf also contains /usr/contrib/lib and
8852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8853 # libtool to hard-code these into programs
8854 ;;
8855
8856cygwin* | mingw* | pw32*)
8857 version_type=windows
8858 shrext_cmds=".dll"
8859 need_version=no
8860 need_lib_prefix=no
8861
8862 case $GCC,$host_os in
8863 yes,cygwin* | yes,mingw* | yes,pw32*)
8864 library_names_spec='$libname.dll.a'
8865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8866 postinstall_cmds='base_file=`basename \${file}`~
8867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8868 dldir=$destdir/`dirname \$dlpath`~
8869 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008870 $install_prog $dir/$dlname \$dldir/$dlname~
8871 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8873 dlpath=$dir/\$dldll~
8874 $rm \$dlpath'
8875 shlibpath_overrides_runpath=yes
8876
8877 case $host_os in
8878 cygwin*)
8879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8882 ;;
8883 mingw*)
8884 # MinGW DLLs use traditional 'lib' prefix
8885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8887 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8888 # It is most probably a Windows format PATH printed by
8889 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8890 # path with ; separators, and with drive letters. We can handle the
8891 # drive letters (cygwin fileutils understands them), so leave them,
8892 # especially as we might pass files found there to a mingw objdump,
8893 # which wouldn't understand a cygwinified path. Ahh.
8894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8895 else
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8897 fi
8898 ;;
8899 pw32*)
8900 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008901 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 +00008902 ;;
8903 esac
8904 ;;
8905
8906 *)
8907 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8908 ;;
8909 esac
8910 dynamic_linker='Win32 ld.exe'
8911 # FIXME: first we should search . and the directory the executable is in
8912 shlibpath_var=PATH
8913 ;;
8914
8915darwin* | rhapsody*)
8916 dynamic_linker="$host_os dyld"
8917 version_type=darwin
8918 need_lib_prefix=no
8919 need_version=no
8920 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8921 soname_spec='${libname}${release}${major}$shared_ext'
8922 shlibpath_overrides_runpath=yes
8923 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008924 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008925 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8926 if test "$GCC" = yes; then
8927 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"`
8928 else
8929 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8930 fi
8931 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8932 ;;
8933
8934dgux*)
8935 version_type=linux
8936 need_lib_prefix=no
8937 need_version=no
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 ;;
8942
Eric Christopher360fa9a2011-10-26 00:42:12 +00008943freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008944 dynamic_linker=no
8945 ;;
8946
8947kfreebsd*-gnu)
8948 version_type=linux
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 dynamic_linker='GNU ld.so'
8957 ;;
8958
Reid Spencera773bd52006-08-04 18:18:08 +00008959freebsd* | dragonfly*)
8960 # DragonFly does not have aout. When/if they implement a new
8961 # versioning mechanism, adjust this.
8962 if test -x /usr/bin/objformat; then
8963 objformat=`/usr/bin/objformat`
8964 else
8965 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008966 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008967 *) objformat=elf ;;
8968 esac
8969 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008970 version_type=freebsd-$objformat
8971 case $version_type in
8972 freebsd-elf*)
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8974 need_version=no
8975 need_lib_prefix=no
8976 ;;
8977 freebsd-*)
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8979 need_version=yes
8980 ;;
8981 esac
8982 shlibpath_var=LD_LIBRARY_PATH
8983 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008984 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008985 shlibpath_overrides_runpath=yes
8986 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008987 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008988 shlibpath_overrides_runpath=yes
8989 hardcode_into_libs=yes
8990 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008991 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8992 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008993 shlibpath_overrides_runpath=no
8994 hardcode_into_libs=yes
8995 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008996 freebsd*) # from 4.6 on
8997 shlibpath_overrides_runpath=yes
8998 hardcode_into_libs=yes
8999 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009000 esac
9001 ;;
9002
9003gnu*)
9004 version_type=linux
9005 need_lib_prefix=no
9006 need_version=no
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 shlibpath_var=LD_LIBRARY_PATH
9010 hardcode_into_libs=yes
9011 ;;
9012
9013hpux9* | hpux10* | hpux11*)
9014 # Give a soname corresponding to the major version so that dld.sl refuses to
9015 # link against other versions.
9016 version_type=sunos
9017 need_lib_prefix=no
9018 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009019 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009020 ia64*)
9021 shrext_cmds='.so'
9022 hardcode_into_libs=yes
9023 dynamic_linker="$host_os dld.so"
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 if test "X$HPUX_IA64_MODE" = X32; then
9029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9030 else
9031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9032 fi
9033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9034 ;;
9035 hppa*64*)
9036 shrext_cmds='.sl'
9037 hardcode_into_libs=yes
9038 dynamic_linker="$host_os dld.sl"
9039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9045 ;;
9046 *)
9047 shrext_cmds='.sl'
9048 dynamic_linker="$host_os dld.sl"
9049 shlibpath_var=SHLIB_PATH
9050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 ;;
9054 esac
9055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9056 postinstall_cmds='chmod 555 $lib'
9057 ;;
9058
Reid Spencera773bd52006-08-04 18:18:08 +00009059interix3*)
9060 version_type=linux
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9069 ;;
9070
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009071irix5* | irix6* | nonstopux*)
9072 case $host_os in
9073 nonstopux*) version_type=nonstopux ;;
9074 *)
9075 if test "$lt_cv_prog_gnu_ld" = yes; then
9076 version_type=linux
9077 else
9078 version_type=irix
9079 fi ;;
9080 esac
9081 need_lib_prefix=no
9082 need_version=no
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9085 case $host_os in
9086 irix5* | nonstopux*)
9087 libsuff= shlibsuff=
9088 ;;
9089 *)
9090 case $LD in # libtool.m4 will add one of these switches to LD
9091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9092 libsuff= shlibsuff= libmagic=32-bit;;
9093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9094 libsuff=32 shlibsuff=N32 libmagic=N32;;
9095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9096 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9097 *) libsuff= shlibsuff= libmagic=never-match;;
9098 esac
9099 ;;
9100 esac
9101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9102 shlibpath_overrides_runpath=no
9103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9105 hardcode_into_libs=yes
9106 ;;
9107
9108# No shared lib support for Linux oldld, aout, or coff.
9109linux*oldld* | linux*aout* | linux*coff*)
9110 dynamic_linker=no
9111 ;;
9112
9113# This must be Linux ELF.
9114linux*)
9115 version_type=linux
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=no
9123 # This implies no fast_install, which is unacceptable.
9124 # Some rework will be needed to allow for fast_install
9125 # before this can be enabled.
9126 hardcode_into_libs=yes
9127
9128 # Append ld.so.conf contents to the search path
9129 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009130 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 +00009131 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9132 fi
9133
9134 # We used to test for /lib/ld.so.1 and disable shared libraries on
9135 # powerpc, because MkLinux only supported shared libraries with the
9136 # GNU dynamic linker. Since this was broken with cross compilers,
9137 # most powerpc-linux boxes support dynamic linking these days and
9138 # people can always --disable-shared, the test was removed, and we
9139 # assume the GNU/Linux dynamic linker is in use.
9140 dynamic_linker='GNU/Linux ld.so'
9141 ;;
9142
9143knetbsd*-gnu)
9144 version_type=linux
9145 need_lib_prefix=no
9146 need_version=no
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=no
9151 hardcode_into_libs=yes
9152 dynamic_linker='GNU ld.so'
9153 ;;
9154
9155netbsd*)
9156 version_type=sunos
9157 need_lib_prefix=no
9158 need_version=no
9159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9162 dynamic_linker='NetBSD (a.out) ld.so'
9163 else
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 dynamic_linker='NetBSD ld.elf_so'
9167 fi
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9170 hardcode_into_libs=yes
9171 ;;
9172
9173newsos6)
9174 version_type=linux
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=yes
9178 ;;
9179
9180nto-qnx*)
9181 version_type=linux
9182 need_lib_prefix=no
9183 need_version=no
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=yes
9188 ;;
9189
9190openbsd*)
9191 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009192 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009193 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009194 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9195 case $host_os in
9196 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9197 *) need_version=no ;;
9198 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9203 case $host_os in
9204 openbsd2.[89] | openbsd2.[89].*)
9205 shlibpath_overrides_runpath=no
9206 ;;
9207 *)
9208 shlibpath_overrides_runpath=yes
9209 ;;
9210 esac
9211 else
9212 shlibpath_overrides_runpath=yes
9213 fi
9214 ;;
9215
9216os2*)
9217 libname_spec='$name'
9218 shrext_cmds=".dll"
9219 need_lib_prefix=no
9220 library_names_spec='$libname${shared_ext} $libname.a'
9221 dynamic_linker='OS/2 ld.exe'
9222 shlibpath_var=LIBPATH
9223 ;;
9224
9225osf3* | osf4* | osf5*)
9226 version_type=osf
9227 need_lib_prefix=no
9228 need_version=no
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9233 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9234 ;;
9235
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009236solaris*)
9237 version_type=linux
9238 need_lib_prefix=no
9239 need_version=no
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=yes
9244 hardcode_into_libs=yes
9245 # ldd complains unless libraries are executable
9246 postinstall_cmds='chmod +x $lib'
9247 ;;
9248
9249sunos4*)
9250 version_type=sunos
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9252 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9253 shlibpath_var=LD_LIBRARY_PATH
9254 shlibpath_overrides_runpath=yes
9255 if test "$with_gnu_ld" = yes; then
9256 need_lib_prefix=no
9257 fi
9258 need_version=yes
9259 ;;
9260
Reid Spencera773bd52006-08-04 18:18:08 +00009261sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009262 version_type=linux
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 case $host_vendor in
9267 sni)
9268 shlibpath_overrides_runpath=no
9269 need_lib_prefix=no
9270 export_dynamic_flag_spec='${wl}-Blargedynsym'
9271 runpath_var=LD_RUN_PATH
9272 ;;
9273 siemens)
9274 need_lib_prefix=no
9275 ;;
9276 motorola)
9277 need_lib_prefix=no
9278 need_version=no
9279 shlibpath_overrides_runpath=no
9280 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9281 ;;
9282 esac
9283 ;;
9284
9285sysv4*MP*)
9286 if test -d /usr/nec ;then
9287 version_type=linux
9288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9289 soname_spec='$libname${shared_ext}.$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 fi
9292 ;;
9293
Reid Spencera773bd52006-08-04 18:18:08 +00009294sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9295 version_type=freebsd-elf
9296 need_lib_prefix=no
9297 need_version=no
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 hardcode_into_libs=yes
9302 if test "$with_gnu_ld" = yes; then
9303 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9304 shlibpath_overrides_runpath=no
9305 else
9306 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9307 shlibpath_overrides_runpath=yes
9308 case $host_os in
9309 sco3.2v5*)
9310 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9311 ;;
9312 esac
9313 fi
9314 sys_lib_dlsearch_path_spec='/usr/lib'
9315 ;;
9316
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009317uts4*)
9318 version_type=linux
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 ;;
9323
9324*)
9325 dynamic_linker=no
9326 ;;
9327esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009328{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9329echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009330test "$dynamic_linker" = no && can_build_shared=no
9331
Reid Spencera773bd52006-08-04 18:18:08 +00009332variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9333if test "$GCC" = yes; then
9334 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9335fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336
Reid Spencera773bd52006-08-04 18:18:08 +00009337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009338{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9339echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9340if test "${libltdl_cv_shlibext+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342else
9343
9344module=yes
9345eval libltdl_cv_shlibext=$shrext_cmds
9346
9347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009348{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9349echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009350if test -n "$libltdl_cv_shlibext"; then
9351
9352cat >>confdefs.h <<_ACEOF
9353#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9354_ACEOF
9355
9356fi
9357
9358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009359{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9360echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9361if test "${libltdl_cv_shlibpath_var+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009363else
9364 libltdl_cv_shlibpath_var="$shlibpath_var"
9365fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009366{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9367echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009368if test -n "$libltdl_cv_shlibpath_var"; then
9369
9370cat >>confdefs.h <<_ACEOF
9371#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9372_ACEOF
9373
9374fi
9375
9376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009377{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9378echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9379if test "${libltdl_cv_sys_search_path+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009381else
9382 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009384{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9385echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009386if test -n "$libltdl_cv_sys_search_path"; then
9387 sys_search_path=
9388 for dir in $libltdl_cv_sys_search_path; do
9389 if test -z "$sys_search_path"; then
9390 sys_search_path="$dir"
9391 else
9392 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9393 fi
9394 done
9395
9396cat >>confdefs.h <<_ACEOF
9397#define LTDL_SYSSEARCHPATH "$sys_search_path"
9398_ACEOF
9399
9400fi
9401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009402{ echo "$as_me:$LINENO: checking for objdir" >&5
9403echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9404if test "${libltdl_cv_objdir+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406else
9407 libltdl_cv_objdir="$objdir"
9408 if test -n "$objdir"; then
9409 :
9410 else
9411 rm -f .libs 2>/dev/null
9412 mkdir .libs 2>/dev/null
9413 if test -d .libs; then
9414 libltdl_cv_objdir=.libs
9415 else
9416 # MS-DOS does not allow filenames that begin with a dot.
9417 libltdl_cv_objdir=_libs
9418 fi
9419 rmdir .libs 2>/dev/null
9420 fi
9421
9422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009423{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9424echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425
9426cat >>confdefs.h <<_ACEOF
9427#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9428_ACEOF
9429
9430
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009431
9432
9433
9434
9435# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009436{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9437echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9438if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009440else
9441
9442# These are sane defaults that work on at least a few old systems.
9443# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9444
9445# Character class describing NM global symbol codes.
9446symcode='[BCDEGRST]'
9447
9448# Regexp to match symbols that can be accessed directly from C.
9449sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9450
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009451# Transform an extracted symbol line into a proper C declaration
9452lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9453
9454# Transform an extracted symbol line into symbol name and symbol address
9455lt_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'"
9456
9457# Define system-specific variables.
9458case $host_os in
9459aix*)
9460 symcode='[BCDT]'
9461 ;;
9462cygwin* | mingw* | pw32*)
9463 symcode='[ABCDGISTW]'
9464 ;;
9465hpux*) # Its linker distinguishes data from code symbols
9466 if test "$host_cpu" = ia64; then
9467 symcode='[ABCDEGRST]'
9468 fi
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 ;;
9472linux*)
9473 if test "$host_cpu" = ia64; then
9474 symcode='[ABCDGIRSTW]'
9475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9476 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'"
9477 fi
9478 ;;
9479irix* | nonstopux*)
9480 symcode='[BCDEGRST]'
9481 ;;
9482osf*)
9483 symcode='[BCDEGQRST]'
9484 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009485solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009486 symcode='[BDRT]'
9487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009488sco3.2v5*)
9489 symcode='[DT]'
9490 ;;
9491sysv4.2uw2*)
9492 symcode='[DT]'
9493 ;;
9494sysv5* | sco5v6* | unixware* | OpenUNIX*)
9495 symcode='[ABDT]'
9496 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497sysv4)
9498 symcode='[DFNSTU]'
9499 ;;
9500esac
9501
9502# Handle CRLF in mingw tool chain
9503opt_cr=
9504case $build_os in
9505mingw*)
9506 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9507 ;;
9508esac
9509
9510# If we're using GNU nm, then use its standard symbol codes.
9511case `$NM -V 2>&1` in
9512*GNU* | *'with BFD'*)
9513 symcode='[ABCDGIRSTW]' ;;
9514esac
9515
9516# Try without a prefix undercore, then with it.
9517for ac_symprfx in "" "_"; do
9518
Reid Spencera773bd52006-08-04 18:18:08 +00009519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9520 symxfrm="\\1 $ac_symprfx\\2 \\2"
9521
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009523 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 +00009524
9525 # Check to see that the pipe works correctly.
9526 pipe_works=no
9527
9528 rm -f conftest*
9529 cat > conftest.$ac_ext <<EOF
9530#ifdef __cplusplus
9531extern "C" {
9532#endif
9533char nm_test_var;
9534void nm_test_func(){}
9535#ifdef __cplusplus
9536}
9537#endif
9538int main(){nm_test_var='a';nm_test_func();return(0);}
9539EOF
9540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542 (eval $ac_compile) 2>&5
9543 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009546 # Now try to grab the symbols.
9547 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009548 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 +00009549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9550 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553 # Try sorting and uniquifying the output.
9554 if sort "$nlist" | uniq > "$nlist"T; then
9555 mv -f "$nlist"T "$nlist"
9556 else
9557 rm -f "$nlist"T
9558 fi
9559
9560 # Make sure that we snagged all the symbols we need.
9561 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9562 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9563 cat <<EOF > conftest.$ac_ext
9564#ifdef __cplusplus
9565extern "C" {
9566#endif
9567
9568EOF
9569 # Now generate the symbol file.
9570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9571
9572 cat <<EOF >> conftest.$ac_ext
9573#if defined (__STDC__) && __STDC__
9574# define lt_ptr_t void *
9575#else
9576# define lt_ptr_t char *
9577# define const
9578#endif
9579
9580/* The mapping between symbol names and symbols. */
9581const struct {
9582 const char *name;
9583 lt_ptr_t address;
9584}
9585lt_preloaded_symbols[] =
9586{
9587EOF
9588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9589 cat <<\EOF >> conftest.$ac_ext
9590 {0, (lt_ptr_t) 0}
9591};
9592
9593#ifdef __cplusplus
9594}
9595#endif
9596EOF
9597 # Now try linking the two files.
9598 mv conftest.$ac_objext conftstm.$ac_objext
9599 lt_save_LIBS="$LIBS"
9600 lt_save_CFLAGS="$CFLAGS"
9601 LIBS="conftstm.$ac_objext"
9602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604 (eval $ac_link) 2>&5
9605 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608 pipe_works=yes
9609 fi
9610 LIBS="$lt_save_LIBS"
9611 CFLAGS="$lt_save_CFLAGS"
9612 else
9613 echo "cannot find nm_test_func in $nlist" >&5
9614 fi
9615 else
9616 echo "cannot find nm_test_var in $nlist" >&5
9617 fi
9618 else
9619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9620 fi
9621 else
9622 echo "$progname: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9624 fi
9625 rm -f conftest* conftst*
9626
9627 # Do not use the global_symbol_pipe unless it works.
9628 if test "$pipe_works" = yes; then
9629 break
9630 else
9631 lt_cv_sys_global_symbol_pipe=
9632 fi
9633done
9634
9635fi
9636
9637if test -z "$lt_cv_sys_global_symbol_pipe"; then
9638 lt_cv_sys_global_symbol_to_cdecl=
9639fi
9640if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009641 { echo "$as_me:$LINENO: result: failed" >&5
9642echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009644 { echo "$as_me:$LINENO: result: ok" >&5
9645echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009646fi
9647
9648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009649{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9650echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9651if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009653else
9654 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9655 libltdl_cv_preloaded_symbols=yes
9656 else
9657 libltdl_cv_preloaded_symbols=no
9658 fi
9659
9660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009661{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9662echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009665cat >>confdefs.h <<\_ACEOF
9666#define HAVE_PRELOADED_SYMBOLS 1
9667_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668
9669fi
9670
9671LIBADD_DL=
9672
9673ac_ext=c
9674ac_cpp='$CPP $CPPFLAGS'
9675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677ac_compiler_gnu=$ac_cv_c_compiler_gnu
9678
9679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009680{ echo "$as_me:$LINENO: checking for shl_load" >&5
9681echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9682if test "${ac_cv_func_shl_load+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684else
9685 cat >conftest.$ac_ext <<_ACEOF
9686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
9691/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9693#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009695/* System header to define __stub macros and hopefully few prototypes,
9696 which can conflict with char shl_load (); below.
9697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9698 <limits.h> exists even on freestanding compilers. */
9699
9700#ifdef __STDC__
9701# include <limits.h>
9702#else
9703# include <assert.h>
9704#endif
9705
9706#undef shl_load
9707
9708/* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9711#ifdef __cplusplus
9712extern "C"
9713#endif
9714char shl_load ();
9715/* The GNU C library defines this for functions which it implements
9716 to always fail with ENOSYS. Some functions are actually named
9717 something starting with __ and the normal name is an alias. */
9718#if defined __stub_shl_load || defined __stub___shl_load
9719choke me
9720#endif
9721
9722int
9723main ()
9724{
9725return shl_load ();
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
9731if { (ac_try="$ac_link"
9732case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735esac
9736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_link") 2>conftest.er1
9738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748esac
9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758esac
9759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_try") 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_func_shl_load=yes
9765else
9766 echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 ac_cv_func_shl_load=no
9770fi
9771
9772rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9774fi
9775{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9776echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9777if test $ac_cv_func_shl_load = yes; then
9778
9779cat >>confdefs.h <<\_ACEOF
9780#define HAVE_SHL_LOAD 1
9781_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009782
9783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009784 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9785echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9786if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788else
9789 ac_check_lib_save_LIBS=$LIBS
9790LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009791cat >conftest.$ac_ext <<_ACEOF
9792/* confdefs.h. */
9793_ACEOF
9794cat confdefs.h >>conftest.$ac_ext
9795cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796/* end confdefs.h. */
9797
Reid Spencera773bd52006-08-04 18:18:08 +00009798/* Override any GCC internal prototype to avoid an error.
9799 Use char because int might match the return type of a GCC
9800 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801#ifdef __cplusplus
9802extern "C"
9803#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804char shl_load ();
9805int
9806main ()
9807{
Reid Spencera773bd52006-08-04 18:18:08 +00009808return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809 ;
9810 return 0;
9811}
9812_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009813rm -f conftest.$ac_objext conftest$ac_exeext
9814if { (ac_try="$ac_link"
9815case "(($ac_try" in
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9818esac
9819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_link") 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest$ac_exeext'
9838 { (case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841esac
9842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_try") 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847 ac_cv_lib_dld_shl_load=yes
9848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009849 echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009854
Bill Wendlingebcceee2009-04-18 11:20:33 +00009855rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009856 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857LIBS=$ac_check_lib_save_LIBS
9858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009859{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9860echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9861if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009863cat >>confdefs.h <<\_ACEOF
9864#define HAVE_SHL_LOAD 1
9865_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866
9867 LIBADD_DL="$LIBADD_DL -ldld"
9868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009869 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9870echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9871if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009873else
9874 ac_check_lib_save_LIBS=$LIBS
9875LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009876cat >conftest.$ac_ext <<_ACEOF
9877/* confdefs.h. */
9878_ACEOF
9879cat confdefs.h >>conftest.$ac_ext
9880cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881/* end confdefs.h. */
9882
Reid Spencera773bd52006-08-04 18:18:08 +00009883/* Override any GCC internal prototype to avoid an error.
9884 Use char because int might match the return type of a GCC
9885 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009886#ifdef __cplusplus
9887extern "C"
9888#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889char dlopen ();
9890int
9891main ()
9892{
Reid Spencera773bd52006-08-04 18:18:08 +00009893return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894 ;
9895 return 0;
9896}
9897_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009898rm -f conftest.$ac_objext conftest$ac_exeext
9899if { (ac_try="$ac_link"
9900case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9903esac
9904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_link") 2>conftest.er1
9906 ac_status=$?
9907 grep -v '^ *+' conftest.er1 >conftest.err
9908 rm -f conftest.er1
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest$ac_exeext'
9923 { (case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926esac
9927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_try") 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932 ac_cv_lib_dl_dlopen=yes
9933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009934 echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009939
Bill Wendlingebcceee2009-04-18 11:20:33 +00009940rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009941 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942LIBS=$ac_check_lib_save_LIBS
9943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009944{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9945echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9946if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009948cat >>confdefs.h <<\_ACEOF
9949#define HAVE_LIBDL 1
9950_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951
9952 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009954 cat >conftest.$ac_ext <<_ACEOF
9955/* confdefs.h. */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009959/* end confdefs.h. */
9960#if HAVE_DLFCN_H
9961# include <dlfcn.h>
9962#endif
9963
9964int
9965main ()
9966{
9967dlopen(0, 0);
9968 ;
9969 return 0;
9970}
9971_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009972rm -f conftest.$ac_objext conftest$ac_exeext
9973if { (ac_try="$ac_link"
9974case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977esac
9978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_link") 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990esac
9991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_try") 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest$ac_exeext'
9997 { (case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000esac
10001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_try") 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010007cat >>confdefs.h <<\_ACEOF
10008#define HAVE_LIBDL 1
10009_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010010 libltdl_cv_func_dlopen="yes"
10011else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010012 echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10016echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10017if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019else
10020 ac_check_lib_save_LIBS=$LIBS
10021LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010022cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027/* end confdefs.h. */
10028
Reid Spencera773bd52006-08-04 18:18:08 +000010029/* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032#ifdef __cplusplus
10033extern "C"
10034#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010035char dlopen ();
10036int
10037main ()
10038{
Reid Spencera773bd52006-08-04 18:18:08 +000010039return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040 ;
10041 return 0;
10042}
10043_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010044rm -f conftest.$ac_objext conftest$ac_exeext
10045if { (ac_try="$ac_link"
10046case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049esac
10050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062esac
10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078 ac_cv_lib_svld_dlopen=yes
10079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010080 echo "$as_me: failed program was:" >&5
10081sed 's/^/| /' conftest.$ac_ext >&5
10082
10083 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010085
Bill Wendlingebcceee2009-04-18 11:20:33 +000010086rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010087 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088LIBS=$ac_check_lib_save_LIBS
10089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010090{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10091echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10092if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010094cat >>confdefs.h <<\_ACEOF
10095#define HAVE_LIBDL 1
10096_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097
10098 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010100 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10101echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10102if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104else
10105 ac_check_lib_save_LIBS=$LIBS
10106LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010107cat >conftest.$ac_ext <<_ACEOF
10108/* confdefs.h. */
10109_ACEOF
10110cat confdefs.h >>conftest.$ac_ext
10111cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010112/* end confdefs.h. */
10113
Reid Spencera773bd52006-08-04 18:18:08 +000010114/* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117#ifdef __cplusplus
10118extern "C"
10119#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010120char dld_link ();
10121int
10122main ()
10123{
Reid Spencera773bd52006-08-04 18:18:08 +000010124return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010125 ;
10126 return 0;
10127}
10128_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010129rm -f conftest.$ac_objext conftest$ac_exeext
10130if { (ac_try="$ac_link"
10131case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157esac
10158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163 ac_cv_lib_dld_dld_link=yes
10164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010170
Bill Wendlingebcceee2009-04-18 11:20:33 +000010171rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010172 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173LIBS=$ac_check_lib_save_LIBS
10174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010175{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10176echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10177if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010179cat >>confdefs.h <<\_ACEOF
10180#define HAVE_DLD 1
10181_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182
10183 LIBADD_DL="$LIBADD_DL -ldld"
10184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010185 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10186echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10187if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189else
10190 cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h. */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h. */
10196/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10198#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010200/* System header to define __stub macros and hopefully few prototypes,
10201 which can conflict with char _dyld_func_lookup (); below.
10202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10203 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010205#ifdef __STDC__
10206# include <limits.h>
10207#else
10208# include <assert.h>
10209#endif
10210
10211#undef _dyld_func_lookup
10212
10213/* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10216#ifdef __cplusplus
10217extern "C"
10218#endif
10219char _dyld_func_lookup ();
10220/* The GNU C library defines this for functions which it implements
10221 to always fail with ENOSYS. Some functions are actually named
10222 something starting with __ and the normal name is an alias. */
10223#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10224choke me
10225#endif
10226
10227int
10228main ()
10229{
10230return _dyld_func_lookup ();
10231 ;
10232 return 0;
10233}
10234_ACEOF
10235rm -f conftest.$ac_objext conftest$ac_exeext
10236if { (ac_try="$ac_link"
10237case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10240esac
10241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_link") 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest$ac_exeext'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263esac
10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_func__dyld_func_lookup=yes
10270else
10271 echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
10274 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275fi
Reid Spencera773bd52006-08-04 18:18:08 +000010276
Bill Wendlingebcceee2009-04-18 11:20:33 +000010277rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010278 conftest$ac_exeext conftest.$ac_ext
10279fi
10280{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10281echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10282if test $ac_cv_func__dyld_func_lookup = yes; then
10283
10284cat >>confdefs.h <<\_ACEOF
10285#define HAVE_DYLD 1
10286_ACEOF
10287
10288fi
10289
10290
10291fi
10292
10293
10294fi
10295
10296
10297fi
10298
10299rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301
10302fi
10303
10304
10305fi
10306
10307
10308fi
10309
10310
10311if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10312then
10313 lt_save_LIBS="$LIBS"
10314 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010315
10316for ac_func in dlerror
10317do
10318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10319{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10321if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323else
10324 cat >conftest.$ac_ext <<_ACEOF
10325/* confdefs.h. */
10326_ACEOF
10327cat confdefs.h >>conftest.$ac_ext
10328cat >>conftest.$ac_ext <<_ACEOF
10329/* end confdefs.h. */
10330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10332#define $ac_func innocuous_$ac_func
10333
10334/* System header to define __stub macros and hopefully few prototypes,
10335 which can conflict with char $ac_func (); below.
10336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10337 <limits.h> exists even on freestanding compilers. */
10338
10339#ifdef __STDC__
10340# include <limits.h>
10341#else
10342# include <assert.h>
10343#endif
10344
10345#undef $ac_func
10346
10347/* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10350#ifdef __cplusplus
10351extern "C"
10352#endif
10353char $ac_func ();
10354/* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357#if defined __stub_$ac_func || defined __stub___$ac_func
10358choke me
10359#endif
10360
10361int
10362main ()
10363{
10364return $ac_func ();
10365 ;
10366 return 0;
10367}
10368_ACEOF
10369rm -f conftest.$ac_objext conftest$ac_exeext
10370if { (ac_try="$ac_link"
10371case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374esac
10375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_link") 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10384 { (case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387esac
10388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_try") 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest$ac_exeext'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397esac
10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 eval "$as_ac_var=yes"
10404else
10405 echo "$as_me: failed program was:" >&5
10406sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 eval "$as_ac_var=no"
10409fi
10410
10411rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413fi
10414ac_res=`eval echo '${'$as_ac_var'}'`
10415 { echo "$as_me:$LINENO: result: $ac_res" >&5
10416echo "${ECHO_T}$ac_res" >&6; }
10417if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420_ACEOF
10421
10422fi
10423done
10424
10425 LIBS="$lt_save_LIBS"
10426fi
10427ac_ext=c
10428ac_cpp='$CPP $CPPFLAGS'
10429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10431ac_compiler_gnu=$ac_cv_c_compiler_gnu
10432
10433
10434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010435{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10436echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10437if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439else
10440 ac_cv_sys_symbol_underscore=no
10441 cat > conftest.$ac_ext <<EOF
10442void nm_test_func(){}
10443int main(){nm_test_func;return 0;}
10444EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446 (eval $ac_compile) 2>&5
10447 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450 # Now try to grab the symbols.
10451 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010452 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 +000010453 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10454 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457 # See whether the symbols have a leading underscore.
10458 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10459 ac_cv_sys_symbol_underscore=yes
10460 else
10461 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10462 :
10463 else
10464 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10465 fi
10466 fi
10467 else
10468 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10469 fi
10470 else
10471 echo "configure: failed program was:" >&5
10472 cat conftest.c >&5
10473 fi
10474 rm -rf conftest*
10475
10476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010477{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10478echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479
10480
10481if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10482 if test x"$libltdl_cv_func_dlopen" = xyes ||
10483 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010484 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10485echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10486if test "${libltdl_cv_need_uscore+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010488else
10489 libltdl_cv_need_uscore=unknown
10490 save_LIBS="$LIBS"
10491 LIBS="$LIBS $LIBADD_DL"
10492 if test "$cross_compiling" = yes; then :
10493 libltdl_cv_need_uscore=cross
10494else
10495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10496 lt_status=$lt_dlunknown
10497 cat > conftest.$ac_ext <<EOF
Daniel Dunbard45162b2011-12-07 22:07:03 +000010498#line 10493 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499#include "confdefs.h"
10500
10501#if HAVE_DLFCN_H
10502#include <dlfcn.h>
10503#endif
10504
10505#include <stdio.h>
10506
10507#ifdef RTLD_GLOBAL
10508# define LT_DLGLOBAL RTLD_GLOBAL
10509#else
10510# ifdef DL_GLOBAL
10511# define LT_DLGLOBAL DL_GLOBAL
10512# else
10513# define LT_DLGLOBAL 0
10514# endif
10515#endif
10516
10517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10518 find out it does not work in some platform. */
10519#ifndef LT_DLLAZY_OR_NOW
10520# ifdef RTLD_LAZY
10521# define LT_DLLAZY_OR_NOW RTLD_LAZY
10522# else
10523# ifdef DL_LAZY
10524# define LT_DLLAZY_OR_NOW DL_LAZY
10525# else
10526# ifdef RTLD_NOW
10527# define LT_DLLAZY_OR_NOW RTLD_NOW
10528# else
10529# ifdef DL_NOW
10530# define LT_DLLAZY_OR_NOW DL_NOW
10531# else
10532# define LT_DLLAZY_OR_NOW 0
10533# endif
10534# endif
10535# endif
10536# endif
10537#endif
10538
10539#ifdef __cplusplus
10540extern "C" void exit (int);
10541#endif
10542
10543void fnord() { int i=42;}
10544int main ()
10545{
10546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10547 int status = $lt_dlunknown;
10548
10549 if (self)
10550 {
10551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10552 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10553 /* dlclose (self); */
10554 }
Reid Spencera773bd52006-08-04 18:18:08 +000010555 else
10556 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557
10558 exit (status);
10559}
10560EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562 (eval $ac_link) 2>&5
10563 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010566 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567 lt_status=$?
10568 case x$lt_status in
10569 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10570 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010571 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572 esac
10573 else :
10574 # compilation failed
10575
10576 fi
10577fi
10578rm -fr conftest*
10579
10580 LIBS="$save_LIBS"
10581
10582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010583{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10584echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585 fi
10586fi
10587
10588if test x"$libltdl_cv_need_uscore" = xyes; then
10589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010590cat >>confdefs.h <<\_ACEOF
10591#define NEED_USCORE 1
10592_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593
10594fi
10595
10596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010597{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10598echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10599if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010601else
10602 # PORTME does your system automatically load deplibs for dlopen?
10603 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10604 # For now, we just catch OSes we know something about -- in the
10605 # future, we'll try test this programmatically.
10606 libltdl_cv_sys_dlopen_deplibs=unknown
10607 case "$host_os" in
10608 aix3*|aix4.1.*|aix4.2.*)
10609 # Unknown whether this is true for these versions of AIX, but
10610 # we want this `case' here to explicitly catch those versions.
10611 libltdl_cv_sys_dlopen_deplibs=unknown
10612 ;;
10613 aix[45]*)
10614 libltdl_cv_sys_dlopen_deplibs=yes
10615 ;;
10616 darwin*)
10617 # Assuming the user has installed a libdl from somewhere, this is true
10618 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10619 libltdl_cv_sys_dlopen_deplibs=yes
10620 ;;
10621 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10622 # GNU and its variants, using gnu ld.so (Glibc)
10623 libltdl_cv_sys_dlopen_deplibs=yes
10624 ;;
10625 hpux10*|hpux11*)
10626 libltdl_cv_sys_dlopen_deplibs=yes
10627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010628 interix*)
10629 libltdl_cv_sys_dlopen_deplibs=yes
10630 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631 irix[12345]*|irix6.[01]*)
10632 # Catch all versions of IRIX before 6.2, and indicate that we don't
10633 # know how it worked for any of those versions.
10634 libltdl_cv_sys_dlopen_deplibs=unknown
10635 ;;
10636 irix*)
10637 # The case above catches anything before 6.2, and it's known that
10638 # at 6.2 and later dlopen does load deplibs.
10639 libltdl_cv_sys_dlopen_deplibs=yes
10640 ;;
10641 netbsd*)
10642 libltdl_cv_sys_dlopen_deplibs=yes
10643 ;;
10644 openbsd*)
10645 libltdl_cv_sys_dlopen_deplibs=yes
10646 ;;
10647 osf[1234]*)
10648 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10649 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010650 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651 libltdl_cv_sys_dlopen_deplibs=no
10652 ;;
10653 osf5.0|osf5.0a|osf5.1)
10654 # dlopen *does* load deplibs and with the right loader patch applied
10655 # it even uses RPATH in a shared library to search for shared objects
10656 # that the library depends on, but there's no easy way to know if that
10657 # patch is installed. Since this is the case, all we can really
10658 # say is unknown -- it depends on the patch being installed. If
10659 # it is, this changes to `yes'. Without it, it would be `no'.
10660 libltdl_cv_sys_dlopen_deplibs=unknown
10661 ;;
10662 osf*)
10663 # the two cases above should catch all versions of osf <= 5.1. Read
10664 # the comments above for what we know about them.
10665 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10666 # is used to find them so we can finally say `yes'.
10667 libltdl_cv_sys_dlopen_deplibs=yes
10668 ;;
10669 solaris*)
10670 libltdl_cv_sys_dlopen_deplibs=yes
10671 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10674 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010675 esac
10676
10677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010678{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10679echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010682cat >>confdefs.h <<\_ACEOF
10683#define LTDL_DLOPEN_DEPLIBS 1
10684_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685
10686fi
10687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010688
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010689for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010690do
10691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697fi
10698ac_res=`eval echo '${'$as_ac_Header'}'`
10699 { echo "$as_me:$LINENO: result: $ac_res" >&5
10700echo "${ECHO_T}$ac_res" >&6; }
10701else
10702 # Is the header compilable?
10703{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10705cat >conftest.$ac_ext <<_ACEOF
10706/* confdefs.h. */
10707_ACEOF
10708cat confdefs.h >>conftest.$ac_ext
10709cat >>conftest.$ac_ext <<_ACEOF
10710/* end confdefs.h. */
10711$ac_includes_default
10712#include <$ac_header>
10713_ACEOF
10714rm -f conftest.$ac_objext
10715if { (ac_try="$ac_compile"
10716case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10719esac
10720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_compile") 2>conftest.er1
10722 ac_status=$?
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732esac
10733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest.$ac_objext'
10739 { (case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742esac
10743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_try") 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_header_compiler=yes
10749else
10750 echo "$as_me: failed program was:" >&5
10751sed 's/^/| /' conftest.$ac_ext >&5
10752
10753 ac_header_compiler=no
10754fi
10755
10756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10758echo "${ECHO_T}$ac_header_compiler" >&6; }
10759
10760# Is the header present?
10761{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10763cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h. */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
10768/* end confdefs.h. */
10769#include <$ac_header>
10770_ACEOF
10771if { (ac_try="$ac_cpp conftest.$ac_ext"
10772case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775esac
10776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } >/dev/null; then
10784 if test -s conftest.err; then
10785 ac_cpp_err=$ac_c_preproc_warn_flag
10786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10787 else
10788 ac_cpp_err=
10789 fi
10790else
10791 ac_cpp_err=yes
10792fi
10793if test -z "$ac_cpp_err"; then
10794 ac_header_preproc=yes
10795else
10796 echo "$as_me: failed program was:" >&5
10797sed 's/^/| /' conftest.$ac_ext >&5
10798
10799 ac_header_preproc=no
10800fi
10801
10802rm -f conftest.err conftest.$ac_ext
10803{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10804echo "${ECHO_T}$ac_header_preproc" >&6; }
10805
10806# So? What about this header?
10807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10808 yes:no: )
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10812echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10813 ac_header_preproc=yes
10814 ;;
10815 no:yes:* )
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10817echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10819echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10821echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10823echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10827echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10828 ( cat <<\_ASBOX
10829## ----------------------------------- ##
10830## Report this to llvmbugs@cs.uiuc.edu ##
10831## ----------------------------------- ##
10832_ASBOX
10833 ) | sed "s/^/$as_me: WARNING: /" >&2
10834 ;;
10835esac
10836{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 eval "$as_ac_Header=\$ac_header_preproc"
10842fi
10843ac_res=`eval echo '${'$as_ac_Header'}'`
10844 { echo "$as_me:$LINENO: result: $ac_res" >&5
10845echo "${ECHO_T}$ac_res" >&6; }
10846
10847fi
10848if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851_ACEOF
10852
10853fi
10854
10855done
10856
10857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010858{ echo "$as_me:$LINENO: checking for error_t" >&5
10859echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10860if test "${ac_cv_type_error_t+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862else
10863 cat >conftest.$ac_ext <<_ACEOF
10864/* confdefs.h. */
10865_ACEOF
10866cat confdefs.h >>conftest.$ac_ext
10867cat >>conftest.$ac_ext <<_ACEOF
10868/* end confdefs.h. */
10869#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010870# include <argz.h>
10871#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010872
10873typedef error_t ac__type_new_;
10874int
10875main ()
10876{
10877if ((ac__type_new_ *) 0)
10878 return 0;
10879if (sizeof (ac__type_new_))
10880 return 0;
10881 ;
10882 return 0;
10883}
10884_ACEOF
10885rm -f conftest.$ac_objext
10886if { (ac_try="$ac_compile"
10887case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890esac
10891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_compile") 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903esac
10904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest.$ac_objext'
10910 { (case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_try") 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_type_error_t=yes
10920else
10921 echo "$as_me: failed program was:" >&5
10922sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_cv_type_error_t=no
10925fi
10926
10927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928fi
10929{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10930echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10931if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932
10933cat >>confdefs.h <<_ACEOF
10934#define HAVE_ERROR_T 1
10935_ACEOF
10936
10937
10938else
10939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010940cat >>confdefs.h <<\_ACEOF
10941#define error_t int
10942_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943
10944fi
10945
10946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010947
10948
10949
10950
10951
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010953do
10954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960 cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h. */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
10965/* end confdefs.h. */
10966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10968#define $ac_func innocuous_$ac_func
10969
10970/* System header to define __stub macros and hopefully few prototypes,
10971 which can conflict with char $ac_func (); below.
10972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973 <limits.h> exists even on freestanding compilers. */
10974
10975#ifdef __STDC__
10976# include <limits.h>
10977#else
10978# include <assert.h>
10979#endif
10980
10981#undef $ac_func
10982
10983/* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10986#ifdef __cplusplus
10987extern "C"
10988#endif
10989char $ac_func ();
10990/* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993#if defined __stub_$ac_func || defined __stub___$ac_func
10994choke me
10995#endif
10996
10997int
10998main ()
10999{
11000return $ac_func ();
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005rm -f conftest.$ac_objext conftest$ac_exeext
11006if { (ac_try="$ac_link"
11007case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010esac
11011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023esac
11024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033esac
11034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 eval "$as_ac_var=yes"
11040else
11041 echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 eval "$as_ac_var=no"
11045fi
11046
11047rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049fi
11050ac_res=`eval echo '${'$as_ac_var'}'`
11051 { echo "$as_me:$LINENO: result: $ac_res" >&5
11052echo "${ECHO_T}$ac_res" >&6; }
11053if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056_ACEOF
11057
11058fi
11059done
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011080
11081
11082
11083
11084
11085
11086
11087
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11089 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011090do
11091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097fi
11098ac_res=`eval echo '${'$as_ac_Header'}'`
11099 { echo "$as_me:$LINENO: result: $ac_res" >&5
11100echo "${ECHO_T}$ac_res" >&6; }
11101else
11102 # Is the header compilable?
11103{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11105cat >conftest.$ac_ext <<_ACEOF
11106/* confdefs.h. */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h. */
11111$ac_includes_default
11112#include <$ac_header>
11113_ACEOF
11114rm -f conftest.$ac_objext
11115if { (ac_try="$ac_compile"
11116case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119esac
11120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_compile") 2>conftest.er1
11122 ac_status=$?
11123 grep -v '^ *+' conftest.er1 >conftest.err
11124 rm -f conftest.er1
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132esac
11133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest.$ac_objext'
11139 { (case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11142esac
11143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_try") 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 ac_header_compiler=yes
11149else
11150 echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153 ac_header_compiler=no
11154fi
11155
11156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11158echo "${ECHO_T}$ac_header_compiler" >&6; }
11159
11160# Is the header present?
11161{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11163cat >conftest.$ac_ext <<_ACEOF
11164/* confdefs.h. */
11165_ACEOF
11166cat confdefs.h >>conftest.$ac_ext
11167cat >>conftest.$ac_ext <<_ACEOF
11168/* end confdefs.h. */
11169#include <$ac_header>
11170_ACEOF
11171if { (ac_try="$ac_cpp conftest.$ac_ext"
11172case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11175esac
11176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11178 ac_status=$?
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } >/dev/null; then
11184 if test -s conftest.err; then
11185 ac_cpp_err=$ac_c_preproc_warn_flag
11186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11187 else
11188 ac_cpp_err=
11189 fi
11190else
11191 ac_cpp_err=yes
11192fi
11193if test -z "$ac_cpp_err"; then
11194 ac_header_preproc=yes
11195else
11196 echo "$as_me: failed program was:" >&5
11197sed 's/^/| /' conftest.$ac_ext >&5
11198
11199 ac_header_preproc=no
11200fi
11201
11202rm -f conftest.err conftest.$ac_ext
11203{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11204echo "${ECHO_T}$ac_header_preproc" >&6; }
11205
11206# So? What about this header?
11207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11208 yes:no: )
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11210echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11212echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11213 ac_header_preproc=yes
11214 ;;
11215 no:yes:* )
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11221echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11223echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11227echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11228 ( cat <<\_ASBOX
11229## ----------------------------------- ##
11230## Report this to llvmbugs@cs.uiuc.edu ##
11231## ----------------------------------- ##
11232_ASBOX
11233 ) | sed "s/^/$as_me: WARNING: /" >&2
11234 ;;
11235esac
11236{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240else
11241 eval "$as_ac_Header=\$ac_header_preproc"
11242fi
11243ac_res=`eval echo '${'$as_ac_Header'}'`
11244 { echo "$as_me:$LINENO: result: $ac_res" >&5
11245echo "${ECHO_T}$ac_res" >&6; }
11246
11247fi
11248if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011249 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251_ACEOF
11252
11253fi
11254
11255done
11256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011257
11258
11259
11260
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011261for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011262do
11263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269fi
11270ac_res=`eval echo '${'$as_ac_Header'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272echo "${ECHO_T}$ac_res" >&6; }
11273else
11274 # Is the header compilable?
11275{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11277cat >conftest.$ac_ext <<_ACEOF
11278/* confdefs.h. */
11279_ACEOF
11280cat confdefs.h >>conftest.$ac_ext
11281cat >>conftest.$ac_ext <<_ACEOF
11282/* end confdefs.h. */
11283$ac_includes_default
11284#include <$ac_header>
11285_ACEOF
11286rm -f conftest.$ac_objext
11287if { (ac_try="$ac_compile"
11288case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291esac
11292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_compile") 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304esac
11305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } &&
11310 { ac_try='test -s conftest.$ac_objext'
11311 { (case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11314esac
11315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_try") 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_header_compiler=yes
11321else
11322 echo "$as_me: failed program was:" >&5
11323sed 's/^/| /' conftest.$ac_ext >&5
11324
11325 ac_header_compiler=no
11326fi
11327
11328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11330echo "${ECHO_T}$ac_header_compiler" >&6; }
11331
11332# Is the header present?
11333{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11335cat >conftest.$ac_ext <<_ACEOF
11336/* confdefs.h. */
11337_ACEOF
11338cat confdefs.h >>conftest.$ac_ext
11339cat >>conftest.$ac_ext <<_ACEOF
11340/* end confdefs.h. */
11341#include <$ac_header>
11342_ACEOF
11343if { (ac_try="$ac_cpp conftest.$ac_ext"
11344case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347esac
11348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } >/dev/null; then
11356 if test -s conftest.err; then
11357 ac_cpp_err=$ac_c_preproc_warn_flag
11358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11359 else
11360 ac_cpp_err=
11361 fi
11362else
11363 ac_cpp_err=yes
11364fi
11365if test -z "$ac_cpp_err"; then
11366 ac_header_preproc=yes
11367else
11368 echo "$as_me: failed program was:" >&5
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
11371 ac_header_preproc=no
11372fi
11373
11374rm -f conftest.err conftest.$ac_ext
11375{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11376echo "${ECHO_T}$ac_header_preproc" >&6; }
11377
11378# So? What about this header?
11379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11380 yes:no: )
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11384echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11385 ac_header_preproc=yes
11386 ;;
11387 no:yes:* )
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11391echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11393echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11395echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11399echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11400 ( cat <<\_ASBOX
11401## ----------------------------------- ##
11402## Report this to llvmbugs@cs.uiuc.edu ##
11403## ----------------------------------- ##
11404_ASBOX
11405 ) | sed "s/^/$as_me: WARNING: /" >&2
11406 ;;
11407esac
11408{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412else
11413 eval "$as_ac_Header=\$ac_header_preproc"
11414fi
11415ac_res=`eval echo '${'$as_ac_Header'}'`
11416 { echo "$as_me:$LINENO: result: $ac_res" >&5
11417echo "${ECHO_T}$ac_res" >&6; }
11418
11419fi
11420if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423_ACEOF
11424
11425fi
11426
11427done
11428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011429
11430
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011431for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011432do
11433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439fi
11440ac_res=`eval echo '${'$as_ac_Header'}'`
11441 { echo "$as_me:$LINENO: result: $ac_res" >&5
11442echo "${ECHO_T}$ac_res" >&6; }
11443else
11444 # Is the header compilable?
11445{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11447cat >conftest.$ac_ext <<_ACEOF
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
11453$ac_includes_default
11454#include <$ac_header>
11455_ACEOF
11456rm -f conftest.$ac_objext
11457if { (ac_try="$ac_compile"
11458case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461esac
11462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_compile") 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11474esac
11475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest.$ac_objext'
11481 { (case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11484esac
11485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_try") 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_header_compiler=yes
11491else
11492 echo "$as_me: failed program was:" >&5
11493sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 ac_header_compiler=no
11496fi
11497
11498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11500echo "${ECHO_T}$ac_header_compiler" >&6; }
11501
11502# Is the header present?
11503{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11505cat >conftest.$ac_ext <<_ACEOF
11506/* confdefs.h. */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h. */
11511#include <$ac_header>
11512_ACEOF
11513if { (ac_try="$ac_cpp conftest.$ac_ext"
11514case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11517esac
11518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } >/dev/null; then
11526 if test -s conftest.err; then
11527 ac_cpp_err=$ac_c_preproc_warn_flag
11528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11529 else
11530 ac_cpp_err=
11531 fi
11532else
11533 ac_cpp_err=yes
11534fi
11535if test -z "$ac_cpp_err"; then
11536 ac_header_preproc=yes
11537else
11538 echo "$as_me: failed program was:" >&5
11539sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 ac_header_preproc=no
11542fi
11543
11544rm -f conftest.err conftest.$ac_ext
11545{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11546echo "${ECHO_T}$ac_header_preproc" >&6; }
11547
11548# So? What about this header?
11549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11550 yes:no: )
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11555 ac_header_preproc=yes
11556 ;;
11557 no:yes:* )
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11561echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11565echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11570 ( cat <<\_ASBOX
11571## ----------------------------------- ##
11572## Report this to llvmbugs@cs.uiuc.edu ##
11573## ----------------------------------- ##
11574_ASBOX
11575 ) | sed "s/^/$as_me: WARNING: /" >&2
11576 ;;
11577esac
11578{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11582else
11583 eval "$as_ac_Header=\$ac_header_preproc"
11584fi
11585ac_res=`eval echo '${'$as_ac_Header'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587echo "${ECHO_T}$ac_res" >&6; }
11588
11589fi
11590if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011591 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593_ACEOF
11594 break
11595fi
11596
11597done
11598
11599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011600
11601
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011603do
11604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11605{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11607if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11609else
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
11616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11618#define $ac_func innocuous_$ac_func
11619
11620/* System header to define __stub macros and hopefully few prototypes,
11621 which can conflict with char $ac_func (); below.
11622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11623 <limits.h> exists even on freestanding compilers. */
11624
11625#ifdef __STDC__
11626# include <limits.h>
11627#else
11628# include <assert.h>
11629#endif
11630
11631#undef $ac_func
11632
11633/* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636#ifdef __cplusplus
11637extern "C"
11638#endif
11639char $ac_func ();
11640/* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
11643#if defined __stub_$ac_func || defined __stub___$ac_func
11644choke me
11645#endif
11646
11647int
11648main ()
11649{
11650return $ac_func ();
11651 ;
11652 return 0;
11653}
11654_ACEOF
11655rm -f conftest.$ac_objext conftest$ac_exeext
11656if { (ac_try="$ac_link"
11657case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660esac
11661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest$ac_exeext'
11680 { (case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683esac
11684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_try") 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 eval "$as_ac_var=yes"
11690else
11691 echo "$as_me: failed program was:" >&5
11692sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 eval "$as_ac_var=no"
11695fi
11696
11697rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
11699fi
11700ac_res=`eval echo '${'$as_ac_var'}'`
11701 { echo "$as_me:$LINENO: result: $ac_res" >&5
11702echo "${ECHO_T}$ac_res" >&6; }
11703if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706_ACEOF
11707 break
11708fi
11709done
11710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011711
11712
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011713for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011714do
11715as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11716{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11717echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11718if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721 cat >conftest.$ac_ext <<_ACEOF
11722/* confdefs.h. */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h. */
11727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11729#define $ac_func innocuous_$ac_func
11730
11731/* System header to define __stub macros and hopefully few prototypes,
11732 which can conflict with char $ac_func (); below.
11733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11734 <limits.h> exists even on freestanding compilers. */
11735
11736#ifdef __STDC__
11737# include <limits.h>
11738#else
11739# include <assert.h>
11740#endif
11741
11742#undef $ac_func
11743
11744/* Override any GCC internal prototype to avoid an error.
11745 Use char because int might match the return type of a GCC
11746 builtin and then its argument prototype would still apply. */
11747#ifdef __cplusplus
11748extern "C"
11749#endif
11750char $ac_func ();
11751/* The GNU C library defines this for functions which it implements
11752 to always fail with ENOSYS. Some functions are actually named
11753 something starting with __ and the normal name is an alias. */
11754#if defined __stub_$ac_func || defined __stub___$ac_func
11755choke me
11756#endif
11757
11758int
11759main ()
11760{
11761return $ac_func ();
11762 ;
11763 return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext conftest$ac_exeext
11767if { (ac_try="$ac_link"
11768case "(($ac_try" in
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11771esac
11772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773 (eval "$ac_link") 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11781 { (case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784esac
11785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_try") 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; } &&
11790 { ac_try='test -s conftest$ac_exeext'
11791 { (case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794esac
11795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_try") 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 eval "$as_ac_var=yes"
11801else
11802 echo "$as_me: failed program was:" >&5
11803sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 eval "$as_ac_var=no"
11806fi
11807
11808rm -f core conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810fi
11811ac_res=`eval echo '${'$as_ac_var'}'`
11812 { echo "$as_me:$LINENO: result: $ac_res" >&5
11813echo "${ECHO_T}$ac_res" >&6; }
11814if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011817_ACEOF
11818 break
11819fi
11820done
11821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011822
11823
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011825do
11826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11827{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11829if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11831else
11832 cat >conftest.$ac_ext <<_ACEOF
11833/* confdefs.h. */
11834_ACEOF
11835cat confdefs.h >>conftest.$ac_ext
11836cat >>conftest.$ac_ext <<_ACEOF
11837/* end confdefs.h. */
11838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11840#define $ac_func innocuous_$ac_func
11841
11842/* System header to define __stub macros and hopefully few prototypes,
11843 which can conflict with char $ac_func (); below.
11844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11845 <limits.h> exists even on freestanding compilers. */
11846
11847#ifdef __STDC__
11848# include <limits.h>
11849#else
11850# include <assert.h>
11851#endif
11852
11853#undef $ac_func
11854
11855/* Override any GCC internal prototype to avoid an error.
11856 Use char because int might match the return type of a GCC
11857 builtin and then its argument prototype would still apply. */
11858#ifdef __cplusplus
11859extern "C"
11860#endif
11861char $ac_func ();
11862/* The GNU C library defines this for functions which it implements
11863 to always fail with ENOSYS. Some functions are actually named
11864 something starting with __ and the normal name is an alias. */
11865#if defined __stub_$ac_func || defined __stub___$ac_func
11866choke me
11867#endif
11868
11869int
11870main ()
11871{
11872return $ac_func ();
11873 ;
11874 return 0;
11875}
11876_ACEOF
11877rm -f conftest.$ac_objext conftest$ac_exeext
11878if { (ac_try="$ac_link"
11879case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882esac
11883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_link") 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try='test -s conftest$ac_exeext'
11902 { (case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905esac
11906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_try") 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 eval "$as_ac_var=yes"
11912else
11913 echo "$as_me: failed program was:" >&5
11914sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 eval "$as_ac_var=no"
11917fi
11918
11919rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921fi
11922ac_res=`eval echo '${'$as_ac_var'}'`
11923 { echo "$as_me:$LINENO: result: $ac_res" >&5
11924echo "${ECHO_T}$ac_res" >&6; }
11925if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928_ACEOF
11929 break
11930fi
11931done
11932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011933
11934
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011936do
11937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11938{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11940if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942else
11943 cat >conftest.$ac_ext <<_ACEOF
11944/* confdefs.h. */
11945_ACEOF
11946cat confdefs.h >>conftest.$ac_ext
11947cat >>conftest.$ac_ext <<_ACEOF
11948/* end confdefs.h. */
11949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11951#define $ac_func innocuous_$ac_func
11952
11953/* System header to define __stub macros and hopefully few prototypes,
11954 which can conflict with char $ac_func (); below.
11955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956 <limits.h> exists even on freestanding compilers. */
11957
11958#ifdef __STDC__
11959# include <limits.h>
11960#else
11961# include <assert.h>
11962#endif
11963
11964#undef $ac_func
11965
11966/* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply. */
11969#ifdef __cplusplus
11970extern "C"
11971#endif
11972char $ac_func ();
11973/* The GNU C library defines this for functions which it implements
11974 to always fail with ENOSYS. Some functions are actually named
11975 something starting with __ and the normal name is an alias. */
11976#if defined __stub_$ac_func || defined __stub___$ac_func
11977choke me
11978#endif
11979
11980int
11981main ()
11982{
11983return $ac_func ();
11984 ;
11985 return 0;
11986}
11987_ACEOF
11988rm -f conftest.$ac_objext conftest$ac_exeext
11989if { (ac_try="$ac_link"
11990case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11993esac
11994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_link") 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006esac
12007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try='test -s conftest$ac_exeext'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 eval "$as_ac_var=yes"
12023else
12024 echo "$as_me: failed program was:" >&5
12025sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 eval "$as_ac_var=no"
12028fi
12029
12030rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032fi
12033ac_res=`eval echo '${'$as_ac_var'}'`
12034 { echo "$as_me:$LINENO: result: $ac_res" >&5
12035echo "${ECHO_T}$ac_res" >&6; }
12036if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012038#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012039_ACEOF
12040
12041fi
12042done
12043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012044
12045
12046
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012047for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012048do
12049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12050{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12052if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054else
12055 cat >conftest.$ac_ext <<_ACEOF
12056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */
12061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12063#define $ac_func innocuous_$ac_func
12064
12065/* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char $ac_func (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12069
12070#ifdef __STDC__
12071# include <limits.h>
12072#else
12073# include <assert.h>
12074#endif
12075
12076#undef $ac_func
12077
12078/* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
12081#ifdef __cplusplus
12082extern "C"
12083#endif
12084char $ac_func ();
12085/* The GNU C library defines this for functions which it implements
12086 to always fail with ENOSYS. Some functions are actually named
12087 something starting with __ and the normal name is an alias. */
12088#if defined __stub_$ac_func || defined __stub___$ac_func
12089choke me
12090#endif
12091
12092int
12093main ()
12094{
12095return $ac_func ();
12096 ;
12097 return 0;
12098}
12099_ACEOF
12100rm -f conftest.$ac_objext conftest$ac_exeext
12101if { (ac_try="$ac_link"
12102case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105esac
12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_link") 2>conftest.er1
12108 ac_status=$?
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12115 { (case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118esac
12119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest$ac_exeext'
12125 { (case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128esac
12129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_try") 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 eval "$as_ac_var=yes"
12135else
12136 echo "$as_me: failed program was:" >&5
12137sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 eval "$as_ac_var=no"
12140fi
12141
12142rm -f core conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12144fi
12145ac_res=`eval echo '${'$as_ac_var'}'`
12146 { echo "$as_me:$LINENO: result: $ac_res" >&5
12147echo "${ECHO_T}$ac_res" >&6; }
12148if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012149 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012151_ACEOF
12152
12153fi
12154done
12155
12156
Douglas Gregor01746742009-05-11 18:05:52 +000012157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012158{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12159echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012160
Reid Spencer86901802004-12-08 23:07:27 +000012161ICC=no
12162IXX=no
12163case $CC in
12164 icc*|icpc*)
12165 ICC=yes
12166 IXX=yes
12167 ;;
12168 *)
12169 ;;
12170esac
12171
Duraid Madina937c60a2006-02-15 07:57:42 +000012172if test "$GCC" != "yes" && test "$ICC" != "yes"
12173then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012174 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12175echo "$as_me: error: gcc|icc required but not found" >&2;}
12176 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012177fi
12178
12179if test "$GXX" != "yes" && test "$IXX" != "yes"
12180then
Eric Christopher73e36da2010-12-08 02:02:14 +000012181 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12182echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012183 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012184fi
12185
Reid Spencer86901802004-12-08 23:07:27 +000012186if test "$GCC" = "yes"
12187then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012188 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012189#if !defined(__GNUC__) || __GNUC__ < 3
12190#error Unsupported GCC version
12191#endif
12192
12193_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012194rm -f conftest.$ac_objext
12195if { (ac_try="$ac_compile"
12196case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199esac
12200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_compile") 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212esac
12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest.$ac_objext'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012229else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12234echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12235 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237
Chris Lattner399c7c72008-02-05 19:43:53 +000012238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012239fi
12240
12241if test -z "$llvm_cv_gnu_make_command"
12242then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012243 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12244echo "$as_me: error: GNU Make required but not found" >&2;}
12245 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012246fi
12247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012248{ echo "$as_me:$LINENO: result: ok" >&5
12249echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012251{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12252echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012253NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12254
12255NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012257{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12258echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012259
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012261
12262{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12263echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12264if test "${ac_cv_lib_m_sin+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012266else
12267 ac_check_lib_save_LIBS=$LIBS
12268LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012269cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012274/* end confdefs.h. */
12275
Reid Spencera773bd52006-08-04 18:18:08 +000012276/* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012279#ifdef __cplusplus
12280extern "C"
12281#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012282char sin ();
12283int
12284main ()
12285{
Reid Spencera773bd52006-08-04 18:18:08 +000012286return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012287 ;
12288 return 0;
12289}
12290_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012291rm -f conftest.$ac_objext conftest$ac_exeext
12292if { (ac_try="$ac_link"
12293case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296esac
12297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_link") 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309esac
12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try='test -s conftest$ac_exeext'
12316 { (case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319esac
12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_try") 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012325 ac_cv_lib_m_sin=yes
12326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012327 echo "$as_me: failed program was:" >&5
12328sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012332
Bill Wendlingebcceee2009-04-18 11:20:33 +000012333rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012334 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012335LIBS=$ac_check_lib_save_LIBS
12336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012337{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12338echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12339if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012340 cat >>confdefs.h <<_ACEOF
12341#define HAVE_LIBM 1
12342_ACEOF
12343
12344 LIBS="-lm $LIBS"
12345
12346fi
12347
Jeff Cohen28783c32007-01-12 18:22:38 +000012348if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012349
12350{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12351echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12352if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012354else
12355 ac_check_lib_save_LIBS=$LIBS
12356LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012357cat >conftest.$ac_ext <<_ACEOF
12358/* confdefs.h. */
12359_ACEOF
12360cat confdefs.h >>conftest.$ac_ext
12361cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012362/* end confdefs.h. */
12363
Reid Spencer48fdf912006-06-01 19:03:21 +000012364
Reid Spencer484fc8e2006-06-01 16:55:59 +000012365int
12366main ()
12367{
Reid Spencera773bd52006-08-04 18:18:08 +000012368return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012369 ;
12370 return 0;
12371}
12372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012373rm -f conftest.$ac_objext conftest$ac_exeext
12374if { (ac_try="$ac_link"
12375case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12378esac
12379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_link") 2>conftest.er1
12381 ac_status=$?
12382 grep -v '^ *+' conftest.er1 >conftest.err
12383 rm -f conftest.er1
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12388 { (case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391esac
12392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_try") 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401esac
12402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_try") 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012407 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012409 echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414
Bill Wendlingebcceee2009-04-18 11:20:33 +000012415rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012416 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012417LIBS=$ac_check_lib_save_LIBS
12418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012419{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12420echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12421if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012422 cat >>confdefs.h <<_ACEOF
12423#define HAVE_LIBIMAGEHLP 1
12424_ACEOF
12425
12426 LIBS="-limagehlp $LIBS"
12427
12428fi
12429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012430
12431{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12432echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12433if test "${ac_cv_lib_psapi_main+set}" = set; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012435else
12436 ac_check_lib_save_LIBS=$LIBS
12437LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012438cat >conftest.$ac_ext <<_ACEOF
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012443/* end confdefs.h. */
12444
Reid Spencer48fdf912006-06-01 19:03:21 +000012445
Reid Spencer484fc8e2006-06-01 16:55:59 +000012446int
12447main ()
12448{
Reid Spencera773bd52006-08-04 18:18:08 +000012449return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012450 ;
12451 return 0;
12452}
12453_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012454rm -f conftest.$ac_objext conftest$ac_exeext
12455if { (ac_try="$ac_link"
12456case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12459esac
12460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_link") 2>conftest.er1
12462 ac_status=$?
12463 grep -v '^ *+' conftest.er1 >conftest.err
12464 rm -f conftest.er1
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12469 { (case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12472esac
12473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_try") 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12482esac
12483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_try") 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012488 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012490 echo "$as_me: failed program was:" >&5
12491sed 's/^/| /' conftest.$ac_ext >&5
12492
12493 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012495
Bill Wendlingebcceee2009-04-18 11:20:33 +000012496rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012497 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012498LIBS=$ac_check_lib_save_LIBS
12499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012500{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12501echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12502if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012503 cat >>confdefs.h <<_ACEOF
12504#define HAVE_LIBPSAPI 1
12505_ACEOF
12506
12507 LIBS="-lpsapi $LIBS"
12508
12509fi
12510
12511fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012513{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12514echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12515if test "${ac_cv_search_dlopen+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012517else
12518 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012519cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012525
Reid Spencera773bd52006-08-04 18:18:08 +000012526/* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012529#ifdef __cplusplus
12530extern "C"
12531#endif
John Criswell7a73b802003-06-30 21:59:07 +000012532char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012533int
12534main ()
12535{
Reid Spencera773bd52006-08-04 18:18:08 +000012536return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012537 ;
12538 return 0;
12539}
12540_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012541for ac_lib in '' dl; do
12542 if test -z "$ac_lib"; then
12543 ac_res="none required"
12544 else
12545 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012547 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012548 rm -f conftest.$ac_objext conftest$ac_exeext
12549if { (ac_try="$ac_link"
12550case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553esac
12554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_link") 2>conftest.er1
12556 ac_status=$?
12557 grep -v '^ *+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } &&
12562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12563 { (case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12566esac
12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_try") 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest$ac_exeext'
12573 { (case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12576esac
12577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_try") 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012582 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012583else
12584 echo "$as_me: failed program was:" >&5
12585sed 's/^/| /' conftest.$ac_ext >&5
12586
12587
John Criswell7a73b802003-06-30 21:59:07 +000012588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012589
Bill Wendlingebcceee2009-04-18 11:20:33 +000012590rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012591 conftest$ac_exeext
12592 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012593 break
John Criswell7a73b802003-06-30 21:59:07 +000012594fi
Reid Spencera773bd52006-08-04 18:18:08 +000012595done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596if test "${ac_cv_search_dlopen+set}" = set; then
12597 :
Reid Spencera773bd52006-08-04 18:18:08 +000012598else
12599 ac_cv_search_dlopen=no
12600fi
12601rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012602LIBS=$ac_func_search_save_LIBS
12603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012604{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12605echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012606ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012607if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012610cat >>confdefs.h <<\_ACEOF
12611#define HAVE_DLOPEN 1
12612_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012613
12614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012615 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12616echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012617fi
12618
12619
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012620if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012621 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12622echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12623if test "${ac_cv_search_ffi_call+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012625else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012626 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012627cat >conftest.$ac_ext <<_ACEOF
12628/* confdefs.h. */
12629_ACEOF
12630cat confdefs.h >>conftest.$ac_ext
12631cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012632/* end confdefs.h. */
12633
12634/* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12637#ifdef __cplusplus
12638extern "C"
12639#endif
12640char ffi_call ();
12641int
12642main ()
12643{
12644return ffi_call ();
12645 ;
12646 return 0;
12647}
12648_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012649for ac_lib in '' ffi; do
12650 if test -z "$ac_lib"; then
12651 ac_res="none required"
12652 else
12653 ac_res=-l$ac_lib
12654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12655 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012656 rm -f conftest.$ac_objext conftest$ac_exeext
12657if { (ac_try="$ac_link"
12658case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661esac
12662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674esac
12675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012690 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012691else
12692 echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012696fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012697
Bill Wendlingebcceee2009-04-18 11:20:33 +000012698rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699 conftest$ac_exeext
12700 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012701 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012702fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012704if test "${ac_cv_search_ffi_call+set}" = set; then
12705 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012706else
12707 ac_cv_search_ffi_call=no
12708fi
12709rm conftest.$ac_ext
12710LIBS=$ac_func_search_save_LIBS
12711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012712{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12713echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012714ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012715if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012718cat >>confdefs.h <<\_ACEOF
12719#define HAVE_FFI_CALL 1
12720_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012721
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012722else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012723 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12724echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12725 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012726fi
12727
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012728fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12731echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12732if test "${ac_cv_search_mallinfo+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012734else
12735 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012736cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012741/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012742
Reid Spencera773bd52006-08-04 18:18:08 +000012743/* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012746#ifdef __cplusplus
12747extern "C"
12748#endif
John Criswell7a73b802003-06-30 21:59:07 +000012749char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012750int
12751main ()
12752{
Reid Spencera773bd52006-08-04 18:18:08 +000012753return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012754 ;
12755 return 0;
12756}
12757_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012758for ac_lib in '' malloc; do
12759 if test -z "$ac_lib"; then
12760 ac_res="none required"
12761 else
12762 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012764 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012765 rm -f conftest.$ac_objext conftest$ac_exeext
12766if { (ac_try="$ac_link"
12767case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770esac
12771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_link") 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12780 { (case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783esac
12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_try") 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; } &&
12789 { ac_try='test -s conftest$ac_exeext'
12790 { (case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793esac
12794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_try") 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012799 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012800else
12801 echo "$as_me: failed program was:" >&5
12802sed 's/^/| /' conftest.$ac_ext >&5
12803
12804
John Criswell7a73b802003-06-30 21:59:07 +000012805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012806
Bill Wendlingebcceee2009-04-18 11:20:33 +000012807rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012808 conftest$ac_exeext
12809 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012810 break
John Criswell7a73b802003-06-30 21:59:07 +000012811fi
Reid Spencera773bd52006-08-04 18:18:08 +000012812done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012813if test "${ac_cv_search_mallinfo+set}" = set; then
12814 :
Reid Spencera773bd52006-08-04 18:18:08 +000012815else
12816 ac_cv_search_mallinfo=no
12817fi
12818rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012819LIBS=$ac_func_search_save_LIBS
12820fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12822echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012823ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012827cat >>confdefs.h <<\_ACEOF
12828#define HAVE_MALLINFO 1
12829_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012830
12831fi
12832
12833
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012834if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012835
12836{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12837echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12838if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012840else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012841 ac_check_lib_save_LIBS=$LIBS
12842LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012843cat >conftest.$ac_ext <<_ACEOF
12844/* confdefs.h. */
12845_ACEOF
12846cat confdefs.h >>conftest.$ac_ext
12847cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012848/* end confdefs.h. */
12849
Reid Spencera773bd52006-08-04 18:18:08 +000012850/* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012853#ifdef __cplusplus
12854extern "C"
12855#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012856char pthread_mutex_init ();
12857int
12858main ()
12859{
Reid Spencera773bd52006-08-04 18:18:08 +000012860return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012861 ;
12862 return 0;
12863}
12864_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012865rm -f conftest.$ac_objext conftest$ac_exeext
12866if { (ac_try="$ac_link"
12867case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870esac
12871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_link") 2>conftest.er1
12873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12880 { (case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12883esac
12884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_try") 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893esac
12894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_try") 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012899 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012901 echo "$as_me: failed program was:" >&5
12902sed 's/^/| /' conftest.$ac_ext >&5
12903
12904 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012906
Bill Wendlingebcceee2009-04-18 11:20:33 +000012907rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012908 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012909LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012911{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12912echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12913if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012914 cat >>confdefs.h <<_ACEOF
12915#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012916_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012917
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012918 LIBS="-lpthread $LIBS"
12919
Reid Spencer22177fe2005-07-12 15:24:20 +000012920fi
12921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012922 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12923echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12924if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012926else
12927 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012928cat >conftest.$ac_ext <<_ACEOF
12929/* confdefs.h. */
12930_ACEOF
12931cat confdefs.h >>conftest.$ac_ext
12932cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012933/* end confdefs.h. */
12934
Reid Spencera773bd52006-08-04 18:18:08 +000012935/* Override any GCC internal prototype to avoid an error.
12936 Use char because int might match the return type of a GCC
12937 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012938#ifdef __cplusplus
12939extern "C"
12940#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012941char pthread_mutex_lock ();
12942int
12943main ()
12944{
Reid Spencera773bd52006-08-04 18:18:08 +000012945return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012946 ;
12947 return 0;
12948}
12949_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012950for ac_lib in '' pthread; do
12951 if test -z "$ac_lib"; then
12952 ac_res="none required"
12953 else
12954 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012956 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012957 rm -f conftest.$ac_objext conftest$ac_exeext
12958if { (ac_try="$ac_link"
12959case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962esac
12963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_link") 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12972 { (case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975esac
12976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_try") 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest$ac_exeext'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12985esac
12986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012991 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012992else
12993 echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996
Brian Gaeke5f268f72003-12-05 19:29:01 +000012997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012998
Bill Wendlingebcceee2009-04-18 11:20:33 +000012999rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013000 conftest$ac_exeext
13001 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013002 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013003fi
Reid Spencera773bd52006-08-04 18:18:08 +000013004done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013005if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13006 :
Reid Spencera773bd52006-08-04 18:18:08 +000013007else
13008 ac_cv_search_pthread_mutex_lock=no
13009fi
13010rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013011LIBS=$ac_func_search_save_LIBS
13012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013013{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13014echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013015ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013016if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013019cat >>confdefs.h <<\_ACEOF
13020#define HAVE_PTHREAD_MUTEX_LOCK 1
13021_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013022
13023fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013025 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13026echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13027if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013029else
13030 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013031cat >conftest.$ac_ext <<_ACEOF
13032/* confdefs.h. */
13033_ACEOF
13034cat confdefs.h >>conftest.$ac_ext
13035cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013036/* end confdefs.h. */
13037
13038/* Override any GCC internal prototype to avoid an error.
13039 Use char because int might match the return type of a GCC
13040 builtin and then its argument prototype would still apply. */
13041#ifdef __cplusplus
13042extern "C"
13043#endif
13044char pthread_rwlock_init ();
13045int
13046main ()
13047{
13048return pthread_rwlock_init ();
13049 ;
13050 return 0;
13051}
13052_ACEOF
13053for ac_lib in '' pthread; do
13054 if test -z "$ac_lib"; then
13055 ac_res="none required"
13056 else
13057 ac_res=-l$ac_lib
13058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13059 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013060 rm -f conftest.$ac_objext conftest$ac_exeext
13061if { (ac_try="$ac_link"
13062case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065esac
13066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_link") 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078esac
13079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest$ac_exeext'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013094 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013095else
13096 echo "$as_me: failed program was:" >&5
13097sed 's/^/| /' conftest.$ac_ext >&5
13098
13099
Owen Andersonde8aed22009-06-16 18:20:20 +000013100fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013101
Owen Andersonde8aed22009-06-16 18:20:20 +000013102rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013103 conftest$ac_exeext
13104 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013105 break
13106fi
13107done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013108if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13109 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013110else
13111 ac_cv_search_pthread_rwlock_init=no
13112fi
13113rm conftest.$ac_ext
13114LIBS=$ac_func_search_save_LIBS
13115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013116{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13117echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013118ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013119if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013122cat >>confdefs.h <<\_ACEOF
13123#define HAVE_PTHREAD_RWLOCK_INIT 1
13124_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013125
13126fi
13127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13129echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13130if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013132else
13133 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013134cat >conftest.$ac_ext <<_ACEOF
13135/* confdefs.h. */
13136_ACEOF
13137cat confdefs.h >>conftest.$ac_ext
13138cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013139/* end confdefs.h. */
13140
13141/* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13144#ifdef __cplusplus
13145extern "C"
13146#endif
13147char pthread_getspecific ();
13148int
13149main ()
13150{
13151return pthread_getspecific ();
13152 ;
13153 return 0;
13154}
13155_ACEOF
13156for ac_lib in '' pthread; do
13157 if test -z "$ac_lib"; then
13158 ac_res="none required"
13159 else
13160 ac_res=-l$ac_lib
13161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13162 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163 rm -f conftest.$ac_objext conftest$ac_exeext
13164if { (ac_try="$ac_link"
13165case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168esac
13169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_link") 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
13177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13178 { (case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181esac
13182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_try") 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try='test -s conftest$ac_exeext'
13188 { (case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13191esac
13192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_try") 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013197 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013198else
13199 echo "$as_me: failed program was:" >&5
13200sed 's/^/| /' conftest.$ac_ext >&5
13201
13202
Owen Anderson27fcfe12009-06-25 23:10:26 +000013203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013204
Owen Anderson27fcfe12009-06-25 23:10:26 +000013205rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013206 conftest$ac_exeext
13207 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013208 break
13209fi
13210done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13212 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013213else
13214 ac_cv_search_pthread_getspecific=no
13215fi
13216rm conftest.$ac_ext
13217LIBS=$ac_func_search_save_LIBS
13218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013219{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13220echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013221ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013225cat >>confdefs.h <<\_ACEOF
13226#define HAVE_PTHREAD_GETSPECIFIC 1
13227_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013228
13229fi
13230
Reid Spencer0a262ba2005-08-24 10:07:20 +000013231fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013232
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013233
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013234# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013235if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013236 withval=$with_udis86;
13237 USE_UDIS86=1
13238
13239 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013240 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013241 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13242 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013243
13244{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13245echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13246if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013248else
13249 ac_check_lib_save_LIBS=$LIBS
13250LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013251cat >conftest.$ac_ext <<_ACEOF
13252/* confdefs.h. */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013256/* end confdefs.h. */
13257
13258/* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13261#ifdef __cplusplus
13262extern "C"
13263#endif
13264char ud_init ();
13265int
13266main ()
13267{
13268return ud_init ();
13269 ;
13270 return 0;
13271}
13272_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013273rm -f conftest.$ac_objext conftest$ac_exeext
13274if { (ac_try="$ac_link"
13275case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278esac
13279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_link") 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13291esac
13292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest$ac_exeext'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13301esac
13302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013307 ac_cv_lib_udis86_ud_init=yes
13308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314
Bill Wendlingebcceee2009-04-18 11:20:33 +000013315rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013316 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013317LIBS=$ac_check_lib_save_LIBS
13318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013319{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13320echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13321if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013322 cat >>confdefs.h <<_ACEOF
13323#define HAVE_LIBUDIS86 1
13324_ACEOF
13325
13326 LIBS="-ludis86 $LIBS"
13327
13328else
13329
13330 echo "Error! You need to have libudis86 around."
13331 exit -1
13332
13333fi
13334
13335
13336else
13337 USE_UDIS86=0
13338
13339fi
13340
13341
13342cat >>confdefs.h <<_ACEOF
13343#define USE_UDIS86 $USE_UDIS86
13344_ACEOF
13345
13346
13347
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013348# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013350 withval=$with_oprofile;
13351 USE_OPROFILE=1
13352
13353 case "$withval" in
13354 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013355 no) llvm_cv_oppath=
13356 USE_OPROFILE=0
13357 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013358 *) llvm_cv_oppath="${withval}/lib/oprofile"
13359 CPPFLAGS="-I${withval}/include";;
13360 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013361 if test -n "$llvm_cv_oppath" ; then
13362 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13364echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13365if test "${ac_cv_search_bfd_init+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013367else
13368 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369cat >conftest.$ac_ext <<_ACEOF
13370/* confdefs.h. */
13371_ACEOF
13372cat confdefs.h >>conftest.$ac_ext
13373cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013374/* end confdefs.h. */
13375
13376/* Override any GCC internal prototype to avoid an error.
13377 Use char because int might match the return type of a GCC
13378 builtin and then its argument prototype would still apply. */
13379#ifdef __cplusplus
13380extern "C"
13381#endif
13382char bfd_init ();
13383int
13384main ()
13385{
13386return bfd_init ();
13387 ;
13388 return 0;
13389}
13390_ACEOF
13391for ac_lib in '' bfd; do
13392 if test -z "$ac_lib"; then
13393 ac_res="none required"
13394 else
13395 ac_res=-l$ac_lib
13396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13397 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013398 rm -f conftest.$ac_objext conftest$ac_exeext
13399if { (ac_try="$ac_link"
13400case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_link") 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest$ac_exeext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013432 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013439
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013440rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013441 conftest$ac_exeext
13442 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013443 break
13444fi
13445done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013446if test "${ac_cv_search_bfd_init+set}" = set; then
13447 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013448else
13449 ac_cv_search_bfd_init=no
13450fi
13451rm conftest.$ac_ext
13452LIBS=$ac_func_search_save_LIBS
13453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013454{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13455echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013456ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013457if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13459
13460fi
13461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013462 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13463echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13464if test "${ac_cv_search_op_open_agent+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013466else
13467 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013468cat >conftest.$ac_ext <<_ACEOF
13469/* confdefs.h. */
13470_ACEOF
13471cat confdefs.h >>conftest.$ac_ext
13472cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013473/* end confdefs.h. */
13474
13475/* Override any GCC internal prototype to avoid an error.
13476 Use char because int might match the return type of a GCC
13477 builtin and then its argument prototype would still apply. */
13478#ifdef __cplusplus
13479extern "C"
13480#endif
13481char op_open_agent ();
13482int
13483main ()
13484{
13485return op_open_agent ();
13486 ;
13487 return 0;
13488}
13489_ACEOF
13490for ac_lib in '' opagent; do
13491 if test -z "$ac_lib"; then
13492 ac_res="none required"
13493 else
13494 ac_res=-l$ac_lib
13495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13496 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013497 rm -f conftest.$ac_objext conftest$ac_exeext
13498if { (ac_try="$ac_link"
13499case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502esac
13503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_link") 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13515esac
13516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_try") 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest$ac_exeext'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525esac
13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013531 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013532else
13533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013538
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013539rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013540 conftest$ac_exeext
13541 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013542 break
13543fi
13544done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013545if test "${ac_cv_search_op_open_agent+set}" = set; then
13546 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013547else
13548 ac_cv_search_op_open_agent=no
13549fi
13550rm conftest.$ac_ext
13551LIBS=$ac_func_search_save_LIBS
13552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013553{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13554echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013555ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013556if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13558
13559else
13560
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013561 echo "Error! You need to have libopagent around."
13562 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013563
13564fi
13565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013566 if test "${ac_cv_header_opagent_h+set}" = set; then
13567 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13568echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13569if test "${ac_cv_header_opagent_h+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571fi
13572{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13573echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13574else
13575 # Is the header compilable?
13576{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13577echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13578cat >conftest.$ac_ext <<_ACEOF
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
13583/* end confdefs.h. */
13584$ac_includes_default
13585#include <opagent.h>
13586_ACEOF
13587rm -f conftest.$ac_objext
13588if { (ac_try="$ac_compile"
13589case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592esac
13593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_compile") 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13602 { (case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605esac
13606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_try") 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest.$ac_objext'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615esac
13616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 ac_header_compiler=yes
13622else
13623 echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013626 ac_header_compiler=no
13627fi
13628
13629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13631echo "${ECHO_T}$ac_header_compiler" >&6; }
13632
13633# Is the header present?
13634{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13635echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13636cat >conftest.$ac_ext <<_ACEOF
13637/* confdefs.h. */
13638_ACEOF
13639cat confdefs.h >>conftest.$ac_ext
13640cat >>conftest.$ac_ext <<_ACEOF
13641/* end confdefs.h. */
13642#include <opagent.h>
13643_ACEOF
13644if { (ac_try="$ac_cpp conftest.$ac_ext"
13645case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } >/dev/null; then
13657 if test -s conftest.err; then
13658 ac_cpp_err=$ac_c_preproc_warn_flag
13659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13660 else
13661 ac_cpp_err=
13662 fi
13663else
13664 ac_cpp_err=yes
13665fi
13666if test -z "$ac_cpp_err"; then
13667 ac_header_preproc=yes
13668else
13669 echo "$as_me: failed program was:" >&5
13670sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 ac_header_preproc=no
13673fi
13674
13675rm -f conftest.err conftest.$ac_ext
13676{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13677echo "${ECHO_T}$ac_header_preproc" >&6; }
13678
13679# So? What about this header?
13680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13681 yes:no: )
13682 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13683echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13685echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13686 ac_header_preproc=yes
13687 ;;
13688 no:yes:* )
13689 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13690echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13692echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13694echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13696echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13698echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13700echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13701 ( cat <<\_ASBOX
13702## ----------------------------------- ##
13703## Report this to llvmbugs@cs.uiuc.edu ##
13704## ----------------------------------- ##
13705_ASBOX
13706 ) | sed "s/^/$as_me: WARNING: /" >&2
13707 ;;
13708esac
13709{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13710echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13711if test "${ac_cv_header_opagent_h+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713else
13714 ac_cv_header_opagent_h=$ac_header_preproc
13715fi
13716{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13717echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13718
13719fi
13720if test $ac_cv_header_opagent_h = yes; then
13721 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013722else
13723
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013724 echo "Error! You need to have opagent.h around."
13725 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013726
13727fi
13728
13729
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013730 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013731
13732else
13733
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013734 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013735
13736
13737fi
13738
13739
13740cat >>confdefs.h <<_ACEOF
13741#define USE_OPROFILE $USE_OPROFILE
13742_ACEOF
13743
13744
13745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013746
13747
13748
13749
13750
Reid Spencer59473af2004-12-25 07:31:29 +000013751ac_header_dirent=no
13752for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13754{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13755echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013759 cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013764/* end confdefs.h. */
13765#include <sys/types.h>
13766#include <$ac_hdr>
13767
13768int
13769main ()
13770{
13771if ((DIR *) 0)
13772return 0;
13773 ;
13774 return 0;
13775}
13776_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013777rm -f conftest.$ac_objext
13778if { (ac_try="$ac_compile"
13779case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782esac
13783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_compile") 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13792 { (case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795esac
13796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_try") 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; } &&
13801 { ac_try='test -s conftest.$ac_objext'
13802 { (case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805esac
13806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_try") 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013811 eval "$as_ac_Header=yes"
13812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813 echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013817fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013818
Reid Spencera773bd52006-08-04 18:18:08 +000013819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013820fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013821ac_res=`eval echo '${'$as_ac_Header'}'`
13822 { echo "$as_me:$LINENO: result: $ac_res" >&5
13823echo "${ECHO_T}$ac_res" >&6; }
13824if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013825 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013826#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013827_ACEOF
13828
13829ac_header_dirent=$ac_hdr; break
13830fi
13831
13832done
13833# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13834if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013835 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13836echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13837if test "${ac_cv_search_opendir+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013839else
13840 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013841cat >conftest.$ac_ext <<_ACEOF
13842/* confdefs.h. */
13843_ACEOF
13844cat confdefs.h >>conftest.$ac_ext
13845cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013846/* end confdefs.h. */
13847
Reid Spencera773bd52006-08-04 18:18:08 +000013848/* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013851#ifdef __cplusplus
13852extern "C"
13853#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013854char opendir ();
13855int
13856main ()
13857{
Reid Spencera773bd52006-08-04 18:18:08 +000013858return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013859 ;
13860 return 0;
13861}
13862_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013863for ac_lib in '' dir; do
13864 if test -z "$ac_lib"; then
13865 ac_res="none required"
13866 else
13867 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013869 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013870 rm -f conftest.$ac_objext conftest$ac_exeext
13871if { (ac_try="$ac_link"
13872case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13875esac
13876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_link") 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13885 { (case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13888esac
13889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_try") 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest$ac_exeext'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898esac
13899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013904 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013905else
13906 echo "$as_me: failed program was:" >&5
13907sed 's/^/| /' conftest.$ac_ext >&5
13908
13909
Reid Spencer59473af2004-12-25 07:31:29 +000013910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013911
Bill Wendlingebcceee2009-04-18 11:20:33 +000013912rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013913 conftest$ac_exeext
13914 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013915 break
Reid Spencer59473af2004-12-25 07:31:29 +000013916fi
Reid Spencera773bd52006-08-04 18:18:08 +000013917done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013918if test "${ac_cv_search_opendir+set}" = set; then
13919 :
Reid Spencera773bd52006-08-04 18:18:08 +000013920else
13921 ac_cv_search_opendir=no
13922fi
13923rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013924LIBS=$ac_func_search_save_LIBS
13925fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013926{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13927echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013928ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013929if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013931
13932fi
13933
13934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013935 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13936echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13937if test "${ac_cv_search_opendir+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013939else
13940 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013941cat >conftest.$ac_ext <<_ACEOF
13942/* confdefs.h. */
13943_ACEOF
13944cat confdefs.h >>conftest.$ac_ext
13945cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013946/* end confdefs.h. */
13947
Reid Spencera773bd52006-08-04 18:18:08 +000013948/* Override any GCC internal prototype to avoid an error.
13949 Use char because int might match the return type of a GCC
13950 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013951#ifdef __cplusplus
13952extern "C"
13953#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013954char opendir ();
13955int
13956main ()
13957{
Reid Spencera773bd52006-08-04 18:18:08 +000013958return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013959 ;
13960 return 0;
13961}
13962_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013963for ac_lib in '' x; do
13964 if test -z "$ac_lib"; then
13965 ac_res="none required"
13966 else
13967 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013969 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013970 rm -f conftest.$ac_objext conftest$ac_exeext
13971if { (ac_try="$ac_link"
13972case "(($ac_try" in
13973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974 *) ac_try_echo=$ac_try;;
13975esac
13976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13977 (eval "$ac_link") 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
13984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13985 { (case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13988esac
13989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_try") 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; } &&
13994 { ac_try='test -s conftest$ac_exeext'
13995 { (case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998esac
13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_try") 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014004 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014005else
14006 echo "$as_me: failed program was:" >&5
14007sed 's/^/| /' conftest.$ac_ext >&5
14008
14009
Reid Spencer59473af2004-12-25 07:31:29 +000014010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014011
Bill Wendlingebcceee2009-04-18 11:20:33 +000014012rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013 conftest$ac_exeext
14014 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014015 break
Reid Spencer59473af2004-12-25 07:31:29 +000014016fi
Reid Spencera773bd52006-08-04 18:18:08 +000014017done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018if test "${ac_cv_search_opendir+set}" = set; then
14019 :
Reid Spencera773bd52006-08-04 18:18:08 +000014020else
14021 ac_cv_search_opendir=no
14022fi
14023rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014024LIBS=$ac_func_search_save_LIBS
14025fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014026{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14027echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014028ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014029if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014031
14032fi
14033
14034fi
14035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014036{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14037echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14038if test "${ac_cv_header_mmap_anon+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014040else
14041 ac_ext=c
14042ac_cpp='$CPP $CPPFLAGS'
14043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14045ac_compiler_gnu=$ac_cv_c_compiler_gnu
14046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047 cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h. */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014052/* end confdefs.h. */
14053#include <sys/mman.h>
14054#include <unistd.h>
14055#include <fcntl.h>
14056int
14057main ()
14058{
14059mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14060 ;
14061 return 0;
14062}
14063_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014064rm -f conftest.$ac_objext
14065if { (ac_try="$ac_compile"
14066case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069esac
14070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_compile") 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14079 { (case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14082esac
14083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_try") 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest.$ac_objext'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14092esac
14093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_try") 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014098 ac_cv_header_mmap_anon=yes
14099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100 echo "$as_me: failed program was:" >&5
14101sed 's/^/| /' conftest.$ac_ext >&5
14102
14103 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105
Reid Spencera773bd52006-08-04 18:18:08 +000014106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014107 ac_ext=c
14108ac_cpp='$CPP $CPPFLAGS'
14109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14111ac_compiler_gnu=$ac_cv_c_compiler_gnu
14112
14113
14114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014115{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14116echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014117if test "$ac_cv_header_mmap_anon" = yes; then
14118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014119cat >>confdefs.h <<\_ACEOF
14120#define HAVE_MMAP_ANONYMOUS 1
14121_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014122
14123fi
14124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014125{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14126echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14127if test "${ac_cv_header_stat_broken+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130 cat >conftest.$ac_ext <<_ACEOF
14131/* confdefs.h. */
14132_ACEOF
14133cat confdefs.h >>conftest.$ac_ext
14134cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014135/* end confdefs.h. */
14136#include <sys/types.h>
14137#include <sys/stat.h>
14138
Reid Spencera773bd52006-08-04 18:18:08 +000014139#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014140# if S_ISBLK (S_IFDIR)
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_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146# if S_ISBLK (S_IFCHR)
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_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152# if S_ISLNK (S_IFREG)
14153You lose.
14154# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014155#endif
14156
Reid Spencera773bd52006-08-04 18:18:08 +000014157#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158# if S_ISSOCK (S_IFREG)
14159You lose.
14160# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014161#endif
14162
14163_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14165 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014166 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014167else
14168 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014170rm -f conftest*
14171
Reid Spencer59473af2004-12-25 07:31:29 +000014172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014173{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14174echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014175if test $ac_cv_header_stat_broken = yes; then
14176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014177cat >>confdefs.h <<\_ACEOF
14178#define STAT_MACROS_BROKEN 1
14179_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014180
14181fi
14182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014183{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14184echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14185if test "${ac_cv_header_sys_wait_h+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014188 cat >conftest.$ac_ext <<_ACEOF
14189/* confdefs.h. */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014193/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014194#include <sys/types.h>
14195#include <sys/wait.h>
14196#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014197# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014198#endif
14199#ifndef WIFEXITED
14200# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14201#endif
14202
John Criswell7a73b802003-06-30 21:59:07 +000014203int
14204main ()
14205{
14206 int s;
14207 wait (&s);
14208 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14209 ;
14210 return 0;
14211}
14212_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014213rm -f conftest.$ac_objext
14214if { (ac_try="$ac_compile"
14215case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218esac
14219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_compile") 2>conftest.er1
14221 ac_status=$?
14222 grep -v '^ *+' conftest.er1 >conftest.err
14223 rm -f conftest.er1
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231esac
14232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14241esac
14242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_try") 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014247 ac_cv_header_sys_wait_h=yes
14248else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014249 echo "$as_me: failed program was:" >&5
14250sed 's/^/| /' conftest.$ac_ext >&5
14251
14252 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254
Reid Spencera773bd52006-08-04 18:18:08 +000014255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014257{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14258echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014259if test $ac_cv_header_sys_wait_h = yes; then
14260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014261cat >>confdefs.h <<\_ACEOF
14262#define HAVE_SYS_WAIT_H 1
14263_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014264
14265fi
14266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014267{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14268echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14269if test "${ac_cv_header_time+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272 cat >conftest.$ac_ext <<_ACEOF
14273/* confdefs.h. */
14274_ACEOF
14275cat confdefs.h >>conftest.$ac_ext
14276cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014277/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014278#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014279#include <sys/time.h>
14280#include <time.h>
14281
14282int
14283main ()
14284{
14285if ((struct tm *) 0)
14286return 0;
14287 ;
14288 return 0;
14289}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014290_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014291rm -f conftest.$ac_objext
14292if { (ac_try="$ac_compile"
14293case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14296esac
14297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_compile") 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14306 { (case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309esac
14310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_try") 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14319esac
14320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014325 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014327 echo "$as_me: failed program was:" >&5
14328sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014332
Reid Spencera773bd52006-08-04 18:18:08 +000014333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014334fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014335{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14336echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014337if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339cat >>confdefs.h <<\_ACEOF
14340#define TIME_WITH_SYS_TIME 1
14341_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014342
14343fi
14344
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346
14347
14348
14349
14350
14351
Reid Spencer59473af2004-12-25 07:31:29 +000014352for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014353do
14354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360fi
14361ac_res=`eval echo '${'$as_ac_Header'}'`
14362 { echo "$as_me:$LINENO: result: $ac_res" >&5
14363echo "${ECHO_T}$ac_res" >&6; }
14364else
14365 # Is the header compilable?
14366{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14368cat >conftest.$ac_ext <<_ACEOF
14369/* confdefs.h. */
14370_ACEOF
14371cat confdefs.h >>conftest.$ac_ext
14372cat >>conftest.$ac_ext <<_ACEOF
14373/* end confdefs.h. */
14374$ac_includes_default
14375#include <$ac_header>
14376_ACEOF
14377rm -f conftest.$ac_objext
14378if { (ac_try="$ac_compile"
14379case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382esac
14383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_compile") 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392 { (case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14395esac
14396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_try") 2>&5
14398 ac_status=$?
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; } &&
14401 { ac_try='test -s conftest.$ac_objext'
14402 { (case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405esac
14406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_try") 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14411 ac_header_compiler=yes
14412else
14413 echo "$as_me: failed program was:" >&5
14414sed 's/^/| /' conftest.$ac_ext >&5
14415
14416 ac_header_compiler=no
14417fi
14418
14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14421echo "${ECHO_T}$ac_header_compiler" >&6; }
14422
14423# Is the header present?
14424{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14426cat >conftest.$ac_ext <<_ACEOF
14427/* confdefs.h. */
14428_ACEOF
14429cat confdefs.h >>conftest.$ac_ext
14430cat >>conftest.$ac_ext <<_ACEOF
14431/* end confdefs.h. */
14432#include <$ac_header>
14433_ACEOF
14434if { (ac_try="$ac_cpp conftest.$ac_ext"
14435case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438esac
14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } >/dev/null; then
14447 if test -s conftest.err; then
14448 ac_cpp_err=$ac_c_preproc_warn_flag
14449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14450 else
14451 ac_cpp_err=
14452 fi
14453else
14454 ac_cpp_err=yes
14455fi
14456if test -z "$ac_cpp_err"; then
14457 ac_header_preproc=yes
14458else
14459 echo "$as_me: failed program was:" >&5
14460sed 's/^/| /' conftest.$ac_ext >&5
14461
14462 ac_header_preproc=no
14463fi
14464
14465rm -f conftest.err conftest.$ac_ext
14466{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14467echo "${ECHO_T}$ac_header_preproc" >&6; }
14468
14469# So? What about this header?
14470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14471 yes:no: )
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14476 ac_header_preproc=yes
14477 ;;
14478 no:yes:* )
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14482echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14486echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14491 ( cat <<\_ASBOX
14492## ----------------------------------- ##
14493## Report this to llvmbugs@cs.uiuc.edu ##
14494## ----------------------------------- ##
14495_ASBOX
14496 ) | sed "s/^/$as_me: WARNING: /" >&2
14497 ;;
14498esac
14499{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503else
14504 eval "$as_ac_Header=\$ac_header_preproc"
14505fi
14506ac_res=`eval echo '${'$as_ac_Header'}'`
14507 { echo "$as_me:$LINENO: result: $ac_res" >&5
14508echo "${ECHO_T}$ac_res" >&6; }
14509
14510fi
14511if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014512 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014513#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014514_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014515
14516fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014517
Reid Spencer59473af2004-12-25 07:31:29 +000014518done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014520
14521
14522
14523
14524
14525
Douglas Gregor071d73d2009-05-18 17:21:34 +000014526for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014527do
14528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534fi
14535ac_res=`eval echo '${'$as_ac_Header'}'`
14536 { echo "$as_me:$LINENO: result: $ac_res" >&5
14537echo "${ECHO_T}$ac_res" >&6; }
14538else
14539 # Is the header compilable?
14540{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14542cat >conftest.$ac_ext <<_ACEOF
14543/* confdefs.h. */
14544_ACEOF
14545cat confdefs.h >>conftest.$ac_ext
14546cat >>conftest.$ac_ext <<_ACEOF
14547/* end confdefs.h. */
14548$ac_includes_default
14549#include <$ac_header>
14550_ACEOF
14551rm -f conftest.$ac_objext
14552if { (ac_try="$ac_compile"
14553case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556esac
14557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_compile") 2>conftest.er1
14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
14565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14566 { (case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569esac
14570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_try") 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14579esac
14580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_try") 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; }; then
14585 ac_header_compiler=yes
14586else
14587 echo "$as_me: failed program was:" >&5
14588sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 ac_header_compiler=no
14591fi
14592
14593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14595echo "${ECHO_T}$ac_header_compiler" >&6; }
14596
14597# Is the header present?
14598{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14600cat >conftest.$ac_ext <<_ACEOF
14601/* confdefs.h. */
14602_ACEOF
14603cat confdefs.h >>conftest.$ac_ext
14604cat >>conftest.$ac_ext <<_ACEOF
14605/* end confdefs.h. */
14606#include <$ac_header>
14607_ACEOF
14608if { (ac_try="$ac_cpp conftest.$ac_ext"
14609case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612esac
14613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } >/dev/null; then
14621 if test -s conftest.err; then
14622 ac_cpp_err=$ac_c_preproc_warn_flag
14623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14624 else
14625 ac_cpp_err=
14626 fi
14627else
14628 ac_cpp_err=yes
14629fi
14630if test -z "$ac_cpp_err"; then
14631 ac_header_preproc=yes
14632else
14633 echo "$as_me: failed program was:" >&5
14634sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 ac_header_preproc=no
14637fi
14638
14639rm -f conftest.err conftest.$ac_ext
14640{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14641echo "${ECHO_T}$ac_header_preproc" >&6; }
14642
14643# So? What about this header?
14644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14645 yes:no: )
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14650 ac_header_preproc=yes
14651 ;;
14652 no:yes:* )
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14665 ( cat <<\_ASBOX
14666## ----------------------------------- ##
14667## Report this to llvmbugs@cs.uiuc.edu ##
14668## ----------------------------------- ##
14669_ASBOX
14670 ) | sed "s/^/$as_me: WARNING: /" >&2
14671 ;;
14672esac
14673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677else
14678 eval "$as_ac_Header=\$ac_header_preproc"
14679fi
14680ac_res=`eval echo '${'$as_ac_Header'}'`
14681 { echo "$as_me:$LINENO: result: $ac_res" >&5
14682echo "${ECHO_T}$ac_res" >&6; }
14683
14684fi
14685if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014686 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014688_ACEOF
14689
14690fi
14691
14692done
14693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014694
14695
Douglas Gregor071d73d2009-05-18 17:21:34 +000014696for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014697do
14698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704fi
14705ac_res=`eval echo '${'$as_ac_Header'}'`
14706 { echo "$as_me:$LINENO: result: $ac_res" >&5
14707echo "${ECHO_T}$ac_res" >&6; }
14708else
14709 # Is the header compilable?
14710{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14712cat >conftest.$ac_ext <<_ACEOF
14713/* confdefs.h. */
14714_ACEOF
14715cat confdefs.h >>conftest.$ac_ext
14716cat >>conftest.$ac_ext <<_ACEOF
14717/* end confdefs.h. */
14718$ac_includes_default
14719#include <$ac_header>
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (ac_try="$ac_compile"
14723case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14726esac
14727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_compile") 2>conftest.er1
14729 ac_status=$?
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14736 { (case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14739esac
14740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_try") 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14749esac
14750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_try") 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 ac_header_compiler=yes
14756else
14757 echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 ac_header_compiler=no
14761fi
14762
14763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14765echo "${ECHO_T}$ac_header_compiler" >&6; }
14766
14767# Is the header present?
14768{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14770cat >conftest.$ac_ext <<_ACEOF
14771/* confdefs.h. */
14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h. */
14776#include <$ac_header>
14777_ACEOF
14778if { (ac_try="$ac_cpp conftest.$ac_ext"
14779case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } >/dev/null; then
14791 if test -s conftest.err; then
14792 ac_cpp_err=$ac_c_preproc_warn_flag
14793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14794 else
14795 ac_cpp_err=
14796 fi
14797else
14798 ac_cpp_err=yes
14799fi
14800if test -z "$ac_cpp_err"; then
14801 ac_header_preproc=yes
14802else
14803 echo "$as_me: failed program was:" >&5
14804sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 ac_header_preproc=no
14807fi
14808
14809rm -f conftest.err conftest.$ac_ext
14810{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14811echo "${ECHO_T}$ac_header_preproc" >&6; }
14812
14813# So? What about this header?
14814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14815 yes:no: )
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14820 ac_header_preproc=yes
14821 ;;
14822 no:yes:* )
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14826echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14830echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14835 ( cat <<\_ASBOX
14836## ----------------------------------- ##
14837## Report this to llvmbugs@cs.uiuc.edu ##
14838## ----------------------------------- ##
14839_ASBOX
14840 ) | sed "s/^/$as_me: WARNING: /" >&2
14841 ;;
14842esac
14843{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847else
14848 eval "$as_ac_Header=\$ac_header_preproc"
14849fi
14850ac_res=`eval echo '${'$as_ac_Header'}'`
14851 { echo "$as_me:$LINENO: result: $ac_res" >&5
14852echo "${ECHO_T}$ac_res" >&6; }
14853
14854fi
14855if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014856 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014858_ACEOF
14859
14860fi
14861
14862done
Reid Spencer59473af2004-12-25 07:31:29 +000014863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014864
14865
14866
14867
Daniel Dunbar3e462932011-02-03 02:40:02 +000014868
14869for 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 +000014870do
14871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14877fi
14878ac_res=`eval echo '${'$as_ac_Header'}'`
14879 { echo "$as_me:$LINENO: result: $ac_res" >&5
14880echo "${ECHO_T}$ac_res" >&6; }
14881else
14882 # Is the header compilable?
14883{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14885cat >conftest.$ac_ext <<_ACEOF
14886/* confdefs.h. */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h. */
14891$ac_includes_default
14892#include <$ac_header>
14893_ACEOF
14894rm -f conftest.$ac_objext
14895if { (ac_try="$ac_compile"
14896case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14899esac
14900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_compile") 2>conftest.er1
14902 ac_status=$?
14903 grep -v '^ *+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } &&
14908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14909 { (case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14912esac
14913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_try") 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14922esac
14923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_try") 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_header_compiler=yes
14929else
14930 echo "$as_me: failed program was:" >&5
14931sed 's/^/| /' conftest.$ac_ext >&5
14932
14933 ac_header_compiler=no
14934fi
14935
14936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14937{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14938echo "${ECHO_T}$ac_header_compiler" >&6; }
14939
14940# Is the header present?
14941{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14943cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949#include <$ac_header>
14950_ACEOF
14951if { (ac_try="$ac_cpp conftest.$ac_ext"
14952case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14955esac
14956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } >/dev/null; then
14964 if test -s conftest.err; then
14965 ac_cpp_err=$ac_c_preproc_warn_flag
14966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14967 else
14968 ac_cpp_err=
14969 fi
14970else
14971 ac_cpp_err=yes
14972fi
14973if test -z "$ac_cpp_err"; then
14974 ac_header_preproc=yes
14975else
14976 echo "$as_me: failed program was:" >&5
14977sed 's/^/| /' conftest.$ac_ext >&5
14978
14979 ac_header_preproc=no
14980fi
14981
14982rm -f conftest.err conftest.$ac_ext
14983{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14984echo "${ECHO_T}$ac_header_preproc" >&6; }
14985
14986# So? What about this header?
14987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14988 yes:no: )
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14993 ac_header_preproc=yes
14994 ;;
14995 no:yes:* )
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14999echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15003echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15008 ( cat <<\_ASBOX
15009## ----------------------------------- ##
15010## Report this to llvmbugs@cs.uiuc.edu ##
15011## ----------------------------------- ##
15012_ASBOX
15013 ) | sed "s/^/$as_me: WARNING: /" >&2
15014 ;;
15015esac
15016{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15020else
15021 eval "$as_ac_Header=\$ac_header_preproc"
15022fi
15023ac_res=`eval echo '${'$as_ac_Header'}'`
15024 { echo "$as_me:$LINENO: result: $ac_res" >&5
15025echo "${ECHO_T}$ac_res" >&6; }
15026
15027fi
15028if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015029 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015031_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015032
15033fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015034
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015035done
15036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015037
15038
15039
15040
Douglas Gregor01746742009-05-11 18:05:52 +000015041for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015042do
15043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15049fi
15050ac_res=`eval echo '${'$as_ac_Header'}'`
15051 { echo "$as_me:$LINENO: result: $ac_res" >&5
15052echo "${ECHO_T}$ac_res" >&6; }
15053else
15054 # Is the header compilable?
15055{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15057cat >conftest.$ac_ext <<_ACEOF
15058/* confdefs.h. */
15059_ACEOF
15060cat confdefs.h >>conftest.$ac_ext
15061cat >>conftest.$ac_ext <<_ACEOF
15062/* end confdefs.h. */
15063$ac_includes_default
15064#include <$ac_header>
15065_ACEOF
15066rm -f conftest.$ac_objext
15067if { (ac_try="$ac_compile"
15068case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071esac
15072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_compile") 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084esac
15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest.$ac_objext'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_header_compiler=yes
15101else
15102 echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105 ac_header_compiler=no
15106fi
15107
15108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15110echo "${ECHO_T}$ac_header_compiler" >&6; }
15111
15112# Is the header present?
15113{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15115cat >conftest.$ac_ext <<_ACEOF
15116/* confdefs.h. */
15117_ACEOF
15118cat confdefs.h >>conftest.$ac_ext
15119cat >>conftest.$ac_ext <<_ACEOF
15120/* end confdefs.h. */
15121#include <$ac_header>
15122_ACEOF
15123if { (ac_try="$ac_cpp conftest.$ac_ext"
15124case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127esac
15128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } >/dev/null; then
15136 if test -s conftest.err; then
15137 ac_cpp_err=$ac_c_preproc_warn_flag
15138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15139 else
15140 ac_cpp_err=
15141 fi
15142else
15143 ac_cpp_err=yes
15144fi
15145if test -z "$ac_cpp_err"; then
15146 ac_header_preproc=yes
15147else
15148 echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
15151 ac_header_preproc=no
15152fi
15153
15154rm -f conftest.err conftest.$ac_ext
15155{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15156echo "${ECHO_T}$ac_header_preproc" >&6; }
15157
15158# So? What about this header?
15159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15160 yes:no: )
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15165 ac_header_preproc=yes
15166 ;;
15167 no:yes:* )
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15180 ( cat <<\_ASBOX
15181## ----------------------------------- ##
15182## Report this to llvmbugs@cs.uiuc.edu ##
15183## ----------------------------------- ##
15184_ASBOX
15185 ) | sed "s/^/$as_me: WARNING: /" >&2
15186 ;;
15187esac
15188{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192else
15193 eval "$as_ac_Header=\$ac_header_preproc"
15194fi
15195ac_res=`eval echo '${'$as_ac_Header'}'`
15196 { echo "$as_me:$LINENO: result: $ac_res" >&5
15197echo "${ECHO_T}$ac_res" >&6; }
15198
15199fi
15200if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015201 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015203_ACEOF
15204
15205fi
15206
15207done
15208
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015209
15210for ac_header in valgrind/valgrind.h
15211do
15212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218fi
15219ac_res=`eval echo '${'$as_ac_Header'}'`
15220 { echo "$as_me:$LINENO: result: $ac_res" >&5
15221echo "${ECHO_T}$ac_res" >&6; }
15222else
15223 # Is the header compilable?
15224{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15225echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15226cat >conftest.$ac_ext <<_ACEOF
15227/* confdefs.h. */
15228_ACEOF
15229cat confdefs.h >>conftest.$ac_ext
15230cat >>conftest.$ac_ext <<_ACEOF
15231/* end confdefs.h. */
15232$ac_includes_default
15233#include <$ac_header>
15234_ACEOF
15235rm -f conftest.$ac_objext
15236if { (ac_try="$ac_compile"
15237case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240esac
15241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_compile") 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253esac
15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15263esac
15264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_header_compiler=yes
15270else
15271 echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 ac_header_compiler=no
15275fi
15276
15277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279echo "${ECHO_T}$ac_header_compiler" >&6; }
15280
15281# Is the header present?
15282{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15283echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15284cat >conftest.$ac_ext <<_ACEOF
15285/* confdefs.h. */
15286_ACEOF
15287cat confdefs.h >>conftest.$ac_ext
15288cat >>conftest.$ac_ext <<_ACEOF
15289/* end confdefs.h. */
15290#include <$ac_header>
15291_ACEOF
15292if { (ac_try="$ac_cpp conftest.$ac_ext"
15293case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296esac
15297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15299 ac_status=$?
15300 grep -v '^ *+' conftest.er1 >conftest.err
15301 rm -f conftest.er1
15302 cat conftest.err >&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } >/dev/null; then
15305 if test -s conftest.err; then
15306 ac_cpp_err=$ac_c_preproc_warn_flag
15307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15308 else
15309 ac_cpp_err=
15310 fi
15311else
15312 ac_cpp_err=yes
15313fi
15314if test -z "$ac_cpp_err"; then
15315 ac_header_preproc=yes
15316else
15317 echo "$as_me: failed program was:" >&5
15318sed 's/^/| /' conftest.$ac_ext >&5
15319
15320 ac_header_preproc=no
15321fi
15322
15323rm -f conftest.err conftest.$ac_ext
15324{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15325echo "${ECHO_T}$ac_header_preproc" >&6; }
15326
15327# So? What about this header?
15328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15329 yes:no: )
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15334 ac_header_preproc=yes
15335 ;;
15336 no:yes:* )
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15340echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15344echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15349 ( cat <<\_ASBOX
15350## ----------------------------------- ##
15351## Report this to llvmbugs@cs.uiuc.edu ##
15352## ----------------------------------- ##
15353_ASBOX
15354 ) | sed "s/^/$as_me: WARNING: /" >&2
15355 ;;
15356esac
15357{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15361else
15362 eval "$as_ac_Header=\$ac_header_preproc"
15363fi
15364ac_res=`eval echo '${'$as_ac_Header'}'`
15365 { echo "$as_me:$LINENO: result: $ac_res" >&5
15366echo "${ECHO_T}$ac_res" >&6; }
15367
15368fi
15369if test `eval echo '${'$as_ac_Header'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15372_ACEOF
15373
15374fi
15375
15376done
15377
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015378
15379for ac_header in fenv.h
15380do
15381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387fi
15388ac_res=`eval echo '${'$as_ac_Header'}'`
15389 { echo "$as_me:$LINENO: result: $ac_res" >&5
15390echo "${ECHO_T}$ac_res" >&6; }
15391else
15392 # Is the header compilable?
15393{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15394echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15395cat >conftest.$ac_ext <<_ACEOF
15396/* confdefs.h. */
15397_ACEOF
15398cat confdefs.h >>conftest.$ac_ext
15399cat >>conftest.$ac_ext <<_ACEOF
15400/* end confdefs.h. */
15401$ac_includes_default
15402#include <$ac_header>
15403_ACEOF
15404rm -f conftest.$ac_objext
15405if { (ac_try="$ac_compile"
15406case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409esac
15410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_compile") 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15419 { (case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15422esac
15423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_try") 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; } &&
15428 { ac_try='test -s conftest.$ac_objext'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15432esac
15433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 ac_header_compiler=yes
15439else
15440 echo "$as_me: failed program was:" >&5
15441sed 's/^/| /' conftest.$ac_ext >&5
15442
15443 ac_header_compiler=no
15444fi
15445
15446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15448echo "${ECHO_T}$ac_header_compiler" >&6; }
15449
15450# Is the header present?
15451{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15452echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15453cat >conftest.$ac_ext <<_ACEOF
15454/* confdefs.h. */
15455_ACEOF
15456cat confdefs.h >>conftest.$ac_ext
15457cat >>conftest.$ac_ext <<_ACEOF
15458/* end confdefs.h. */
15459#include <$ac_header>
15460_ACEOF
15461if { (ac_try="$ac_cpp conftest.$ac_ext"
15462case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15465esac
15466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } >/dev/null; then
15474 if test -s conftest.err; then
15475 ac_cpp_err=$ac_c_preproc_warn_flag
15476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15477 else
15478 ac_cpp_err=
15479 fi
15480else
15481 ac_cpp_err=yes
15482fi
15483if test -z "$ac_cpp_err"; then
15484 ac_header_preproc=yes
15485else
15486 echo "$as_me: failed program was:" >&5
15487sed 's/^/| /' conftest.$ac_ext >&5
15488
15489 ac_header_preproc=no
15490fi
15491
15492rm -f conftest.err conftest.$ac_ext
15493{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15494echo "${ECHO_T}$ac_header_preproc" >&6; }
15495
15496# So? What about this header?
15497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15498 yes:no: )
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15500echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15502echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15503 ac_header_preproc=yes
15504 ;;
15505 no:yes:* )
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15507echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15509echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15511echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15513echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15515echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15517echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15518 ( cat <<\_ASBOX
15519## ----------------------------------- ##
15520## Report this to llvmbugs@cs.uiuc.edu ##
15521## ----------------------------------- ##
15522_ASBOX
15523 ) | sed "s/^/$as_me: WARNING: /" >&2
15524 ;;
15525esac
15526{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15530else
15531 eval "$as_ac_Header=\$ac_header_preproc"
15532fi
15533ac_res=`eval echo '${'$as_ac_Header'}'`
15534 { echo "$as_me:$LINENO: result: $ac_res" >&5
15535echo "${ECHO_T}$ac_res" >&6; }
15536
15537fi
15538if test `eval echo '${'$as_ac_Header'}'` = yes; then
15539 cat >>confdefs.h <<_ACEOF
15540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15541_ACEOF
15542
15543fi
15544
15545done
15546
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015547if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015548
15549for ac_header in pthread.h
15550do
15551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557fi
15558ac_res=`eval echo '${'$as_ac_Header'}'`
15559 { echo "$as_me:$LINENO: result: $ac_res" >&5
15560echo "${ECHO_T}$ac_res" >&6; }
15561else
15562 # Is the header compilable?
15563{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15564echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15565cat >conftest.$ac_ext <<_ACEOF
15566/* confdefs.h. */
15567_ACEOF
15568cat confdefs.h >>conftest.$ac_ext
15569cat >>conftest.$ac_ext <<_ACEOF
15570/* end confdefs.h. */
15571$ac_includes_default
15572#include <$ac_header>
15573_ACEOF
15574rm -f conftest.$ac_objext
15575if { (ac_try="$ac_compile"
15576case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579esac
15580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_compile") 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15592esac
15593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15602esac
15603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_header_compiler=yes
15609else
15610 echo "$as_me: failed program was:" >&5
15611sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_header_compiler=no
15614fi
15615
15616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15618echo "${ECHO_T}$ac_header_compiler" >&6; }
15619
15620# Is the header present?
15621{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15623cat >conftest.$ac_ext <<_ACEOF
15624/* confdefs.h. */
15625_ACEOF
15626cat confdefs.h >>conftest.$ac_ext
15627cat >>conftest.$ac_ext <<_ACEOF
15628/* end confdefs.h. */
15629#include <$ac_header>
15630_ACEOF
15631if { (ac_try="$ac_cpp conftest.$ac_ext"
15632case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635esac
15636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15638 ac_status=$?
15639 grep -v '^ *+' conftest.er1 >conftest.err
15640 rm -f conftest.er1
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } >/dev/null; then
15644 if test -s conftest.err; then
15645 ac_cpp_err=$ac_c_preproc_warn_flag
15646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15647 else
15648 ac_cpp_err=
15649 fi
15650else
15651 ac_cpp_err=yes
15652fi
15653if test -z "$ac_cpp_err"; then
15654 ac_header_preproc=yes
15655else
15656 echo "$as_me: failed program was:" >&5
15657sed 's/^/| /' conftest.$ac_ext >&5
15658
15659 ac_header_preproc=no
15660fi
15661
15662rm -f conftest.err conftest.$ac_ext
15663{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664echo "${ECHO_T}$ac_header_preproc" >&6; }
15665
15666# So? What about this header?
15667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15668 yes:no: )
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673 ac_header_preproc=yes
15674 ;;
15675 no:yes:* )
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15688 ( cat <<\_ASBOX
15689## ----------------------------------- ##
15690## Report this to llvmbugs@cs.uiuc.edu ##
15691## ----------------------------------- ##
15692_ASBOX
15693 ) | sed "s/^/$as_me: WARNING: /" >&2
15694 ;;
15695esac
15696{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700else
15701 eval "$as_ac_Header=\$ac_header_preproc"
15702fi
15703ac_res=`eval echo '${'$as_ac_Header'}'`
15704 { echo "$as_me:$LINENO: result: $ac_res" >&5
15705echo "${ECHO_T}$ac_res" >&6; }
15706
15707fi
15708if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015709 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015711_ACEOF
15712 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015713
15714else
15715 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015716
15717fi
15718
Reid Spencerbe3e4192007-08-17 05:45:26 +000015719done
Reid Spencer1000b732006-12-01 00:37:14 +000015720
15721else
15722 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015723
15724fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015725
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015726if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015727
15728
15729for ac_header in ffi.h ffi/ffi.h
15730do
15731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15737fi
15738ac_res=`eval echo '${'$as_ac_Header'}'`
15739 { echo "$as_me:$LINENO: result: $ac_res" >&5
15740echo "${ECHO_T}$ac_res" >&6; }
15741else
15742 # Is the header compilable?
15743{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15745cat >conftest.$ac_ext <<_ACEOF
15746/* confdefs.h. */
15747_ACEOF
15748cat confdefs.h >>conftest.$ac_ext
15749cat >>conftest.$ac_ext <<_ACEOF
15750/* end confdefs.h. */
15751$ac_includes_default
15752#include <$ac_header>
15753_ACEOF
15754rm -f conftest.$ac_objext
15755if { (ac_try="$ac_compile"
15756case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759esac
15760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_compile") 2>conftest.er1
15762 ac_status=$?
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772esac
15773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest.$ac_objext'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782esac
15783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_header_compiler=yes
15789else
15790 echo "$as_me: failed program was:" >&5
15791sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 ac_header_compiler=no
15794fi
15795
15796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15797{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15798echo "${ECHO_T}$ac_header_compiler" >&6; }
15799
15800# Is the header present?
15801{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15803cat >conftest.$ac_ext <<_ACEOF
15804/* confdefs.h. */
15805_ACEOF
15806cat confdefs.h >>conftest.$ac_ext
15807cat >>conftest.$ac_ext <<_ACEOF
15808/* end confdefs.h. */
15809#include <$ac_header>
15810_ACEOF
15811if { (ac_try="$ac_cpp conftest.$ac_ext"
15812case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15815esac
15816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15818 ac_status=$?
15819 grep -v '^ *+' conftest.er1 >conftest.err
15820 rm -f conftest.er1
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } >/dev/null; then
15824 if test -s conftest.err; then
15825 ac_cpp_err=$ac_c_preproc_warn_flag
15826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15827 else
15828 ac_cpp_err=
15829 fi
15830else
15831 ac_cpp_err=yes
15832fi
15833if test -z "$ac_cpp_err"; then
15834 ac_header_preproc=yes
15835else
15836 echo "$as_me: failed program was:" >&5
15837sed 's/^/| /' conftest.$ac_ext >&5
15838
15839 ac_header_preproc=no
15840fi
15841
15842rm -f conftest.err conftest.$ac_ext
15843{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15844echo "${ECHO_T}$ac_header_preproc" >&6; }
15845
15846# So? What about this header?
15847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15848 yes:no: )
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15850echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15852echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15853 ac_header_preproc=yes
15854 ;;
15855 no:yes:* )
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15857echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15859echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15861echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15863echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15867echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15868 ( cat <<\_ASBOX
15869## ----------------------------------- ##
15870## Report this to llvmbugs@cs.uiuc.edu ##
15871## ----------------------------------- ##
15872_ASBOX
15873 ) | sed "s/^/$as_me: WARNING: /" >&2
15874 ;;
15875esac
15876{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880else
15881 eval "$as_ac_Header=\$ac_header_preproc"
15882fi
15883ac_res=`eval echo '${'$as_ac_Header'}'`
15884 { echo "$as_me:$LINENO: result: $ac_res" >&5
15885echo "${ECHO_T}$ac_res" >&6; }
15886
15887fi
15888if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015889 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015891_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015892
15893fi
15894
15895done
15896
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015897fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015898
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015899
Eric Christopher654dee42010-06-22 21:01:04 +000015900for ac_header in CrashReporterClient.h
15901do
15902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908fi
15909ac_res=`eval echo '${'$as_ac_Header'}'`
15910 { echo "$as_me:$LINENO: result: $ac_res" >&5
15911echo "${ECHO_T}$ac_res" >&6; }
15912else
15913 # Is the header compilable?
15914{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15916cat >conftest.$ac_ext <<_ACEOF
15917/* confdefs.h. */
15918_ACEOF
15919cat confdefs.h >>conftest.$ac_ext
15920cat >>conftest.$ac_ext <<_ACEOF
15921/* end confdefs.h. */
15922$ac_includes_default
15923#include <$ac_header>
15924_ACEOF
15925rm -f conftest.$ac_objext
15926if { (ac_try="$ac_compile"
15927case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15930esac
15931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_compile") 2>conftest.er1
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15940 { (case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15943esac
15944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945 (eval "$ac_try") 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest.$ac_objext'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_try") 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 ac_header_compiler=yes
15960else
15961 echo "$as_me: failed program was:" >&5
15962sed 's/^/| /' conftest.$ac_ext >&5
15963
15964 ac_header_compiler=no
15965fi
15966
15967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15969echo "${ECHO_T}$ac_header_compiler" >&6; }
15970
15971# Is the header present?
15972{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15974cat >conftest.$ac_ext <<_ACEOF
15975/* confdefs.h. */
15976_ACEOF
15977cat confdefs.h >>conftest.$ac_ext
15978cat >>conftest.$ac_ext <<_ACEOF
15979/* end confdefs.h. */
15980#include <$ac_header>
15981_ACEOF
15982if { (ac_try="$ac_cpp conftest.$ac_ext"
15983case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15986esac
15987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15989 ac_status=$?
15990 grep -v '^ *+' conftest.er1 >conftest.err
15991 rm -f conftest.er1
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } >/dev/null; then
15995 if test -s conftest.err; then
15996 ac_cpp_err=$ac_c_preproc_warn_flag
15997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15998 else
15999 ac_cpp_err=
16000 fi
16001else
16002 ac_cpp_err=yes
16003fi
16004if test -z "$ac_cpp_err"; then
16005 ac_header_preproc=yes
16006else
16007 echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010 ac_header_preproc=no
16011fi
16012
16013rm -f conftest.err conftest.$ac_ext
16014{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16015echo "${ECHO_T}$ac_header_preproc" >&6; }
16016
16017# So? What about this header?
16018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16019 yes:no: )
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16024 ac_header_preproc=yes
16025 ;;
16026 no:yes:* )
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16039 ( cat <<\_ASBOX
16040## ----------------------------------- ##
16041## Report this to llvmbugs@cs.uiuc.edu ##
16042## ----------------------------------- ##
16043_ASBOX
16044 ) | sed "s/^/$as_me: WARNING: /" >&2
16045 ;;
16046esac
16047{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051else
16052 eval "$as_ac_Header=\$ac_header_preproc"
16053fi
16054ac_res=`eval echo '${'$as_ac_Header'}'`
16055 { echo "$as_me:$LINENO: result: $ac_res" >&5
16056echo "${ECHO_T}$ac_res" >&6; }
16057
16058fi
16059if test `eval echo '${'$as_ac_Header'}'` = yes; then
16060 cat >>confdefs.h <<_ACEOF
16061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16062_ACEOF
16063
16064fi
16065
16066done
16067
16068
Eric Christopher51e57132010-12-07 02:05:42 +000016069{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16070echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016071cat >conftest.$ac_ext <<_ACEOF
16072/* confdefs.h. */
16073_ACEOF
16074cat confdefs.h >>conftest.$ac_ext
16075cat >>conftest.$ac_ext <<_ACEOF
16076/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016077extern const char *__crashreporter_info__;
16078 int main() {
16079 __crashreporter_info__ = "test";
16080 return 0;
16081 }
Eric Christopher481d4022010-12-03 07:45:22 +000016082
Eric Christopher481d4022010-12-03 07:45:22 +000016083_ACEOF
16084rm -f conftest.$ac_objext conftest$ac_exeext
16085if { (ac_try="$ac_link"
16086case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16089esac
16090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_link") 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16099 { (case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16102esac
16103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_try") 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest$ac_exeext'
16109 { (case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16112esac
16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_try") 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016118 { echo "$as_me:$LINENO: result: yes" >&5
16119echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016120
16121cat >>confdefs.h <<\_ACEOF
16122#define HAVE_CRASHREPORTER_INFO 1
16123_ACEOF
16124
Eric Christopher51e57132010-12-07 02:05:42 +000016125else
16126 echo "$as_me: failed program was:" >&5
16127sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 { echo "$as_me:$LINENO: result: no" >&5
16130echo "${ECHO_T}no" >&6; }
16131
16132cat >>confdefs.h <<\_ACEOF
16133#define HAVE_CRASHREPORTER_INFO 0
16134_ACEOF
16135
Eric Christopher481d4022010-12-03 07:45:22 +000016136fi
Eric Christopher654dee42010-06-22 21:01:04 +000016137
Eric Christopher51e57132010-12-07 02:05:42 +000016138rm -f core conftest.err conftest.$ac_objext \
16139 conftest$ac_exeext conftest.$ac_ext
16140
16141
Reid Spencer8085cff2005-01-16 02:58:39 +000016142
Torok Edwin871384f2010-01-26 08:50:50 +000016143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016144 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16145echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16146if test "${ac_cv_huge_val_sanity+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016148else
16149
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016150 ac_ext=cpp
16151ac_cpp='$CXXCPP $CPPFLAGS'
16152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016155
Eric Christopherc7718502010-03-02 05:06:54 +000016156 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016157 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016158 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016159 ac_cv_huge_val_sanity=yes
16160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016161 cat >conftest.$ac_ext <<_ACEOF
16162/* confdefs.h. */
16163_ACEOF
16164cat confdefs.h >>conftest.$ac_ext
16165cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016166/* end confdefs.h. */
16167#include <math.h>
16168int
16169main ()
16170{
16171double x = HUGE_VAL; return x != x;
16172 ;
16173 return 0;
16174}
16175_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016176rm -f conftest$ac_exeext
16177if { (ac_try="$ac_link"
16178case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181esac
16182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_link") 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016196 ac_cv_huge_val_sanity=yes
16197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016198 echo "$as_me: program exited with status $ac_status" >&5
16199echo "$as_me: failed program was:" >&5
16200sed 's/^/| /' conftest.$ac_ext >&5
16201
16202( exit $ac_status )
16203ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016204fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016205rm -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 +000016206fi
16207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016208
Eric Christopherc7718502010-03-02 05:06:54 +000016209 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016210 ac_ext=c
16211ac_cpp='$CPP $CPPFLAGS'
16212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16214ac_compiler_gnu=$ac_cv_c_compiler_gnu
16215
16216
16217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016218{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16219echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016220 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16221
16222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016223{ echo "$as_me:$LINENO: checking for pid_t" >&5
16224echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16225if test "${ac_cv_type_pid_t+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16227else
16228 cat >conftest.$ac_ext <<_ACEOF
16229/* confdefs.h. */
16230_ACEOF
16231cat confdefs.h >>conftest.$ac_ext
16232cat >>conftest.$ac_ext <<_ACEOF
16233/* end confdefs.h. */
16234$ac_includes_default
16235typedef pid_t ac__type_new_;
16236int
16237main ()
16238{
16239if ((ac__type_new_ *) 0)
16240 return 0;
16241if (sizeof (ac__type_new_))
16242 return 0;
16243 ;
16244 return 0;
16245}
16246_ACEOF
16247rm -f conftest.$ac_objext
16248if { (ac_try="$ac_compile"
16249case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16252esac
16253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_compile") 2>conftest.er1
16255 ac_status=$?
16256 grep -v '^ *+' conftest.er1 >conftest.err
16257 rm -f conftest.er1
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
16266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16275esac
16276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_try") 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_type_pid_t=yes
16282else
16283 echo "$as_me: failed program was:" >&5
16284sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016286 ac_cv_type_pid_t=no
16287fi
16288
16289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290fi
16291{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16292echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16293if test $ac_cv_type_pid_t = yes; then
16294 :
John Criswell7a73b802003-06-30 21:59:07 +000016295else
16296
16297cat >>confdefs.h <<_ACEOF
16298#define pid_t int
16299_ACEOF
16300
16301fi
16302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016303{ echo "$as_me:$LINENO: checking for size_t" >&5
16304echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16305if test "${ac_cv_type_size_t+set}" = set; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16307else
16308 cat >conftest.$ac_ext <<_ACEOF
16309/* confdefs.h. */
16310_ACEOF
16311cat confdefs.h >>conftest.$ac_ext
16312cat >>conftest.$ac_ext <<_ACEOF
16313/* end confdefs.h. */
16314$ac_includes_default
16315typedef size_t ac__type_new_;
16316int
16317main ()
16318{
16319if ((ac__type_new_ *) 0)
16320 return 0;
16321if (sizeof (ac__type_new_))
16322 return 0;
16323 ;
16324 return 0;
16325}
16326_ACEOF
16327rm -f conftest.$ac_objext
16328if { (ac_try="$ac_compile"
16329case "(($ac_try" in
16330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331 *) ac_try_echo=$ac_try;;
16332esac
16333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334 (eval "$ac_compile") 2>conftest.er1
16335 ac_status=$?
16336 grep -v '^ *+' conftest.er1 >conftest.err
16337 rm -f conftest.er1
16338 cat conftest.err >&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16342 { (case "(($ac_try" in
16343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344 *) ac_try_echo=$ac_try;;
16345esac
16346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16347 (eval "$ac_try") 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest.$ac_objext'
16352 { (case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16355esac
16356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_try") 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16361 ac_cv_type_size_t=yes
16362else
16363 echo "$as_me: failed program was:" >&5
16364sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016366 ac_cv_type_size_t=no
16367fi
16368
16369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370fi
16371{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16372echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16373if test $ac_cv_type_size_t = yes; then
16374 :
John Criswell7a73b802003-06-30 21:59:07 +000016375else
16376
16377cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016378#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016379_ACEOF
16380
16381fi
16382
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016383
16384cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016385#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016386_ACEOF
16387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016388{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16389echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16390if test "${ac_cv_struct_tm+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016393 cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016398/* end confdefs.h. */
16399#include <sys/types.h>
16400#include <time.h>
16401
16402int
16403main ()
16404{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016405struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016406 ;
16407 return 0;
16408}
16409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016410rm -f conftest.$ac_objext
16411if { (ac_try="$ac_compile"
16412case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415esac
16416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_compile") 2>conftest.er1
16418 ac_status=$?
16419 grep -v '^ *+' conftest.er1 >conftest.err
16420 rm -f conftest.er1
16421 cat conftest.err >&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
16424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16425 { (case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428esac
16429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_try") 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; } &&
16434 { ac_try='test -s conftest.$ac_objext'
16435 { (case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16438esac
16439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_try") 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016444 ac_cv_struct_tm=time.h
16445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016446 echo "$as_me: failed program was:" >&5
16447sed 's/^/| /' conftest.$ac_ext >&5
16448
16449 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016451
Reid Spencera773bd52006-08-04 18:18:08 +000016452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016454{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16455echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016456if test $ac_cv_struct_tm = sys/time.h; then
16457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016458cat >>confdefs.h <<\_ACEOF
16459#define TM_IN_SYS_TIME 1
16460_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016461
16462fi
16463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016464{ echo "$as_me:$LINENO: checking for int64_t" >&5
16465echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16466if test "${ac_cv_type_int64_t+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16468else
16469 cat >conftest.$ac_ext <<_ACEOF
16470/* confdefs.h. */
16471_ACEOF
16472cat confdefs.h >>conftest.$ac_ext
16473cat >>conftest.$ac_ext <<_ACEOF
16474/* end confdefs.h. */
16475$ac_includes_default
16476typedef int64_t ac__type_new_;
16477int
16478main ()
16479{
16480if ((ac__type_new_ *) 0)
16481 return 0;
16482if (sizeof (ac__type_new_))
16483 return 0;
16484 ;
16485 return 0;
16486}
16487_ACEOF
16488rm -f conftest.$ac_objext
16489if { (ac_try="$ac_compile"
16490case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16493esac
16494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_compile") 2>conftest.er1
16496 ac_status=$?
16497 grep -v '^ *+' conftest.er1 >conftest.err
16498 rm -f conftest.er1
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } &&
16502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16503 { (case "(($ac_try" in
16504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16506esac
16507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508 (eval "$ac_try") 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try='test -s conftest.$ac_objext'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16522 ac_cv_type_int64_t=yes
16523else
16524 echo "$as_me: failed program was:" >&5
16525sed 's/^/| /' conftest.$ac_ext >&5
16526
16527 ac_cv_type_int64_t=no
16528fi
16529
16530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531fi
16532{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16533echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16534if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016535
16536cat >>confdefs.h <<_ACEOF
16537#define HAVE_INT64_T 1
16538_ACEOF
16539
16540
16541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016542 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16543echo "$as_me: error: Type int64_t required but not found" >&2;}
16544 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016545fi
16546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016547{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16548echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16549if test "${ac_cv_type_uint64_t+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16551else
16552 cat >conftest.$ac_ext <<_ACEOF
16553/* confdefs.h. */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h. */
16558$ac_includes_default
16559typedef uint64_t ac__type_new_;
16560int
16561main ()
16562{
16563if ((ac__type_new_ *) 0)
16564 return 0;
16565if (sizeof (ac__type_new_))
16566 return 0;
16567 ;
16568 return 0;
16569}
16570_ACEOF
16571rm -f conftest.$ac_objext
16572if { (ac_try="$ac_compile"
16573case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589esac
16590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599esac
16600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_type_uint64_t=yes
16606else
16607 echo "$as_me: failed program was:" >&5
16608sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 ac_cv_type_uint64_t=no
16611fi
16612
16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614fi
16615{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16616echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16617if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016618
16619cat >>confdefs.h <<_ACEOF
16620#define HAVE_UINT64_T 1
16621_ACEOF
16622
16623
16624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016625 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16626echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16627if test "${ac_cv_type_u_int64_t+set}" = set; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16629else
16630 cat >conftest.$ac_ext <<_ACEOF
16631/* confdefs.h. */
16632_ACEOF
16633cat confdefs.h >>conftest.$ac_ext
16634cat >>conftest.$ac_ext <<_ACEOF
16635/* end confdefs.h. */
16636$ac_includes_default
16637typedef u_int64_t ac__type_new_;
16638int
16639main ()
16640{
16641if ((ac__type_new_ *) 0)
16642 return 0;
16643if (sizeof (ac__type_new_))
16644 return 0;
16645 ;
16646 return 0;
16647}
16648_ACEOF
16649rm -f conftest.$ac_objext
16650if { (ac_try="$ac_compile"
16651case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16654esac
16655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_compile") 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664 { (case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16667esac
16668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_try") 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677esac
16678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_type_u_int64_t=yes
16684else
16685 echo "$as_me: failed program was:" >&5
16686sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 ac_cv_type_u_int64_t=no
16689fi
16690
16691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692fi
16693{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16694echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16695if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016696
16697cat >>confdefs.h <<_ACEOF
16698#define HAVE_U_INT64_T 1
16699_ACEOF
16700
16701
Misha Brukmanceca9042004-09-02 23:02:30 +000016702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016703 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16704echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16705 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016706fi
16707
John Criswell679ff312004-09-02 18:44:44 +000016708fi
16709
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016710
16711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016712
16713
16714
16715
16716
16717
16718
Reid Spencerdf3be822006-01-23 08:15:53 +000016719for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016720do
16721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16722{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16726else
16727 cat >conftest.$ac_ext <<_ACEOF
16728/* confdefs.h. */
16729_ACEOF
16730cat confdefs.h >>conftest.$ac_ext
16731cat >>conftest.$ac_ext <<_ACEOF
16732/* end confdefs.h. */
16733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16735#define $ac_func innocuous_$ac_func
16736
16737/* System header to define __stub macros and hopefully few prototypes,
16738 which can conflict with char $ac_func (); below.
16739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16740 <limits.h> exists even on freestanding compilers. */
16741
16742#ifdef __STDC__
16743# include <limits.h>
16744#else
16745# include <assert.h>
16746#endif
16747
16748#undef $ac_func
16749
16750/* Override any GCC internal prototype to avoid an error.
16751 Use char because int might match the return type of a GCC
16752 builtin and then its argument prototype would still apply. */
16753#ifdef __cplusplus
16754extern "C"
16755#endif
16756char $ac_func ();
16757/* The GNU C library defines this for functions which it implements
16758 to always fail with ENOSYS. Some functions are actually named
16759 something starting with __ and the normal name is an alias. */
16760#if defined __stub_$ac_func || defined __stub___$ac_func
16761choke me
16762#endif
16763
16764int
16765main ()
16766{
16767return $ac_func ();
16768 ;
16769 return 0;
16770}
16771_ACEOF
16772rm -f conftest.$ac_objext conftest$ac_exeext
16773if { (ac_try="$ac_link"
16774case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777esac
16778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_link") 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16787 { (case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16790esac
16791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792 (eval "$ac_try") 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; } &&
16796 { ac_try='test -s conftest$ac_exeext'
16797 { (case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800esac
16801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_try") 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16806 eval "$as_ac_var=yes"
16807else
16808 echo "$as_me: failed program was:" >&5
16809sed 's/^/| /' conftest.$ac_ext >&5
16810
16811 eval "$as_ac_var=no"
16812fi
16813
16814rm -f core conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16816fi
16817ac_res=`eval echo '${'$as_ac_var'}'`
16818 { echo "$as_me:$LINENO: result: $ac_res" >&5
16819echo "${ECHO_T}$ac_res" >&6; }
16820if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016821 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016823_ACEOF
16824
16825fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016826done
John Criswell7a73b802003-06-30 21:59:07 +000016827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016828
16829
16830
16831
Reid Spencer96cf5872007-07-13 10:05:30 +000016832for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016833do
16834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16835{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16837if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840 cat >conftest.$ac_ext <<_ACEOF
16841/* confdefs.h. */
16842_ACEOF
16843cat confdefs.h >>conftest.$ac_ext
16844cat >>conftest.$ac_ext <<_ACEOF
16845/* end confdefs.h. */
16846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16848#define $ac_func innocuous_$ac_func
16849
16850/* System header to define __stub macros and hopefully few prototypes,
16851 which can conflict with char $ac_func (); below.
16852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853 <limits.h> exists even on freestanding compilers. */
16854
16855#ifdef __STDC__
16856# include <limits.h>
16857#else
16858# include <assert.h>
16859#endif
16860
16861#undef $ac_func
16862
16863/* Override any GCC internal prototype to avoid an error.
16864 Use char because int might match the return type of a GCC
16865 builtin and then its argument prototype would still apply. */
16866#ifdef __cplusplus
16867extern "C"
16868#endif
16869char $ac_func ();
16870/* The GNU C library defines this for functions which it implements
16871 to always fail with ENOSYS. Some functions are actually named
16872 something starting with __ and the normal name is an alias. */
16873#if defined __stub_$ac_func || defined __stub___$ac_func
16874choke me
16875#endif
16876
16877int
16878main ()
16879{
16880return $ac_func ();
16881 ;
16882 return 0;
16883}
16884_ACEOF
16885rm -f conftest.$ac_objext conftest$ac_exeext
16886if { (ac_try="$ac_link"
16887case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16890esac
16891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_link") 2>conftest.er1
16893 ac_status=$?
16894 grep -v '^ *+' conftest.er1 >conftest.err
16895 rm -f conftest.er1
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
16899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903esac
16904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest$ac_exeext'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 eval "$as_ac_var=yes"
16920else
16921 echo "$as_me: failed program was:" >&5
16922sed 's/^/| /' conftest.$ac_ext >&5
16923
16924 eval "$as_ac_var=no"
16925fi
16926
16927rm -f core conftest.err conftest.$ac_objext \
16928 conftest$ac_exeext conftest.$ac_ext
16929fi
16930ac_res=`eval echo '${'$as_ac_var'}'`
16931 { echo "$as_me:$LINENO: result: $ac_res" >&5
16932echo "${ECHO_T}$ac_res" >&6; }
16933if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016934 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016936_ACEOF
16937
16938fi
16939done
16940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016941
16942
16943
16944
16945
Reid Spencerb90645c2007-02-16 19:17:20 +000016946for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016947do
16948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16949{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16951if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953else
16954 cat >conftest.$ac_ext <<_ACEOF
16955/* confdefs.h. */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h. */
16960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16962#define $ac_func innocuous_$ac_func
16963
16964/* System header to define __stub macros and hopefully few prototypes,
16965 which can conflict with char $ac_func (); below.
16966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967 <limits.h> exists even on freestanding compilers. */
16968
16969#ifdef __STDC__
16970# include <limits.h>
16971#else
16972# include <assert.h>
16973#endif
16974
16975#undef $ac_func
16976
16977/* Override any GCC internal prototype to avoid an error.
16978 Use char because int might match the return type of a GCC
16979 builtin and then its argument prototype would still apply. */
16980#ifdef __cplusplus
16981extern "C"
16982#endif
16983char $ac_func ();
16984/* The GNU C library defines this for functions which it implements
16985 to always fail with ENOSYS. Some functions are actually named
16986 something starting with __ and the normal name is an alias. */
16987#if defined __stub_$ac_func || defined __stub___$ac_func
16988choke me
16989#endif
16990
16991int
16992main ()
16993{
16994return $ac_func ();
16995 ;
16996 return 0;
16997}
16998_ACEOF
16999rm -f conftest.$ac_objext conftest$ac_exeext
17000if { (ac_try="$ac_link"
17001case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004esac
17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_link") 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014 { (case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017esac
17018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_try") 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027esac
17028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_try") 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 eval "$as_ac_var=yes"
17034else
17035 echo "$as_me: failed program was:" >&5
17036sed 's/^/| /' conftest.$ac_ext >&5
17037
17038 eval "$as_ac_var=no"
17039fi
17040
17041rm -f core conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17043fi
17044ac_res=`eval echo '${'$as_ac_var'}'`
17045 { echo "$as_me:$LINENO: result: $ac_res" >&5
17046echo "${ECHO_T}$ac_res" >&6; }
17047if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017048 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017050_ACEOF
17051
17052fi
17053done
17054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017055
17056
17057
Reid Spencerb90645c2007-02-16 19:17:20 +000017058for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017059do
17060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17061{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17063if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065else
17066 cat >conftest.$ac_ext <<_ACEOF
17067/* confdefs.h. */
17068_ACEOF
17069cat confdefs.h >>conftest.$ac_ext
17070cat >>conftest.$ac_ext <<_ACEOF
17071/* end confdefs.h. */
17072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17074#define $ac_func innocuous_$ac_func
17075
17076/* System header to define __stub macros and hopefully few prototypes,
17077 which can conflict with char $ac_func (); below.
17078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079 <limits.h> exists even on freestanding compilers. */
17080
17081#ifdef __STDC__
17082# include <limits.h>
17083#else
17084# include <assert.h>
17085#endif
17086
17087#undef $ac_func
17088
17089/* Override any GCC internal prototype to avoid an error.
17090 Use char because int might match the return type of a GCC
17091 builtin and then its argument prototype would still apply. */
17092#ifdef __cplusplus
17093extern "C"
17094#endif
17095char $ac_func ();
17096/* The GNU C library defines this for functions which it implements
17097 to always fail with ENOSYS. Some functions are actually named
17098 something starting with __ and the normal name is an alias. */
17099#if defined __stub_$ac_func || defined __stub___$ac_func
17100choke me
17101#endif
17102
17103int
17104main ()
17105{
17106return $ac_func ();
17107 ;
17108 return 0;
17109}
17110_ACEOF
17111rm -f conftest.$ac_objext conftest$ac_exeext
17112if { (ac_try="$ac_link"
17113case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17116esac
17117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_link") 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
17125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17126 { (case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17129esac
17130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_try") 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest$ac_exeext'
17136 { (case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139esac
17140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_try") 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 eval "$as_ac_var=yes"
17146else
17147 echo "$as_me: failed program was:" >&5
17148sed 's/^/| /' conftest.$ac_ext >&5
17149
17150 eval "$as_ac_var=no"
17151fi
17152
17153rm -f core conftest.err conftest.$ac_objext \
17154 conftest$ac_exeext conftest.$ac_ext
17155fi
17156ac_res=`eval echo '${'$as_ac_var'}'`
17157 { echo "$as_me:$LINENO: result: $ac_res" >&5
17158echo "${ECHO_T}$ac_res" >&6; }
17159if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017160 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017162_ACEOF
17163
17164fi
17165done
17166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017167
17168
17169
17170
17171
Eric Christophere4291822010-04-16 05:14:21 +000017172
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017173
17174for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017175do
17176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17179if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181else
17182 cat >conftest.$ac_ext <<_ACEOF
17183/* confdefs.h. */
17184_ACEOF
17185cat confdefs.h >>conftest.$ac_ext
17186cat >>conftest.$ac_ext <<_ACEOF
17187/* end confdefs.h. */
17188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190#define $ac_func innocuous_$ac_func
17191
17192/* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char $ac_func (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17196
17197#ifdef __STDC__
17198# include <limits.h>
17199#else
17200# include <assert.h>
17201#endif
17202
17203#undef $ac_func
17204
17205/* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17208#ifdef __cplusplus
17209extern "C"
17210#endif
17211char $ac_func ();
17212/* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
17215#if defined __stub_$ac_func || defined __stub___$ac_func
17216choke me
17217#endif
17218
17219int
17220main ()
17221{
17222return $ac_func ();
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227rm -f conftest.$ac_objext conftest$ac_exeext
17228if { (ac_try="$ac_link"
17229case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232esac
17233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245esac
17246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255esac
17256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 eval "$as_ac_var=yes"
17262else
17263 echo "$as_me: failed program was:" >&5
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 eval "$as_ac_var=no"
17267fi
17268
17269rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271fi
17272ac_res=`eval echo '${'$as_ac_var'}'`
17273 { echo "$as_me:$LINENO: result: $ac_res" >&5
17274echo "${ECHO_T}$ac_res" >&6; }
17275if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017276 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017278_ACEOF
17279
17280fi
17281done
Reid Spencerdf3be822006-01-23 08:15:53 +000017282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017283
17284
17285
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017286for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017287do
17288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17289{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17291if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17293else
17294 cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17302#define $ac_func innocuous_$ac_func
17303
17304/* System header to define __stub macros and hopefully few prototypes,
17305 which can conflict with char $ac_func (); below.
17306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307 <limits.h> exists even on freestanding compilers. */
17308
17309#ifdef __STDC__
17310# include <limits.h>
17311#else
17312# include <assert.h>
17313#endif
17314
17315#undef $ac_func
17316
17317/* Override any GCC internal prototype to avoid an error.
17318 Use char because int might match the return type of a GCC
17319 builtin and then its argument prototype would still apply. */
17320#ifdef __cplusplus
17321extern "C"
17322#endif
17323char $ac_func ();
17324/* The GNU C library defines this for functions which it implements
17325 to always fail with ENOSYS. Some functions are actually named
17326 something starting with __ and the normal name is an alias. */
17327#if defined __stub_$ac_func || defined __stub___$ac_func
17328choke me
17329#endif
17330
17331int
17332main ()
17333{
17334return $ac_func ();
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext conftest$ac_exeext
17340if { (ac_try="$ac_link"
17341case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344esac
17345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
17347 ac_status=$?
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17354 { (case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357esac
17358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_try") 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest$ac_exeext'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367esac
17368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 eval "$as_ac_var=yes"
17374else
17375 echo "$as_me: failed program was:" >&5
17376sed 's/^/| /' conftest.$ac_ext >&5
17377
17378 eval "$as_ac_var=no"
17379fi
17380
17381rm -f core conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17383fi
17384ac_res=`eval echo '${'$as_ac_var'}'`
17385 { echo "$as_me:$LINENO: result: $ac_res" >&5
17386echo "${ECHO_T}$ac_res" >&6; }
17387if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017388 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017390_ACEOF
17391
17392fi
17393done
17394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017395
17396
17397
17398
Chris Lattner511f11d2005-11-14 07:25:50 +000017399for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017400do
17401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17402{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17404if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406else
17407 cat >conftest.$ac_ext <<_ACEOF
17408/* confdefs.h. */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h. */
17413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17415#define $ac_func innocuous_$ac_func
17416
17417/* System header to define __stub macros and hopefully few prototypes,
17418 which can conflict with char $ac_func (); below.
17419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17420 <limits.h> exists even on freestanding compilers. */
17421
17422#ifdef __STDC__
17423# include <limits.h>
17424#else
17425# include <assert.h>
17426#endif
17427
17428#undef $ac_func
17429
17430/* Override any GCC internal prototype to avoid an error.
17431 Use char because int might match the return type of a GCC
17432 builtin and then its argument prototype would still apply. */
17433#ifdef __cplusplus
17434extern "C"
17435#endif
17436char $ac_func ();
17437/* The GNU C library defines this for functions which it implements
17438 to always fail with ENOSYS. Some functions are actually named
17439 something starting with __ and the normal name is an alias. */
17440#if defined __stub_$ac_func || defined __stub___$ac_func
17441choke me
17442#endif
17443
17444int
17445main ()
17446{
17447return $ac_func ();
17448 ;
17449 return 0;
17450}
17451_ACEOF
17452rm -f conftest.$ac_objext conftest$ac_exeext
17453if { (ac_try="$ac_link"
17454case "(($ac_try" in
17455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17457esac
17458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_link") 2>conftest.er1
17460 ac_status=$?
17461 grep -v '^ *+' conftest.er1 >conftest.err
17462 rm -f conftest.er1
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17467 { (case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470esac
17471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_try") 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480esac
17481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17486 eval "$as_ac_var=yes"
17487else
17488 echo "$as_me: failed program was:" >&5
17489sed 's/^/| /' conftest.$ac_ext >&5
17490
17491 eval "$as_ac_var=no"
17492fi
17493
17494rm -f core conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
17496fi
17497ac_res=`eval echo '${'$as_ac_var'}'`
17498 { echo "$as_me:$LINENO: result: $ac_res" >&5
17499echo "${ECHO_T}$ac_res" >&6; }
17500if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017501 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017503_ACEOF
17504
17505fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017506done
John Criswell7a73b802003-06-30 21:59:07 +000017507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017508
17509
17510
17511
Daniel Dunbar3e462932011-02-03 02:40:02 +000017512
17513for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017514do
17515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17516{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17518if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520else
17521 cat >conftest.$ac_ext <<_ACEOF
17522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
17527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529#define $ac_func innocuous_$ac_func
17530
17531/* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char $ac_func (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
17535
17536#ifdef __STDC__
17537# include <limits.h>
17538#else
17539# include <assert.h>
17540#endif
17541
17542#undef $ac_func
17543
17544/* Override any GCC internal prototype to avoid an error.
17545 Use char because int might match the return type of a GCC
17546 builtin and then its argument prototype would still apply. */
17547#ifdef __cplusplus
17548extern "C"
17549#endif
17550char $ac_func ();
17551/* The GNU C library defines this for functions which it implements
17552 to always fail with ENOSYS. Some functions are actually named
17553 something starting with __ and the normal name is an alias. */
17554#if defined __stub_$ac_func || defined __stub___$ac_func
17555choke me
17556#endif
17557
17558int
17559main ()
17560{
17561return $ac_func ();
17562 ;
17563 return 0;
17564}
17565_ACEOF
17566rm -f conftest.$ac_objext conftest$ac_exeext
17567if { (ac_try="$ac_link"
17568case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571esac
17572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_link") 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
17580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17581 { (case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_try") 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest$ac_exeext'
17591 { (case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17594esac
17595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_try") 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 eval "$as_ac_var=yes"
17601else
17602 echo "$as_me: failed program was:" >&5
17603sed 's/^/| /' conftest.$ac_ext >&5
17604
17605 eval "$as_ac_var=no"
17606fi
17607
17608rm -f core conftest.err conftest.$ac_objext \
17609 conftest$ac_exeext conftest.$ac_ext
17610fi
17611ac_res=`eval echo '${'$as_ac_var'}'`
17612 { echo "$as_me:$LINENO: result: $ac_res" >&5
17613echo "${ECHO_T}$ac_res" >&6; }
17614if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017615 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017617_ACEOF
17618
17619fi
17620done
17621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017622{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17623echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17624if test "${llvm_cv_c_printf_a+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017626else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017627 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017628ac_cpp='$CPP $CPPFLAGS'
17629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17631ac_compiler_gnu=$ac_cv_c_compiler_gnu
17632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017633 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017634 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017636 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017638 /* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017643
John Criswella0137d32003-10-13 16:22:01 +000017644#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017645#include <stdlib.h>
17646
John Criswella0137d32003-10-13 16:22:01 +000017647int
17648main ()
17649{
17650
Reid Spencer2706f8c2004-09-19 23:53:36 +000017651volatile double A, B;
17652char Buffer[100];
17653A = 1;
17654A /= 10.0;
17655sprintf(Buffer, "%a", A);
17656B = atof(Buffer);
17657if (A != B)
17658 return (1);
17659if (A != 0x1.999999999999ap-4)
17660 return (1);
17661return (0);
John Criswella0137d32003-10-13 16:22:01 +000017662 ;
17663 return 0;
17664}
17665_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017666rm -f conftest$ac_exeext
17667if { (ac_try="$ac_link"
17668case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671esac
17672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_link") 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17680esac
17681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017686 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017688 echo "$as_me: program exited with status $ac_status" >&5
17689echo "$as_me: failed program was:" >&5
17690sed 's/^/| /' conftest.$ac_ext >&5
17691
17692( exit $ac_status )
17693llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017695rm -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 +000017696fi
Reid Spencera773bd52006-08-04 18:18:08 +000017697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017698
Reid Spencer2706f8c2004-09-19 23:53:36 +000017699 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017700ac_cpp='$CPP $CPPFLAGS'
17701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017705fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017706{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17707echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017708 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017710cat >>confdefs.h <<\_ACEOF
17711#define HAVE_PRINTF_A 1
17712_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017713
Reid Spencer2706f8c2004-09-19 23:53:36 +000017714 fi
John Criswella0137d32003-10-13 16:22:01 +000017715
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017717{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17718echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17719if test "${ac_cv_func_rand48+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017721else
Reid Spencera773bd52006-08-04 18:18:08 +000017722 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017723ac_cpp='$CXXCPP $CPPFLAGS'
17724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017728 cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017733/* end confdefs.h. */
17734#include <stdlib.h>
17735int
17736main ()
17737{
17738srand48(0);lrand48();drand48();
17739 ;
17740 return 0;
17741}
17742_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017743rm -f conftest.$ac_objext
17744if { (ac_try="$ac_compile"
17745case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748esac
17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_compile") 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17761esac
17762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771esac
17772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017777 ac_cv_func_rand48=yes
17778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017779 echo "$as_me: failed program was:" >&5
17780sed 's/^/| /' conftest.$ac_ext >&5
17781
17782 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017784
Reid Spencera773bd52006-08-04 18:18:08 +000017785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017786 ac_ext=c
17787ac_cpp='$CPP $CPPFLAGS'
17788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17790ac_compiler_gnu=$ac_cv_c_compiler_gnu
17791
17792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017793{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17794echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017795
17796if test "$ac_cv_func_rand48" = "yes" ; then
17797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017798cat >>confdefs.h <<\_ACEOF
17799#define HAVE_RAND48 1
17800_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017801
17802fi
John Criswell0021c312004-02-13 21:57:29 +000017803
17804
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017805{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17806echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17807if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17809else
17810 cat >conftest.$ac_ext <<_ACEOF
17811/* confdefs.h. */
17812_ACEOF
17813cat confdefs.h >>conftest.$ac_ext
17814cat >>conftest.$ac_ext <<_ACEOF
17815/* end confdefs.h. */
17816$ac_includes_default
17817int
17818main ()
17819{
17820#ifndef strerror_s
17821 char *p = (char *) strerror_s;
17822 return !p;
17823#endif
17824
17825 ;
17826 return 0;
17827}
17828_ACEOF
17829rm -f conftest.$ac_objext
17830if { (ac_try="$ac_compile"
17831case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17834esac
17835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_compile") 2>conftest.er1
17837 ac_status=$?
17838 grep -v '^ *+' conftest.er1 >conftest.err
17839 rm -f conftest.er1
17840 cat conftest.err >&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } &&
17843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17844 { (case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17847esac
17848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_try") 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest.$ac_objext'
17854 { (case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17857esac
17858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_try") 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_cv_have_decl_strerror_s=yes
17864else
17865 echo "$as_me: failed program was:" >&5
17866sed 's/^/| /' conftest.$ac_ext >&5
17867
17868 ac_cv_have_decl_strerror_s=no
17869fi
17870
17871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17872fi
17873{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17874echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17875if test $ac_cv_have_decl_strerror_s = yes; then
17876
17877cat >>confdefs.h <<_ACEOF
17878#define HAVE_DECL_STRERROR_S 1
17879_ACEOF
17880
17881
17882else
17883 cat >>confdefs.h <<_ACEOF
17884#define HAVE_DECL_STRERROR_S 0
17885_ACEOF
17886
17887
17888fi
17889
17890
17891
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017892if test "$llvm_cv_os_type" = "MingW" ; then
17893 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17894echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17895if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17897else
17898 ac_check_lib_save_LIBS=$LIBS
17899LIBS="-lgcc $LIBS"
17900cat >conftest.$ac_ext <<_ACEOF
17901/* confdefs.h. */
17902_ACEOF
17903cat confdefs.h >>conftest.$ac_ext
17904cat >>conftest.$ac_ext <<_ACEOF
17905/* end confdefs.h. */
17906
17907/* Override any GCC internal prototype to avoid an error.
17908 Use char because int might match the return type of a GCC
17909 builtin and then its argument prototype would still apply. */
17910#ifdef __cplusplus
17911extern "C"
17912#endif
17913char _alloca ();
17914int
17915main ()
17916{
17917return _alloca ();
17918 ;
17919 return 0;
17920}
17921_ACEOF
17922rm -f conftest.$ac_objext conftest$ac_exeext
17923if { (ac_try="$ac_link"
17924case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17927esac
17928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_link") 2>conftest.er1
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940esac
17941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest$ac_exeext'
17947 { (case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17950esac
17951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_try") 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 ac_cv_lib_gcc__alloca=yes
17957else
17958 echo "$as_me: failed program was:" >&5
17959sed 's/^/| /' conftest.$ac_ext >&5
17960
17961 ac_cv_lib_gcc__alloca=no
17962fi
17963
17964rm -f core conftest.err conftest.$ac_objext \
17965 conftest$ac_exeext conftest.$ac_ext
17966LIBS=$ac_check_lib_save_LIBS
17967fi
17968{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17969echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17970if test $ac_cv_lib_gcc__alloca = yes; then
17971
17972cat >>confdefs.h <<\_ACEOF
17973#define HAVE__ALLOCA 1
17974_ACEOF
17975
17976fi
17977
17978 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17979echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17980if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982else
17983 ac_check_lib_save_LIBS=$LIBS
17984LIBS="-lgcc $LIBS"
17985cat >conftest.$ac_ext <<_ACEOF
17986/* confdefs.h. */
17987_ACEOF
17988cat confdefs.h >>conftest.$ac_ext
17989cat >>conftest.$ac_ext <<_ACEOF
17990/* end confdefs.h. */
17991
17992/* Override any GCC internal prototype to avoid an error.
17993 Use char because int might match the return type of a GCC
17994 builtin and then its argument prototype would still apply. */
17995#ifdef __cplusplus
17996extern "C"
17997#endif
17998char __alloca ();
17999int
18000main ()
18001{
18002return __alloca ();
18003 ;
18004 return 0;
18005}
18006_ACEOF
18007rm -f conftest.$ac_objext conftest$ac_exeext
18008if { (ac_try="$ac_link"
18009case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18012esac
18013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_link") 2>conftest.er1
18015 ac_status=$?
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18025esac
18026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest$ac_exeext'
18032 { (case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18035esac
18036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_try") 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 ac_cv_lib_gcc___alloca=yes
18042else
18043 echo "$as_me: failed program was:" >&5
18044sed 's/^/| /' conftest.$ac_ext >&5
18045
18046 ac_cv_lib_gcc___alloca=no
18047fi
18048
18049rm -f core conftest.err conftest.$ac_objext \
18050 conftest$ac_exeext conftest.$ac_ext
18051LIBS=$ac_check_lib_save_LIBS
18052fi
18053{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18054echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18055if test $ac_cv_lib_gcc___alloca = yes; then
18056
18057cat >>confdefs.h <<\_ACEOF
18058#define HAVE___ALLOCA 1
18059_ACEOF
18060
18061fi
18062
18063 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18064echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18065if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18067else
18068 ac_check_lib_save_LIBS=$LIBS
18069LIBS="-lgcc $LIBS"
18070cat >conftest.$ac_ext <<_ACEOF
18071/* confdefs.h. */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
18075/* end confdefs.h. */
18076
18077/* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18080#ifdef __cplusplus
18081extern "C"
18082#endif
18083char __chkstk ();
18084int
18085main ()
18086{
18087return __chkstk ();
18088 ;
18089 return 0;
18090}
18091_ACEOF
18092rm -f conftest.$ac_objext conftest$ac_exeext
18093if { (ac_try="$ac_link"
18094case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18097esac
18098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_link") 2>conftest.er1
18100 ac_status=$?
18101 grep -v '^ *+' conftest.er1 >conftest.err
18102 rm -f conftest.er1
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110esac
18111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_try") 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest$ac_exeext'
18117 { (case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18120esac
18121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_try") 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 ac_cv_lib_gcc___chkstk=yes
18127else
18128 echo "$as_me: failed program was:" >&5
18129sed 's/^/| /' conftest.$ac_ext >&5
18130
18131 ac_cv_lib_gcc___chkstk=no
18132fi
18133
18134rm -f core conftest.err conftest.$ac_objext \
18135 conftest$ac_exeext conftest.$ac_ext
18136LIBS=$ac_check_lib_save_LIBS
18137fi
18138{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18139echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18140if test $ac_cv_lib_gcc___chkstk = yes; then
18141
18142cat >>confdefs.h <<\_ACEOF
18143#define HAVE___CHKSTK 1
18144_ACEOF
18145
18146fi
18147
18148 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18149echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18150if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152else
18153 ac_check_lib_save_LIBS=$LIBS
18154LIBS="-lgcc $LIBS"
18155cat >conftest.$ac_ext <<_ACEOF
18156/* confdefs.h. */
18157_ACEOF
18158cat confdefs.h >>conftest.$ac_ext
18159cat >>conftest.$ac_ext <<_ACEOF
18160/* end confdefs.h. */
18161
18162/* Override any GCC internal prototype to avoid an error.
18163 Use char because int might match the return type of a GCC
18164 builtin and then its argument prototype would still apply. */
18165#ifdef __cplusplus
18166extern "C"
18167#endif
18168char ___chkstk ();
18169int
18170main ()
18171{
18172return ___chkstk ();
18173 ;
18174 return 0;
18175}
18176_ACEOF
18177rm -f conftest.$ac_objext conftest$ac_exeext
18178if { (ac_try="$ac_link"
18179case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18182esac
18183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_link") 2>conftest.er1
18185 ac_status=$?
18186 grep -v '^ *+' conftest.er1 >conftest.err
18187 rm -f conftest.er1
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } &&
18191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18192 { (case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195esac
18196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_try") 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest$ac_exeext'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18205esac
18206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 ac_cv_lib_gcc____chkstk=yes
18212else
18213 echo "$as_me: failed program was:" >&5
18214sed 's/^/| /' conftest.$ac_ext >&5
18215
18216 ac_cv_lib_gcc____chkstk=no
18217fi
18218
18219rm -f core conftest.err conftest.$ac_objext \
18220 conftest$ac_exeext conftest.$ac_ext
18221LIBS=$ac_check_lib_save_LIBS
18222fi
18223{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18224echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18225if test $ac_cv_lib_gcc____chkstk = yes; then
18226
18227cat >>confdefs.h <<\_ACEOF
18228#define HAVE____CHKSTK 1
18229_ACEOF
18230
18231fi
18232
18233
18234 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18235echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18236if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238else
18239 ac_check_lib_save_LIBS=$LIBS
18240LIBS="-lgcc $LIBS"
18241cat >conftest.$ac_ext <<_ACEOF
18242/* confdefs.h. */
18243_ACEOF
18244cat confdefs.h >>conftest.$ac_ext
18245cat >>conftest.$ac_ext <<_ACEOF
18246/* end confdefs.h. */
18247
18248/* Override any GCC internal prototype to avoid an error.
18249 Use char because int might match the return type of a GCC
18250 builtin and then its argument prototype would still apply. */
18251#ifdef __cplusplus
18252extern "C"
18253#endif
18254char __ashldi3 ();
18255int
18256main ()
18257{
18258return __ashldi3 ();
18259 ;
18260 return 0;
18261}
18262_ACEOF
18263rm -f conftest.$ac_objext conftest$ac_exeext
18264if { (ac_try="$ac_link"
18265case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268esac
18269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281esac
18282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_lib_gcc___ashldi3=yes
18298else
18299 echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302 ac_cv_lib_gcc___ashldi3=no
18303fi
18304
18305rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18307LIBS=$ac_check_lib_save_LIBS
18308fi
18309{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18310echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18311if test $ac_cv_lib_gcc___ashldi3 = yes; then
18312
18313cat >>confdefs.h <<\_ACEOF
18314#define HAVE___ASHLDI3 1
18315_ACEOF
18316
18317fi
18318
18319 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18320echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18321if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18323else
18324 ac_check_lib_save_LIBS=$LIBS
18325LIBS="-lgcc $LIBS"
18326cat >conftest.$ac_ext <<_ACEOF
18327/* confdefs.h. */
18328_ACEOF
18329cat confdefs.h >>conftest.$ac_ext
18330cat >>conftest.$ac_ext <<_ACEOF
18331/* end confdefs.h. */
18332
18333/* Override any GCC internal prototype to avoid an error.
18334 Use char because int might match the return type of a GCC
18335 builtin and then its argument prototype would still apply. */
18336#ifdef __cplusplus
18337extern "C"
18338#endif
18339char __ashrdi3 ();
18340int
18341main ()
18342{
18343return __ashrdi3 ();
18344 ;
18345 return 0;
18346}
18347_ACEOF
18348rm -f conftest.$ac_objext conftest$ac_exeext
18349if { (ac_try="$ac_link"
18350case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353esac
18354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_link") 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18363 { (case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18366esac
18367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_try") 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest$ac_exeext'
18373 { (case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18376esac
18377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_try") 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_lib_gcc___ashrdi3=yes
18383else
18384 echo "$as_me: failed program was:" >&5
18385sed 's/^/| /' conftest.$ac_ext >&5
18386
18387 ac_cv_lib_gcc___ashrdi3=no
18388fi
18389
18390rm -f core conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18392LIBS=$ac_check_lib_save_LIBS
18393fi
18394{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18395echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18396if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18397
18398cat >>confdefs.h <<\_ACEOF
18399#define HAVE___ASHRDI3 1
18400_ACEOF
18401
18402fi
18403
18404 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18405echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18406if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18408else
18409 ac_check_lib_save_LIBS=$LIBS
18410LIBS="-lgcc $LIBS"
18411cat >conftest.$ac_ext <<_ACEOF
18412/* confdefs.h. */
18413_ACEOF
18414cat confdefs.h >>conftest.$ac_ext
18415cat >>conftest.$ac_ext <<_ACEOF
18416/* end confdefs.h. */
18417
18418/* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18421#ifdef __cplusplus
18422extern "C"
18423#endif
18424char __divdi3 ();
18425int
18426main ()
18427{
18428return __divdi3 ();
18429 ;
18430 return 0;
18431}
18432_ACEOF
18433rm -f conftest.$ac_objext conftest$ac_exeext
18434if { (ac_try="$ac_link"
18435case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438esac
18439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_link") 2>conftest.er1
18441 ac_status=$?
18442 grep -v '^ *+' conftest.er1 >conftest.err
18443 rm -f conftest.er1
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } &&
18447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451esac
18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try='test -s conftest$ac_exeext'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18461esac
18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 ac_cv_lib_gcc___divdi3=yes
18468else
18469 echo "$as_me: failed program was:" >&5
18470sed 's/^/| /' conftest.$ac_ext >&5
18471
18472 ac_cv_lib_gcc___divdi3=no
18473fi
18474
18475rm -f core conftest.err conftest.$ac_objext \
18476 conftest$ac_exeext conftest.$ac_ext
18477LIBS=$ac_check_lib_save_LIBS
18478fi
18479{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18480echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18481if test $ac_cv_lib_gcc___divdi3 = yes; then
18482
18483cat >>confdefs.h <<\_ACEOF
18484#define HAVE___DIVDI3 1
18485_ACEOF
18486
18487fi
18488
18489 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18490echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18491if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18493else
18494 ac_check_lib_save_LIBS=$LIBS
18495LIBS="-lgcc $LIBS"
18496cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
18502
18503/* Override any GCC internal prototype to avoid an error.
18504 Use char because int might match the return type of a GCC
18505 builtin and then its argument prototype would still apply. */
18506#ifdef __cplusplus
18507extern "C"
18508#endif
18509char __fixdfdi ();
18510int
18511main ()
18512{
18513return __fixdfdi ();
18514 ;
18515 return 0;
18516}
18517_ACEOF
18518rm -f conftest.$ac_objext conftest$ac_exeext
18519if { (ac_try="$ac_link"
18520case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523esac
18524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_link") 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try='test -s conftest$ac_exeext'
18543 { (case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546esac
18547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_try") 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 ac_cv_lib_gcc___fixdfdi=yes
18553else
18554 echo "$as_me: failed program was:" >&5
18555sed 's/^/| /' conftest.$ac_ext >&5
18556
18557 ac_cv_lib_gcc___fixdfdi=no
18558fi
18559
18560rm -f core conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18562LIBS=$ac_check_lib_save_LIBS
18563fi
18564{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18565echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18566if test $ac_cv_lib_gcc___fixdfdi = yes; then
18567
18568cat >>confdefs.h <<\_ACEOF
18569#define HAVE___FIXDFDI 1
18570_ACEOF
18571
18572fi
18573
18574 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18575echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18576if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578else
18579 ac_check_lib_save_LIBS=$LIBS
18580LIBS="-lgcc $LIBS"
18581cat >conftest.$ac_ext <<_ACEOF
18582/* confdefs.h. */
18583_ACEOF
18584cat confdefs.h >>conftest.$ac_ext
18585cat >>conftest.$ac_ext <<_ACEOF
18586/* end confdefs.h. */
18587
18588/* Override any GCC internal prototype to avoid an error.
18589 Use char because int might match the return type of a GCC
18590 builtin and then its argument prototype would still apply. */
18591#ifdef __cplusplus
18592extern "C"
18593#endif
18594char __fixsfdi ();
18595int
18596main ()
18597{
18598return __fixsfdi ();
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext conftest$ac_exeext
18604if { (ac_try="$ac_link"
18605case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608esac
18609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_link") 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
18617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18618 { (case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18621esac
18622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_try") 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest$ac_exeext'
18628 { (case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18631esac
18632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633 (eval "$ac_try") 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 ac_cv_lib_gcc___fixsfdi=yes
18638else
18639 echo "$as_me: failed program was:" >&5
18640sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 ac_cv_lib_gcc___fixsfdi=no
18643fi
18644
18645rm -f core conftest.err conftest.$ac_objext \
18646 conftest$ac_exeext conftest.$ac_ext
18647LIBS=$ac_check_lib_save_LIBS
18648fi
18649{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18650echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18651if test $ac_cv_lib_gcc___fixsfdi = yes; then
18652
18653cat >>confdefs.h <<\_ACEOF
18654#define HAVE___FIXSFDI 1
18655_ACEOF
18656
18657fi
18658
18659 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18660echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18661if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18663else
18664 ac_check_lib_save_LIBS=$LIBS
18665LIBS="-lgcc $LIBS"
18666cat >conftest.$ac_ext <<_ACEOF
18667/* confdefs.h. */
18668_ACEOF
18669cat confdefs.h >>conftest.$ac_ext
18670cat >>conftest.$ac_ext <<_ACEOF
18671/* end confdefs.h. */
18672
18673/* Override any GCC internal prototype to avoid an error.
18674 Use char because int might match the return type of a GCC
18675 builtin and then its argument prototype would still apply. */
18676#ifdef __cplusplus
18677extern "C"
18678#endif
18679char __floatdidf ();
18680int
18681main ()
18682{
18683return __floatdidf ();
18684 ;
18685 return 0;
18686}
18687_ACEOF
18688rm -f conftest.$ac_objext conftest$ac_exeext
18689if { (ac_try="$ac_link"
18690case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693esac
18694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_link") 2>conftest.er1
18696 ac_status=$?
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18703 { (case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18706esac
18707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_try") 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } &&
18712 { ac_try='test -s conftest$ac_exeext'
18713 { (case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18716esac
18717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_try") 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 ac_cv_lib_gcc___floatdidf=yes
18723else
18724 echo "$as_me: failed program was:" >&5
18725sed 's/^/| /' conftest.$ac_ext >&5
18726
18727 ac_cv_lib_gcc___floatdidf=no
18728fi
18729
18730rm -f core conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext conftest.$ac_ext
18732LIBS=$ac_check_lib_save_LIBS
18733fi
18734{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18735echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18736if test $ac_cv_lib_gcc___floatdidf = yes; then
18737
18738cat >>confdefs.h <<\_ACEOF
18739#define HAVE___FLOATDIDF 1
18740_ACEOF
18741
18742fi
18743
18744 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18745echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18746if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18748else
18749 ac_check_lib_save_LIBS=$LIBS
18750LIBS="-lgcc $LIBS"
18751cat >conftest.$ac_ext <<_ACEOF
18752/* confdefs.h. */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h. */
18757
18758/* Override any GCC internal prototype to avoid an error.
18759 Use char because int might match the return type of a GCC
18760 builtin and then its argument prototype would still apply. */
18761#ifdef __cplusplus
18762extern "C"
18763#endif
18764char __lshrdi3 ();
18765int
18766main ()
18767{
18768return __lshrdi3 ();
18769 ;
18770 return 0;
18771}
18772_ACEOF
18773rm -f conftest.$ac_objext conftest$ac_exeext
18774if { (ac_try="$ac_link"
18775case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18778esac
18779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_link") 2>conftest.er1
18781 ac_status=$?
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18788 { (case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791esac
18792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_try") 2>&5
18794 ac_status=$?
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; } &&
18797 { ac_try='test -s conftest$ac_exeext'
18798 { (case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18801esac
18802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_try") 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; }; then
18807 ac_cv_lib_gcc___lshrdi3=yes
18808else
18809 echo "$as_me: failed program was:" >&5
18810sed 's/^/| /' conftest.$ac_ext >&5
18811
18812 ac_cv_lib_gcc___lshrdi3=no
18813fi
18814
18815rm -f core conftest.err conftest.$ac_objext \
18816 conftest$ac_exeext conftest.$ac_ext
18817LIBS=$ac_check_lib_save_LIBS
18818fi
18819{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18820echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18821if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18822
18823cat >>confdefs.h <<\_ACEOF
18824#define HAVE___LSHRDI3 1
18825_ACEOF
18826
18827fi
18828
18829 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18830echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18831if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
18833else
18834 ac_check_lib_save_LIBS=$LIBS
18835LIBS="-lgcc $LIBS"
18836cat >conftest.$ac_ext <<_ACEOF
18837/* confdefs.h. */
18838_ACEOF
18839cat confdefs.h >>conftest.$ac_ext
18840cat >>conftest.$ac_ext <<_ACEOF
18841/* end confdefs.h. */
18842
18843/* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18846#ifdef __cplusplus
18847extern "C"
18848#endif
18849char __moddi3 ();
18850int
18851main ()
18852{
18853return __moddi3 ();
18854 ;
18855 return 0;
18856}
18857_ACEOF
18858rm -f conftest.$ac_objext conftest$ac_exeext
18859if { (ac_try="$ac_link"
18860case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863esac
18864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_link") 2>conftest.er1
18866 ac_status=$?
18867 grep -v '^ *+' conftest.er1 >conftest.err
18868 rm -f conftest.er1
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } &&
18872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18873 { (case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876esac
18877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_try") 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest$ac_exeext'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18886esac
18887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_cv_lib_gcc___moddi3=yes
18893else
18894 echo "$as_me: failed program was:" >&5
18895sed 's/^/| /' conftest.$ac_ext >&5
18896
18897 ac_cv_lib_gcc___moddi3=no
18898fi
18899
18900rm -f core conftest.err conftest.$ac_objext \
18901 conftest$ac_exeext conftest.$ac_ext
18902LIBS=$ac_check_lib_save_LIBS
18903fi
18904{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18905echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18906if test $ac_cv_lib_gcc___moddi3 = yes; then
18907
18908cat >>confdefs.h <<\_ACEOF
18909#define HAVE___MODDI3 1
18910_ACEOF
18911
18912fi
18913
18914 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18915echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18916if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18918else
18919 ac_check_lib_save_LIBS=$LIBS
18920LIBS="-lgcc $LIBS"
18921cat >conftest.$ac_ext <<_ACEOF
18922/* confdefs.h. */
18923_ACEOF
18924cat confdefs.h >>conftest.$ac_ext
18925cat >>conftest.$ac_ext <<_ACEOF
18926/* end confdefs.h. */
18927
18928/* Override any GCC internal prototype to avoid an error.
18929 Use char because int might match the return type of a GCC
18930 builtin and then its argument prototype would still apply. */
18931#ifdef __cplusplus
18932extern "C"
18933#endif
18934char __udivdi3 ();
18935int
18936main ()
18937{
18938return __udivdi3 ();
18939 ;
18940 return 0;
18941}
18942_ACEOF
18943rm -f conftest.$ac_objext conftest$ac_exeext
18944if { (ac_try="$ac_link"
18945case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948esac
18949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_link") 2>conftest.er1
18951 ac_status=$?
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18958 { (case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_try") 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try='test -s conftest$ac_exeext'
18968 { (case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18971esac
18972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_try") 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; }; then
18977 ac_cv_lib_gcc___udivdi3=yes
18978else
18979 echo "$as_me: failed program was:" >&5
18980sed 's/^/| /' conftest.$ac_ext >&5
18981
18982 ac_cv_lib_gcc___udivdi3=no
18983fi
18984
18985rm -f core conftest.err conftest.$ac_objext \
18986 conftest$ac_exeext conftest.$ac_ext
18987LIBS=$ac_check_lib_save_LIBS
18988fi
18989{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18990echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18991if test $ac_cv_lib_gcc___udivdi3 = yes; then
18992
18993cat >>confdefs.h <<\_ACEOF
18994#define HAVE___UDIVDI3 1
18995_ACEOF
18996
18997fi
18998
18999 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19000echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19001if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003else
19004 ac_check_lib_save_LIBS=$LIBS
19005LIBS="-lgcc $LIBS"
19006cat >conftest.$ac_ext <<_ACEOF
19007/* confdefs.h. */
19008_ACEOF
19009cat confdefs.h >>conftest.$ac_ext
19010cat >>conftest.$ac_ext <<_ACEOF
19011/* end confdefs.h. */
19012
19013/* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19016#ifdef __cplusplus
19017extern "C"
19018#endif
19019char __umoddi3 ();
19020int
19021main ()
19022{
19023return __umoddi3 ();
19024 ;
19025 return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext conftest$ac_exeext
19029if { (ac_try="$ac_link"
19030case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033esac
19034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_link") 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046esac
19047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest$ac_exeext'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056esac
19057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_cv_lib_gcc___umoddi3=yes
19063else
19064 echo "$as_me: failed program was:" >&5
19065sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ac_cv_lib_gcc___umoddi3=no
19068fi
19069
19070rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072LIBS=$ac_check_lib_save_LIBS
19073fi
19074{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19075echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19076if test $ac_cv_lib_gcc___umoddi3 = yes; then
19077
19078cat >>confdefs.h <<\_ACEOF
19079#define HAVE___UMODDI3 1
19080_ACEOF
19081
19082fi
19083
19084
19085 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19086echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19087if test "${ac_cv_lib_gcc___main+set}" = set; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19089else
19090 ac_check_lib_save_LIBS=$LIBS
19091LIBS="-lgcc $LIBS"
19092cat >conftest.$ac_ext <<_ACEOF
19093/* confdefs.h. */
19094_ACEOF
19095cat confdefs.h >>conftest.$ac_ext
19096cat >>conftest.$ac_ext <<_ACEOF
19097/* end confdefs.h. */
19098
19099/* Override any GCC internal prototype to avoid an error.
19100 Use char because int might match the return type of a GCC
19101 builtin and then its argument prototype would still apply. */
19102#ifdef __cplusplus
19103extern "C"
19104#endif
19105char __main ();
19106int
19107main ()
19108{
19109return __main ();
19110 ;
19111 return 0;
19112}
19113_ACEOF
19114rm -f conftest.$ac_objext conftest$ac_exeext
19115if { (ac_try="$ac_link"
19116case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119esac
19120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_link") 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19129 { (case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19132esac
19133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_try") 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest$ac_exeext'
19139 { (case "(($ac_try" in
19140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141 *) ac_try_echo=$ac_try;;
19142esac
19143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144 (eval "$ac_try") 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_cv_lib_gcc___main=yes
19149else
19150 echo "$as_me: failed program was:" >&5
19151sed 's/^/| /' conftest.$ac_ext >&5
19152
19153 ac_cv_lib_gcc___main=no
19154fi
19155
19156rm -f core conftest.err conftest.$ac_objext \
19157 conftest$ac_exeext conftest.$ac_ext
19158LIBS=$ac_check_lib_save_LIBS
19159fi
19160{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19161echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19162if test $ac_cv_lib_gcc___main = yes; then
19163
19164cat >>confdefs.h <<\_ACEOF
19165#define HAVE___MAIN 1
19166_ACEOF
19167
19168fi
19169
19170 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19171echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19172if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19174else
19175 ac_check_lib_save_LIBS=$LIBS
19176LIBS="-lgcc $LIBS"
19177cat >conftest.$ac_ext <<_ACEOF
19178/* confdefs.h. */
19179_ACEOF
19180cat confdefs.h >>conftest.$ac_ext
19181cat >>conftest.$ac_ext <<_ACEOF
19182/* end confdefs.h. */
19183
19184/* Override any GCC internal prototype to avoid an error.
19185 Use char because int might match the return type of a GCC
19186 builtin and then its argument prototype would still apply. */
19187#ifdef __cplusplus
19188extern "C"
19189#endif
19190char __cmpdi2 ();
19191int
19192main ()
19193{
19194return __cmpdi2 ();
19195 ;
19196 return 0;
19197}
19198_ACEOF
19199rm -f conftest.$ac_objext conftest$ac_exeext
19200if { (ac_try="$ac_link"
19201case "(($ac_try" in
19202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19204esac
19205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_link") 2>conftest.er1
19207 ac_status=$?
19208 grep -v '^ *+' conftest.er1 >conftest.err
19209 rm -f conftest.er1
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19214 { (case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19217esac
19218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_try") 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; } &&
19223 { ac_try='test -s conftest$ac_exeext'
19224 { (case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19227esac
19228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_try") 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_cv_lib_gcc___cmpdi2=yes
19234else
19235 echo "$as_me: failed program was:" >&5
19236sed 's/^/| /' conftest.$ac_ext >&5
19237
19238 ac_cv_lib_gcc___cmpdi2=no
19239fi
19240
19241rm -f core conftest.err conftest.$ac_objext \
19242 conftest$ac_exeext conftest.$ac_ext
19243LIBS=$ac_check_lib_save_LIBS
19244fi
19245{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19246echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19247if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19248
19249cat >>confdefs.h <<\_ACEOF
19250#define HAVE___CMPDI2 1
19251_ACEOF
19252
19253fi
19254
19255fi
19256
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019257if test "$llvm_cv_os_type" = "MingW" ; then
19258 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19259echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19260 cat >conftest.$ac_ext <<_ACEOF
19261#include <windows.h>
19262#include <imagehlp.h>
19263extern void foo(PENUMLOADED_MODULES_CALLBACK);
19264extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19265_ACEOF
19266rm -f conftest.$ac_objext
19267if { (ac_try="$ac_compile"
19268case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19271esac
19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_compile") 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } &&
19280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19281 { (case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19284esac
19285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_try") 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294esac
19295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300
19301 { echo "$as_me:$LINENO: result: yes" >&5
19302echo "${ECHO_T}yes" >&6; }
19303 llvm_cv_win32_elmcb_pcstr="PCSTR"
19304
19305else
19306 echo "$as_me: failed program was:" >&5
19307sed 's/^/| /' conftest.$ac_ext >&5
19308
19309
19310 { echo "$as_me:$LINENO: result: no" >&5
19311echo "${ECHO_T}no" >&6; }
19312 llvm_cv_win32_elmcb_pcstr="PSTR"
19313
19314fi
19315
19316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317
19318cat >>confdefs.h <<_ACEOF
19319#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19320_ACEOF
19321
19322fi
19323
Torok Edwin871384f2010-01-26 08:50:50 +000019324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019325{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19326echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19327if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019329else
Reid Spencera773bd52006-08-04 18:18:08 +000019330 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019331ac_cpp='$CXXCPP $CPPFLAGS'
19332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019336 cat >conftest.$ac_ext <<_ACEOF
19337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019341/* end confdefs.h. */
19342#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019343int
19344main ()
19345{
19346float f; isnan(f);
19347 ;
19348 return 0;
19349}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019350_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019351rm -f conftest.$ac_objext
19352if { (ac_try="$ac_compile"
19353case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356esac
19357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_compile") 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19366 { (case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369esac
19370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_try") 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; } &&
19375 { ac_try='test -s conftest.$ac_objext'
19376 { (case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19379esac
19380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_try") 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019385 ac_cv_func_isnan_in_math_h=yes
19386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019387 echo "$as_me: failed program was:" >&5
19388sed 's/^/| /' conftest.$ac_ext >&5
19389
19390 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019392
Reid Spencera773bd52006-08-04 18:18:08 +000019393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019394 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019395ac_cpp='$CPP $CPPFLAGS'
19396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398ac_compiler_gnu=$ac_cv_c_compiler_gnu
19399
19400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019401{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19402echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019403
19404
19405if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019407cat >>confdefs.h <<\_ACEOF
19408#define HAVE_ISNAN_IN_MATH_H 1
19409_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019410
Reid Spencerabec8f92004-10-27 23:03:44 +000019411fi
19412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019413{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19414echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19415if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019417else
Reid Spencera773bd52006-08-04 18:18:08 +000019418 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019419ac_cpp='$CXXCPP $CPPFLAGS'
19420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019424 cat >conftest.$ac_ext <<_ACEOF
19425/* confdefs.h. */
19426_ACEOF
19427cat confdefs.h >>conftest.$ac_ext
19428cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019429/* end confdefs.h. */
19430#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019431int
19432main ()
19433{
19434float f; isnan(f);
19435 ;
19436 return 0;
19437}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019438_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019439rm -f conftest.$ac_objext
19440if { (ac_try="$ac_compile"
19441case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444esac
19445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_compile") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457esac
19458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest.$ac_objext'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19467esac
19468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019473 ac_cv_func_isnan_in_cmath=yes
19474else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019475 echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019480
Reid Spencera773bd52006-08-04 18:18:08 +000019481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019482 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019483ac_cpp='$CPP $CPPFLAGS'
19484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19486ac_compiler_gnu=$ac_cv_c_compiler_gnu
19487
19488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019489{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19490echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019491
19492if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019494cat >>confdefs.h <<\_ACEOF
19495#define HAVE_ISNAN_IN_CMATH 1
19496_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019497
Reid Spencerabec8f92004-10-27 23:03:44 +000019498fi
19499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019500{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19501echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19502if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019504else
Reid Spencera773bd52006-08-04 18:18:08 +000019505 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019506ac_cpp='$CXXCPP $CPPFLAGS'
19507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019511 cat >conftest.$ac_ext <<_ACEOF
19512/* confdefs.h. */
19513_ACEOF
19514cat confdefs.h >>conftest.$ac_ext
19515cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019516/* end confdefs.h. */
19517#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019518int
19519main ()
19520{
19521float f; std::isnan(f);
19522 ;
19523 return 0;
19524}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019525_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019526rm -f conftest.$ac_objext
19527if { (ac_try="$ac_compile"
19528case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19531esac
19532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_compile") 2>conftest.er1
19534 ac_status=$?
19535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
19540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19541 { (case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_try") 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try='test -s conftest.$ac_objext'
19551 { (case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19554esac
19555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_try") 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019560 ac_cv_func_std_isnan_in_cmath=yes
19561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019562 echo "$as_me: failed program was:" >&5
19563sed 's/^/| /' conftest.$ac_ext >&5
19564
19565 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019566fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019567
Reid Spencera773bd52006-08-04 18:18:08 +000019568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019569 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019570ac_cpp='$CPP $CPPFLAGS'
19571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19573ac_compiler_gnu=$ac_cv_c_compiler_gnu
19574
19575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019576{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19577echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019578
19579if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019581cat >>confdefs.h <<\_ACEOF
19582#define HAVE_STD_ISNAN_IN_CMATH 1
19583_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019584
Reid Spencerabec8f92004-10-27 23:03:44 +000019585fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019586
19587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019588{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19589echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19590if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019592else
Reid Spencera773bd52006-08-04 18:18:08 +000019593 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019594ac_cpp='$CXXCPP $CPPFLAGS'
19595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019599 cat >conftest.$ac_ext <<_ACEOF
19600/* confdefs.h. */
19601_ACEOF
19602cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019604/* end confdefs.h. */
19605#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019606int
19607main ()
19608{
19609float f; isinf(f);
19610 ;
19611 return 0;
19612}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019613_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019614rm -f conftest.$ac_objext
19615if { (ac_try="$ac_compile"
19616case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632esac
19633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642esac
19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019648 ac_cv_func_isinf_in_math_h=yes
19649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019650 echo "$as_me: failed program was:" >&5
19651sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019655
Reid Spencera773bd52006-08-04 18:18:08 +000019656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019657 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019658ac_cpp='$CPP $CPPFLAGS'
19659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661ac_compiler_gnu=$ac_cv_c_compiler_gnu
19662
19663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19665echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019666
19667if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669cat >>confdefs.h <<\_ACEOF
19670#define HAVE_ISINF_IN_MATH_H 1
19671_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019672
Reid Spencerabec8f92004-10-27 23:03:44 +000019673fi
19674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019675{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19676echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19677if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019679else
Reid Spencera773bd52006-08-04 18:18:08 +000019680 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019681ac_cpp='$CXXCPP $CPPFLAGS'
19682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019686 cat >conftest.$ac_ext <<_ACEOF
19687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019691/* end confdefs.h. */
19692#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019693int
19694main ()
19695{
19696float f; isinf(f);
19697 ;
19698 return 0;
19699}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019700_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019701rm -f conftest.$ac_objext
19702if { (ac_try="$ac_compile"
19703case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19706esac
19707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_compile") 2>conftest.er1
19709 ac_status=$?
19710 grep -v '^ *+' conftest.er1 >conftest.err
19711 rm -f conftest.er1
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
19715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719esac
19720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest.$ac_objext'
19726 { (case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19729esac
19730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_try") 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019735 ac_cv_func_isinf_in_cmath=yes
19736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019737 echo "$as_me: failed program was:" >&5
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019742
Reid Spencera773bd52006-08-04 18:18:08 +000019743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019744 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019745ac_cpp='$CPP $CPPFLAGS'
19746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748ac_compiler_gnu=$ac_cv_c_compiler_gnu
19749
19750fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019751{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19752echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019753
19754if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019756cat >>confdefs.h <<\_ACEOF
19757#define HAVE_ISINF_IN_CMATH 1
19758_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019759
Reid Spencerabec8f92004-10-27 23:03:44 +000019760fi
19761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19763echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19764if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019766else
Reid Spencera773bd52006-08-04 18:18:08 +000019767 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019768ac_cpp='$CXXCPP $CPPFLAGS'
19769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019773 cat >conftest.$ac_ext <<_ACEOF
19774/* confdefs.h. */
19775_ACEOF
19776cat confdefs.h >>conftest.$ac_ext
19777cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019778/* end confdefs.h. */
19779#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019780int
19781main ()
19782{
19783float f; std::isinf(f)}
19784 ;
19785 return 0;
19786}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019787_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019788rm -f conftest.$ac_objext
19789if { (ac_try="$ac_compile"
19790case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19793esac
19794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_compile") 2>conftest.er1
19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19803 { (case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19806esac
19807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_try") 2>&5
19809 ac_status=$?
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; } &&
19812 { ac_try='test -s conftest.$ac_objext'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816esac
19817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019822 ac_cv_func_std_isinf_in_cmath=yes
19823else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019824 echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019829
Reid Spencera773bd52006-08-04 18:18:08 +000019830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019831 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019832ac_cpp='$CPP $CPPFLAGS'
19833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19835ac_compiler_gnu=$ac_cv_c_compiler_gnu
19836
19837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019838{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19839echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019840
19841if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843cat >>confdefs.h <<\_ACEOF
19844#define HAVE_STD_ISINF_IN_CMATH 1
19845_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019846
Reid Spencerabec8f92004-10-27 23:03:44 +000019847fi
19848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019849{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19850echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19851if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019853else
Reid Spencera773bd52006-08-04 18:18:08 +000019854 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019855ac_cpp='$CXXCPP $CPPFLAGS'
19856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019860 cat >conftest.$ac_ext <<_ACEOF
19861/* confdefs.h. */
19862_ACEOF
19863cat confdefs.h >>conftest.$ac_ext
19864cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019865/* end confdefs.h. */
19866#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019867int
19868main ()
19869{
19870float f; finite(f);
19871 ;
19872 return 0;
19873}
Brian Gaeked59a6472004-07-21 03:33:58 +000019874_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019875rm -f conftest.$ac_objext
19876if { (ac_try="$ac_compile"
19877case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880esac
19881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_compile") 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19890 { (case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893esac
19894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_try") 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest.$ac_objext'
19900 { (case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903esac
19904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_try") 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019909 ac_cv_func_finite_in_ieeefp_h=yes
19910else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019911 echo "$as_me: failed program was:" >&5
19912sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019916
Reid Spencera773bd52006-08-04 18:18:08 +000019917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019918 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019919ac_cpp='$CPP $CPPFLAGS'
19920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19922ac_compiler_gnu=$ac_cv_c_compiler_gnu
19923
19924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019925{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19926echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019927
Brian Gaeke6802b552004-10-28 05:06:45 +000019928if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019930cat >>confdefs.h <<\_ACEOF
19931#define HAVE_FINITE_IN_IEEEFP_H 1
19932_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019933
Reid Spencerabec8f92004-10-27 23:03:44 +000019934fi
19935
19936
19937
Reid Spencer30fe5262007-01-20 07:48:49 +000019938if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019939
19940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019941for ac_header in stdlib.h unistd.h
19942do
19943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19949fi
19950ac_res=`eval echo '${'$as_ac_Header'}'`
19951 { echo "$as_me:$LINENO: result: $ac_res" >&5
19952echo "${ECHO_T}$ac_res" >&6; }
19953else
19954 # Is the header compilable?
19955{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19957cat >conftest.$ac_ext <<_ACEOF
19958/* confdefs.h. */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h. */
19963$ac_includes_default
19964#include <$ac_header>
19965_ACEOF
19966rm -f conftest.$ac_objext
19967if { (ac_try="$ac_compile"
19968case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19971esac
19972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19984esac
19985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19994esac
19995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_header_compiler=yes
20001else
20002 echo "$as_me: failed program was:" >&5
20003sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020005 ac_header_compiler=no
20006fi
20007
20008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20009{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20010echo "${ECHO_T}$ac_header_compiler" >&6; }
20011
20012# Is the header present?
20013{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20015cat >conftest.$ac_ext <<_ACEOF
20016/* confdefs.h. */
20017_ACEOF
20018cat confdefs.h >>conftest.$ac_ext
20019cat >>conftest.$ac_ext <<_ACEOF
20020/* end confdefs.h. */
20021#include <$ac_header>
20022_ACEOF
20023if { (ac_try="$ac_cpp conftest.$ac_ext"
20024case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20027esac
20028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } >/dev/null; then
20036 if test -s conftest.err; then
20037 ac_cpp_err=$ac_c_preproc_warn_flag
20038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20039 else
20040 ac_cpp_err=
20041 fi
20042else
20043 ac_cpp_err=yes
20044fi
20045if test -z "$ac_cpp_err"; then
20046 ac_header_preproc=yes
20047else
20048 echo "$as_me: failed program was:" >&5
20049sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 ac_header_preproc=no
20052fi
20053
20054rm -f conftest.err conftest.$ac_ext
20055{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20056echo "${ECHO_T}$ac_header_preproc" >&6; }
20057
20058# So? What about this header?
20059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20060 yes:no: )
20061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20065 ac_header_preproc=yes
20066 ;;
20067 no:yes:* )
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20080 ( cat <<\_ASBOX
20081## ----------------------------------- ##
20082## Report this to llvmbugs@cs.uiuc.edu ##
20083## ----------------------------------- ##
20084_ASBOX
20085 ) | sed "s/^/$as_me: WARNING: /" >&2
20086 ;;
20087esac
20088{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092else
20093 eval "$as_ac_Header=\$ac_header_preproc"
20094fi
20095ac_res=`eval echo '${'$as_ac_Header'}'`
20096 { echo "$as_me:$LINENO: result: $ac_res" >&5
20097echo "${ECHO_T}$ac_res" >&6; }
20098
20099fi
20100if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020101 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020103_ACEOF
20104
20105fi
20106
20107done
20108
20109
20110for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020111do
20112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20113{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20115if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117else
20118 cat >conftest.$ac_ext <<_ACEOF
20119/* confdefs.h. */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h. */
20124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20126#define $ac_func innocuous_$ac_func
20127
20128/* System header to define __stub macros and hopefully few prototypes,
20129 which can conflict with char $ac_func (); below.
20130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20131 <limits.h> exists even on freestanding compilers. */
20132
20133#ifdef __STDC__
20134# include <limits.h>
20135#else
20136# include <assert.h>
20137#endif
20138
20139#undef $ac_func
20140
20141/* Override any GCC internal prototype to avoid an error.
20142 Use char because int might match the return type of a GCC
20143 builtin and then its argument prototype would still apply. */
20144#ifdef __cplusplus
20145extern "C"
20146#endif
20147char $ac_func ();
20148/* The GNU C library defines this for functions which it implements
20149 to always fail with ENOSYS. Some functions are actually named
20150 something starting with __ and the normal name is an alias. */
20151#if defined __stub_$ac_func || defined __stub___$ac_func
20152choke me
20153#endif
20154
20155int
20156main ()
20157{
20158return $ac_func ();
20159 ;
20160 return 0;
20161}
20162_ACEOF
20163rm -f conftest.$ac_objext conftest$ac_exeext
20164if { (ac_try="$ac_link"
20165case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168esac
20169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>conftest.er1
20171 ac_status=$?
20172 grep -v '^ *+' conftest.er1 >conftest.err
20173 rm -f conftest.er1
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20178 { (case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181esac
20182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_try") 2>&5
20184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; } &&
20187 { ac_try='test -s conftest$ac_exeext'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191esac
20192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 eval "$as_ac_var=yes"
20198else
20199 echo "$as_me: failed program was:" >&5
20200sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 eval "$as_ac_var=no"
20203fi
20204
20205rm -f core conftest.err conftest.$ac_objext \
20206 conftest$ac_exeext conftest.$ac_ext
20207fi
20208ac_res=`eval echo '${'$as_ac_var'}'`
20209 { echo "$as_me:$LINENO: result: $ac_res" >&5
20210echo "${ECHO_T}$ac_res" >&6; }
20211if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020212 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020214_ACEOF
20215
20216fi
20217done
20218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020219{ echo "$as_me:$LINENO: checking for working mmap" >&5
20220echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20221if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020223else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020224 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020225 ac_cv_func_mmap_fixed_mapped=no
20226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020227 cat >conftest.$ac_ext <<_ACEOF
20228/* confdefs.h. */
20229_ACEOF
20230cat confdefs.h >>conftest.$ac_ext
20231cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020232/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020233$ac_includes_default
20234/* malloc might have been renamed as rpl_malloc. */
20235#undef malloc
20236
20237/* Thanks to Mike Haertel and Jim Avera for this test.
20238 Here is a matrix of mmap possibilities:
20239 mmap private not fixed
20240 mmap private fixed at somewhere currently unmapped
20241 mmap private fixed at somewhere already mapped
20242 mmap shared not fixed
20243 mmap shared fixed at somewhere currently unmapped
20244 mmap shared fixed at somewhere already mapped
20245 For private mappings, we should verify that changes cannot be read()
20246 back from the file, nor mmap's back from the file at a different
20247 address. (There have been systems where private was not correctly
20248 implemented like the infamous i386 svr4.0, and systems where the
20249 VM page cache was not coherent with the file system buffer cache
20250 like early versions of FreeBSD and possibly contemporary NetBSD.)
20251 For shared mappings, we should conversely verify that changes get
20252 propagated back to all the places they're supposed to be.
20253
20254 Grep wants private fixed already mapped.
20255 The main things grep needs to know about mmap are:
20256 * does it exist and is it safe to write into the mmap'd area
20257 * how to use it (BSD variants) */
20258
20259#include <fcntl.h>
20260#include <sys/mman.h>
20261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020262#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020263char *malloc ();
20264#endif
20265
20266/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020267#if !HAVE_GETPAGESIZE
20268/* Assume that all systems that can run configure have sys/param.h. */
20269# if !HAVE_SYS_PARAM_H
20270# define HAVE_SYS_PARAM_H 1
20271# endif
20272
John Criswell7a73b802003-06-30 21:59:07 +000020273# ifdef _SC_PAGESIZE
20274# define getpagesize() sysconf(_SC_PAGESIZE)
20275# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020276# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020277# include <sys/param.h>
20278# ifdef EXEC_PAGESIZE
20279# define getpagesize() EXEC_PAGESIZE
20280# else /* no EXEC_PAGESIZE */
20281# ifdef NBPG
20282# define getpagesize() NBPG * CLSIZE
20283# ifndef CLSIZE
20284# define CLSIZE 1
20285# endif /* no CLSIZE */
20286# else /* no NBPG */
20287# ifdef NBPC
20288# define getpagesize() NBPC
20289# else /* no NBPC */
20290# ifdef PAGESIZE
20291# define getpagesize() PAGESIZE
20292# endif /* PAGESIZE */
20293# endif /* no NBPC */
20294# endif /* no NBPG */
20295# endif /* no EXEC_PAGESIZE */
20296# else /* no HAVE_SYS_PARAM_H */
20297# define getpagesize() 8192 /* punt totally */
20298# endif /* no HAVE_SYS_PARAM_H */
20299# endif /* no _SC_PAGESIZE */
20300
20301#endif /* no HAVE_GETPAGESIZE */
20302
20303int
20304main ()
20305{
20306 char *data, *data2, *data3;
20307 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020308 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020309
20310 pagesize = getpagesize ();
20311
20312 /* First, make a file with some known garbage in it. */
20313 data = (char *) malloc (pagesize);
20314 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020315 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020316 for (i = 0; i < pagesize; ++i)
20317 *(data + i) = rand ();
20318 umask (0);
20319 fd = creat ("conftest.mmap", 0600);
20320 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020321 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020322 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020323 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020324 close (fd);
20325
20326 /* Next, try to mmap the file at a fixed address which already has
20327 something else allocated at it. If we can, also make sure that
20328 we see the same garbage. */
20329 fd = open ("conftest.mmap", O_RDWR);
20330 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020331 return 1;
20332 data2 = (char *) malloc (2 * pagesize);
20333 if (!data2)
20334 return 1;
20335 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020336 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020337 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020338 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020339 for (i = 0; i < pagesize; ++i)
20340 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020341 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020342
20343 /* Finally, make sure that changes to the mapped area do not
20344 percolate back to the file as seen by read(). (This is a bug on
20345 some variants of i386 svr4.0.) */
20346 for (i = 0; i < pagesize; ++i)
20347 *(data2 + i) = *(data2 + i) + 1;
20348 data3 = (char *) malloc (pagesize);
20349 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020350 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020351 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020352 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020353 for (i = 0; i < pagesize; ++i)
20354 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020355 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020356 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020357 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020358}
20359_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360rm -f conftest$ac_exeext
20361if { (ac_try="$ac_link"
20362case "(($ac_try" in
20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364 *) ac_try_echo=$ac_try;;
20365esac
20366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367 (eval "$ac_link") 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20371 { (case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20374esac
20375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_try") 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020380 ac_cv_func_mmap_fixed_mapped=yes
20381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020382 echo "$as_me: program exited with status $ac_status" >&5
20383echo "$as_me: failed program was:" >&5
20384sed 's/^/| /' conftest.$ac_ext >&5
20385
20386( exit $ac_status )
20387ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020389rm -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 +000020390fi
Reid Spencera773bd52006-08-04 18:18:08 +000020391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020392
John Criswell7a73b802003-06-30 21:59:07 +000020393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20395echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020396if test $ac_cv_func_mmap_fixed_mapped = yes; then
20397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020398cat >>confdefs.h <<\_ACEOF
20399#define HAVE_MMAP 1
20400_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020401
20402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020403rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020405 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20406echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20407if test "${ac_cv_func_mmap_file+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020409else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020410 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020411ac_cpp='$CPP $CPPFLAGS'
20412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20414ac_compiler_gnu=$ac_cv_c_compiler_gnu
20415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020416 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020417 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020419 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020421 /* confdefs.h. */
20422_ACEOF
20423cat confdefs.h >>conftest.$ac_ext
20424cat >>conftest.$ac_ext <<_ACEOF
20425/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020426
John Criswell7a73b802003-06-30 21:59:07 +000020427#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020428#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020429#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020430
20431int
20432main ()
20433{
John Criswell7a73b802003-06-30 21:59:07 +000020434
20435 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020436 fd = creat ("foo",0777);
20437 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20438 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020439 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020440 ;
20441 return 0;
20442}
John Criswell7a73b802003-06-30 21:59:07 +000020443_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020444rm -f conftest$ac_exeext
20445if { (ac_try="$ac_link"
20446case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449esac
20450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_link") 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20455 { (case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458esac
20459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_try") 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020464 ac_cv_func_mmap_file=yes
20465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020466 echo "$as_me: program exited with status $ac_status" >&5
20467echo "$as_me: failed program was:" >&5
20468sed 's/^/| /' conftest.$ac_ext >&5
20469
20470( exit $ac_status )
20471ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020473rm -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 +000020474fi
Reid Spencera773bd52006-08-04 18:18:08 +000020475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020476
John Criswell7a73b802003-06-30 21:59:07 +000020477 ac_ext=c
20478ac_cpp='$CPP $CPPFLAGS'
20479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20481ac_compiler_gnu=$ac_cv_c_compiler_gnu
20482
20483
20484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020485{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20486echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020487if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020489cat >>confdefs.h <<\_ACEOF
20490#define HAVE_MMAP_FILE
20491_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020492
20493 MMAP_FILE=yes
20494
20495fi
20496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020497 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20498echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20499if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020501else
Reid Spencer582a23c2004-12-29 07:07:57 +000020502 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020503 ac_cv_need_dev_zero_for_mmap=yes
20504 else
20505 ac_cv_need_dev_zero_for_mmap=no
20506 fi
20507
20508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020509{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20510echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020511if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020513cat >>confdefs.h <<\_ACEOF
20514#define NEED_DEV_ZERO_FOR_MMAP 1
20515_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020516
20517fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020518
Reid Spencer30fe5262007-01-20 07:48:49 +000020519 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20520 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020521 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20522echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020523 fi
20524 if test "$ac_cv_func_mmap_file" = "no"
20525 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020526 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20527echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020528 fi
John Criswellb13092b2003-07-22 21:00:24 +000020529fi
John Criswell7a73b802003-06-30 21:59:07 +000020530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020531{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20532echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020533ac_ext=cpp
20534ac_cpp='$CXXCPP $CPPFLAGS'
20535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020539cat >conftest.$ac_ext <<_ACEOF
20540/* confdefs.h. */
20541_ACEOF
20542cat confdefs.h >>conftest.$ac_ext
20543cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020544/* end confdefs.h. */
20545int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020546 volatile unsigned long val = 1;
20547 __sync_synchronize();
20548 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020549 __sync_add_and_fetch(&val, 1);
20550 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020551 return 0;
20552 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020553
20554_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020555rm -f conftest.$ac_objext conftest$ac_exeext
20556if { (ac_try="$ac_link"
20557case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560esac
20561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_link") 2>conftest.er1
20563 ac_status=$?
20564 grep -v '^ *+' conftest.er1 >conftest.err
20565 rm -f conftest.er1
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570 { (case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20573esac
20574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_try") 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest$ac_exeext'
20580 { (case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583esac
20584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_try") 2>&5
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020589 ac_ext=c
20590ac_cpp='$CPP $CPPFLAGS'
20591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593ac_compiler_gnu=$ac_cv_c_compiler_gnu
20594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020595 { echo "$as_me:$LINENO: result: yes" >&5
20596echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020598cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020599#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020601
Owen Andersond4b272b2009-05-18 23:58:51 +000020602else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020603 echo "$as_me: failed program was:" >&5
20604sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020606 { echo "$as_me:$LINENO: result: no" >&5
20607echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020609cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020610#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020611_ACEOF
20612
20613 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20614echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616
Owen Andersond4b272b2009-05-18 23:58:51 +000020617rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020618 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020619
John Criswell7a73b802003-06-30 21:59:07 +000020620
Nick Lewycky4372e692009-09-29 06:18:23 +000020621if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020622 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20623echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20624if test "${llvm_cv_linux_mixed+set}" = set; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020626else
20627 ac_ext=c
20628ac_cpp='$CPP $CPPFLAGS'
20629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20631ac_compiler_gnu=$ac_cv_c_compiler_gnu
20632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020633 cat >conftest.$ac_ext <<_ACEOF
20634/* confdefs.h. */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020638/* end confdefs.h. */
20639#ifndef __x86_64__
20640 error: Not x86-64 even if uname says so!
20641 #endif
20642
20643int
20644main ()
20645{
20646
20647 ;
20648 return 0;
20649}
20650_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020651rm -f conftest.$ac_objext
20652if { (ac_try="$ac_compile"
20653case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20656esac
20657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_compile") 2>conftest.er1
20659 ac_status=$?
20660 grep -v '^ *+' conftest.er1 >conftest.err
20661 rm -f conftest.er1
20662 cat conftest.err >&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
20665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20666 { (case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20669esac
20670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_try") 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest.$ac_objext'
20676 { (case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679esac
20680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_try") 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020685 llvm_cv_linux_mixed=no
20686else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020687 echo "$as_me: failed program was:" >&5
20688sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692
Nick Lewycky4372e692009-09-29 06:18:23 +000020693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694 ac_ext=c
20695ac_cpp='$CPP $CPPFLAGS'
20696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20698ac_compiler_gnu=$ac_cv_c_compiler_gnu
20699
20700
20701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020702{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20703echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020704
20705 if test "$llvm_cv_linux_mixed" = "yes"; then
20706 llvm_cv_target_arch="x86"
20707 ARCH="x86"
20708 fi
20709fi
20710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020711
Reid Spencer9372f152007-07-30 20:13:24 +000020712for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020713do
20714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20715{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20717if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20719else
20720 cat >conftest.$ac_ext <<_ACEOF
20721/* confdefs.h. */
20722_ACEOF
20723cat confdefs.h >>conftest.$ac_ext
20724cat >>conftest.$ac_ext <<_ACEOF
20725/* end confdefs.h. */
20726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20728#define $ac_func innocuous_$ac_func
20729
20730/* System header to define __stub macros and hopefully few prototypes,
20731 which can conflict with char $ac_func (); below.
20732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20733 <limits.h> exists even on freestanding compilers. */
20734
20735#ifdef __STDC__
20736# include <limits.h>
20737#else
20738# include <assert.h>
20739#endif
20740
20741#undef $ac_func
20742
20743/* Override any GCC internal prototype to avoid an error.
20744 Use char because int might match the return type of a GCC
20745 builtin and then its argument prototype would still apply. */
20746#ifdef __cplusplus
20747extern "C"
20748#endif
20749char $ac_func ();
20750/* The GNU C library defines this for functions which it implements
20751 to always fail with ENOSYS. Some functions are actually named
20752 something starting with __ and the normal name is an alias. */
20753#if defined __stub_$ac_func || defined __stub___$ac_func
20754choke me
20755#endif
20756
20757int
20758main ()
20759{
20760return $ac_func ();
20761 ;
20762 return 0;
20763}
20764_ACEOF
20765rm -f conftest.$ac_objext conftest$ac_exeext
20766if { (ac_try="$ac_link"
20767case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770esac
20771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>conftest.er1
20773 ac_status=$?
20774 grep -v '^ *+' conftest.er1 >conftest.err
20775 rm -f conftest.er1
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
20779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20780 { (case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20783esac
20784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_try") 2>&5
20786 ac_status=$?
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; } &&
20789 { ac_try='test -s conftest$ac_exeext'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793esac
20794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
20799 eval "$as_ac_var=yes"
20800else
20801 echo "$as_me: failed program was:" >&5
20802sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 eval "$as_ac_var=no"
20805fi
20806
20807rm -f core conftest.err conftest.$ac_objext \
20808 conftest$ac_exeext conftest.$ac_ext
20809fi
20810ac_res=`eval echo '${'$as_ac_var'}'`
20811 { echo "$as_me:$LINENO: result: $ac_res" >&5
20812echo "${ECHO_T}$ac_res" >&6; }
20813if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020814 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020816_ACEOF
20817
20818fi
20819done
20820
20821
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020822SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020823
20824
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020825SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20826
20827
Reid Spencere9de0912004-08-20 09:03:57 +000020828# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020829# information into substitutions that will end up in Makefile.config.in
20830# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020831if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020832 prefix="/usr/local"
20833fi
Reid Spencere9de0912004-08-20 09:03:57 +000020834eval LLVM_PREFIX="${prefix}";
20835eval LLVM_BINDIR="${prefix}/bin";
20836eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020837eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020838eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020839eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020840eval LLVM_INCLUDEDIR="${prefix}/include";
20841eval LLVM_INFODIR="${prefix}/info";
20842eval LLVM_MANDIR="${prefix}/man";
20843LLVM_CONFIGTIME=`date`
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020855# Place the various directores into the config.h file as #defines so that we
20856# can know about the installation paths within LLVM.
20857
Reid Spencere9de0912004-08-20 09:03:57 +000020858cat >>confdefs.h <<_ACEOF
20859#define LLVM_PREFIX "$LLVM_PREFIX"
20860_ACEOF
20861
20862
20863cat >>confdefs.h <<_ACEOF
20864#define LLVM_BINDIR "$LLVM_BINDIR"
20865_ACEOF
20866
20867
20868cat >>confdefs.h <<_ACEOF
20869#define LLVM_LIBDIR "$LLVM_LIBDIR"
20870_ACEOF
20871
20872
20873cat >>confdefs.h <<_ACEOF
20874#define LLVM_DATADIR "$LLVM_DATADIR"
20875_ACEOF
20876
20877
20878cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020879#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020880_ACEOF
20881
20882
20883cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020884#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020885_ACEOF
20886
20887
20888cat >>confdefs.h <<_ACEOF
20889#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20890_ACEOF
20891
20892
20893cat >>confdefs.h <<_ACEOF
20894#define LLVM_INFODIR "$LLVM_INFODIR"
20895_ACEOF
20896
20897
20898cat >>confdefs.h <<_ACEOF
20899#define LLVM_MANDIR "$LLVM_MANDIR"
20900_ACEOF
20901
20902
20903cat >>confdefs.h <<_ACEOF
20904#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20905_ACEOF
20906
20907
Eric Christopher790e11c2007-12-01 00:34:39 +000020908cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020909#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020910_ACEOF
20911
20912
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020913# Determine which bindings to build.
20914if test "$BINDINGS_TO_BUILD" = auto ; then
20915 BINDINGS_TO_BUILD=""
20916 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20917 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20918 fi
20919fi
20920BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20921
20922
20923# This isn't really configurey, but it avoids having to repeat the list in
20924# other files.
20925ALL_BINDINGS=ocaml
20926
20927
Gordon Henriksenf0915682007-10-02 16:42:22 +000020928# Do any work necessary to ensure that bindings have what they need.
20929binding_prereqs_failed=0
20930for a_binding in $BINDINGS_TO_BUILD ; do
20931 case "$a_binding" in
20932 ocaml)
20933 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020934 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20935echo "$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 +000020936 binding_prereqs_failed=1
20937 fi
20938 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020939 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20940echo "$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 +000020941 binding_prereqs_failed=1
20942 fi
20943 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20945echo "$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 +000020946 fi
20947 if test "x$with_ocaml_libdir" != xauto ; then
20948 OCAML_LIBDIR=$with_ocaml_libdir
20949
20950 else
20951 ocaml_stdlib="`"$OCAMLC" -where`"
20952 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20953 then
20954 # ocaml stdlib is beneath our prefix; use stdlib
20955 OCAML_LIBDIR=$ocaml_stdlib
20956
20957 else
20958 # ocaml stdlib is outside our prefix; use libdir/ocaml
20959 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20960
20961 fi
20962 fi
20963 ;;
20964 esac
20965done
20966if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020967 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20968echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20969 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020970fi
20971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020972{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20973echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20974if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020976else
20977 ac_ext=cpp
20978ac_cpp='$CXXCPP $CPPFLAGS'
20979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20982
20983 oldcxxflags="$CXXFLAGS"
20984 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985 cat >conftest.$ac_ext <<_ACEOF
20986/* confdefs.h. */
20987_ACEOF
20988cat confdefs.h >>conftest.$ac_ext
20989cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020990/* end confdefs.h. */
20991
20992int
20993main ()
20994{
20995
20996 ;
20997 return 0;
20998}
20999_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021000rm -f conftest.$ac_objext
21001if { (ac_try="$ac_compile"
21002case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21005esac
21006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007 (eval "$ac_compile") 2>conftest.er1
21008 ac_status=$?
21009 grep -v '^ *+' conftest.er1 >conftest.err
21010 rm -f conftest.er1
21011 cat conftest.err >&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } &&
21014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21015 { (case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21018esac
21019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_try") 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; } &&
21024 { ac_try='test -s conftest.$ac_objext'
21025 { (case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21028esac
21029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_try") 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021034 llvm_cv_cxx_visibility_inlines_hidden=yes
21035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021036 echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021041
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21043 CXXFLAGS="$oldcxxflags"
21044 ac_ext=c
21045ac_cpp='$CPP $CPPFLAGS'
21046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048ac_compiler_gnu=$ac_cv_c_compiler_gnu
21049
21050
21051fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021052{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21053echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021054if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21055 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21056
21057else
21058 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21059
21060fi
21061
Gordon Henriksenf0915682007-10-02 16:42:22 +000021062
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021063if test "$llvm_cv_link_use_r" = "yes" ; then
21064 RPATH="-Wl,-R"
21065else
21066 RPATH="-Wl,-rpath"
21067fi
21068
21069
21070if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21071 RDYNAMIC="-Wl,-export-dynamic"
21072else
21073 RDYNAMIC=""
21074fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021075
21076
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021077
Eric Christophera1cba682010-08-08 02:44:25 +000021078ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021079
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021080
21081
21082
21083
21084
Douglas Gregor1555a232009-06-16 20:12:29 +000021085ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21086
21087ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21088
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021089ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21090
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021091ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21092
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021093ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021094
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021095
Reid Spencera773bd52006-08-04 18:18:08 +000021096ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021097
Eric Christopher360fa9a2011-10-26 00:42:12 +000021098
Reid Spencerea949cf2006-08-16 00:45:38 +000021099ac_config_files="$ac_config_files llvm.spec"
21100
21101
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021102ac_config_files="$ac_config_files docs/doxygen.cfg"
21103
21104if test -f ${srcdir}/tools/clang/README.txt; then
21105 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21106
21107fi
21108
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021109ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021110
Eric Christopher360fa9a2011-10-26 00:42:12 +000021111
Reid Spencera773bd52006-08-04 18:18:08 +000021112ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021113
Reid Spencera773bd52006-08-04 18:18:08 +000021114ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021115
21116
Reid Spencera773bd52006-08-04 18:18:08 +000021117ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021118
21119
Reid Spencera773bd52006-08-04 18:18:08 +000021120ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021121
21122
Reid Spencera773bd52006-08-04 18:18:08 +000021123ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021124
21125
Reid Spencer8b2e1412006-11-17 03:32:33 +000021126ac_config_commands="$ac_config_commands runtime/Makefile"
21127
21128
Reid Spencera773bd52006-08-04 18:18:08 +000021129ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021130
21131
Reid Spencera773bd52006-08-04 18:18:08 +000021132ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021133
21134
Bill Wendlingf24eb392009-01-04 23:12:30 +000021135ac_config_commands="$ac_config_commands unittests/Makefile"
21136
21137
Reid Spencera773bd52006-08-04 18:18:08 +000021138ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021139
21140
Reid Spencera773bd52006-08-04 18:18:08 +000021141ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021142
21143
Reid Spencera773bd52006-08-04 18:18:08 +000021144ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021145
21146
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021147ac_config_commands="$ac_config_commands bindings/Makefile"
21148
21149
21150ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21151
21152
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021153
John Criswell7a73b802003-06-30 21:59:07 +000021154cat >confcache <<\_ACEOF
21155# This file is a shell script that caches the results of configure
21156# tests run on this system so they can be shared between configure
21157# scripts and configure runs, see configure's option --config-cache.
21158# It is not useful on other systems. If it contains results you don't
21159# want to keep, you may remove or edit it.
21160#
21161# config.status only pays attention to the cache file if you give it
21162# the --recheck option to rerun configure.
21163#
John Criswell0c38eaf2003-09-10 15:17:25 +000021164# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021165# loading this file, other *unset* `ac_cv_foo' will be assigned the
21166# following values.
21167
21168_ACEOF
21169
21170# The following way of writing the cache mishandles newlines in values,
21171# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021172# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021173# Ultrix sh set writes to stderr and can't be redirected directly,
21174# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021175(
21176 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21177 eval ac_val=\$$ac_var
21178 case $ac_val in #(
21179 *${as_nl}*)
21180 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021181 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21182echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021183 esac
21184 case $ac_var in #(
21185 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021186 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021187 esac ;;
21188 esac
21189 done
21190
John Criswell7a73b802003-06-30 21:59:07 +000021191 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021192 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21193 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021194 # `set' does not quote correctly, so add quotes (double-quote
21195 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021196 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021197 "s/'/'\\\\''/g;
21198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021199 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021200 *)
21201 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021203 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021204 esac |
21205 sort
21206) |
John Criswell7a73b802003-06-30 21:59:07 +000021207 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021208 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021209 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021210 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021211 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21212 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021213 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21214 :end' >>confcache
21215if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21216 if test -w "$cache_file"; then
21217 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021218 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21219echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021220 cat confcache >$cache_file
21221 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021222 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21223echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021224 fi
21225fi
21226rm -f confcache
21227
21228test "x$prefix" = xNONE && prefix=$ac_default_prefix
21229# Let make expand exec_prefix.
21230test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21231
John Criswell7a73b802003-06-30 21:59:07 +000021232DEFS=-DHAVE_CONFIG_H
21233
John Criswell0c38eaf2003-09-10 15:17:25 +000021234ac_libobjs=
21235ac_ltlibobjs=
21236for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21237 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021238 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021239 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021240 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21241 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021242 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21243 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021244done
21245LIBOBJS=$ac_libobjs
21246
21247LTLIBOBJS=$ac_ltlibobjs
21248
21249
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021250if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21252Usually this means the macro was only invoked conditionally." >&5
21253echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21254Usually this means the macro was only invoked conditionally." >&2;}
21255 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021256fi
21257if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021258 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21259Usually this means the macro was only invoked conditionally." >&5
21260echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21261Usually this means the macro was only invoked conditionally." >&2;}
21262 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021263fi
John Criswell7a73b802003-06-30 21:59:07 +000021264
21265: ${CONFIG_STATUS=./config.status}
21266ac_clean_files_save=$ac_clean_files
21267ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021268{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21269echo "$as_me: creating $CONFIG_STATUS" >&6;}
21270cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021271#! $SHELL
21272# Generated by $as_me.
21273# Run this file to recreate the current configuration.
21274# Compiler output produced by configure, useful for debugging
21275# configure, is in config.log if it exists.
21276
21277debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021278ac_cs_recheck=false
21279ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021280SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021281_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283cat >>$CONFIG_STATUS <<\_ACEOF
21284## --------------------- ##
21285## M4sh Initialization. ##
21286## --------------------- ##
21287
21288# Be Bourne compatible
21289if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021290 emulate sh
21291 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021292 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021293 # is contrary to our usage. Disable this feature.
21294 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021295 setopt NO_GLOB_SUBST
21296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021297 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021299BIN_SH=xpg4; export BIN_SH # for Tru64
21300DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021301
John Criswell7a73b802003-06-30 21:59:07 +000021302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021303# PATH needs CR
21304# Avoid depending upon Character Ranges.
21305as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21306as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21307as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21308as_cr_digits='0123456789'
21309as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021310
21311# The user is always right.
21312if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021313 echo "#! /bin/sh" >conf$$.sh
21314 echo "exit 0" >>conf$$.sh
21315 chmod +x conf$$.sh
21316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21317 PATH_SEPARATOR=';'
21318 else
21319 PATH_SEPARATOR=:
21320 fi
21321 rm -f conf$$.sh
21322fi
21323
21324# Support unset when possible.
21325if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21326 as_unset=unset
21327else
21328 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021329fi
John Criswell7a73b802003-06-30 21:59:07 +000021330
Reid Spencera773bd52006-08-04 18:18:08 +000021331
21332# IFS
21333# We need space, tab and new line, in precisely that order. Quoting is
21334# there to prevent editors from complaining about space-tab.
21335# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21336# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021337as_nl='
21338'
Reid Spencera773bd52006-08-04 18:18:08 +000021339IFS=" "" $as_nl"
21340
21341# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021342case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021343 *[\\/]* ) as_myself=$0 ;;
21344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021345for as_dir in $PATH
21346do
21347 IFS=$as_save_IFS
21348 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21350done
Reid Spencera773bd52006-08-04 18:18:08 +000021351IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021352
Reid Spencera773bd52006-08-04 18:18:08 +000021353 ;;
21354esac
21355# We did not find ourselves, most probably we were run as `sh COMMAND'
21356# in which case we are not to be found in the path.
21357if test "x$as_myself" = x; then
21358 as_myself=$0
21359fi
21360if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021361 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21362 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021363fi
21364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021365# Work around bugs in pre-3.0 UWIN ksh.
21366for as_var in ENV MAIL MAILPATH
21367do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021368done
21369PS1='$ '
21370PS2='> '
21371PS4='+ '
21372
21373# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021374for as_var in \
21375 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21376 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21377 LC_TELEPHONE LC_TIME
21378do
21379 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21380 eval $as_var=C; export $as_var
21381 else
21382 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021383 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021384done
Torok Edwin871384f2010-01-26 08:50:50 +000021385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021386# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021387if expr a : '\(a\)' >/dev/null 2>&1 &&
21388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21389 as_expr=expr
21390else
21391 as_expr=false
21392fi
21393
21394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21395 as_basename=basename
21396else
21397 as_basename=false
21398fi
21399
21400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021401# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021402as_me=`$as_basename -- "$0" ||
21403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21404 X"$0" : 'X\(//\)$' \| \
21405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021406echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021407 sed '/^.*\/\([^/][^/]*\)\/*$/{
21408 s//\1/
21409 q
21410 }
21411 /^X\/\(\/\/\)$/{
21412 s//\1/
21413 q
21414 }
21415 /^X\/\(\/\).*/{
21416 s//\1/
21417 q
21418 }
21419 s/.*/./; q'`
21420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021421# CDPATH.
21422$as_unset CDPATH
21423
21424
21425
21426 as_lineno_1=$LINENO
21427 as_lineno_2=$LINENO
21428 test "x$as_lineno_1" != "x$as_lineno_2" &&
21429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21430
21431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21432 # uniformly replaced by the line number. The first 'sed' inserts a
21433 # line-number line after each line using $LINENO; the second 'sed'
21434 # does the real work. The second script uses 'N' to pair each
21435 # line-number line with the line containing $LINENO, and appends
21436 # trailing '-' during substitution so that $LINENO is not a special
21437 # case at line end.
21438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21439 # scripts with optimization help from Paolo Bonzini. Blame Lee
21440 # E. McMahon (1931-1989) for sed's syntax. :-)
21441 sed -n '
21442 p
21443 /[$]LINENO/=
21444 ' <$as_myself |
21445 sed '
21446 s/[$]LINENO.*/&-/
21447 t lineno
21448 b
21449 :lineno
21450 N
21451 :loop
21452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21453 t loop
21454 s/-\n.*//
21455 ' >$as_me.lineno &&
21456 chmod +x "$as_me.lineno" ||
21457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21458 { (exit 1); exit 1; }; }
21459
21460 # Don't try to exec as it changes $[0], causing all sort of problems
21461 # (the dirname of $[0] is not the place where we might find the
21462 # original and so on. Autoconf is especially sensitive to this).
21463 . "./$as_me.lineno"
21464 # Exit status is that of the last command.
21465 exit
21466}
21467
21468
21469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21470 as_dirname=dirname
21471else
21472 as_dirname=false
21473fi
Reid Spencera773bd52006-08-04 18:18:08 +000021474
21475ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021476case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021477-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021480 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021481 esac;;
21482*)
21483 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021484esac
21485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021486if expr a : '\(a\)' >/dev/null 2>&1 &&
21487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21488 as_expr=expr
21489else
21490 as_expr=false
21491fi
21492
John Criswell7a73b802003-06-30 21:59:07 +000021493rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021494if test -d conf$$.dir; then
21495 rm -f conf$$.dir/conf$$.file
21496else
21497 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021498 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021500echo >conf$$.file
21501if ln -s conf$$.file conf$$ 2>/dev/null; then
21502 as_ln_s='ln -s'
21503 # ... but there are two gotchas:
21504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21506 # In both cases, we have to default to `cp -p'.
21507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021508 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021509elif ln conf$$.file conf$$ 2>/dev/null; then
21510 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021511else
21512 as_ln_s='cp -p'
21513fi
Reid Spencera773bd52006-08-04 18:18:08 +000021514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21515rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021516
John Criswell0c38eaf2003-09-10 15:17:25 +000021517if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021519else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021520 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021521 as_mkdir_p=false
21522fi
21523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021524# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21525# systems may use methods other than mode bits to determine executability.
21526cat >conf$$.file <<_ASEOF
21527#! /bin/sh
21528exit 0
21529_ASEOF
21530chmod +x conf$$.file
21531if test -x conf$$.file >/dev/null 2>&1; then
21532 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021534 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021535fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021537
21538# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021540
21541# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021543
21544
John Criswell7a73b802003-06-30 21:59:07 +000021545exec 6>&1
21546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021548# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021549# values after options handling.
21550ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021551This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021553
21554 CONFIG_FILES = $CONFIG_FILES
21555 CONFIG_HEADERS = $CONFIG_HEADERS
21556 CONFIG_LINKS = $CONFIG_LINKS
21557 CONFIG_COMMANDS = $CONFIG_COMMANDS
21558 $ $0 $@
21559
Reid Spencera773bd52006-08-04 18:18:08 +000021560on `(hostname || uname -n) 2>/dev/null | sed 1q`
21561"
21562
John Criswell7a73b802003-06-30 21:59:07 +000021563_ACEOF
21564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021565cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021566# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021567config_files="$ac_config_files"
21568config_headers="$ac_config_headers"
21569config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021570
Reid Spencera773bd52006-08-04 18:18:08 +000021571_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021574ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575\`$as_me' instantiates files from templates according to the
21576current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021578Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021579
21580 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581 -V, --version print version number, then exit
21582 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021583 -d, --debug don't remove temporary files
21584 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021585 --file=FILE[:TEMPLATE]
21586 instantiate the configuration file FILE
21587 --header=FILE[:TEMPLATE]
21588 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021589
21590Configuration files:
21591$config_files
21592
21593Configuration headers:
21594$config_headers
21595
John Criswellc764fbc2003-09-06 15:17:13 +000021596Configuration commands:
21597$config_commands
21598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021599Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021600
Reid Spencera773bd52006-08-04 18:18:08 +000021601_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021603ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021604llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021605configured by $0, generated by GNU Autoconf 2.60,
21606 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021608Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021609This config.status script is free software; the Free Software Foundation
21610gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021611
21612ac_pwd='$ac_pwd'
21613srcdir='$srcdir'
21614INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021615_ACEOF
21616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617cat >>$CONFIG_STATUS <<\_ACEOF
21618# If no file are specified by the user, then we need to provide default
21619# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021620ac_need_defaults=:
21621while test $# != 0
21622do
21623 case $1 in
21624 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21626 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021627 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021628 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021629 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021630 ac_option=$1
21631 ac_optarg=$2
21632 ac_shift=shift
21633 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021634 esac
21635
John Criswell0c38eaf2003-09-10 15:17:25 +000021636 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021637 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21639 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021641 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021642 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021643 debug=: ;;
21644 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021645 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021646 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021647 ac_need_defaults=false;;
21648 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021649 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021651 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021652 --he | --h)
21653 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021654 { echo "$as_me: error: ambiguous option: $1
21655Try \`$0 --help' for more information." >&2
21656 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021657 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021658 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21661 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021662
21663 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664 -*) { echo "$as_me: error: unrecognized option: $1
21665Try \`$0 --help' for more information." >&2
21666 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021668 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021669 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021670
21671 esac
21672 shift
21673done
21674
John Criswell0c38eaf2003-09-10 15:17:25 +000021675ac_configure_extra_args=
21676
21677if $ac_cs_silent; then
21678 exec 6>/dev/null
21679 ac_configure_extra_args="$ac_configure_extra_args --silent"
21680fi
21681
21682_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021683cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021684if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021685 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21686 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021687 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021688 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021689fi
21690
John Criswell7a73b802003-06-30 21:59:07 +000021691_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021692cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021693exec 5>>config.log
21694{
21695 echo
21696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21697## Running $as_me. ##
21698_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021699 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021700} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021701
Reid Spencera773bd52006-08-04 18:18:08 +000021702_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021703cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021704#
Reid Spencera773bd52006-08-04 18:18:08 +000021705# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021706#
Reid Spencerc0682832005-02-24 19:05:19 +000021707llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021708
21709_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021711cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021712
21713# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021714for ac_config_target in $ac_config_targets
21715do
Reid Spencera773bd52006-08-04 18:18:08 +000021716 case $ac_config_target in
21717 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021718 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021719 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21720 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021721 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021722 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021723 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021724 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021725 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021726 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21727 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021728 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021729 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21730 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21731 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21732 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21733 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021734 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021735 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21736 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021737 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021738 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21739 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21740 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021741 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21742 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021744 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21745echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21746 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021747 esac
21748done
21749
Reid Spencera773bd52006-08-04 18:18:08 +000021750
John Criswell7a73b802003-06-30 21:59:07 +000021751# If the user did not use the arguments to specify the items to instantiate,
21752# then the envvar interface is used. Set only those that are not.
21753# We use the long form for the default assignment because of an extremely
21754# bizarre bug on SunOS 4.1.3.
21755if $ac_need_defaults; then
21756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021759fi
21760
John Criswell0c38eaf2003-09-10 15:17:25 +000021761# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021762# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021763# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021764# Hook for its removal unless debugging.
21765# Note that there is a small window in which the directory will not be cleaned:
21766# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021767$debug ||
21768{
Reid Spencera773bd52006-08-04 18:18:08 +000021769 tmp=
21770 trap 'exit_status=$?
21771 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21772' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021773 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021774}
John Criswell7a73b802003-06-30 21:59:07 +000021775# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021776
John Criswell7a73b802003-06-30 21:59:07 +000021777{
Reid Spencera773bd52006-08-04 18:18:08 +000021778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021779 test -n "$tmp" && test -d "$tmp"
21780} ||
21781{
Reid Spencera773bd52006-08-04 18:18:08 +000021782 tmp=./conf$$-$RANDOM
21783 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021784} ||
21785{
21786 echo "$me: cannot create a temporary directory in ." >&2
21787 { (exit 1); exit 1; }
21788}
John Criswell7a73b802003-06-30 21:59:07 +000021789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021790#
21791# Set up the sed scripts for CONFIG_FILES section.
21792#
21793
21794# No need to generate the scripts if there are no CONFIG_FILES.
21795# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021796if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021797
21798_ACEOF
21799
Reid Spencera773bd52006-08-04 18:18:08 +000021800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021801
Reid Spencera773bd52006-08-04 18:18:08 +000021802ac_delim='%!_!# '
21803for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804 cat >conf$$subs.sed <<_ACEOF
21805SHELL!$SHELL$ac_delim
21806PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21807PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21808PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21809PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21810PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21811PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21812exec_prefix!$exec_prefix$ac_delim
21813prefix!$prefix$ac_delim
21814program_transform_name!$program_transform_name$ac_delim
21815bindir!$bindir$ac_delim
21816sbindir!$sbindir$ac_delim
21817libexecdir!$libexecdir$ac_delim
21818datarootdir!$datarootdir$ac_delim
21819datadir!$datadir$ac_delim
21820sysconfdir!$sysconfdir$ac_delim
21821sharedstatedir!$sharedstatedir$ac_delim
21822localstatedir!$localstatedir$ac_delim
21823includedir!$includedir$ac_delim
21824oldincludedir!$oldincludedir$ac_delim
21825docdir!$docdir$ac_delim
21826infodir!$infodir$ac_delim
21827htmldir!$htmldir$ac_delim
21828dvidir!$dvidir$ac_delim
21829pdfdir!$pdfdir$ac_delim
21830psdir!$psdir$ac_delim
21831libdir!$libdir$ac_delim
21832localedir!$localedir$ac_delim
21833mandir!$mandir$ac_delim
21834DEFS!$DEFS$ac_delim
21835ECHO_C!$ECHO_C$ac_delim
21836ECHO_N!$ECHO_N$ac_delim
21837ECHO_T!$ECHO_T$ac_delim
21838LIBS!$LIBS$ac_delim
21839build_alias!$build_alias$ac_delim
21840host_alias!$host_alias$ac_delim
21841target_alias!$target_alias$ac_delim
21842LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021843CC!$CC$ac_delim
21844CFLAGS!$CFLAGS$ac_delim
21845LDFLAGS!$LDFLAGS$ac_delim
21846CPPFLAGS!$CPPFLAGS$ac_delim
21847ac_ct_CC!$ac_ct_CC$ac_delim
21848EXEEXT!$EXEEXT$ac_delim
21849OBJEXT!$OBJEXT$ac_delim
21850CXX!$CXX$ac_delim
21851CXXFLAGS!$CXXFLAGS$ac_delim
21852ac_ct_CXX!$ac_ct_CXX$ac_delim
21853CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021854subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021855ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21856LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021857build!$build$ac_delim
21858build_cpu!$build_cpu$ac_delim
21859build_vendor!$build_vendor$ac_delim
21860build_os!$build_os$ac_delim
21861host!$host$ac_delim
21862host_cpu!$host_cpu$ac_delim
21863host_vendor!$host_vendor$ac_delim
21864host_os!$host_os$ac_delim
21865target!$target$ac_delim
21866target_cpu!$target_cpu$ac_delim
21867target_vendor!$target_vendor$ac_delim
21868target_os!$target_os$ac_delim
21869OS!$OS$ac_delim
21870HOST_OS!$HOST_OS$ac_delim
21871TARGET_OS!$TARGET_OS$ac_delim
21872LINKALL!$LINKALL$ac_delim
21873NOLINKALL!$NOLINKALL$ac_delim
21874LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21875LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21876ARCH!$ARCH$ac_delim
21877ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878GREP!$GREP$ac_delim
21879EGREP!$EGREP$ac_delim
21880LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21881BUILD_CC!$BUILD_CC$ac_delim
21882BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21883BUILD_CXX!$BUILD_CXX$ac_delim
21884CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021885ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21887ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21888DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21889ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21890EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21891DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21892DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21893JIT!$JIT$ac_delim
21894TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021895ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021896ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021897LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021898ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021899ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021900ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021901ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021905 break
21906 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21908echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21909 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021910 else
21911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021912 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021913done
21914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021915ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21916if test -n "$ac_eof"; then
21917 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21918 ac_eof=`expr $ac_eof + 1`
21919fi
21920
21921cat >>$CONFIG_STATUS <<_ACEOF
21922cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21923/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021924_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021925sed '
21926s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21927s/^/s,@/; s/!/@,|#_!!_#|/
21928:n
21929t n
21930s/'"$ac_delim"'$/,g/; t
21931s/$/\\/; p
21932N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21933' >>$CONFIG_STATUS <conf$$subs.sed
21934rm -f conf$$subs.sed
21935cat >>$CONFIG_STATUS <<_ACEOF
21936CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021937_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938
21939
21940ac_delim='%!_!# '
21941for ac_last_try in false false false false false :; do
21942 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021943ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021944TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21945LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21946LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021947LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021948LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021949ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021950OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021951EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021952EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021953CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021954BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021955INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956NM!$NM$ac_delim
21957ifGNUmake!$ifGNUmake$ac_delim
21958LN_S!$LN_S$ac_delim
21959CMP!$CMP$ac_delim
21960CP!$CP$ac_delim
21961DATE!$DATE$ac_delim
21962FIND!$FIND$ac_delim
21963MKDIR!$MKDIR$ac_delim
21964MV!$MV$ac_delim
21965RANLIB!$RANLIB$ac_delim
21966AR!$AR$ac_delim
21967RM!$RM$ac_delim
21968SED!$SED$ac_delim
21969TAR!$TAR$ac_delim
21970BINPWD!$BINPWD$ac_delim
21971GRAPHVIZ!$GRAPHVIZ$ac_delim
21972DOT!$DOT$ac_delim
21973FDP!$FDP$ac_delim
21974NEATO!$NEATO$ac_delim
21975TWOPI!$TWOPI$ac_delim
21976CIRCO!$CIRCO$ac_delim
21977GV!$GV$ac_delim
21978DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021979XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980PERL!$PERL$ac_delim
21981HAVE_PERL!$HAVE_PERL$ac_delim
21982INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21983INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21984INSTALL_DATA!$INSTALL_DATA$ac_delim
21985BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021986CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021987DOXYGEN!$DOXYGEN$ac_delim
21988GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021989GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021990POD2HTML!$POD2HTML$ac_delim
21991POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021992PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021993RUNTEST!$RUNTEST$ac_delim
21994TCLSH!$TCLSH$ac_delim
21995ZIP!$ZIP$ac_delim
21996OCAMLC!$OCAMLC$ac_delim
21997OCAMLOPT!$OCAMLOPT$ac_delim
21998OCAMLDEP!$OCAMLDEP$ac_delim
21999OCAMLDOC!$OCAMLDOC$ac_delim
22000GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022001HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022002INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22003INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22004CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22005CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22006LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022007NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22008NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22009USE_UDIS86!$USE_UDIS86$ac_delim
22010USE_OPROFILE!$USE_OPROFILE$ac_delim
22011HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22012HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22013MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022014SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022015SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022016LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22017LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22018LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22019LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22020LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22021LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22022LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22023LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22024LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22025LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22026BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22027ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022028OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22029ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22030RPATH!$RPATH$ac_delim
22031RDYNAMIC!$RDYNAMIC$ac_delim
22032LIBOBJS!$LIBOBJS$ac_delim
22033LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022034_ACEOF
22035
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022036 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022037 break
22038 elif $ac_last_try; then
22039 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22040echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22041 { (exit 1); exit 1; }; }
22042 else
22043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22044 fi
22045done
22046
22047ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22048if test -n "$ac_eof"; then
22049 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22050 ac_eof=`expr $ac_eof + 1`
22051fi
22052
22053cat >>$CONFIG_STATUS <<_ACEOF
22054cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22056_ACEOF
22057sed '
22058s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22059s/^/s,@/; s/!/@,|#_!!_#|/
22060:n
22061t n
22062s/'"$ac_delim"'$/,g/; t
22063s/$/\\/; p
22064N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22065' >>$CONFIG_STATUS <conf$$subs.sed
22066rm -f conf$$subs.sed
22067cat >>$CONFIG_STATUS <<_ACEOF
22068:end
22069s/|#_!!_#|//g
22070CEOF$ac_eof
22071_ACEOF
22072
22073
Reid Spencera773bd52006-08-04 18:18:08 +000022074# VPATH may cause trouble with some makes, so we remove $(srcdir),
22075# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22076# trailing colons and then remove the whole line if VPATH becomes empty
22077# (actually we leave an empty line to preserve line numbers).
22078if test "x$srcdir" = x.; then
22079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22080s/:*\$(srcdir):*/:/
22081s/:*\${srcdir}:*/:/
22082s/:*@srcdir@:*/:/
22083s/^\([^=]*=[ ]*\):*/\1/
22084s/:*$//
22085s/^[^=]*=[ ]*$//
22086}'
22087fi
22088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022089cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022090fi # test -n "$CONFIG_FILES"
22091
Reid Spencera773bd52006-08-04 18:18:08 +000022092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022093for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022094do
22095 case $ac_tag in
22096 :[FHLC]) ac_mode=$ac_tag; continue;;
22097 esac
22098 case $ac_mode$ac_tag in
22099 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022100 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22101echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22102 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022103 :[FH]-) ac_tag=-:-;;
22104 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22105 esac
22106 ac_save_IFS=$IFS
22107 IFS=:
22108 set x $ac_tag
22109 IFS=$ac_save_IFS
22110 shift
22111 ac_file=$1
22112 shift
22113
22114 case $ac_mode in
22115 :L) ac_source=$1;;
22116 :[FH])
22117 ac_file_inputs=
22118 for ac_f
22119 do
22120 case $ac_f in
22121 -) ac_f="$tmp/stdin";;
22122 *) # Look for the file first in the build tree, then in the source tree
22123 # (if the path is not absolute). The absolute path cannot be DOS-style,
22124 # because $ac_f cannot contain `:'.
22125 test -f "$ac_f" ||
22126 case $ac_f in
22127 [\\/$]*) false;;
22128 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22129 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022130 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22131echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22132 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022133 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022134 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022135 done
22136
22137 # Let's still pretend it is `configure' which instantiates (i.e., don't
22138 # use $as_me), people would be surprised to read:
22139 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022140 configure_input="Generated from "`IFS=:
22141 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022142 if test x"$ac_file" != x-; then
22143 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144 { echo "$as_me:$LINENO: creating $ac_file" >&5
22145echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022146 fi
22147
22148 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022150 esac
22151 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022152 esac
22153
Reid Spencera773bd52006-08-04 18:18:08 +000022154 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022155$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022156 X"$ac_file" : 'X\(//\)[^/]' \| \
22157 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161 s//\1/
22162 q
22163 }
22164 /^X\(\/\/\)[^/].*/{
22165 s//\1/
22166 q
22167 }
22168 /^X\(\/\/\)$/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\).*/{
22173 s//\1/
22174 q
22175 }
22176 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022177 { as_dir="$ac_dir"
22178 case $as_dir in #(
22179 -*) as_dir=./$as_dir;;
22180 esac
22181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22182 as_dirs=
22183 while :; do
22184 case $as_dir in #(
22185 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22186 *) as_qdir=$as_dir;;
22187 esac
22188 as_dirs="'$as_qdir' $as_dirs"
22189 as_dir=`$as_dirname -- "$as_dir" ||
22190$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191 X"$as_dir" : 'X\(//\)[^/]' \| \
22192 X"$as_dir" : 'X\(//\)$' \| \
22193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22194echo X"$as_dir" |
22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196 s//\1/
22197 q
22198 }
22199 /^X\(\/\/\)[^/].*/{
22200 s//\1/
22201 q
22202 }
22203 /^X\(\/\/\)$/{
22204 s//\1/
22205 q
22206 }
22207 /^X\(\/\).*/{
22208 s//\1/
22209 q
22210 }
22211 s/.*/./; q'`
22212 test -d "$as_dir" && break
22213 done
22214 test -z "$as_dirs" || eval "mkdir $as_dirs"
22215 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22216echo "$as_me: error: cannot create directory $as_dir" >&2;}
22217 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022218 ac_builddir=.
22219
Reid Spencera773bd52006-08-04 18:18:08 +000022220case "$ac_dir" in
22221.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22222*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022224 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022225 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022226 case $ac_top_builddir_sub in
22227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22229 esac ;;
22230esac
22231ac_abs_top_builddir=$ac_pwd
22232ac_abs_builddir=$ac_pwd$ac_dir_suffix
22233# for backward compatibility:
22234ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022235
22236case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022237 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022238 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022239 ac_top_srcdir=$ac_top_builddir_sub
22240 ac_abs_top_srcdir=$ac_pwd ;;
22241 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022242 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022243 ac_top_srcdir=$srcdir
22244 ac_abs_top_srcdir=$srcdir ;;
22245 *) # Relative name.
22246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22247 ac_top_srcdir=$ac_top_build_prefix$srcdir
22248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022249esac
Reid Spencera773bd52006-08-04 18:18:08 +000022250ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022251
John Criswell7a73b802003-06-30 21:59:07 +000022252
Reid Spencera773bd52006-08-04 18:18:08 +000022253 case $ac_mode in
22254 :F)
22255 #
22256 # CONFIG_FILE
22257 #
John Criswell7a73b802003-06-30 21:59:07 +000022258
22259 case $INSTALL in
22260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022262 esac
John Criswell7a73b802003-06-30 21:59:07 +000022263_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022265cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022266# If the template does not know about datarootdir, expand it.
22267# FIXME: This hack should be removed a few years after 2.60.
22268ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022269
22270case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022271 p
22272 q
22273}
22274/@datadir@/p
22275/@docdir@/p
22276/@infodir@/p
22277/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022278/@mandir@/p
22279' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022280*datarootdir*) ac_datarootdir_seen=yes;;
22281*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022282 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22283echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022285cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022286 ac_datarootdir_hack='
22287 s&@datadir@&$datadir&g
22288 s&@docdir@&$docdir&g
22289 s&@infodir@&$infodir&g
22290 s&@localedir@&$localedir&g
22291 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022292 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022293esac
22294_ACEOF
22295
22296# Neutralize VPATH when `$srcdir' = `.'.
22297# Shell code in configure.ac might set extrasub.
22298# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022299cat >>$CONFIG_STATUS <<_ACEOF
22300 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022301$extrasub
22302_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022303cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022304:t
22305/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022306s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022307s&@top_builddir@&$ac_top_builddir_sub&;t t
22308s&@srcdir@&$ac_srcdir&;t t
22309s&@abs_srcdir@&$ac_abs_srcdir&;t t
22310s&@top_srcdir@&$ac_top_srcdir&;t t
22311s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22312s&@builddir@&$ac_builddir&;t t
22313s&@abs_builddir@&$ac_abs_builddir&;t t
22314s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22315s&@INSTALL@&$ac_INSTALL&;t t
22316$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022317" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022318
Reid Spencera773bd52006-08-04 18:18:08 +000022319test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22320 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022322 { echo "$as_me:$LINENO: 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." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022324echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022325which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022326
Reid Spencera773bd52006-08-04 18:18:08 +000022327 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022328 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022329 -) cat "$tmp/out"; rm -f "$tmp/out";;
22330 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22331 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022332 ;;
22333 :H)
22334 #
22335 # CONFIG_HEADER
22336 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022337_ACEOF
22338
22339# Transform confdefs.h into a sed script `conftest.defines', that
22340# substitutes the proper values into config.h.in to produce config.h.
22341rm -f conftest.defines conftest.tail
22342# First, append a space to every undef/define line, to ease matching.
22343echo 's/$/ /' >conftest.defines
22344# Then, protect against being on the right side of a sed subst, or in
22345# an unquoted here document, in config.status. If some macros were
22346# called several times there might be several #defines for the same
22347# symbol, which is useless. But do not sort them, since the last
22348# AC_DEFINE must be honored.
22349ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22350# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22351# NAME is the cpp macro being defined, VALUE is the value it is being given.
22352# PARAMS is the parameter list in the macro definition--in most cases, it's
22353# just an empty string.
22354ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22355ac_dB='\\)[ (].*,\\1define\\2'
22356ac_dC=' '
22357ac_dD=' ,'
22358
22359uniq confdefs.h |
22360 sed -n '
22361 t rset
22362 :rset
22363 s/^[ ]*#[ ]*define[ ][ ]*//
22364 t ok
22365 d
22366 :ok
22367 s/[\\&,]/\\&/g
22368 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22369 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22370 ' >>conftest.defines
22371
22372# Remove the space that was appended to ease matching.
22373# Then replace #undef with comments. This is necessary, for
22374# example, in the case of _POSIX_SOURCE, which is predefined and required
22375# on some systems where configure will not decide to define it.
22376# (The regexp can be short, since the line contains either #define or #undef.)
22377echo 's/ $//
22378s,^[ #]*u.*,/* & */,' >>conftest.defines
22379
22380# Break up conftest.defines:
22381ac_max_sed_lines=50
22382
22383# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22384# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22385# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22386# et cetera.
22387ac_in='$ac_file_inputs'
22388ac_out='"$tmp/out1"'
22389ac_nxt='"$tmp/out2"'
22390
22391while :
22392do
22393 # Write a here document:
22394 cat >>$CONFIG_STATUS <<_ACEOF
22395 # First, check the format of the line:
22396 cat >"\$tmp/defines.sed" <<\\CEOF
22397/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22398/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22399b
22400:def
22401_ACEOF
22402 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22403 echo 'CEOF
22404 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22405 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22406 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22407 grep . conftest.tail >/dev/null || break
22408 rm -f conftest.defines
22409 mv conftest.tail conftest.defines
22410done
22411rm -f conftest.defines conftest.tail
22412
22413echo "ac_result=$ac_in" >>$CONFIG_STATUS
22414cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022415 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022416 echo "/* $configure_input */" >"$tmp/config.h"
22417 cat "$ac_result" >>"$tmp/config.h"
22418 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22419 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22420echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022421 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022422 rm -f $ac_file
22423 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022424 fi
22425 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022426 echo "/* $configure_input */"
22427 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022428 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022429 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022430 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022432 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22433echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022434 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022435 esac
John Criswell7a73b802003-06-30 21:59:07 +000022436
Reid Spencera773bd52006-08-04 18:18:08 +000022437
22438 case $ac_file$ac_mode in
22439 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022441 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022443 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022445 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022447 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022449 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022451 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022453 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022455 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022457 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022459 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022460 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022461 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022462 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022463 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022464 ${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 +000022465
22466 esac
22467done # for ac_tag
22468
John Criswell7a73b802003-06-30 21:59:07 +000022469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022470{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022472chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022473ac_clean_files=$ac_clean_files_save
22474
22475
22476# configure is writing to config.log, and then calls config.status.
22477# config.status does its own redirection, appending to config.log.
22478# Unfortunately, on DOS this fails, as config.log is still kept open
22479# by configure, so config.status won't be able to write to it; its
22480# output is simply discarded. So we exec the FD to /dev/null,
22481# effectively closing config.log, so it can be properly (re)opened and
22482# appended to by config.status. When coming back to configure, we
22483# need to make the FD available again.
22484if test "$no_create" != yes; then
22485 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022486 ac_config_status_args=
22487 test "$silent" = yes &&
22488 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022489 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022491 exec 5>>config.log
22492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22493 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022494 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022495fi
22496
John Criswell12399a12003-09-30 15:55:44 +000022497#
22498# CONFIG_SUBDIRS section.
22499#
22500if test "$no_recursion" != yes; then
22501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022502 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022503 ac_sub_configure_args=
22504 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022505 eval "set x $ac_configure_args"
22506 shift
22507 for ac_arg
22508 do
John Criswell12399a12003-09-30 15:55:44 +000022509 if test -n "$ac_prev"; then
22510 ac_prev=
22511 continue
22512 fi
22513 case $ac_arg in
22514 -cache-file | --cache-file | --cache-fil | --cache-fi \
22515 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22516 ac_prev=cache_file ;;
22517 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22518 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22519 | --c=*)
22520 ;;
22521 --config-cache | -C)
22522 ;;
22523 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22524 ac_prev=srcdir ;;
22525 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22526 ;;
22527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22528 ac_prev=prefix ;;
22529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022531 *)
22532 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022533 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022534 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022535 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022536 esac
22537 done
22538
22539 # Always prepend --prefix to ensure using the same prefix
22540 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022541 ac_arg="--prefix=$prefix"
22542 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022543 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022544 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022545 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022546
22547 ac_popdir=`pwd`
22548 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22549
22550 # Do not complain, so a configure script can configure whichever
22551 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022552 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022553
Reid Spencera773bd52006-08-04 18:18:08 +000022554 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022555 echo "$as_me:$LINENO: $ac_msg" >&5
22556 echo "$ac_msg" >&6
22557 { as_dir="$ac_dir"
22558 case $as_dir in #(
22559 -*) as_dir=./$as_dir;;
22560 esac
22561 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22562 as_dirs=
22563 while :; do
22564 case $as_dir in #(
22565 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22566 *) as_qdir=$as_dir;;
22567 esac
22568 as_dirs="'$as_qdir' $as_dirs"
22569 as_dir=`$as_dirname -- "$as_dir" ||
22570$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22571 X"$as_dir" : 'X\(//\)[^/]' \| \
22572 X"$as_dir" : 'X\(//\)$' \| \
22573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22574echo X"$as_dir" |
22575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22576 s//\1/
22577 q
22578 }
22579 /^X\(\/\/\)[^/].*/{
22580 s//\1/
22581 q
22582 }
22583 /^X\(\/\/\)$/{
22584 s//\1/
22585 q
22586 }
22587 /^X\(\/\).*/{
22588 s//\1/
22589 q
22590 }
22591 s/.*/./; q'`
22592 test -d "$as_dir" && break
22593 done
22594 test -z "$as_dirs" || eval "mkdir $as_dirs"
22595 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22596echo "$as_me: error: cannot create directory $as_dir" >&2;}
22597 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022598 ac_builddir=.
22599
Reid Spencera773bd52006-08-04 18:18:08 +000022600case "$ac_dir" in
22601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22602*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022604 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022605 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022606 case $ac_top_builddir_sub in
22607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22609 esac ;;
22610esac
22611ac_abs_top_builddir=$ac_pwd
22612ac_abs_builddir=$ac_pwd$ac_dir_suffix
22613# for backward compatibility:
22614ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022615
22616case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022617 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022618 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022619 ac_top_srcdir=$ac_top_builddir_sub
22620 ac_abs_top_srcdir=$ac_pwd ;;
22621 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022622 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022623 ac_top_srcdir=$srcdir
22624 ac_abs_top_srcdir=$srcdir ;;
22625 *) # Relative name.
22626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22627 ac_top_srcdir=$ac_top_build_prefix$srcdir
22628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022629esac
Reid Spencera773bd52006-08-04 18:18:08 +000022630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022631
22632
Reid Spencera773bd52006-08-04 18:18:08 +000022633 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022634
22635 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022636 if test -f "$ac_srcdir/configure.gnu"; then
22637 ac_sub_configure=$ac_srcdir/configure.gnu
22638 elif test -f "$ac_srcdir/configure"; then
22639 ac_sub_configure=$ac_srcdir/configure
22640 elif test -f "$ac_srcdir/configure.in"; then
22641 # This should be Cygnus configure.
22642 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022643 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022644 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22645echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022646 ac_sub_configure=
22647 fi
22648
22649 # The recursion is here.
22650 if test -n "$ac_sub_configure"; then
22651 # Make the cache file name correct relative to the subdirectory.
22652 case $cache_file in
22653 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022654 *) # Relative name.
22655 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022656 esac
22657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022658 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22659echo "$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 +000022660 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022661 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22662 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022663 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22664echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22665 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022666 fi
22667
Reid Spencera773bd52006-08-04 18:18:08 +000022668 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022669 done
22670fi
22671