blob: 7d1662021944bfe8dc2d4132063b5086e8b9f7ca [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebc2fc12011-03-08 03:00:02 +00003# Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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 Wendlingebc2fc12011-03-08 03:00:02 +0000564PACKAGE_VERSION='3.0svn'
565PACKAGE_STRING='llvm 3.0svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000644ENABLE_POLLY
645LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000691ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_DOXYGEN
693ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000694ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000696ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000697ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000698ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699TARGETS_TO_BUILD
700LLVM_ENUM_TARGETS
701LLVM_ENUM_ASM_PRINTERS
702LLVM_ENUM_ASM_PARSERS
703LLVM_ENUM_DISASSEMBLERS
704ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000705CLANGPATH
706CLANGXXPATH
707ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712CXX
713CXXFLAGS
714ac_ct_CXX
715NM
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
766LLVMGCCCOMMAND
767LLVMGXXCOMMAND
768LLVMGCC
769LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000770LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771NO_VARIADIC_MACROS
772NO_MISSING_FIELD_INITIALIZERS
773USE_UDIS86
774USE_OPROFILE
775HAVE_PTHREAD
776HUGE_VAL_SANITY
777MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000778LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVMCC1
780LLVMCC1PLUS
781LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000782LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000783LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000784LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000785SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000786SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_LIBDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
803LIBOBJS
804LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000805ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812CPPFLAGS
813CPP
814CXX
815CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000816CCC'
John Criswell0157f502010-03-19 21:31:39 +0000817ac_subdirs_all='projects/llvm-gcc
818projects/test-suite
819projects/llvm-test
820projects/poolalloc
821projects/llvm-poolalloc
822projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000824projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000826projects/llvm-java
827projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000828projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000829projects/llvm-kernel
830tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000857# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000866includedir='${prefix}/include'
867oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000877
878ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000879ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000880for ac_option
881do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000884 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000885 ac_prev=
886 continue
887 fi
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
John Criswell7a73b802003-06-30 21:59:07 +0000893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
Reid Spencera773bd52006-08-04 18:18:08 +0000896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000921 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000923 datadir=$ac_optarg ;;
924
Reid Spencera773bd52006-08-04 18:18:08 +0000925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
John Criswell7a73b802003-06-30 21:59:07 +0000932 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000934 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000953 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
Reid Spencera773bd52006-08-04 18:18:08 +0000985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
John Criswell7a73b802003-06-30 21:59:07 +0000991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
Reid Spencera773bd52006-08-04 18:18:08 +00001015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
John Criswell7a73b802003-06-30 21:59:07 +00001020 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001021 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
Reid Spencera773bd52006-08-04 18:18:08 +00001089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
John Criswell7a73b802003-06-30 21:59:07 +00001099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001159 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001195 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001213fi
1214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001220do
Reid Spencera773bd52006-08-04 18:18:08 +00001221 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001222 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001225 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
Reid Spencera773bd52006-08-04 18:18:08 +00001254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001262
1263
John Criswell7a73b802003-06-30 21:59:07 +00001264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001267 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001268 ac_confdir=`$as_dirname -- "$0" ||
1269$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001291 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001292 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
Reid Spencera773bd52006-08-04 18:18:08 +00001298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001302fi
Reid Spencera773bd52006-08-04 18:18:08 +00001303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001332\`configure' configures llvm 3.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001405 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
David Greenea696d242007-06-28 19:36:08 +00001410 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001417 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001418 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001419 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001420 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001421 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001422 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001423 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001439 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001440 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001441
1442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001457 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001458 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001474 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001477 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001482 CC C compiler command
1483 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001487 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001488 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
1495Report bugs to <llvmbugs@cs.uiuc.edu>.
1496_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001497ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001498fi
1499
1500if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001503 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_builddir=.
1505
Reid Spencera773bd52006-08-04 18:18:08 +00001506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001510 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001521
1522case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001523 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001524 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001528 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001535esac
Reid Spencera773bd52006-08-04 18:18:08 +00001536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001537
Reid Spencera773bd52006-08-04 18:18:08 +00001538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001546 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001550 done
1551fi
1552
Reid Spencera773bd52006-08-04 18:18:08 +00001553test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001554if $ac_init_version; then
1555 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001556llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001557generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15602002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001564Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001565_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001566 exit
John Criswell7a73b802003-06-30 21:59:07 +00001567fi
Reid Spencera773bd52006-08-04 18:18:08 +00001568cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001569This file contains any messages produced by compilers while
1570running configure, to aid debugging if configure makes a mistake.
1571
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001572It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001573generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001574
1575 $ $0 $@
1576
1577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001578exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001579{
1580cat <<_ASUNAME
1581## --------- ##
1582## Platform. ##
1583## --------- ##
1584
1585hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593
1594/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001597/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001598/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601
1602_ASUNAME
1603
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001609 echo "PATH: $as_dir"
1610done
Reid Spencera773bd52006-08-04 18:18:08 +00001611IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001612
1613} >&5
1614
1615cat >&5 <<_ACEOF
1616
1617
1618## ----------- ##
1619## Core tests. ##
1620## ----------- ##
1621
1622_ACEOF
1623
1624
1625# Keep a trace of the command line.
1626# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001628# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001630ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001631ac_configure_args0=
1632ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_must_keep_next=false
1634for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001635do
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 for ac_arg
1637 do
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001643 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 esac
1646 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001648 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001651 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1661 ;;
1662 -* ) ac_must_keep_next=true ;;
1663 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001665 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 ;;
1667 esac
1668 done
John Criswell7a73b802003-06-30 21:59:07 +00001669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001670$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671$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 +00001672
1673# When interrupted or exit'd, cleanup temporary files, and complete
1674# config.log. We remove comments because anyway the quotes in there
1675# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001676# WARNING: Use '\'' to represent an apostrophe within the trap.
1677# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001678trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1680 {
1681 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001682
John Criswell7a73b802003-06-30 21:59:07 +00001683 cat <<\_ASBOX
1684## ---------------- ##
1685## Cache variables. ##
1686## ---------------- ##
1687_ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001690(
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001701 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001702 esac ;;
1703 esac
1704 done
John Criswell7a73b802003-06-30 21:59:07 +00001705 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001708 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001712 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001715 esac |
1716 sort
1717)
John Criswell7a73b802003-06-30 21:59:07 +00001718 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001719
1720 cat <<\_ASBOX
1721## ----------------- ##
1722## Output variables. ##
1723## ----------------- ##
1724_ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1727 do
Reid Spencera773bd52006-08-04 18:18:08 +00001728 eval ac_val=\$$ac_var
1729 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001731 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 done | sort
1734 echo
1735
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001738## ------------------- ##
1739## File substitutions. ##
1740## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001741_ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1744 do
Reid Spencera773bd52006-08-04 18:18:08 +00001745 eval ac_val=\$$ac_var
1746 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001748 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 done | sort
1751 echo
1752 fi
1753
John Criswell7a73b802003-06-30 21:59:07 +00001754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756## ----------- ##
1757## confdefs.h. ##
1758## ----------- ##
1759_ASBOX
1760 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001761 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001762 echo
1763 fi
1764 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001767 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001770 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001771' 0
John Criswell7a73b802003-06-30 21:59:07 +00001772for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001774done
1775ac_signal=0
1776
1777# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001778rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001779
1780# Predefined preprocessor variables.
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_NAME "$PACKAGE_NAME"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789_ACEOF
1790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791
John Criswell7a73b802003-06-30 21:59:07 +00001792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_VERSION "$PACKAGE_VERSION"
1794_ACEOF
1795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796
John Criswell7a73b802003-06-30 21:59:07 +00001797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_STRING "$PACKAGE_STRING"
1799_ACEOF
1800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801
John Criswell7a73b802003-06-30 21:59:07 +00001802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804_ACEOF
1805
1806
1807# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001809if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001811elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817shift
1818for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001819do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1825 fi
1826done
1827
1828if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001837 esac
1838 fi
1839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 >$cache_file
1843fi
1844
1845# Check that the precious variables saved in the cache have kept the same
1846# value.
1847ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001848for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001853 case $ac_old_set,$ac_new_set in
1854 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001857 ac_cache_corrupted=: ;;
1858 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001861 ac_cache_corrupted=: ;;
1862 ,);;
1863 *)
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001883 esac
1884 fi
1885done
1886if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
Reid Spencera773bd52006-08-04 18:18:08 +00001917
John Criswell7a73b802003-06-30 21:59:07 +00001918ac_ext=c
1919ac_cpp='$CPP $CPPFLAGS'
1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001926LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001927
1928
1929
1930
1931
1932
1933
John Criswell7a73b802003-06-30 21:59:07 +00001934ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001935for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
John Criswell7a73b802003-06-30 21:59:07 +00001949done
1950if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001954fi
Reid Spencera773bd52006-08-04 18:18:08 +00001955
1956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963
John Criswell7a73b802003-06-30 21:59:07 +00001964
John Criswell392aaa32003-07-22 19:18:09 +00001965
Reid Spencer2706f8c2004-09-19 23:53:36 +00001966if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001971 fi
John Criswell93e1c722003-09-15 17:04:06 +00001972fi
1973
John Criswell0157f502010-03-19 21:31:39 +00001974
1975
1976if test -d ${srcdir}/projects/llvm-gcc ; then
1977 subdirs="$subdirs projects/llvm-gcc"
1978
1979fi
1980
1981if test -d ${srcdir}/projects/test-suite ; then
1982 subdirs="$subdirs projects/test-suite"
1983
1984fi
1985
1986if test -d ${srcdir}/projects/llvm-test ; then
1987 subdirs="$subdirs projects/llvm-test"
1988
1989fi
1990
1991if test -d ${srcdir}/projects/poolalloc ; then
1992 subdirs="$subdirs projects/poolalloc"
1993
1994fi
1995
1996if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997 subdirs="$subdirs projects/llvm-poolalloc"
1998
1999fi
2000
John Criswell33a911a2003-11-25 20:36:46 +00002001for i in `ls ${srcdir}/projects`
2002do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002003 if test -d ${srcdir}/projects/${i} ; then
2004 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002006 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002007 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002008 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002012;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002013 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002014 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002015 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002016 ;;
John Criswell7def2932010-02-25 22:57:19 +00002017 safecode) subdirs="$subdirs projects/safecode"
2018 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002020 ;;
John Criswell52c02862010-03-25 13:59:09 +00002021 llvm-gcc) ;;
2022 test-suite) ;;
2023 llvm-test) ;;
2024 poolalloc) ;;
2025 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002026 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002029 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002030 esac
John Criswell33a911a2003-11-25 20:36:46 +00002031 fi
2032done
John Criswell559a6c12003-09-30 16:31:48 +00002033
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002034# Check whether --enable-polly was given.
2035if test "${enable_polly+set}" = set; then
2036 enableval=$enable_polly;
2037else
2038 enableval=default
2039fi
2040
2041case "$enableval" in
2042 yes) ENABLE_POLLY=1
2043 ;;
2044 no) ENABLE_POLLY=0
2045 ;;
2046 default) ENABLE_POLLY=1
2047 ;;
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2051esac
2052
2053
2054if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2055 LLVM_HAS_POLLY=1
2056
2057 subdirs="$subdirs tools/polly"
2058
2059fi
2060
John Criswell7a73b802003-06-30 21:59:07 +00002061
2062# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002063$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068{ echo "$as_me:$LINENO: checking build system type" >&5
2069echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002072else
Reid Spencera773bd52006-08-04 18:18:08 +00002073 ac_build_alias=$build_alias
2074test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002080ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002084
2085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002088case $ac_cv_build in
2089*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002090*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002093esac
John Criswell7a73b802003-06-30 21:59:07 +00002094build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002095ac_save_IFS=$IFS; IFS='-'
2096set x $ac_cv_build
2097shift
2098build_cpu=$1
2099build_vendor=$2
2100shift; shift
2101# Remember, the first character of IFS is used to create $*,
2102# except with old shells:
2103build_os=$*
2104IFS=$ac_save_IFS
2105case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002106
2107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108{ echo "$as_me:$LINENO: checking host system type" >&5
2109echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002112else
Reid Spencera773bd52006-08-04 18:18:08 +00002113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2115else
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002120fi
John Criswell7a73b802003-06-30 21:59:07 +00002121
2122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002123{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002125case $ac_cv_host in
2126*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002127*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002130esac
John Criswell7a73b802003-06-30 21:59:07 +00002131host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002132ac_save_IFS=$IFS; IFS='-'
2133set x $ac_cv_host
2134shift
2135host_cpu=$1
2136host_vendor=$2
2137shift; shift
2138# Remember, the first character of IFS is used to create $*,
2139# except with old shells:
2140host_os=$*
2141IFS=$ac_save_IFS
2142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002143
2144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145{ echo "$as_me:$LINENO: checking target system type" >&5
2146echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002149else
Reid Spencera773bd52006-08-04 18:18:08 +00002150 if test "x$target_alias" = x; then
2151 ac_cv_target=$ac_cv_host
2152else
2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002157fi
John Criswell7a73b802003-06-30 21:59:07 +00002158
2159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002162case $ac_cv_target in
2163*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002164*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002167esac
John Criswell7a73b802003-06-30 21:59:07 +00002168target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002169ac_save_IFS=$IFS; IFS='-'
2170set x $ac_cv_target
2171shift
2172target_cpu=$1
2173target_vendor=$2
2174shift; shift
2175# Remember, the first character of IFS is used to create $*,
2176# except with old shells:
2177target_os=$*
2178IFS=$ac_save_IFS
2179case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002180
2181
2182# The aliases save the names the user supplied, while $host etc.
2183# will get canonicalized.
2184test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2186 NONENONEs,x,x, &&
2187 program_prefix=${target_alias}-
2188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002193else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002194 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002195 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 llvm_cv_os_type="AIX"
2199 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002200 *-*-irix*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="IRIX"
2204 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002205 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 llvm_cv_os_type="Cygwin"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002211 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002212 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002213 llvm_cv_os_type="Darwin"
2214 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002215 *-*-minix*)
2216 llvm_cv_link_all_option="-Wl,-all_load"
2217 llvm_cv_no_link_all_option="-Wl,-noall_load"
2218 llvm_cv_os_type="Minix"
2219 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002220 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002223 llvm_cv_os_type="FreeBSD"
2224 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002225 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002228 llvm_cv_os_type="OpenBSD"
2229 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002230 *-*-netbsd*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="NetBSD"
2234 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002235 *-*-dragonfly*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="DragonFly"
2239 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002240 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002243 llvm_cv_os_type="HP-UX"
2244 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 llvm_cv_os_type="Interix"
2249 llvm_cv_platform_type="Unix" ;;
2250 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="Linux"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 llvm_cv_os_type="SunOS"
2259 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002260 *-*-auroraux*)
2261 llvm_cv_link_all_option="-Wl,-z,allextract"
2262 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263 llvm_cv_os_type="AuroraUX"
2264 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Win32"
2269 llvm_cv_platform_type="Win32" ;;
2270 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="MingW"
2274 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002275 *-*-haiku*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Haiku"
2279 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002280 *-unknown-eabi*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-unknown-elf*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Freestanding"
2289 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option=""
2292 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 llvm_cv_os_type="Unknown"
2294 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002295esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002304else
2305 case $target in
2306 *-*-aix*)
2307 llvm_cv_target_os_type="AIX" ;;
2308 *-*-irix*)
2309 llvm_cv_target_os_type="IRIX" ;;
2310 *-*-cygwin*)
2311 llvm_cv_target_os_type="Cygwin" ;;
2312 *-*-darwin*)
2313 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002314 *-*-minix*)
2315 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002316 *-*-freebsd*)
2317 llvm_cv_target_os_type="FreeBSD" ;;
2318 *-*-openbsd*)
2319 llvm_cv_target_os_type="OpenBSD" ;;
2320 *-*-netbsd*)
2321 llvm_cv_target_os_type="NetBSD" ;;
2322 *-*-dragonfly*)
2323 llvm_cv_target_os_type="DragonFly" ;;
2324 *-*-hpux*)
2325 llvm_cv_target_os_type="HP-UX" ;;
2326 *-*-interix*)
2327 llvm_cv_target_os_type="Interix" ;;
2328 *-*-linux*)
2329 llvm_cv_target_os_type="Linux" ;;
2330 *-*-solaris*)
2331 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002332 *-*-auroraux*)
2333 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002334 *-*-win32*)
2335 llvm_cv_target_os_type="Win32" ;;
2336 *-*-mingw*)
2337 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002338 *-*-haiku*)
2339 llvm_cv_target_os_type="Haiku" ;;
Douglas Gregor6ced1d12011-07-01 22:41:06 +00002340 *-*-rtems*)
2341 llvm_cv_target_os_type="RTEMS" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002342 *-unknown-eabi*)
2343 llvm_cv_target_os_type="Freestanding" ;;
2344 *)
2345 llvm_cv_target_os_type="Unknown" ;;
2346esac
2347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2349echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002350
Reid Spencer7b3e8512004-12-24 06:29:05 +00002351if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2353echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2354 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002355fi
2356
Reid Spencer7b3e8512004-12-24 06:29:05 +00002357OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002359HOST_OS=$llvm_cv_os_type
2360
2361TARGET_OS=$llvm_cv_target_os_type
2362
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002363
Reid Spencera773bd52006-08-04 18:18:08 +00002364LINKALL=$llvm_cv_link_all_option
2365
2366NOLINKALL=$llvm_cv_no_link_all_option
2367
2368
Reid Spencer7b3e8512004-12-24 06:29:05 +00002369case $llvm_cv_platform_type in
2370 Unix)
2371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372cat >>confdefs.h <<\_ACEOF
2373#define LLVM_ON_UNIX 1
2374_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002375
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002376 LLVM_ON_UNIX=1
2377
2378 LLVM_ON_WIN32=0
2379
Reid Spencer7b3e8512004-12-24 06:29:05 +00002380 ;;
2381 Win32)
2382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002383cat >>confdefs.h <<\_ACEOF
2384#define LLVM_ON_WIN32 1
2385_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002386
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002387 LLVM_ON_UNIX=0
2388
2389 LLVM_ON_WIN32=1
2390
Reid Spencer7b3e8512004-12-24 06:29:05 +00002391 ;;
2392esac
2393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002394{ echo "$as_me:$LINENO: checking target architecture" >&5
2395echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398else
2399 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002400 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002405 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002406 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002407 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002408 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002410 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002411 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002412 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002413 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002414esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2417echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002418
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2421echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422fi
John Criswell76595452003-07-01 22:07:39 +00002423
Nick Lewycky83fc4472009-09-29 05:48:51 +00002424# Determine the LLVM native architecture for the target
2425case "$llvm_cv_target_arch" in
2426 x86) LLVM_NATIVE_ARCH="X86" ;;
2427 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2428 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2429esac
2430
2431ARCH=$llvm_cv_target_arch
2432
2433
2434ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435ac_cpp='$CPP $CPPFLAGS'
2436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002439if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444if test "${ac_cv_prog_CC+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446else
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC="$CC" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 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 +00002457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459 break 2
2460 fi
2461done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462done
Reid Spencera773bd52006-08-04 18:18:08 +00002463IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464
2465fi
2466fi
2467CC=$ac_cv_prog_CC
2468if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002469 { echo "$as_me:$LINENO: result: $CC" >&5
2470echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002472 { echo "$as_me:$LINENO: result: no" >&5
2473echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474fi
2475
Reid Spencera773bd52006-08-04 18:18:08 +00002476
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477fi
2478if test -z "$ac_cv_prog_CC"; then
2479 ac_ct_CC=$CC
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486else
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 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 +00002497 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499 break 2
2500 fi
2501done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002502done
Reid Spencera773bd52006-08-04 18:18:08 +00002503IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504
2505fi
2506fi
2507ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512 { echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514fi
2515
Reid Spencera773bd52006-08-04 18:18:08 +00002516 if test "x$ac_ct_CC" = x; then
2517 CC=""
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522whose name does not start with the host triplet. If you think this
2523configuration is useful to you, please write to autoconf@gnu.org." >&5
2524echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525whose name does not start with the host triplet. If you think this
2526configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002527ac_tool_warned=yes ;;
2528esac
2529 CC=$ac_ct_CC
2530 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531else
2532 CC="$ac_cv_prog_CC"
2533fi
2534
2535if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002536 if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002539{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 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 +00002554 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556 break 2
2557 fi
2558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559done
Reid Spencera773bd52006-08-04 18:18:08 +00002560IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561
2562fi
2563fi
2564CC=$ac_cv_prog_CC
2565if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002566 { echo "$as_me:$LINENO: result: $CC" >&5
2567echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002569 { echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571fi
2572
Reid Spencera773bd52006-08-04 18:18:08 +00002573
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002574 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575fi
2576if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
2587 ac_prog_rejected=no
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 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 +00002595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596 ac_prog_rejected=yes
2597 continue
2598 fi
2599 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601 break 2
2602 fi
2603done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604done
Reid Spencera773bd52006-08-04 18:18:08 +00002605IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606
2607if test $ac_prog_rejected = yes; then
2608 # We found a bogon in the path, so make sure we never use it.
2609 set dummy $ac_cv_prog_CC
2610 shift
2611 if test $# != 0; then
2612 # We chose a different compiler from the bogus one.
2613 # However, it has the same basename, so the bogon will be chosen
2614 # first if we set CC to just the basename; use the full file name.
2615 shift
2616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 fi
2618fi
2619fi
2620fi
2621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623 { echo "$as_me:$LINENO: result: $CC" >&5
2624echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002626 { echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628fi
2629
Reid Spencera773bd52006-08-04 18:18:08 +00002630
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631fi
2632if test -z "$CC"; then
2633 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002634 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002635 do
2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002642else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 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 +00002653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002655 break 2
2656 fi
2657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002658done
Reid Spencera773bd52006-08-04 18:18:08 +00002659IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002660
2661fi
2662fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663CC=$ac_cv_prog_CC
2664if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002665 { echo "$as_me:$LINENO: result: $CC" >&5
2666echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002668 { echo "$as_me:$LINENO: result: no" >&5
2669echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002670fi
2671
Reid Spencera773bd52006-08-04 18:18:08 +00002672
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002673 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002674 done
2675fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676if test -z "$CC"; then
2677 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002678 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002679do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002686else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 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 +00002697 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002699 break 2
2700 fi
2701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702done
Reid Spencera773bd52006-08-04 18:18:08 +00002703IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002704
2705fi
2706fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002707ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002712 { echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002714fi
2715
Reid Spencera773bd52006-08-04 18:18:08 +00002716
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002717 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002718done
John Criswell7a73b802003-06-30 21:59:07 +00002719
Reid Spencera773bd52006-08-04 18:18:08 +00002720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002725{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2726whose name does not start with the host triplet. If you think this
2727configuration is useful to you, please write to autoconf@gnu.org." >&5
2728echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2729whose name does not start with the host triplet. If you think this
2730configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002731ac_tool_warned=yes ;;
2732esac
2733 CC=$ac_ct_CC
2734 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002735fi
2736
John Criswell7a73b802003-06-30 21:59:07 +00002737fi
2738
2739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2741See \`config.log' for more details." >&5
2742echo "$as_me: error: no acceptable C compiler found in \$PATH
2743See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745
John Criswell7a73b802003-06-30 21:59:07 +00002746# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747echo "$as_me:$LINENO: checking for C compiler version" >&5
2748ac_compiler=`set X $ac_compile; echo $2`
2749{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002750case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002756 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759{ (ac_try="$ac_compiler -v >&5"
2760case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763esac
2764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -v >&5") 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2769{ (ac_try="$ac_compiler -V >&5"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler -V >&5") 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002780cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002786
John Criswell7a73b802003-06-30 21:59:07 +00002787int
2788main ()
2789{
2790
2791 ;
2792 return 0;
2793}
2794_ACEOF
2795ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002796ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002797# Try to create an executable without -o first, disregard a.out.
2798# It will help us diagnose broken compilers, and finding out an intuition
2799# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002800{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2802ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2803#
2804# List of possible output files, starting from the most likely.
2805# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2806# only as a last resort. b.out is created by i960 compilers.
2807ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2808#
2809# The IRIX 6 linker writes into existing files which may not be
2810# executable, retaining their permissions. Remove them first so a
2811# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002812ac_rmfiles=
2813for ac_file in $ac_files
2814do
2815 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 esac
2819done
2820rm -f $ac_rmfiles
2821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002822if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002823case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002828 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002829 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834# in a Makefile. We should not override ac_cv_exeext if it was cached,
2835# so that the user can short-circuit this test for compilers unknown to
2836# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002837for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002838do
2839 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002840 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002842 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002843 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002844 # We found the default executable, but exeext='' is most
2845 # certainly right.
2846 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002847 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002849 then :; else
2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 fi
2852 # We set ac_cv_exeext here because the later test for it is not
2853 # safe: cross compilers may not add the suffix if given an `-o'
2854 # argument, so we may need to know it at that point already.
2855 # Even if this section looks crufty: it has the advantage of
2856 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002857 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002858 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002859 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002860 esac
2861done
Reid Spencera773bd52006-08-04 18:18:08 +00002862test "$ac_cv_exeext" = no && ac_cv_exeext=
2863
John Criswell7a73b802003-06-30 21:59:07 +00002864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002866sed 's/^/| /' conftest.$ac_ext >&5
2867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002868{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869See \`config.log' for more details." >&5
2870echo "$as_me: error: C compiler cannot create executables
2871See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002873fi
John Criswell7a73b802003-06-30 21:59:07 +00002874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002875ac_exeext=$ac_cv_exeext
2876{ echo "$as_me:$LINENO: result: $ac_file" >&5
2877echo "${ECHO_T}$ac_file" >&6; }
2878
2879# Check that the compiler produces executables we can run. If not, either
2880# the compiler is broken, or we cross compile.
2881{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884# If not cross compiling, check that we can run a simple program.
2885if test "$cross_compiling" != yes; then
2886 if { ac_try='./$ac_file'
2887 { (case "(($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_try") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 cross_compiling=no
2897 else
2898 if test "$cross_compiling" = maybe; then
2899 cross_compiling=yes
2900 else
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902If you meant to cross compile, use \`--host'.
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot run C compiled programs.
2905If you meant to cross compile, use \`--host'.
2906See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2908 fi
2909 fi
2910fi
2911{ echo "$as_me:$LINENO: result: yes" >&5
2912echo "${ECHO_T}yes" >&6; }
2913
2914rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002915ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002916# Check that the compiler produces executables we can run. If not, either
2917# the compiler is broken, or we cross compile.
2918{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921echo "${ECHO_T}$cross_compiling" >&6; }
2922
2923{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002931 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002932 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2937# work properly (i.e., refer to `conftest.exe'), while it won't with
2938# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002939for ac_file in conftest.exe conftest conftest.*; do
2940 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002941 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002944 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002945 * ) break;;
2946 esac
2947done
2948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950See \`config.log' for more details." >&5
2951echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002955
2956rm -f conftest$ac_cv_exeext
2957{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002959
2960rm -f conftest.$ac_ext
2961EXEEXT=$ac_cv_exeext
2962ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002963{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002968 cat >conftest.$ac_ext <<_ACEOF
2969/* confdefs.h. */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002973/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002974
John Criswell7a73b802003-06-30 21:59:07 +00002975int
2976main ()
2977{
2978
2979 ;
2980 return 0;
2981}
2982_ACEOF
2983rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002984if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002990 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002991 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002996 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999 break;;
3000 esac
3001done
3002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003004sed 's/^/| /' conftest.$ac_ext >&5
3005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003006{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003012
John Criswell7a73b802003-06-30 21:59:07 +00003013rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003015{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003017OBJEXT=$ac_cv_objext
3018ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003019{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003024 cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003030
John Criswell7a73b802003-06-30 21:59:07 +00003031int
3032main ()
3033{
3034#ifndef __GNUC__
3035 choke me
3036#endif
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003042rm -f conftest.$ac_objext
3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003076 ac_compiler_gnu=yes
3077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003078 echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003083
Reid Spencera773bd52006-08-04 18:18:08 +00003084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003085ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003086
3087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003088{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3089echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003091ac_test_CFLAGS=${CFLAGS+set}
3092ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003093{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3094echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3095if test "${ac_cv_prog_cc_g+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003097else
Reid Spencera773bd52006-08-04 18:18:08 +00003098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3100 ac_cv_prog_cc_g=no
3101 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003102 cat >conftest.$ac_ext <<_ACEOF
3103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003108
John Criswell7a73b802003-06-30 21:59:07 +00003109int
3110main ()
3111{
3112
3113 ;
3114 return 0;
3115}
3116_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003117rm -f conftest.$ac_objext
3118if { (ac_try="$ac_compile"
3119case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003151 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003153 echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 CFLAGS=""
3157 cat >conftest.$ac_ext <<_ACEOF
3158/* confdefs.h. */
3159_ACEOF
3160cat confdefs.h >>conftest.$ac_ext
3161cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003162/* end confdefs.h. */
3163
3164int
3165main ()
3166{
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003172rm -f conftest.$ac_objext
3173if { (ac_try="$ac_compile"
3174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 :
Torok Edwin871384f2010-01-26 08:50:50 +00003207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003208 echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003212 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003218/* end confdefs.h. */
3219
3220int
3221main ()
3222{
3223
3224 ;
3225 return 0;
3226}
3227_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228rm -f conftest.$ac_objext
3229if { (ac_try="$ac_compile"
3230case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233esac
3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003262 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003263else
3264 echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267
John Criswell7a73b802003-06-30 21:59:07 +00003268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003269
Reid Spencera773bd52006-08-04 18:18:08 +00003270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272
Reid Spencera773bd52006-08-04 18:18:08 +00003273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003275
Reid Spencera773bd52006-08-04 18:18:08 +00003276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_c_werror_flag=$ac_save_c_werror_flag
3278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003279{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281if test "$ac_test_CFLAGS" = set; then
3282 CFLAGS=$ac_save_CFLAGS
3283elif test $ac_cv_prog_cc_g = yes; then
3284 if test "$GCC" = yes; then
3285 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003286 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003288 fi
3289else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290 if test "$GCC" = yes; then
3291 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003292 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003294 fi
3295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003296{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3297echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3298if test "${ac_cv_prog_cc_c89+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300else
Reid Spencera773bd52006-08-04 18:18:08 +00003301 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003303cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308/* end confdefs.h. */
3309#include <stdarg.h>
3310#include <stdio.h>
3311#include <sys/types.h>
3312#include <sys/stat.h>
3313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314struct buf { int x; };
3315FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316static char *e (p, i)
3317 char **p;
3318 int i;
3319{
3320 return p[i];
3321}
3322static char *f (char * (*g) (char **, int), char **p, ...)
3323{
3324 char *s;
3325 va_list v;
3326 va_start (v,p);
3327 s = g (p, va_arg (v,int));
3328 va_end (v);
3329 return s;
3330}
3331
3332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003335 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003338 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340
Reid Spencera773bd52006-08-04 18:18:08 +00003341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3343#define FOO(x) 'x'
3344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3345
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346int test (int i, double x);
3347struct s1 {int (*f) (int a);};
3348struct s2 {int (*f) (double a);};
3349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350int argc;
3351char **argv;
3352int
3353main ()
3354{
3355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 ;
3357 return 0;
3358}
3359_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362do
3363 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003364 rm -f conftest.$ac_objext
3365if { (ac_try="$ac_compile"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379 { (case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
3383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_try") 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_try") 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003398 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003399else
3400 echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405
Reid Spencera773bd52006-08-04 18:18:08 +00003406rm -f core conftest.err conftest.$ac_objext
3407 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408done
Reid Spencera773bd52006-08-04 18:18:08 +00003409rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410CC=$ac_save_CC
3411
3412fi
Reid Spencera773bd52006-08-04 18:18:08 +00003413# AC_CACHE_VAL
3414case "x$ac_cv_prog_cc_c89" in
3415 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003416 { echo "$as_me:$LINENO: result: none needed" >&5
3417echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003418 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 { echo "$as_me:$LINENO: result: unsupported" >&5
3420echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003422 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003423 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3424echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425esac
3426
John Criswell0c38eaf2003-09-10 15:17:25 +00003427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435ac_ext=c
3436ac_cpp='$CPP $CPPFLAGS'
3437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442# On Suns, sometimes $CPP names a directory.
3443if test -n "$CPP" && test -d "$CPP"; then
3444 CPP=
3445fi
3446if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449else
3450 # Double quotes because CPP needs to be expanded
3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452 do
3453 ac_preproc_ok=false
3454for ac_c_preproc_warn_flag in '' yes
3455do
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462 cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467/* end confdefs.h. */
3468#ifdef __STDC__
3469# include <limits.h>
3470#else
3471# include <assert.h>
3472#endif
3473 Syntax error
3474_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003475if { (ac_try="$ac_cpp conftest.$ac_ext"
3476case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479esac
3480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491 else
3492 ac_cpp_err=
3493 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003495 ac_cpp_err=yes
3496fi
3497if test -z "$ac_cpp_err"; then
3498 :
3499else
3500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503 # Broken: fails on valid input.
3504continue
3505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003506
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507rm -f conftest.err conftest.$ac_ext
3508
Reid Spencera773bd52006-08-04 18:18:08 +00003509 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003511 cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516/* end confdefs.h. */
3517#include <ac_nonexistent.h>
3518_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003519if { (ac_try="$ac_cpp conftest.$ac_ext"
3520case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523esac
3524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535 else
3536 ac_cpp_err=
3537 fi
3538else
3539 ac_cpp_err=yes
3540fi
3541if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003542 # Broken: success on invalid input.
3543continue
3544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003545 echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548 # Passes both tests.
3549ac_preproc_ok=:
3550break
3551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003552
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003553rm -f conftest.err conftest.$ac_ext
3554
3555done
3556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003558if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003559 break
3560fi
3561
3562 done
3563 ac_cv_prog_CPP=$CPP
3564
3565fi
3566 CPP=$ac_cv_prog_CPP
3567else
3568 ac_cv_prog_CPP=$CPP
3569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003570{ echo "$as_me:$LINENO: result: $CPP" >&5
3571echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572ac_preproc_ok=false
3573for ac_c_preproc_warn_flag in '' yes
3574do
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003581 cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586/* end confdefs.h. */
3587#ifdef __STDC__
3588# include <limits.h>
3589#else
3590# include <assert.h>
3591#endif
3592 Syntax error
3593_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003594if { (ac_try="$ac_cpp conftest.$ac_ext"
3595case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598esac
3599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610 else
3611 ac_cpp_err=
3612 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003614 ac_cpp_err=yes
3615fi
3616if test -z "$ac_cpp_err"; then
3617 :
3618else
3619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622 # Broken: fails on valid input.
3623continue
3624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003625
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003626rm -f conftest.err conftest.$ac_ext
3627
Reid Spencera773bd52006-08-04 18:18:08 +00003628 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003629 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003630 cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003635/* end confdefs.h. */
3636#include <ac_nonexistent.h>
3637_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003638if { (ac_try="$ac_cpp conftest.$ac_ext"
3639case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642esac
3643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev/null; then
3651 if test -s conftest.err; then
3652 ac_cpp_err=$ac_c_preproc_warn_flag
3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3654 else
3655 ac_cpp_err=
3656 fi
3657else
3658 ac_cpp_err=yes
3659fi
3660if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003661 # Broken: success on invalid input.
3662continue
3663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003664 echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003667 # Passes both tests.
3668ac_preproc_ok=:
3669break
3670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003671
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003672rm -f conftest.err conftest.$ac_ext
3673
3674done
3675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003677if $ac_preproc_ok; then
3678 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3681See \`config.log' for more details." >&5
3682echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683See \`config.log' for more details." >&2;}
3684 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003685fi
3686
John Criswell7a73b802003-06-30 21:59:07 +00003687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
John Criswell7a73b802003-06-30 21:59:07 +00003693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003694{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3696if test "${ac_cv_path_GREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699 # Extract the first word of "grep ggrep" to use in msg output
3700if test -z "$GREP"; then
3701set dummy grep ggrep; ac_prog_name=$2
3702if test "${ac_cv_path_GREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
Reid Spencera773bd52006-08-04 18:18:08 +00003705 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003706# Loop through the user's path and test for each of PROGNAME-LIST
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003717 # Check for GNU $ac_path_GREP
3718case `"$ac_path_GREP" --version 2>&1` in
3719*GNU*)
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3721*)
3722 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003724 while :
3725 do
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003729 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003732 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003737 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3740 done
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742esac
3743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003744
3745 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003746 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747done
3748
3749done
Reid Spencera773bd52006-08-04 18:18:08 +00003750IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003751
3752
3753fi
3754
3755GREP="$ac_cv_path_GREP"
3756if test -z "$GREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3760fi
3761
Reid Spencera773bd52006-08-04 18:18:08 +00003762else
3763 ac_cv_path_GREP=$GREP
3764fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766
Reid Spencera773bd52006-08-04 18:18:08 +00003767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003768{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3769echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003770 GREP="$ac_cv_path_GREP"
3771
3772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003773{ echo "$as_me:$LINENO: checking for egrep" >&5
3774echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3775if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003777else
3778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3779 then ac_cv_path_EGREP="$GREP -E"
3780 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781 # Extract the first word of "egrep" to use in msg output
3782if test -z "$EGREP"; then
3783set dummy egrep; ac_prog_name=$2
3784if test "${ac_cv_path_EGREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
Reid Spencera773bd52006-08-04 18:18:08 +00003787 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003788# Loop through the user's path and test for each of PROGNAME-LIST
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003790for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003794 for ac_prog in egrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3798 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003799 # Check for GNU $ac_path_EGREP
3800case `"$ac_path_EGREP" --version 2>&1` in
3801*GNU*)
3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3803*)
3804 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003806 while :
3807 do
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003811 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003814 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_EGREP="$ac_path_EGREP"
3818 ac_path_EGREP_max=$ac_count
3819 fi
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3822 done
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824esac
3825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003826
3827 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003828 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003829done
3830
3831done
Reid Spencera773bd52006-08-04 18:18:08 +00003832IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003833
3834
3835fi
3836
3837EGREP="$ac_cv_path_EGREP"
3838if test -z "$EGREP"; then
3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841 { (exit 1); exit 1; }; }
3842fi
3843
Reid Spencera773bd52006-08-04 18:18:08 +00003844else
3845 ac_cv_path_EGREP=$EGREP
3846fi
3847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003848
Reid Spencera773bd52006-08-04 18:18:08 +00003849 fi
3850fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003851{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3852echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003853 EGREP="$ac_cv_path_EGREP"
3854
3855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003856{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3858if test "${ac_cv_header_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003861 cat >conftest.$ac_ext <<_ACEOF
3862/* confdefs.h. */
3863_ACEOF
3864cat confdefs.h >>conftest.$ac_ext
3865cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003867#include <stdlib.h>
3868#include <stdarg.h>
3869#include <string.h>
3870#include <float.h>
3871
John Criswell0c38eaf2003-09-10 15:17:25 +00003872int
3873main ()
3874{
3875
3876 ;
3877 return 0;
3878}
John Criswell7a73b802003-06-30 21:59:07 +00003879_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003880rm -f conftest.$ac_objext
3881if { (ac_try="$ac_compile"
3882case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885esac
3886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895 { (case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898esac
3899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_try") 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908esac
3909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003914 ac_cv_header_stdc=yes
3915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003916 echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003921
Reid Spencera773bd52006-08-04 18:18:08 +00003922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003923
3924if test $ac_cv_header_stdc = yes; then
3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 cat >conftest.$ac_ext <<_ACEOF
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003932#include <string.h>
3933
3934_ACEOF
3935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003936 $EGREP "memchr" >/dev/null 2>&1; then
3937 :
John Criswell7a73b802003-06-30 21:59:07 +00003938else
3939 ac_cv_header_stdc=no
3940fi
3941rm -f conftest*
3942
3943fi
3944
3945if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947 cat >conftest.$ac_ext <<_ACEOF
3948/* confdefs.h. */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003953#include <stdlib.h>
3954
3955_ACEOF
3956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957 $EGREP "free" >/dev/null 2>&1; then
3958 :
John Criswell7a73b802003-06-30 21:59:07 +00003959else
3960 ac_cv_header_stdc=no
3961fi
3962rm -f conftest*
3963
3964fi
3965
3966if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003968 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003969 :
3970else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003971 cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003976/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003977#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003978#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003979#if ((' ' & 0x0FF) == 0x020)
3980# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3982#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003983# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988#endif
3989
3990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991int
3992main ()
3993{
3994 int i;
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003997 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003998 return 2;
3999 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004000}
4001_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002rm -f conftest$ac_exeext
4003if { (ac_try="$ac_link"
4004case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_link") 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4022 :
John Criswell7a73b802003-06-30 21:59:07 +00004023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004024 echo "$as_me: program exited with status $ac_status" >&5
4025echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028( exit $ac_status )
4029ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031rm -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 +00004032fi
4033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034
John Criswell7a73b802003-06-30 21:59:07 +00004035fi
4036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004039if test $ac_cv_header_stdc = yes; then
4040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041cat >>confdefs.h <<\_ACEOF
4042#define STDC_HEADERS 1
4043_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004044
4045fi
4046
Reid Spencera773bd52006-08-04 18:18:08 +00004047# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048
4049
4050
4051
4052
4053
4054
4055
4056
Reid Spencera773bd52006-08-04 18:18:08 +00004057for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059do
4060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066 cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072$ac_includes_default
4073
4074#include <$ac_header>
4075_ACEOF
4076rm -f conftest.$ac_objext
4077if { (ac_try="$ac_compile"
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 eval "$as_ac_Header=yes"
4111else
4112 echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 eval "$as_ac_Header=no"
4116fi
4117
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119fi
4120ac_res=`eval echo '${'$as_ac_Header'}'`
4121 { echo "$as_me:$LINENO: result: $ac_res" >&5
4122echo "${ECHO_T}$ac_res" >&6; }
4123if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004124 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004126_ACEOF
4127
4128fi
4129
4130done
4131
4132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4134echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4135if test "${ac_cv_c_bigendian+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004137else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138 # See if sys/param.h defines the BYTE_ORDER macro.
4139cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004141_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004144/* end confdefs.h. */
4145#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004146#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004147
4148int
4149main ()
4150{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004151#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4152 bogus endian macros
4153#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004154
4155 ;
4156 return 0;
4157}
4158_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159rm -f conftest.$ac_objext
4160if { (ac_try="$ac_compile"
4161case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004193 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004199/* end confdefs.h. */
4200#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004202
4203int
4204main ()
4205{
4206#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004207 not big endian
4208#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004209
4210 ;
4211 return 0;
4212}
4213_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004214rm -f conftest.$ac_objext
4215if { (ac_try="$ac_compile"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004248 ac_cv_c_bigendian=yes
4249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004250 echo "$as_me: failed program was:" >&5
4251sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004253 ac_cv_c_bigendian=no
4254fi
4255
4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257else
4258 echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 # It does not; compile a test program.
4262if test "$cross_compiling" = yes; then
4263 # try to guess the endianness by grepping values into an object file
4264 ac_cv_c_bigendian=unknown
4265 cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h. */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h. */
4271short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4272short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4273void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4274short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4275short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4276void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004277int
4278main ()
4279{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004280 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004281 ;
4282 return 0;
4283}
4284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004285rm -f conftest.$ac_objext
4286if { (ac_try="$ac_compile"
4287case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest.$ac_objext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004320 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004321fi
4322if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4323 if test "$ac_cv_c_bigendian" = unknown; then
4324 ac_cv_c_bigendian=no
4325 else
4326 # finding both strings is unlikely to happen, but who knows?
4327 ac_cv_c_bigendian=unknown
4328 fi
4329fi
Reid Spencera773bd52006-08-04 18:18:08 +00004330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004331 echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004334
Torok Edwin871384f2010-01-26 08:50:50 +00004335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336
Reid Spencera773bd52006-08-04 18:18:08 +00004337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004344/* end confdefs.h. */
4345$ac_includes_default
4346int
4347main ()
4348{
4349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350 /* Are we little or big endian? From Harbison&Steele. */
4351 union
4352 {
4353 long int l;
4354 char c[sizeof (long int)];
4355 } u;
4356 u.l = 1;
4357 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004358
4359 ;
4360 return 0;
4361}
4362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004363rm -f conftest$ac_exeext
4364if { (ac_try="$ac_link"
4365case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_link") 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004383 ac_cv_c_bigendian=no
4384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385 echo "$as_me: program exited with status $ac_status" >&5
4386echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389( exit $ac_status )
4390ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392rm -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 +00004393fi
4394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004395
Reid Spencera773bd52006-08-04 18:18:08 +00004396fi
4397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399fi
4400{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4401echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4402case $ac_cv_c_bigendian in
4403 yes)
4404 ENDIAN=big
4405 ;;
4406 no)
4407 ENDIAN=little
4408 ;;
4409 *)
4410 { { echo "$as_me:$LINENO: error: unknown endianness
4411presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4412echo "$as_me: error: unknown endianness
4413presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4414 { (exit 1); exit 1; }; } ;;
4415esac
Reid Spencera773bd52006-08-04 18:18:08 +00004416
4417
4418if test "$cross_compiling" = yes; then
4419 LLVM_CROSS_COMPILING=1
4420
4421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004422{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4423echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4424if test "${ac_cv_build_exeext+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004426else
4427 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4428 ac_cv_build_exeext=.exe
4429else
4430 ac_build_prefix=${build_alias}-
4431
4432 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4433set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004438else
4439 if test -n "$BUILD_CC"; then
4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 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 +00004449 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004451 break 2
4452 fi
4453done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454done
Reid Spencera773bd52006-08-04 18:18:08 +00004455IFS=$as_save_IFS
4456
4457fi
4458fi
4459BUILD_CC=$ac_cv_prog_BUILD_CC
4460if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 { echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004466fi
4467
4468
4469 if test -z "$BUILD_CC"; then
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004476else
4477 if test -n "$BUILD_CC"; then
4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 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 +00004487 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004489 break 2
4490 fi
4491done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492done
Reid Spencera773bd52006-08-04 18:18:08 +00004493IFS=$as_save_IFS
4494
4495fi
4496fi
4497BUILD_CC=$ac_cv_prog_BUILD_CC
4498if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004502 { echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004504fi
4505
4506
4507 if test -z "$BUILD_CC"; then
4508 # Extract the first word of "cc", so it can be a program name with args.
4509set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004514else
4515 if test -n "$BUILD_CC"; then
4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4517else
4518 ac_prog_rejected=no
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 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 +00004526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527 ac_prog_rejected=yes
4528 continue
4529 fi
4530 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004532 break 2
4533 fi
4534done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535done
Reid Spencera773bd52006-08-04 18:18:08 +00004536IFS=$as_save_IFS
4537
4538if test $ac_prog_rejected = yes; then
4539 # We found a bogon in the path, so make sure we never use it.
4540 set dummy $ac_cv_prog_BUILD_CC
4541 shift
4542 if test $# != 0; then
4543 # We chose a different compiler from the bogus one.
4544 # However, it has the same basename, so the bogon will be chosen
4545 # first if we set BUILD_CC to just the basename; use the full file name.
4546 shift
4547 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 fi
4549fi
4550fi
4551fi
4552BUILD_CC=$ac_cv_prog_BUILD_CC
4553if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4555echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557 { echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004559fi
4560
4561
4562 fi
4563 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4565echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004567 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568 rm -f conftest*
4569 echo 'int main () { return 0; }' > conftest.$ac_ext
4570 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004571 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004572 (eval $ac_build_link) 2>&5
4573 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004576 for file in conftest.*; do
4577 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004578 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004579 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4580 esac
4581 done
4582 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4584echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4585 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004586 fi
4587 rm -f conftest*
4588 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4589fi
4590fi
4591
4592BUILD_EXEEXT=""
4593test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4595echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004596ac_build_exeext=$BUILD_EXEEXT
4597
Jim Grosbach673612e2008-10-02 22:56:44 +00004598 ac_build_prefix=${build_alias}-
4599 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4600set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004605else
4606 if test -n "$BUILD_CXX"; then
4607 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 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 +00004616 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004618 break 2
4619 fi
4620done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621done
Jim Grosbach673612e2008-10-02 22:56:44 +00004622IFS=$as_save_IFS
4623
4624fi
4625fi
4626BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631 { echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004633fi
4634
4635
4636 if test -z "$BUILD_CXX"; then
4637 # Extract the first word of "g++", so it can be a program name with args.
4638set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004643else
4644 if test -n "$BUILD_CXX"; then
4645 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 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 +00004654 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004656 break 2
4657 fi
4658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004659done
Jim Grosbach673612e2008-10-02 22:56:44 +00004660IFS=$as_save_IFS
4661
4662fi
4663fi
4664BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004669 { echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004671fi
4672
4673
4674 if test -z "$BUILD_CXX"; then
4675 # Extract the first word of "c++", so it can be a program name with args.
4676set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004681else
4682 if test -n "$BUILD_CXX"; then
4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4684else
4685 ac_prog_rejected=no
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 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 +00004693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4694 ac_prog_rejected=yes
4695 continue
4696 fi
4697 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004699 break 2
4700 fi
4701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702done
Jim Grosbach673612e2008-10-02 22:56:44 +00004703IFS=$as_save_IFS
4704
4705if test $ac_prog_rejected = yes; then
4706 # We found a bogon in the path, so make sure we never use it.
4707 set dummy $ac_cv_prog_BUILD_CXX
4708 shift
4709 if test $# != 0; then
4710 # We chose a different compiler from the bogus one.
4711 # However, it has the same basename, so the bogon will be chosen
4712 # first if we set BUILD_CXX to just the basename; use the full file name.
4713 shift
4714 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 fi
4716fi
4717fi
4718fi
4719BUILD_CXX=$ac_cv_prog_BUILD_CXX
4720if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004721 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4722echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724 { echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004726fi
4727
4728
4729 fi
4730 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004731else
4732 LLVM_CROSS_COMPILING=0
4733
4734fi
4735
Dan Gohman56fb5f92010-08-04 16:25:01 +00004736if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004737 cvsbuild="yes"
4738 optimize="no"
4739 CVSBUILD=CVSBUILD=1
4740
4741else
4742 cvsbuild="no"
4743 optimize="yes"
4744fi
4745
4746
4747# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004749 enableval=$enable_optimized;
4750else
4751 enableval=$optimize
4752fi
4753
4754if test ${enableval} = "no" ; then
4755 ENABLE_OPTIMIZED=
4756
4757else
4758 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4759
4760fi
4761
David Greene2a5a12c2009-04-17 14:50:39 +00004762# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004764 enableval=$enable_profiling;
4765else
4766 enableval="no"
4767fi
4768
4769if test ${enableval} = "no" ; then
4770 ENABLE_PROFILING=
4771
4772else
4773 ENABLE_PROFILING=ENABLE_PROFILING=1
4774
4775fi
4776
Reid Spencera773bd52006-08-04 18:18:08 +00004777# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004779 enableval=$enable_assertions;
4780else
4781 enableval="yes"
4782fi
4783
4784if test ${enableval} = "yes" ; then
4785 DISABLE_ASSERTIONS=
4786
4787else
4788 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4789
4790fi
4791
David Greenea696d242007-06-28 19:36:08 +00004792# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004794 enableval=$enable_expensive_checks;
4795else
4796 enableval="no"
4797fi
4798
4799if test ${enableval} = "yes" ; then
4800 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4801
4802 EXPENSIVE_CHECKS=yes
4803
4804else
4805 ENABLE_EXPENSIVE_CHECKS=
4806
4807 EXPENSIVE_CHECKS=no
4808
4809fi
4810
Reid Spencer8b2e1412006-11-17 03:32:33 +00004811# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004813 enableval=$enable_debug_runtime;
4814else
4815 enableval=no
4816fi
4817
4818if test ${enableval} = "no" ; then
4819 DEBUG_RUNTIME=
4820
4821else
4822 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4823
4824fi
4825
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004826# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004828 enableval=$enable_debug_symbols;
4829else
4830 enableval=no
4831fi
4832
4833if test ${enableval} = "no" ; then
4834 DEBUG_SYMBOLS=
4835
4836else
4837 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4838
4839fi
4840
Reid Spencera773bd52006-08-04 18:18:08 +00004841# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004843 enableval=$enable_jit;
4844else
4845 enableval=default
4846fi
4847
4848if test ${enableval} = "no"
4849then
4850 JIT=
4851
4852else
4853 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004854 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004855 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004857 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004858 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004860 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004861 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004862 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004863 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004864 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004865 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004866 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004867 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004868 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004869 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004870 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004871 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004872 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004873 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004874 Blackfin) TARGET_HAS_JIT=0
4875 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004876 MBlaze) TARGET_HAS_JIT=0
4877 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004878 PTX) TARGET_HAS_JIT=0
4879 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004880 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004881 ;;
4882 esac
4883fi
4884
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004885# Check whether --enable-docs was given.
4886if test "${enable_docs+set}" = set; then
4887 enableval=$enable_docs;
4888else
4889 enableval=default
4890fi
4891
4892case "$enableval" in
4893 yes) ENABLE_DOCS=1
4894 ;;
4895 no) ENABLE_DOCS=0
4896 ;;
4897 default) ENABLE_DOCS=1
4898 ;;
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4900echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4902esac
4903
Reid Spencera773bd52006-08-04 18:18:08 +00004904# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004906 enableval=$enable_doxygen;
4907else
4908 enableval=default
4909fi
4910
4911case "$enableval" in
4912 yes) ENABLE_DOXYGEN=1
4913 ;;
4914 no) ENABLE_DOXYGEN=0
4915 ;;
4916 default) ENABLE_DOXYGEN=0
4917 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4919echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004921esac
4922
4923# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004925 enableval=$enable_threads;
4926else
Reid Spencer65c5d752006-11-05 17:08:18 +00004927 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004928fi
4929
4930case "$enableval" in
4931 yes) ENABLE_THREADS=1
4932 ;;
4933 no) ENABLE_THREADS=0
4934 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004935 default) ENABLE_THREADS=1
4936 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4938echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4939 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004940esac
4941
Owen Andersona8603702009-05-19 22:18:56 +00004942cat >>confdefs.h <<_ACEOF
4943#define ENABLE_THREADS $ENABLE_THREADS
4944_ACEOF
4945
4946
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004947# Check whether --enable-pthreads was given.
4948if test "${enable_pthreads+set}" = set; then
4949 enableval=$enable_pthreads;
4950else
4951 enableval=default
4952fi
4953
4954case "$enableval" in
4955 yes) ENABLE_PTHREADS=1
4956 ;;
4957 no) ENABLE_PTHREADS=0
4958 ;;
4959 default) ENABLE_PTHREADS=1
4960 ;;
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4962echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4964esac
4965
Reid Spencer89b0d992006-12-16 22:07:52 +00004966# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004967if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004968 enableval=$enable_pic;
4969else
4970 enableval=default
4971fi
4972
4973case "$enableval" in
4974 yes) ENABLE_PIC=1
4975 ;;
4976 no) ENABLE_PIC=0
4977 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004978 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004979 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4981echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4982 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004983esac
4984
4985cat >>confdefs.h <<_ACEOF
4986#define ENABLE_PIC $ENABLE_PIC
4987_ACEOF
4988
4989
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004990# Check whether --enable-shared was given.
4991if test "${enable_shared+set}" = set; then
4992 enableval=$enable_shared;
4993else
4994 enableval=default
4995fi
4996
4997case "$enableval" in
4998 yes) ENABLE_SHARED=1
4999 ;;
5000 no) ENABLE_SHARED=0
5001 ;;
5002 default) ENABLE_SHARED=0
5003 ;;
5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5005echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5007esac
5008
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005009# Check whether --enable-embed-stdcxx was given.
5010if test "${enable_embed_stdcxx+set}" = set; then
5011 enableval=$enable_embed_stdcxx;
5012else
5013 enableval=default
5014fi
5015
5016case "$enableval" in
5017 yes) ENABLE_EMBED_STDCXX=1
5018 ;;
5019 no) ENABLE_EMBED_STDCXX=0
5020 ;;
5021 default) ENABLE_EMBED_STDCXX=1
5022 ;;
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5024echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5026esac
5027
Daniel Dunbardd464df2010-05-10 20:11:56 +00005028# Check whether --enable-timestamps was given.
5029if test "${enable_timestamps+set}" = set; then
5030 enableval=$enable_timestamps;
5031else
5032 enableval=default
5033fi
5034
5035case "$enableval" in
5036 yes) ENABLE_TIMESTAMPS=1
5037 ;;
5038 no) ENABLE_TIMESTAMPS=0
5039 ;;
5040 default) ENABLE_TIMESTAMPS=1
5041 ;;
5042 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5043echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5044 { (exit 1); exit 1; }; } ;;
5045esac
5046
5047cat >>confdefs.h <<_ACEOF
5048#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5049_ACEOF
5050
5051
Reid Spencera773bd52006-08-04 18:18:08 +00005052TARGETS_TO_BUILD=""
5053# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005054if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005055 enableval=$enable_targets;
5056else
5057 enableval=all
5058fi
5059
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005060if test "$enableval" = host-only ; then
5061 enableval=host
5062fi
Reid Spencera773bd52006-08-04 18:18:08 +00005063case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005064 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005065 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5066 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005067 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5068 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5069 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5070 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5071 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5072 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5073 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5074 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005075 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5076 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5077 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5078 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5079 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005080 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005081 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005082 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005083 host) case "$llvm_cv_target_arch" in
5084 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5085 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5086 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5087 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5088 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5089 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5090 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005091 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005092 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005093 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5094 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005095 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005096 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005097 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005098 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5099echo "$as_me: error: Can not set target to build" >&2;}
5100 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005101 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005102 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5103echo "$as_me: error: Unrecognized target $a_target" >&2;}
5104 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005105 esac
5106 done
5107 ;;
5108esac
Reid Spencera773bd52006-08-04 18:18:08 +00005109TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5110
5111
Douglas Gregor0711c302009-06-17 00:43:20 +00005112# Determine whether we are building LLVM support for the native architecture.
5113# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5114for a_target in $TARGETS_TO_BUILD; do
5115 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5116
5117cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005118#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5119_ACEOF
5120
5121 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5122 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5123 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005124 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5125 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5126 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005127
5128cat >>confdefs.h <<_ACEOF
5129#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005130_ACEOF
5131
5132
5133cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005134#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5135_ACEOF
5136
5137
5138cat >>confdefs.h <<_ACEOF
5139#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005140_ACEOF
5141
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005142 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005143
5144cat >>confdefs.h <<_ACEOF
5145#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5146_ACEOF
5147
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005148 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005149 fi
5150done
5151
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005152# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5153# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005154LLVM_ENUM_TARGETS=""
5155LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005156LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005157LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005158for target_to_build in $TARGETS_TO_BUILD; do
5159 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005160 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005161 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5162 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005163 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5164 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5165 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005166 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5167 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5168 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005169done
5170
5171
5172
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005173
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005174
Reid Spencer65c5d752006-11-05 17:08:18 +00005175# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005176if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005177 enableval=$enable_cbe_printf_a;
5178else
5179 enableval=default
5180fi
5181
5182case "$enableval" in
5183 yes) ENABLE_CBE_PRINTF_A=1
5184 ;;
5185 no) ENABLE_CBE_PRINTF_A=0
5186 ;;
5187 default) ENABLE_CBE_PRINTF_A=1
5188 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5190echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005192esac
5193
5194cat >>confdefs.h <<_ACEOF
5195#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5196_ACEOF
5197
5198
Reid Spencera773bd52006-08-04 18:18:08 +00005199
5200# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005201if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005202 withval=$with_llvmgccdir;
5203else
5204 withval=default
5205fi
5206
5207case "$withval" in
5208 default) WITH_LLVMGCCDIR=default ;;
5209 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005210 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5211echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5212 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005213esac
5214
5215
Devang Patel5d28b882007-12-04 22:54:47 +00005216# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005217if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005218 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5219 WITH_LLVMGCCDIR=""
5220fi
5221
5222
5223
5224# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005225if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005226 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5227 WITH_LLVMGCCDIR=""
5228fi
5229
Douglas Gregor01746742009-05-11 18:05:52 +00005230
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005231if test -n "$LLVMGCC"; then
5232 LLVMGCCCOMMAND="$LLVMGCC"
5233fi
5234
5235if test -n "$LLVMGXX"; then
5236 LLVMGXXCOMMAND="$LLVMGXX"
5237fi
Devang Patel5d28b882007-12-04 22:54:47 +00005238
5239if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005240 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5241echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5242 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005243fi
5244
5245if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005246 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5247echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5248 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005249fi
5250
5251
Daniel Dunbar98515672010-02-23 10:00:49 +00005252# Check whether --with-clang was given.
5253if test "${with_clang+set}" = set; then
5254 withval=$with_clang;
5255else
5256 with_clang=default
5257fi
5258
5259
5260
5261# Check whether --with-built-clang was given.
5262if test "${with_built_clang+set}" = set; then
5263 withval=$with_built_clang;
5264else
5265 with_built_clang=check
5266fi
5267
5268
5269{ echo "$as_me:$LINENO: checking clang compiler" >&5
5270echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5271WITH_CLANGPATH=""
5272WITH_BUILT_CLANG=0
5273if test "$with_clang" != "default"; then
5274 WITH_CLANGPATH="$with_clang"
5275 if ! test -x "$WITH_CLANGPATH"; then
5276 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5277echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5278 { (exit 1); exit 1; }; }
5279 fi
5280elif test "$with_built_clang" = "yes"; then
5281 WITH_BUILT_CLANG=1
5282elif test "$with_built_clang" = "no"; then
5283 WITH_BUILT_CLANG=0
5284else
5285 if test "$with_built_clang" != "check"; then
5286 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5287echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5288 { (exit 1); exit 1; }; }
5289 fi
5290
5291 if test -f ${srcdir}/tools/clang/README.txt; then
5292 WITH_BUILT_CLANG=1
5293 fi
5294fi
5295
5296if ! test -z "$WITH_CLANGPATH"; then
5297 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5298echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5299 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5300elif test "$WITH_BUILT_CLANG" = "1"; then
5301 { echo "$as_me:$LINENO: result: built" >&5
5302echo "${ECHO_T}built" >&6; }
5303else
5304 { echo "$as_me:$LINENO: result: none" >&5
5305echo "${ECHO_T}none" >&6; }
5306fi
5307CLANGPATH=$WITH_CLANGPATH
5308
5309CLANGXXPATH=$WITH_CLANGXXPATH
5310
5311ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5312
5313
5314
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005315# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005316if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005317 withval=$with_optimize_option;
5318else
5319 withval=default
5320fi
5321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005322{ echo "$as_me:$LINENO: checking optimization flags" >&5
5323echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005324case "$withval" in
5325 default)
5326 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005327 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005328 MingW) optimize_option=-O2 ;;
5329 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005330 esac ;;
5331 *) optimize_option="$withval" ;;
5332esac
5333OPTIMIZE_OPTION=$optimize_option
5334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005335{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5336echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005337
5338
Reid Spencera773bd52006-08-04 18:18:08 +00005339# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005340if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005341 withval=$with_extra_options;
5342else
5343 withval=default
5344fi
5345
5346case "$withval" in
5347 default) EXTRA_OPTIONS= ;;
5348 *) EXTRA_OPTIONS=$withval ;;
5349esac
5350EXTRA_OPTIONS=$EXTRA_OPTIONS
5351
5352
Daniel Dunbared344d22011-06-16 22:30:41 +00005353
5354# Check whether --with-extra-ld-options was given.
5355if test "${with_extra_ld_options+set}" = set; then
5356 withval=$with_extra_ld_options;
5357else
5358 withval=default
5359fi
5360
5361case "$withval" in
5362 default) EXTRA_LD_OPTIONS= ;;
5363 *) EXTRA_LD_OPTIONS=$withval ;;
5364esac
5365EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5366
5367
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005368# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005369if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005370 enableval=$enable_bindings;
5371else
5372 enableval=default
5373fi
5374
5375BINDINGS_TO_BUILD=""
5376case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005377 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005378 all ) BINDINGS_TO_BUILD="ocaml" ;;
5379 none | no) BINDINGS_TO_BUILD="" ;;
5380 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5381 case "$a_binding" in
5382 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005383 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5384echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5385 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005386 esac
5387 done
5388 ;;
5389esac
5390
Reid Spencera773bd52006-08-04 18:18:08 +00005391
Gordon Henriksenf0915682007-10-02 16:42:22 +00005392# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005393if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005394 withval=$with_ocaml_libdir;
5395else
5396 withval=auto
5397fi
5398
5399case "$withval" in
5400 auto) with_ocaml_libdir="$withval" ;;
5401 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005402 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5403echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5404 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005405esac
5406
5407
Chandler Carruth6b241162010-10-19 08:21:25 +00005408# Check whether --with-clang-resource-dir was given.
5409if test "${with_clang_resource_dir+set}" = set; then
5410 withval=$with_clang_resource_dir;
5411else
5412 withval=""
5413fi
5414
5415
5416cat >>confdefs.h <<_ACEOF
5417#define CLANG_RESOURCE_DIR "$withval"
5418_ACEOF
5419
5420
5421
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005422# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005423if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005424 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005425else
5426 withval=""
5427fi
5428
5429
5430cat >>confdefs.h <<_ACEOF
5431#define C_INCLUDE_DIRS "$withval"
5432_ACEOF
5433
5434
5435
Rafael Espindola420d23c2009-11-16 19:46:55 +00005436# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005437if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005438 withval=$with_cxx_include_root;
5439else
5440 withval=""
5441fi
5442
5443
5444cat >>confdefs.h <<_ACEOF
5445#define CXX_INCLUDE_ROOT "$withval"
5446_ACEOF
5447
5448
5449
5450# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005451if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005452 withval=$with_cxx_include_arch;
5453else
5454 withval=""
5455fi
5456
5457
5458cat >>confdefs.h <<_ACEOF
5459#define CXX_INCLUDE_ARCH "$withval"
5460_ACEOF
5461
5462
5463
5464# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005465if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005466 withval=$with_cxx_include_32bit_dir;
5467else
5468 withval=""
5469fi
5470
5471
5472cat >>confdefs.h <<_ACEOF
5473#define CXX_INCLUDE_32BIT_DIR "$withval"
5474_ACEOF
5475
5476
5477
5478# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005479if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005480 withval=$with_cxx_include_64bit_dir;
5481else
5482 withval=""
5483fi
5484
5485
5486cat >>confdefs.h <<_ACEOF
5487#define CXX_INCLUDE_64BIT_DIR "$withval"
5488_ACEOF
5489
5490
5491
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005492# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005494 withval=$with_binutils_include;
5495else
5496 withval=default
5497fi
5498
5499case "$withval" in
5500 default) WITH_BINUTILS_INCDIR=default ;;
5501 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005502 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5503echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5504 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005505esac
5506if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5507 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5508
5509 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5510 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005511 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5512echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5513 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005514 fi
5515fi
5516
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005517# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005518if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005519 enableval=$enable_libffi; case "$enableval" in
5520 yes) llvm_cv_enable_libffi="yes" ;;
5521 no) llvm_cv_enable_libffi="no" ;;
5522 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005523echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5524 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005525 esac
5526else
5527 llvm_cv_enable_libffi=no
5528fi
5529
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005530
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005531
Reid Spencera773bd52006-08-04 18:18:08 +00005532ac_ext=c
5533ac_cpp='$CPP $CPPFLAGS'
5534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005537{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5538echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005539# On Suns, sometimes $CPP names a directory.
5540if test -n "$CPP" && test -d "$CPP"; then
5541 CPP=
5542fi
5543if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005544 if test "${ac_cv_prog_CPP+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005546else
5547 # Double quotes because CPP needs to be expanded
5548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5549 do
5550 ac_preproc_ok=false
5551for ac_c_preproc_warn_flag in '' yes
5552do
5553 # Use a header file that comes with gcc, so configuring glibc
5554 # with a fresh cross-compiler works.
5555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5556 # <limits.h> exists even on freestanding compilers.
5557 # On the NeXT, cc -E runs the code through the compiler's parser,
5558 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005559 cat >conftest.$ac_ext <<_ACEOF
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005564/* end confdefs.h. */
5565#ifdef __STDC__
5566# include <limits.h>
5567#else
5568# include <assert.h>
5569#endif
5570 Syntax error
5571_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005572if { (ac_try="$ac_cpp conftest.$ac_ext"
5573case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576esac
5577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } >/dev/null; then
5585 if test -s conftest.err; then
5586 ac_cpp_err=$ac_c_preproc_warn_flag
5587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5588 else
5589 ac_cpp_err=
5590 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005592 ac_cpp_err=yes
5593fi
5594if test -z "$ac_cpp_err"; then
5595 :
5596else
5597 echo "$as_me: failed program was:" >&5
5598sed 's/^/| /' conftest.$ac_ext >&5
5599
Reid Spencera773bd52006-08-04 18:18:08 +00005600 # Broken: fails on valid input.
5601continue
5602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005603
Reid Spencera773bd52006-08-04 18:18:08 +00005604rm -f conftest.err conftest.$ac_ext
5605
5606 # OK, works on sane cases. Now check whether nonexistent headers
5607 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005608 cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h. */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005613/* end confdefs.h. */
5614#include <ac_nonexistent.h>
5615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616if { (ac_try="$ac_cpp conftest.$ac_ext"
5617case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } >/dev/null; then
5629 if test -s conftest.err; then
5630 ac_cpp_err=$ac_c_preproc_warn_flag
5631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5632 else
5633 ac_cpp_err=
5634 fi
5635else
5636 ac_cpp_err=yes
5637fi
5638if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005639 # Broken: success on invalid input.
5640continue
5641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005642 echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
Reid Spencera773bd52006-08-04 18:18:08 +00005645 # Passes both tests.
5646ac_preproc_ok=:
5647break
5648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005649
Reid Spencera773bd52006-08-04 18:18:08 +00005650rm -f conftest.err conftest.$ac_ext
5651
5652done
5653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5654rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005656 break
5657fi
5658
5659 done
5660 ac_cv_prog_CPP=$CPP
5661
5662fi
5663 CPP=$ac_cv_prog_CPP
5664else
5665 ac_cv_prog_CPP=$CPP
5666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005667{ echo "$as_me:$LINENO: result: $CPP" >&5
5668echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005669ac_preproc_ok=false
5670for ac_c_preproc_warn_flag in '' yes
5671do
5672 # Use a header file that comes with gcc, so configuring glibc
5673 # with a fresh cross-compiler works.
5674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5675 # <limits.h> exists even on freestanding compilers.
5676 # On the NeXT, cc -E runs the code through the compiler's parser,
5677 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005678 cat >conftest.$ac_ext <<_ACEOF
5679/* confdefs.h. */
5680_ACEOF
5681cat confdefs.h >>conftest.$ac_ext
5682cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005683/* end confdefs.h. */
5684#ifdef __STDC__
5685# include <limits.h>
5686#else
5687# include <assert.h>
5688#endif
5689 Syntax error
5690_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005691if { (ac_try="$ac_cpp conftest.$ac_ext"
5692case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } >/dev/null; then
5704 if test -s conftest.err; then
5705 ac_cpp_err=$ac_c_preproc_warn_flag
5706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5707 else
5708 ac_cpp_err=
5709 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005711 ac_cpp_err=yes
5712fi
5713if test -z "$ac_cpp_err"; then
5714 :
5715else
5716 echo "$as_me: failed program was:" >&5
5717sed 's/^/| /' conftest.$ac_ext >&5
5718
Reid Spencera773bd52006-08-04 18:18:08 +00005719 # Broken: fails on valid input.
5720continue
5721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005722
Reid Spencera773bd52006-08-04 18:18:08 +00005723rm -f conftest.err conftest.$ac_ext
5724
5725 # OK, works on sane cases. Now check whether nonexistent headers
5726 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005727 cat >conftest.$ac_ext <<_ACEOF
5728/* confdefs.h. */
5729_ACEOF
5730cat confdefs.h >>conftest.$ac_ext
5731cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005732/* end confdefs.h. */
5733#include <ac_nonexistent.h>
5734_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005735if { (ac_try="$ac_cpp conftest.$ac_ext"
5736case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739esac
5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } >/dev/null; then
5748 if test -s conftest.err; then
5749 ac_cpp_err=$ac_c_preproc_warn_flag
5750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5751 else
5752 ac_cpp_err=
5753 fi
5754else
5755 ac_cpp_err=yes
5756fi
5757if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005758 # Broken: success on invalid input.
5759continue
5760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761 echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
Reid Spencera773bd52006-08-04 18:18:08 +00005764 # Passes both tests.
5765ac_preproc_ok=:
5766break
5767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768
Reid Spencera773bd52006-08-04 18:18:08 +00005769rm -f conftest.err conftest.$ac_ext
5770
5771done
5772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774if $ac_preproc_ok; then
5775 :
Reid Spencera773bd52006-08-04 18:18:08 +00005776else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005777 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5778See \`config.log' for more details." >&5
5779echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5780See \`config.log' for more details." >&2;}
5781 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005782fi
5783
5784ac_ext=c
5785ac_cpp='$CPP $CPPFLAGS'
5786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789
5790ac_ext=c
5791ac_cpp='$CPP $CPPFLAGS'
5792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795if test -n "$ac_tool_prefix"; then
5796 for ac_prog in gcc
5797 do
5798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802if test "${ac_cv_prog_CC+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005804else
5805 if test -n "$CC"; then
5806 ac_cv_prog_CC="$CC" # Let the user override the test.
5807else
5808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809for as_dir in $PATH
5810do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 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 +00005815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005817 break 2
5818 fi
5819done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005820done
Reid Spencera773bd52006-08-04 18:18:08 +00005821IFS=$as_save_IFS
5822
5823fi
5824fi
5825CC=$ac_cv_prog_CC
5826if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005827 { echo "$as_me:$LINENO: result: $CC" >&5
5828echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005829else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005830 { echo "$as_me:$LINENO: result: no" >&5
5831echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005832fi
5833
5834
5835 test -n "$CC" && break
5836 done
5837fi
5838if test -z "$CC"; then
5839 ac_ct_CC=$CC
5840 for ac_prog in gcc
5841do
5842 # Extract the first word of "$ac_prog", so it can be a program name with args.
5843set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005848else
5849 if test -n "$ac_ct_CC"; then
5850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 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 +00005859 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005861 break 2
5862 fi
5863done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864done
Reid Spencera773bd52006-08-04 18:18:08 +00005865IFS=$as_save_IFS
5866
5867fi
5868fi
5869ac_ct_CC=$ac_cv_prog_ac_ct_CC
5870if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005871 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5872echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874 { echo "$as_me:$LINENO: result: no" >&5
5875echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005876fi
5877
5878
5879 test -n "$ac_ct_CC" && break
5880done
5881
5882 if test "x$ac_ct_CC" = x; then
5883 CC=""
5884 else
5885 case $cross_compiling:$ac_tool_warned in
5886yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005887{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5888whose name does not start with the host triplet. If you think this
5889configuration is useful to you, please write to autoconf@gnu.org." >&5
5890echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5891whose name does not start with the host triplet. If you think this
5892configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005893ac_tool_warned=yes ;;
5894esac
5895 CC=$ac_ct_CC
5896 fi
5897fi
5898
5899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5901See \`config.log' for more details." >&5
5902echo "$as_me: error: no acceptable C compiler found in \$PATH
5903See \`config.log' for more details." >&2;}
5904 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005905
5906# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005907echo "$as_me:$LINENO: checking for C compiler version" >&5
5908ac_compiler=`set X $ac_compile; echo $2`
5909{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005910case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005916 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }
5919{ (ac_try="$ac_compiler -v >&5"
5920case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_compiler -v >&5") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }
5929{ (ac_try="$ac_compiler -V >&5"
5930case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compiler -V >&5") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5941echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5942if test "${ac_cv_c_compiler_gnu+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945 cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005950/* end confdefs.h. */
5951
5952int
5953main ()
5954{
5955#ifndef __GNUC__
5956 choke me
5957#endif
5958
5959 ;
5960 return 0;
5961}
5962_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005963rm -f conftest.$ac_objext
5964if { (ac_try="$ac_compile"
5965case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968esac
5969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981esac
5982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991esac
5992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_try") 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005997 ac_compiler_gnu=yes
5998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999 echo "$as_me: failed program was:" >&5
6000sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004
Reid Spencera773bd52006-08-04 18:18:08 +00006005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006ac_cv_c_compiler_gnu=$ac_compiler_gnu
6007
6008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6010echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6011GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006012ac_test_CFLAGS=${CFLAGS+set}
6013ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006014{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6015echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6016if test "${ac_cv_prog_cc_g+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006018else
6019 ac_save_c_werror_flag=$ac_c_werror_flag
6020 ac_c_werror_flag=yes
6021 ac_cv_prog_cc_g=no
6022 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023 cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h. */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006028/* end confdefs.h. */
6029
6030int
6031main ()
6032{
6033
6034 ;
6035 return 0;
6036}
6037_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038rm -f conftest.$ac_objext
6039if { (ac_try="$ac_compile"
6040case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043esac
6044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6053 { (case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056esac
6057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_try") 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066esac
6067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_try") 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006072 ac_cv_prog_cc_g=yes
6073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006074 echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 CFLAGS=""
6078 cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006083/* end confdefs.h. */
6084
6085int
6086main ()
6087{
6088
6089 ;
6090 return 0;
6091}
6092_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006093rm -f conftest.$ac_objext
6094if { (ac_try="$ac_compile"
6095case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098esac
6099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_compile") 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6108 { (case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111esac
6112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_try") 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121esac
6122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_try") 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 :
Torok Edwin871384f2010-01-26 08:50:50 +00006128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129 echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006133 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006134 cat >conftest.$ac_ext <<_ACEOF
6135/* confdefs.h. */
6136_ACEOF
6137cat confdefs.h >>conftest.$ac_ext
6138cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006139/* end confdefs.h. */
6140
6141int
6142main ()
6143{
6144
6145 ;
6146 return 0;
6147}
6148_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149rm -f conftest.$ac_objext
6150if { (ac_try="$ac_compile"
6151case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167esac
6168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_try") 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest.$ac_objext'
6174 { (case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177esac
6178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_try") 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006183 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184else
6185 echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188
Reid Spencera773bd52006-08-04 18:18:08 +00006189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006190
Reid Spencera773bd52006-08-04 18:18:08 +00006191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193
Reid Spencera773bd52006-08-04 18:18:08 +00006194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196
Reid Spencera773bd52006-08-04 18:18:08 +00006197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 ac_c_werror_flag=$ac_save_c_werror_flag
6199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6201echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006202if test "$ac_test_CFLAGS" = set; then
6203 CFLAGS=$ac_save_CFLAGS
6204elif test $ac_cv_prog_cc_g = yes; then
6205 if test "$GCC" = yes; then
6206 CFLAGS="-g -O2"
6207 else
6208 CFLAGS="-g"
6209 fi
6210else
6211 if test "$GCC" = yes; then
6212 CFLAGS="-O2"
6213 else
6214 CFLAGS=
6215 fi
6216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6218echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6219if test "${ac_cv_prog_cc_c89+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006221else
6222 ac_cv_prog_cc_c89=no
6223ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h. */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006229/* end confdefs.h. */
6230#include <stdarg.h>
6231#include <stdio.h>
6232#include <sys/types.h>
6233#include <sys/stat.h>
6234/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6235struct buf { int x; };
6236FILE * (*rcsopen) (struct buf *, struct stat *, int);
6237static char *e (p, i)
6238 char **p;
6239 int i;
6240{
6241 return p[i];
6242}
6243static char *f (char * (*g) (char **, int), char **p, ...)
6244{
6245 char *s;
6246 va_list v;
6247 va_start (v,p);
6248 s = g (p, va_arg (v,int));
6249 va_end (v);
6250 return s;
6251}
6252
6253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6254 function prototypes and stuff, but not '\xHH' hex character constants.
6255 These don't provoke an error unfortunately, instead are silently treated
6256 as 'x'. The following induces an error, until -std is added to get
6257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6258 array size at least. It's necessary to write '\x00'==0 to get something
6259 that's true only with -std. */
6260int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6261
6262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6263 inside strings and character constants. */
6264#define FOO(x) 'x'
6265int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6266
6267int test (int i, double x);
6268struct s1 {int (*f) (int a);};
6269struct s2 {int (*f) (double a);};
6270int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6271int argc;
6272char **argv;
6273int
6274main ()
6275{
6276return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6277 ;
6278 return 0;
6279}
6280_ACEOF
6281for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6283do
6284 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285 rm -f conftest.$ac_objext
6286if { (ac_try="$ac_compile"
6287case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6300 { (case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313esac
6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_try") 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006319 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320else
6321 echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
6323
6324
Reid Spencera773bd52006-08-04 18:18:08 +00006325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006326
Reid Spencera773bd52006-08-04 18:18:08 +00006327rm -f core conftest.err conftest.$ac_objext
6328 test "x$ac_cv_prog_cc_c89" != "xno" && break
6329done
6330rm -f conftest.$ac_ext
6331CC=$ac_save_CC
6332
6333fi
6334# AC_CACHE_VAL
6335case "x$ac_cv_prog_cc_c89" in
6336 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337 { echo "$as_me:$LINENO: result: none needed" >&5
6338echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006339 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340 { echo "$as_me:$LINENO: result: unsupported" >&5
6341echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006342 *)
6343 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6345echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006346esac
6347
6348
6349ac_ext=c
6350ac_cpp='$CPP $CPPFLAGS'
6351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
6355ac_ext=cpp
6356ac_cpp='$CXXCPP $CPPFLAGS'
6357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6360if test -z "$CXX"; then
6361 if test -n "$CCC"; then
6362 CXX=$CCC
6363 else
6364 if test -n "$ac_tool_prefix"; then
6365 for ac_prog in g++
6366 do
6367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6368set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371if test "${ac_cv_prog_CXX+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006373else
6374 if test -n "$CXX"; then
6375 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 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 +00006384 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006386 break 2
6387 fi
6388done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389done
Reid Spencera773bd52006-08-04 18:18:08 +00006390IFS=$as_save_IFS
6391
6392fi
6393fi
6394CXX=$ac_cv_prog_CXX
6395if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396 { echo "$as_me:$LINENO: result: $CXX" >&5
6397echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399 { echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006401fi
6402
6403
6404 test -n "$CXX" && break
6405 done
6406fi
6407if test -z "$CXX"; then
6408 ac_ct_CXX=$CXX
6409 for ac_prog in g++
6410do
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006417else
6418 if test -n "$ac_ct_CXX"; then
6419 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 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 +00006428 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006430 break 2
6431 fi
6432done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433done
Reid Spencera773bd52006-08-04 18:18:08 +00006434IFS=$as_save_IFS
6435
6436fi
6437fi
6438ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6439if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006440 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6441echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006443 { echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006445fi
6446
6447
6448 test -n "$ac_ct_CXX" && break
6449done
6450
6451 if test "x$ac_ct_CXX" = x; then
6452 CXX="g++"
6453 else
6454 case $cross_compiling:$ac_tool_warned in
6455yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006456{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6457whose name does not start with the host triplet. If you think this
6458configuration is useful to you, please write to autoconf@gnu.org." >&5
6459echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6460whose name does not start with the host triplet. If you think this
6461configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006462ac_tool_warned=yes ;;
6463esac
6464 CXX=$ac_ct_CXX
6465 fi
6466fi
6467
6468 fi
6469fi
6470# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006471echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6472ac_compiler=`set X $ac_compile; echo $2`
6473{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006474case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006480 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }
6483{ (ac_try="$ac_compiler -v >&5"
6484case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487esac
6488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_compiler -v >&5") 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }
6493{ (ac_try="$ac_compiler -V >&5"
6494case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
6498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_compiler -V >&5") 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6505echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6506if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509 cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h. */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006514/* end confdefs.h. */
6515
6516int
6517main ()
6518{
6519#ifndef __GNUC__
6520 choke me
6521#endif
6522
6523 ;
6524 return 0;
6525}
6526_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006527rm -f conftest.$ac_objext
6528if { (ac_try="$ac_compile"
6529case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532esac
6533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_compile") 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6542 { (case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545esac
6546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_try") 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555esac
6556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_try") 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006561 ac_compiler_gnu=yes
6562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006563 echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568
Reid Spencera773bd52006-08-04 18:18:08 +00006569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6571
6572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006573{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6574echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6575GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006576ac_test_CXXFLAGS=${CXXFLAGS+set}
6577ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006578{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6579echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6580if test "${ac_cv_prog_cxx_g+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006582else
6583 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6584 ac_cxx_werror_flag=yes
6585 ac_cv_prog_cxx_g=no
6586 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006587 cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h. */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006592/* end confdefs.h. */
6593
6594int
6595main ()
6596{
6597
6598 ;
6599 return 0;
6600}
6601_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602rm -f conftest.$ac_objext
6603if { (ac_try="$ac_compile"
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_compile") 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6617 { (case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620esac
6621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_try") 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try='test -s conftest.$ac_objext'
6627 { (case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630esac
6631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_try") 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006636 ac_cv_prog_cxx_g=yes
6637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006638 echo "$as_me: failed program was:" >&5
6639sed 's/^/| /' conftest.$ac_ext >&5
6640
6641 CXXFLAGS=""
6642 cat >conftest.$ac_ext <<_ACEOF
6643/* confdefs.h. */
6644_ACEOF
6645cat confdefs.h >>conftest.$ac_ext
6646cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006647/* end confdefs.h. */
6648
6649int
6650main ()
6651{
6652
6653 ;
6654 return 0;
6655}
6656_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006657rm -f conftest.$ac_objext
6658if { (ac_try="$ac_compile"
6659case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662esac
6663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_compile") 2>conftest.er1
6665 ac_status=$?
6666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } &&
6671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6672 { (case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675esac
6676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_try") 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest.$ac_objext'
6682 { (case "(($ac_try" in
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6685esac
6686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_try") 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 :
Torok Edwin871384f2010-01-26 08:50:50 +00006692else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006693 echo "$as_me: failed program was:" >&5
6694sed 's/^/| /' conftest.$ac_ext >&5
6695
6696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006697 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698 cat >conftest.$ac_ext <<_ACEOF
6699/* confdefs.h. */
6700_ACEOF
6701cat confdefs.h >>conftest.$ac_ext
6702cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006703/* end confdefs.h. */
6704
6705int
6706main ()
6707{
6708
6709 ;
6710 return 0;
6711}
6712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713rm -f conftest.$ac_objext
6714if { (ac_try="$ac_compile"
6715case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718esac
6719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6728 { (case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731esac
6732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_try") 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; } &&
6737 { ac_try='test -s conftest.$ac_objext'
6738 { (case "(($ac_try" in
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6741esac
6742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_try") 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006747 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748else
6749 echo "$as_me: failed program was:" >&5
6750sed 's/^/| /' conftest.$ac_ext >&5
6751
6752
Reid Spencera773bd52006-08-04 18:18:08 +00006753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006754
Reid Spencera773bd52006-08-04 18:18:08 +00006755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757
Reid Spencera773bd52006-08-04 18:18:08 +00006758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760
Reid Spencera773bd52006-08-04 18:18:08 +00006761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6765echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006766if test "$ac_test_CXXFLAGS" = set; then
6767 CXXFLAGS=$ac_save_CXXFLAGS
6768elif test $ac_cv_prog_cxx_g = yes; then
6769 if test "$GXX" = yes; then
6770 CXXFLAGS="-g -O2"
6771 else
6772 CXXFLAGS="-g"
6773 fi
6774else
6775 if test "$GXX" = yes; then
6776 CXXFLAGS="-O2"
6777 else
6778 CXXFLAGS=
6779 fi
6780fi
6781ac_ext=c
6782ac_cpp='$CPP $CPPFLAGS'
6783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786
Reid Spencera773bd52006-08-04 18:18:08 +00006787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6789echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6790if test "${lt_cv_path_NM+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006792else
6793 if test -n "$NM"; then
6794 # Let the user override the test.
6795 lt_cv_path_NM="$NM"
6796else
6797 lt_nm_to_check="${ac_tool_prefix}nm"
6798 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6799 lt_nm_to_check="$lt_nm_to_check nm"
6800 fi
6801 for lt_tmp_nm in $lt_nm_to_check; do
6802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6803 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6804 IFS="$lt_save_ifs"
6805 test -z "$ac_dir" && ac_dir=.
6806 tmp_nm="$ac_dir/$lt_tmp_nm"
6807 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6808 # Check to see if the nm accepts a BSD-compat flag.
6809 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6810 # nm: unknown option "B" ignored
6811 # Tru64's nm complains that /dev/null is an invalid object file
6812 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6813 */dev/null* | *'Invalid file or object type'*)
6814 lt_cv_path_NM="$tmp_nm -B"
6815 break
6816 ;;
6817 *)
6818 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6819 */dev/null*)
6820 lt_cv_path_NM="$tmp_nm -p"
6821 break
6822 ;;
6823 *)
6824 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6825 continue # so that we can try to find one that supports BSD flags
6826 ;;
6827 esac
6828 ;;
6829 esac
6830 fi
6831 done
6832 IFS="$lt_save_ifs"
6833 done
6834 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6835fi
6836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006837{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6838echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006839NM="$lt_cv_path_NM"
6840
6841
6842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843{ echo "$as_me:$LINENO: checking for GNU make" >&5
6844echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6845if test "${llvm_cv_gnu_make_command+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006847else
6848 llvm_cv_gnu_make_command=''
6849 for a in "$MAKE" make gmake gnumake ; do
6850 if test -z "$a" ; then continue ; fi ;
6851 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6852 then
6853 llvm_cv_gnu_make_command=$a ;
6854 break;
6855 fi
6856 done
6857fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006858{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6859echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006860 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6861 ifGNUmake='' ;
6862 else
6863 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6865echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006866 fi
6867
6868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006869{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6870echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006871LN_S=$as_ln_s
6872if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006873 { echo "$as_me:$LINENO: result: yes" >&5
6874echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006875else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006876 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6877echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006878fi
6879
6880# Extract the first word of "cmp", so it can be a program name with args.
6881set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884if test "${ac_cv_path_CMP+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006886else
6887 case $CMP in
6888 [\\/]* | ?:[\\/]*)
6889 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6890 ;;
6891 *)
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 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 +00006899 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006901 break 2
6902 fi
6903done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904done
Reid Spencera773bd52006-08-04 18:18:08 +00006905IFS=$as_save_IFS
6906
6907 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6908 ;;
6909esac
6910fi
6911CMP=$ac_cv_path_CMP
6912if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913 { echo "$as_me:$LINENO: result: $CMP" >&5
6914echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916 { echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006918fi
6919
6920
6921# Extract the first word of "cp", so it can be a program name with args.
6922set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925if test "${ac_cv_path_CP+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006927else
6928 case $CP in
6929 [\\/]* | ?:[\\/]*)
6930 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6931 ;;
6932 *)
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934for as_dir in $PATH
6935do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 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 +00006940 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006942 break 2
6943 fi
6944done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945done
Reid Spencera773bd52006-08-04 18:18:08 +00006946IFS=$as_save_IFS
6947
6948 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6949 ;;
6950esac
6951fi
6952CP=$ac_cv_path_CP
6953if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954 { echo "$as_me:$LINENO: result: $CP" >&5
6955echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 { echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006959fi
6960
6961
6962# Extract the first word of "date", so it can be a program name with args.
6963set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966if test "${ac_cv_path_DATE+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006968else
6969 case $DATE in
6970 [\\/]* | ?:[\\/]*)
6971 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6972 ;;
6973 *)
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 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 +00006981 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006983 break 2
6984 fi
6985done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986done
Reid Spencera773bd52006-08-04 18:18:08 +00006987IFS=$as_save_IFS
6988
6989 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6990 ;;
6991esac
6992fi
6993DATE=$ac_cv_path_DATE
6994if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995 { echo "$as_me:$LINENO: result: $DATE" >&5
6996echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 { echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007000fi
7001
7002
7003# Extract the first word of "find", so it can be a program name with args.
7004set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007if test "${ac_cv_path_FIND+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007009else
7010 case $FIND in
7011 [\\/]* | ?:[\\/]*)
7012 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7013 ;;
7014 *)
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 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 +00007022 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007024 break 2
7025 fi
7026done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027done
Reid Spencera773bd52006-08-04 18:18:08 +00007028IFS=$as_save_IFS
7029
7030 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7031 ;;
7032esac
7033fi
7034FIND=$ac_cv_path_FIND
7035if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036 { echo "$as_me:$LINENO: result: $FIND" >&5
7037echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039 { echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007041fi
7042
7043
7044# Extract the first word of "grep", so it can be a program name with args.
7045set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048if test "${ac_cv_path_GREP+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007050else
7051 case $GREP in
7052 [\\/]* | ?:[\\/]*)
7053 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7054 ;;
7055 *)
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 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 +00007063 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007065 break 2
7066 fi
7067done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007068done
Reid Spencera773bd52006-08-04 18:18:08 +00007069IFS=$as_save_IFS
7070
7071 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7072 ;;
7073esac
7074fi
7075GREP=$ac_cv_path_GREP
7076if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077 { echo "$as_me:$LINENO: result: $GREP" >&5
7078echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080 { echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007082fi
7083
7084
7085# Extract the first word of "mkdir", so it can be a program name with args.
7086set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089if test "${ac_cv_path_MKDIR+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007091else
7092 case $MKDIR in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7095 ;;
7096 *)
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007104 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007106 break 2
7107 fi
7108done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007109done
Reid Spencera773bd52006-08-04 18:18:08 +00007110IFS=$as_save_IFS
7111
7112 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7113 ;;
7114esac
7115fi
7116MKDIR=$ac_cv_path_MKDIR
7117if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7119echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121 { echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007123fi
7124
7125
7126# Extract the first word of "mv", so it can be a program name with args.
7127set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130if test "${ac_cv_path_MV+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007132else
7133 case $MV in
7134 [\\/]* | ?:[\\/]*)
7135 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7136 ;;
7137 *)
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 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 +00007145 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007147 break 2
7148 fi
7149done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150done
Reid Spencera773bd52006-08-04 18:18:08 +00007151IFS=$as_save_IFS
7152
7153 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7154 ;;
7155esac
7156fi
7157MV=$ac_cv_path_MV
7158if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159 { echo "$as_me:$LINENO: result: $MV" >&5
7160echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007161else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007162 { echo "$as_me:$LINENO: result: no" >&5
7163echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007164fi
7165
7166
7167if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7169set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7172if test "${ac_cv_prog_RANLIB+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007174else
7175 if test -n "$RANLIB"; then
7176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 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 +00007185 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007187 break 2
7188 fi
7189done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190done
Reid Spencera773bd52006-08-04 18:18:08 +00007191IFS=$as_save_IFS
7192
7193fi
7194fi
7195RANLIB=$ac_cv_prog_RANLIB
7196if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7198echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200 { echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007202fi
7203
7204
7205fi
7206if test -z "$ac_cv_prog_RANLIB"; then
7207 ac_ct_RANLIB=$RANLIB
7208 # Extract the first word of "ranlib", so it can be a program name with args.
7209set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007214else
7215 if test -n "$ac_ct_RANLIB"; then
7216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 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 +00007225 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007227 break 2
7228 fi
7229done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230done
Reid Spencera773bd52006-08-04 18:18:08 +00007231IFS=$as_save_IFS
7232
7233fi
7234fi
7235ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7236if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7238echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240 { echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007242fi
7243
7244 if test "x$ac_ct_RANLIB" = x; then
7245 RANLIB=":"
7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007249{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7250whose name does not start with the host triplet. If you think this
7251configuration is useful to you, please write to autoconf@gnu.org." >&5
7252echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7253whose name does not start with the host triplet. If you think this
7254configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007255ac_tool_warned=yes ;;
7256esac
7257 RANLIB=$ac_ct_RANLIB
7258 fi
7259else
7260 RANLIB="$ac_cv_prog_RANLIB"
7261fi
7262
Torok Edwin871384f2010-01-26 08:50:50 +00007263if test -n "$ac_tool_prefix"; then
7264 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7265set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268if test "${ac_cv_prog_AR+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007270else
7271 if test -n "$AR"; then
7272 ac_cv_prog_AR="$AR" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 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 +00007281 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007283 break 2
7284 fi
7285done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286done
Torok Edwin871384f2010-01-26 08:50:50 +00007287IFS=$as_save_IFS
7288
7289fi
7290fi
7291AR=$ac_cv_prog_AR
7292if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293 { echo "$as_me:$LINENO: result: $AR" >&5
7294echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007296 { echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007298fi
7299
7300
7301fi
7302if test -z "$ac_cv_prog_AR"; then
7303 ac_ct_AR=$AR
7304 # Extract the first word of "ar", so it can be a program name with args.
7305set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007310else
7311 if test -n "$ac_ct_AR"; then
7312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 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 +00007321 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007323 break 2
7324 fi
7325done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326done
Torok Edwin871384f2010-01-26 08:50:50 +00007327IFS=$as_save_IFS
7328
7329fi
7330fi
7331ac_ct_AR=$ac_cv_prog_ac_ct_AR
7332if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007333 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7334echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336 { echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007338fi
7339
7340 if test "x$ac_ct_AR" = x; then
7341 AR="false"
7342 else
7343 case $cross_compiling:$ac_tool_warned in
7344yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7346whose name does not start with the host triplet. If you think this
7347configuration is useful to you, please write to autoconf@gnu.org." >&5
7348echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7349whose name does not start with the host triplet. If you think this
7350configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007351ac_tool_warned=yes ;;
7352esac
7353 AR=$ac_ct_AR
7354 fi
7355else
7356 AR="$ac_cv_prog_AR"
7357fi
7358
Reid Spencera773bd52006-08-04 18:18:08 +00007359# Extract the first word of "rm", so it can be a program name with args.
7360set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363if test "${ac_cv_path_RM+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007365else
7366 case $RM in
7367 [\\/]* | ?:[\\/]*)
7368 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7369 ;;
7370 *)
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372for as_dir in $PATH
7373do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 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 +00007378 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007380 break 2
7381 fi
7382done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383done
Reid Spencera773bd52006-08-04 18:18:08 +00007384IFS=$as_save_IFS
7385
7386 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7387 ;;
7388esac
7389fi
7390RM=$ac_cv_path_RM
7391if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392 { echo "$as_me:$LINENO: result: $RM" >&5
7393echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395 { echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007397fi
7398
7399
7400# Extract the first word of "sed", so it can be a program name with args.
7401set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404if test "${ac_cv_path_SED+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007406else
7407 case $SED in
7408 [\\/]* | ?:[\\/]*)
7409 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7410 ;;
7411 *)
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 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 +00007419 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007421 break 2
7422 fi
7423done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424done
Reid Spencera773bd52006-08-04 18:18:08 +00007425IFS=$as_save_IFS
7426
7427 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7428 ;;
7429esac
7430fi
7431SED=$ac_cv_path_SED
7432if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433 { echo "$as_me:$LINENO: result: $SED" >&5
7434echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436 { echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007438fi
7439
7440
7441# Extract the first word of "tar", so it can be a program name with args.
7442set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445if test "${ac_cv_path_TAR+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007447else
7448 case $TAR in
7449 [\\/]* | ?:[\\/]*)
7450 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7451 ;;
7452 *)
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 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 +00007460 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007462 break 2
7463 fi
7464done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465done
Reid Spencera773bd52006-08-04 18:18:08 +00007466IFS=$as_save_IFS
7467
7468 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7469 ;;
7470esac
7471fi
7472TAR=$ac_cv_path_TAR
7473if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 { echo "$as_me:$LINENO: result: $TAR" >&5
7475echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 { echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007479fi
7480
7481
7482# Extract the first word of "pwd", so it can be a program name with args.
7483set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486if test "${ac_cv_path_BINPWD+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007488else
7489 case $BINPWD in
7490 [\\/]* | ?:[\\/]*)
7491 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7492 ;;
7493 *)
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 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 +00007501 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007503 break 2
7504 fi
7505done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007506done
Reid Spencera773bd52006-08-04 18:18:08 +00007507IFS=$as_save_IFS
7508
7509 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7510 ;;
7511esac
7512fi
7513BINPWD=$ac_cv_path_BINPWD
7514if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7516echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518 { echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007520fi
7521
7522
7523
7524# Extract the first word of "Graphviz", so it can be a program name with args.
7525set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007530else
7531 case $GRAPHVIZ in
7532 [\\/]* | ?:[\\/]*)
7533 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7534 ;;
7535 *)
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 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 +00007543 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007545 break 2
7546 fi
7547done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548done
Reid Spencera773bd52006-08-04 18:18:08 +00007549IFS=$as_save_IFS
7550
7551 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7552 ;;
7553esac
7554fi
7555GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7556if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007557 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7558echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560 { echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007562fi
7563
7564
7565if test "$GRAPHVIZ" != "echo Graphviz" ; then
7566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567cat >>confdefs.h <<\_ACEOF
7568#define HAVE_GRAPHVIZ 1
7569_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007570
Jeff Cohen28783c32007-01-12 18:22:38 +00007571 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007572 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7573 fi
7574
7575cat >>confdefs.h <<_ACEOF
7576#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7577_ACEOF
7578
7579fi
7580# Extract the first word of "dot", so it can be a program name with args.
7581set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584if test "${ac_cv_path_DOT+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007586else
7587 case $DOT in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7590 ;;
7591 *)
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 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 +00007599 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007601 break 2
7602 fi
7603done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604done
Reid Spencera773bd52006-08-04 18:18:08 +00007605IFS=$as_save_IFS
7606
7607 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7608 ;;
7609esac
7610fi
7611DOT=$ac_cv_path_DOT
7612if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007613 { echo "$as_me:$LINENO: result: $DOT" >&5
7614echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616 { echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007618fi
7619
7620
7621if test "$DOT" != "echo dot" ; then
7622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007623cat >>confdefs.h <<\_ACEOF
7624#define HAVE_DOT 1
7625_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007626
Jeff Cohen28783c32007-01-12 18:22:38 +00007627 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007628 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7629 fi
7630
7631cat >>confdefs.h <<_ACEOF
7632#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7633_ACEOF
7634
7635fi
David Greenef0b9eff2009-07-09 17:16:26 +00007636# Extract the first word of "fdp", so it can be a program name with args.
7637set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7640if test "${ac_cv_path_FDP+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007642else
7643 case $FDP in
7644 [\\/]* | ?:[\\/]*)
7645 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7646 ;;
7647 *)
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649for as_dir in $PATH
7650do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 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 +00007655 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007657 break 2
7658 fi
7659done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007660done
David Greenef0b9eff2009-07-09 17:16:26 +00007661IFS=$as_save_IFS
7662
7663 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7664 ;;
7665esac
7666fi
7667FDP=$ac_cv_path_FDP
7668if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007669 { echo "$as_me:$LINENO: result: $FDP" >&5
7670echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007671else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007672 { echo "$as_me:$LINENO: result: no" >&5
7673echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007674fi
7675
7676
7677if test "$FDP" != "echo fdp" ; then
7678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007679cat >>confdefs.h <<\_ACEOF
7680#define HAVE_FDP 1
7681_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007682
7683 if test "$llvm_cv_os_type" = "MingW" ; then
7684 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7685 fi
7686
7687cat >>confdefs.h <<_ACEOF
7688#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7689_ACEOF
7690
7691fi
7692# Extract the first word of "neato", so it can be a program name with args.
7693set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696if test "${ac_cv_path_NEATO+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007698else
7699 case $NEATO in
7700 [\\/]* | ?:[\\/]*)
7701 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7702 ;;
7703 *)
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705for as_dir in $PATH
7706do
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 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 +00007711 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007713 break 2
7714 fi
7715done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716done
David Greenef0b9eff2009-07-09 17:16:26 +00007717IFS=$as_save_IFS
7718
7719 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7720 ;;
7721esac
7722fi
7723NEATO=$ac_cv_path_NEATO
7724if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725 { echo "$as_me:$LINENO: result: $NEATO" >&5
7726echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007727else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007728 { echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007730fi
7731
7732
7733if test "$NEATO" != "echo neato" ; then
7734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007735cat >>confdefs.h <<\_ACEOF
7736#define HAVE_NEATO 1
7737_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007738
7739 if test "$llvm_cv_os_type" = "MingW" ; then
7740 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7741 fi
7742
7743cat >>confdefs.h <<_ACEOF
7744#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7745_ACEOF
7746
7747fi
7748# Extract the first word of "twopi", so it can be a program name with args.
7749set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7752if test "${ac_cv_path_TWOPI+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007754else
7755 case $TWOPI in
7756 [\\/]* | ?:[\\/]*)
7757 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7758 ;;
7759 *)
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 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 +00007767 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007769 break 2
7770 fi
7771done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772done
David Greenef0b9eff2009-07-09 17:16:26 +00007773IFS=$as_save_IFS
7774
7775 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7776 ;;
7777esac
7778fi
7779TWOPI=$ac_cv_path_TWOPI
7780if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007781 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7782echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007784 { echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007786fi
7787
7788
7789if test "$TWOPI" != "echo twopi" ; then
7790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007791cat >>confdefs.h <<\_ACEOF
7792#define HAVE_TWOPI 1
7793_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007794
7795 if test "$llvm_cv_os_type" = "MingW" ; then
7796 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7797 fi
7798
7799cat >>confdefs.h <<_ACEOF
7800#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7801_ACEOF
7802
7803fi
7804# Extract the first word of "circo", so it can be a program name with args.
7805set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7808if test "${ac_cv_path_CIRCO+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007810else
7811 case $CIRCO in
7812 [\\/]* | ?:[\\/]*)
7813 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7814 ;;
7815 *)
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 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 +00007823 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007825 break 2
7826 fi
7827done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007828done
David Greenef0b9eff2009-07-09 17:16:26 +00007829IFS=$as_save_IFS
7830
7831 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7832 ;;
7833esac
7834fi
7835CIRCO=$ac_cv_path_CIRCO
7836if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007837 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7838echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007840 { echo "$as_me:$LINENO: result: no" >&5
7841echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007842fi
7843
7844
7845if test "$CIRCO" != "echo circo" ; then
7846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007847cat >>confdefs.h <<\_ACEOF
7848#define HAVE_CIRCO 1
7849_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007850
7851 if test "$llvm_cv_os_type" = "MingW" ; then
7852 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7853 fi
7854
7855cat >>confdefs.h <<_ACEOF
7856#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7857_ACEOF
7858
7859fi
Reid Spencera773bd52006-08-04 18:18:08 +00007860for ac_prog in gv gsview32
7861do
7862 # Extract the first word of "$ac_prog", so it can be a program name with args.
7863set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7866if test "${ac_cv_path_GV+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007868else
7869 case $GV in
7870 [\\/]* | ?:[\\/]*)
7871 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7872 ;;
7873 *)
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 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 +00007881 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007883 break 2
7884 fi
7885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007886done
Reid Spencera773bd52006-08-04 18:18:08 +00007887IFS=$as_save_IFS
7888
7889 ;;
7890esac
7891fi
7892GV=$ac_cv_path_GV
7893if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007894 { echo "$as_me:$LINENO: result: $GV" >&5
7895echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007897 { echo "$as_me:$LINENO: result: no" >&5
7898echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007899fi
7900
7901
7902 test -n "$GV" && break
7903done
7904test -n "$GV" || GV="echo gv"
7905
7906if test "$GV" != "echo gv" ; then
7907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007908cat >>confdefs.h <<\_ACEOF
7909#define HAVE_GV 1
7910_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007911
Jeff Cohen28783c32007-01-12 18:22:38 +00007912 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007913 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7914 fi
7915
7916cat >>confdefs.h <<_ACEOF
7917#define LLVM_PATH_GV "$GV${EXEEXT}"
7918_ACEOF
7919
7920fi
7921# Extract the first word of "dotty", so it can be a program name with args.
7922set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925if test "${ac_cv_path_DOTTY+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007927else
7928 case $DOTTY in
7929 [\\/]* | ?:[\\/]*)
7930 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7931 ;;
7932 *)
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 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 +00007940 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007942 break 2
7943 fi
7944done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007945done
Reid Spencera773bd52006-08-04 18:18:08 +00007946IFS=$as_save_IFS
7947
7948 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7949 ;;
7950esac
7951fi
7952DOTTY=$ac_cv_path_DOTTY
7953if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007954 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7955echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007957 { echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007959fi
7960
7961
7962if test "$DOTTY" != "echo dotty" ; then
7963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007964cat >>confdefs.h <<\_ACEOF
7965#define HAVE_DOTTY 1
7966_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007967
Jeff Cohen28783c32007-01-12 18:22:38 +00007968 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007969 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7970 fi
7971
7972cat >>confdefs.h <<_ACEOF
7973#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7974_ACEOF
7975
7976fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007977# Extract the first word of "xdot.py", so it can be a program name with args.
7978set dummy xdot.py; ac_word=$2
7979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981if test "${ac_cv_path_XDOT_PY+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983else
7984 case $XDOT_PY in
7985 [\\/]* | ?:[\\/]*)
7986 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7987 ;;
7988 *)
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000done
8001done
8002IFS=$as_save_IFS
8003
8004 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8005 ;;
8006esac
8007fi
8008XDOT_PY=$ac_cv_path_XDOT_PY
8009if test -n "$XDOT_PY"; then
8010 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8011echo "${ECHO_T}$XDOT_PY" >&6; }
8012else
8013 { echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6; }
8015fi
8016
8017
8018if test "$XDOT_PY" != "echo xdot.py" ; then
8019
8020cat >>confdefs.h <<\_ACEOF
8021#define HAVE_XDOT_PY 1
8022_ACEOF
8023
8024 if test "$llvm_cv_os_type" = "MingW" ; then
8025 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8026 fi
8027
8028cat >>confdefs.h <<_ACEOF
8029#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8030_ACEOF
8031
8032fi
Reid Spencera773bd52006-08-04 18:18:08 +00008033
8034
8035# Extract the first word of "perl", so it can be a program name with args.
8036set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039if test "${ac_cv_path_PERL+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008041else
8042 case $PERL in
8043 [\\/]* | ?:[\\/]*)
8044 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8045 ;;
8046 *)
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 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 +00008054 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008056 break 2
8057 fi
8058done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008059done
Reid Spencera773bd52006-08-04 18:18:08 +00008060IFS=$as_save_IFS
8061
8062 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8063 ;;
8064esac
8065fi
8066PERL=$ac_cv_path_PERL
8067if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008068 { echo "$as_me:$LINENO: result: $PERL" >&5
8069echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008071 { echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008073fi
8074
8075
8076if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008077 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8078echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008079 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008080 { echo "$as_me:$LINENO: result: yes" >&5
8081echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008082 else
8083 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008084 { echo "$as_me:$LINENO: result: not found" >&5
8085echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008086 fi
8087fi
8088
8089
8090if test x"$PERL" = xnone; then
8091 HAVE_PERL=0
8092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008093 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8094echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8095 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008096else
8097 HAVE_PERL=1
8098
8099fi
8100
8101# Find a good install program. We prefer a C program (faster),
8102# so one script is as good as another. But avoid the broken or
8103# incompatible versions:
8104# SysV /etc/install, /usr/sbin/install
8105# SunOS /usr/etc/install
8106# IRIX /sbin/install
8107# AIX /bin/install
8108# AmigaOS /C/install, which installs bootblocks on floppy discs
8109# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8110# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8112# OS/2's system install, which has a completely different semantic
8113# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8115echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008116if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008117if test "${ac_cv_path_install+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008119else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121for as_dir in $PATH
8122do
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008125 # Account for people who put trailing slashes in PATH elements.
8126case $as_dir/ in
8127 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008128 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008130 /usr/ucb/* ) ;;
8131 *)
8132 # OSF1 and SCO ODT 3.0 have their own names for install.
8133 # Don't use installbsd from OSF since it installs stuff as root
8134 # by default.
8135 for ac_prog in ginstall scoinst install; do
8136 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008137 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 +00008138 if test $ac_prog = install &&
8139 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8140 # AIX install. It has an incompatible calling convention.
8141 :
8142 elif test $ac_prog = install &&
8143 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8144 # program-specific install script used by HP pwplus--don't use.
8145 :
8146 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008147 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8148 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008149 fi
8150 fi
8151 done
8152 done
8153 ;;
8154esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155done
Reid Spencera773bd52006-08-04 18:18:08 +00008156IFS=$as_save_IFS
8157
8158
8159fi
8160 if test "${ac_cv_path_install+set}" = set; then
8161 INSTALL=$ac_cv_path_install
8162 else
8163 # As a last resort, use the slow shell script. Don't cache a
8164 # value for INSTALL within a source directory, because that will
8165 # break other packages using the cache if that directory is
8166 # removed, or if the value is a relative name.
8167 INSTALL=$ac_install_sh
8168 fi
8169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008170{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8171echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008172
8173# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8174# It thinks the first close brace ends the variable substitution.
8175test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8176
8177test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8178
8179test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8180
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008181case "$INSTALL" in
8182 [\\/$]* | ?:[\\/]* ) ;;
8183 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8184esac
Reid Spencera773bd52006-08-04 18:18:08 +00008185
8186# Extract the first word of "bzip2", so it can be a program name with args.
8187set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8190if test "${ac_cv_path_BZIP2+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008192else
8193 case $BZIP2 in
8194 [\\/]* | ?:[\\/]*)
8195 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8196 ;;
8197 *)
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 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 +00008205 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008207 break 2
8208 fi
8209done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210done
Reid Spencera773bd52006-08-04 18:18:08 +00008211IFS=$as_save_IFS
8212
Reid Spencera773bd52006-08-04 18:18:08 +00008213 ;;
8214esac
8215fi
8216BZIP2=$ac_cv_path_BZIP2
8217if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8219echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008220else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008221 { echo "$as_me:$LINENO: result: no" >&5
8222echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008223fi
8224
8225
mike-m68cb3192010-05-06 23:45:43 +00008226# Extract the first word of "cat", so it can be a program name with args.
8227set dummy cat; ac_word=$2
8228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8230if test "${ac_cv_path_CAT+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232else
8233 case $CAT in
8234 [\\/]* | ?:[\\/]*)
8235 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8236 ;;
8237 *)
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8248 fi
8249done
8250done
8251IFS=$as_save_IFS
8252
8253 ;;
8254esac
8255fi
8256CAT=$ac_cv_path_CAT
8257if test -n "$CAT"; then
8258 { echo "$as_me:$LINENO: result: $CAT" >&5
8259echo "${ECHO_T}$CAT" >&6; }
8260else
8261 { echo "$as_me:$LINENO: result: no" >&5
8262echo "${ECHO_T}no" >&6; }
8263fi
8264
8265
Reid Spencera773bd52006-08-04 18:18:08 +00008266# Extract the first word of "doxygen", so it can be a program name with args.
8267set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8270if test "${ac_cv_path_DOXYGEN+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008272else
8273 case $DOXYGEN in
8274 [\\/]* | ?:[\\/]*)
8275 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8276 ;;
8277 *)
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 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 +00008285 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008287 break 2
8288 fi
8289done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008290done
Reid Spencera773bd52006-08-04 18:18:08 +00008291IFS=$as_save_IFS
8292
Reid Spencera773bd52006-08-04 18:18:08 +00008293 ;;
8294esac
8295fi
8296DOXYGEN=$ac_cv_path_DOXYGEN
8297if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8299echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008300else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008301 { echo "$as_me:$LINENO: result: no" >&5
8302echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008303fi
8304
8305
Reid Spencera773bd52006-08-04 18:18:08 +00008306# Extract the first word of "groff", so it can be a program name with args.
8307set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8310if test "${ac_cv_path_GROFF+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008312else
8313 case $GROFF in
8314 [\\/]* | ?:[\\/]*)
8315 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8316 ;;
8317 *)
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319for as_dir in $PATH
8320do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 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 +00008325 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008327 break 2
8328 fi
8329done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330done
Reid Spencera773bd52006-08-04 18:18:08 +00008331IFS=$as_save_IFS
8332
Reid Spencera773bd52006-08-04 18:18:08 +00008333 ;;
8334esac
8335fi
8336GROFF=$ac_cv_path_GROFF
8337if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338 { echo "$as_me:$LINENO: result: $GROFF" >&5
8339echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341 { echo "$as_me:$LINENO: result: no" >&5
8342echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008343fi
8344
8345
8346# Extract the first word of "gzip", so it can be a program name with args.
8347set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008350if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008352else
Eric Christopher031d3072010-12-10 01:31:51 +00008353 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008354 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008355 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008356 ;;
8357 *)
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359for as_dir in $PATH
8360do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 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 +00008365 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008367 break 2
8368 fi
8369done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008370done
Reid Spencera773bd52006-08-04 18:18:08 +00008371IFS=$as_save_IFS
8372
Reid Spencera773bd52006-08-04 18:18:08 +00008373 ;;
8374esac
8375fi
Eric Christopher031d3072010-12-10 01:31:51 +00008376GZIPBIN=$ac_cv_path_GZIPBIN
8377if test -n "$GZIPBIN"; then
8378 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8379echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008381 { echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008383fi
8384
8385
8386# Extract the first word of "pod2html", so it can be a program name with args.
8387set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008388{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8390if test "${ac_cv_path_POD2HTML+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008392else
8393 case $POD2HTML in
8394 [\\/]* | ?:[\\/]*)
8395 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8396 ;;
8397 *)
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399for as_dir in $PATH
8400do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 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 +00008405 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008407 break 2
8408 fi
8409done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008410done
Reid Spencera773bd52006-08-04 18:18:08 +00008411IFS=$as_save_IFS
8412
Reid Spencera773bd52006-08-04 18:18:08 +00008413 ;;
8414esac
8415fi
8416POD2HTML=$ac_cv_path_POD2HTML
8417if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8419echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421 { echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008423fi
8424
8425
8426# Extract the first word of "pod2man", so it can be a program name with args.
8427set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8430if test "${ac_cv_path_POD2MAN+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008432else
8433 case $POD2MAN in
8434 [\\/]* | ?:[\\/]*)
8435 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8436 ;;
8437 *)
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 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 +00008445 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008447 break 2
8448 fi
8449done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008450done
Reid Spencera773bd52006-08-04 18:18:08 +00008451IFS=$as_save_IFS
8452
Reid Spencera773bd52006-08-04 18:18:08 +00008453 ;;
8454esac
8455fi
8456POD2MAN=$ac_cv_path_POD2MAN
8457if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8459echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008460else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008461 { echo "$as_me:$LINENO: result: no" >&5
8462echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008463fi
8464
8465
mike-m68cb3192010-05-06 23:45:43 +00008466# Extract the first word of "pdfroff", so it can be a program name with args.
8467set dummy pdfroff; ac_word=$2
8468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470if test "${ac_cv_path_PDFROFF+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473 case $PDFROFF in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8476 ;;
8477 *)
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489done
8490done
8491IFS=$as_save_IFS
8492
8493 ;;
8494esac
8495fi
8496PDFROFF=$ac_cv_path_PDFROFF
8497if test -n "$PDFROFF"; then
8498 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8499echo "${ECHO_T}$PDFROFF" >&6; }
8500else
8501 { echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6; }
8503fi
8504
8505
Reid Spencera773bd52006-08-04 18:18:08 +00008506# Extract the first word of "runtest", so it can be a program name with args.
8507set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8510if test "${ac_cv_path_RUNTEST+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008512else
8513 case $RUNTEST in
8514 [\\/]* | ?:[\\/]*)
8515 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8516 ;;
8517 *)
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 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 +00008525 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008527 break 2
8528 fi
8529done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008530done
Reid Spencera773bd52006-08-04 18:18:08 +00008531IFS=$as_save_IFS
8532
Reid Spencera773bd52006-08-04 18:18:08 +00008533 ;;
8534esac
8535fi
8536RUNTEST=$ac_cv_path_RUNTEST
8537if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008538 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8539echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541 { echo "$as_me:$LINENO: result: no" >&5
8542echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008543fi
8544
8545
8546
8547no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8549echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008550
8551# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008552if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008553 withval=$with_tclinclude; with_tclinclude=${withval}
8554else
8555 with_tclinclude=''
8556fi
8557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558if test "${ac_cv_path_tclsh+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008560else
8561
8562if test x"${with_tclinclude}" != x ; then
8563 if test -f ${with_tclinclude}/tclsh ; then
8564 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8565 elif test -f ${with_tclinclude}/src/tclsh ; then
8566 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8567 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008568 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8569echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8570 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008571 fi
8572fi
Torok Edwin871384f2010-01-26 08:50:50 +00008573fi
8574
Reid Spencera773bd52006-08-04 18:18:08 +00008575
8576if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008577 { echo "$as_me:$LINENO: result: none" >&5
8578echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008579 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
8580do
8581 # Extract the first word of "$ac_prog", so it can be a program name with args.
8582set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8585if test "${ac_cv_path_TCLSH+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008587else
8588 case $TCLSH in
8589 [\\/]* | ?:[\\/]*)
8590 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8591 ;;
8592 *)
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594for as_dir in $PATH
8595do
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 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 +00008600 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008602 break 2
8603 fi
8604done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008605done
Reid Spencera773bd52006-08-04 18:18:08 +00008606IFS=$as_save_IFS
8607
8608 ;;
8609esac
8610fi
8611TCLSH=$ac_cv_path_TCLSH
8612if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008613 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8614echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008616 { echo "$as_me:$LINENO: result: no" >&5
8617echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008618fi
8619
8620
8621 test -n "$TCLSH" && break
8622done
8623
8624 if test x"${TCLSH}" = x ; then
8625 ac_cv_path_tclsh='';
8626 else
8627 ac_cv_path_tclsh="${TCLSH}";
8628 fi
8629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008630 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8631echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008632 TCLSH="${ac_cv_path_tclsh}"
8633
8634fi
8635
Reid Spencera773bd52006-08-04 18:18:08 +00008636# Extract the first word of "zip", so it can be a program name with args.
8637set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8640if test "${ac_cv_path_ZIP+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008642else
8643 case $ZIP in
8644 [\\/]* | ?:[\\/]*)
8645 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8646 ;;
8647 *)
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 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 +00008655 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008657 break 2
8658 fi
8659done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008660done
Reid Spencera773bd52006-08-04 18:18:08 +00008661IFS=$as_save_IFS
8662
Reid Spencera773bd52006-08-04 18:18:08 +00008663 ;;
8664esac
8665fi
8666ZIP=$ac_cv_path_ZIP
8667if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008668 { echo "$as_me:$LINENO: result: $ZIP" >&5
8669echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008671 { echo "$as_me:$LINENO: result: no" >&5
8672echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008673fi
8674
8675
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008676for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008677do
8678 # Extract the first word of "$ac_prog", so it can be a program name with args.
8679set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8682if test "${ac_cv_path_OCAMLC+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008684else
8685 case $OCAMLC in
8686 [\\/]* | ?:[\\/]*)
8687 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8688 ;;
8689 *)
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691for as_dir in $PATH
8692do
8693 IFS=$as_save_IFS
8694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 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 +00008697 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008699 break 2
8700 fi
8701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008702done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008703IFS=$as_save_IFS
8704
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008705 ;;
8706esac
8707fi
8708OCAMLC=$ac_cv_path_OCAMLC
8709if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008710 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8711echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008713 { echo "$as_me:$LINENO: result: no" >&5
8714echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008715fi
8716
8717
Gordon Henriksene7072162008-03-07 18:20:01 +00008718 test -n "$OCAMLC" && break
8719done
8720
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008721for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008722do
8723 # Extract the first word of "$ac_prog", so it can be a program name with args.
8724set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8727if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008729else
8730 case $OCAMLOPT in
8731 [\\/]* | ?:[\\/]*)
8732 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8733 ;;
8734 *)
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736for as_dir in $PATH
8737do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 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 +00008742 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008744 break 2
8745 fi
8746done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008747done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008748IFS=$as_save_IFS
8749
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008750 ;;
8751esac
8752fi
8753OCAMLOPT=$ac_cv_path_OCAMLOPT
8754if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008755 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8756echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008758 { echo "$as_me:$LINENO: result: no" >&5
8759echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008760fi
8761
8762
Gordon Henriksene7072162008-03-07 18:20:01 +00008763 test -n "$OCAMLOPT" && break
8764done
8765
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008766for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008767do
8768 # Extract the first word of "$ac_prog", so it can be a program name with args.
8769set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8772if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008774else
8775 case $OCAMLDEP in
8776 [\\/]* | ?:[\\/]*)
8777 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8778 ;;
8779 *)
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781for as_dir in $PATH
8782do
8783 IFS=$as_save_IFS
8784 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 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 +00008787 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008789 break 2
8790 fi
8791done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008792done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008793IFS=$as_save_IFS
8794
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008795 ;;
8796esac
8797fi
8798OCAMLDEP=$ac_cv_path_OCAMLDEP
8799if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008800 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8801echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008802else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008803 { echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008805fi
8806
8807
Gordon Henriksene7072162008-03-07 18:20:01 +00008808 test -n "$OCAMLDEP" && break
8809done
8810
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008811for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008812do
8813 # Extract the first word of "$ac_prog", so it can be a program name with args.
8814set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8817if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008819else
8820 case $OCAMLDOC in
8821 [\\/]* | ?:[\\/]*)
8822 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8823 ;;
8824 *)
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826for as_dir in $PATH
8827do
8828 IFS=$as_save_IFS
8829 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 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 +00008832 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008834 break 2
8835 fi
8836done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008837done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008838IFS=$as_save_IFS
8839
8840 ;;
8841esac
8842fi
8843OCAMLDOC=$ac_cv_path_OCAMLDOC
8844if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008845 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8846echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008847else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008848 { echo "$as_me:$LINENO: result: no" >&5
8849echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008850fi
8851
8852
8853 test -n "$OCAMLDOC" && break
8854done
8855
Torok Edwincc499a42008-10-22 09:56:27 +00008856for ac_prog in gas as
8857do
8858 # Extract the first word of "$ac_prog", so it can be a program name with args.
8859set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8862if test "${ac_cv_path_GAS+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008864else
8865 case $GAS in
8866 [\\/]* | ?:[\\/]*)
8867 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8868 ;;
8869 *)
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871for as_dir in $PATH
8872do
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 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 +00008877 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008879 break 2
8880 fi
8881done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008882done
Torok Edwincc499a42008-10-22 09:56:27 +00008883IFS=$as_save_IFS
8884
8885 ;;
8886esac
8887fi
8888GAS=$ac_cv_path_GAS
8889if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008890 { echo "$as_me:$LINENO: result: $GAS" >&5
8891echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008893 { echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008895fi
8896
8897
8898 test -n "$GAS" && break
8899done
8900
Reid Spencera773bd52006-08-04 18:18:08 +00008901
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008902{ echo "$as_me:$LINENO: checking for linker version" >&5
8903echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8904if test "${llvm_cv_link_version+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907
8908 version_string="$(ld -v 2>&1 | head -1)"
8909
8910 # Check for ld64.
8911 if (echo "$version_string" | grep -q "ld64"); then
8912 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8913 else
8914 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8915 fi
8916
8917fi
8918{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8919echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8920
8921cat >>confdefs.h <<_ACEOF
8922#define HOST_LINK_VERSION "$llvm_cv_link_version"
8923_ACEOF
8924
8925
8926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008927{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8928echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8929if test "${llvm_cv_link_use_r+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008931else
8932 ac_ext=c
8933ac_cpp='$CPP $CPPFLAGS'
8934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936ac_compiler_gnu=$ac_cv_c_compiler_gnu
8937
8938 oldcflags="$CFLAGS"
8939 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008940 cat >conftest.$ac_ext <<_ACEOF
8941/* confdefs.h. */
8942_ACEOF
8943cat confdefs.h >>conftest.$ac_ext
8944cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008945/* end confdefs.h. */
8946
8947int
8948main ()
8949{
Dan Gohman39ed6782010-04-25 00:12:20 +00008950
Reid Spencera773bd52006-08-04 18:18:08 +00008951 ;
8952 return 0;
8953}
8954_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008955rm -f conftest.$ac_objext conftest$ac_exeext
8956if { (ac_try="$ac_link"
8957case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960esac
8961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973esac
8974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983esac
8984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008989 llvm_cv_link_use_r=yes
8990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008991 echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008996
Bill Wendlingebcceee2009-04-18 11:20:33 +00008997rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008998 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008999 CFLAGS="$oldcflags"
9000 ac_ext=c
9001ac_cpp='$CPP $CPPFLAGS'
9002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004ac_compiler_gnu=$ac_cv_c_compiler_gnu
9005
9006
9007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009008{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9009echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009010if test "$llvm_cv_link_use_r" = yes ; then
9011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009012cat >>confdefs.h <<\_ACEOF
9013#define HAVE_LINK_R 1
9014_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009015
9016 fi
9017
9018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009019{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9020echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9021if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009023else
9024 ac_ext=c
9025ac_cpp='$CPP $CPPFLAGS'
9026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028ac_compiler_gnu=$ac_cv_c_compiler_gnu
9029
9030 oldcflags="$CFLAGS"
9031 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009032 cat >conftest.$ac_ext <<_ACEOF
9033/* confdefs.h. */
9034_ACEOF
9035cat confdefs.h >>conftest.$ac_ext
9036cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009037/* end confdefs.h. */
9038
9039int
9040main ()
9041{
Dan Gohman39ed6782010-04-25 00:12:20 +00009042
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009043 ;
9044 return 0;
9045}
9046_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009047rm -f conftest.$ac_objext conftest$ac_exeext
9048if { (ac_try="$ac_link"
9049case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052esac
9053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_link") 2>conftest.er1
9055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062 { (case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065esac
9066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_try") 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (case "(($ac_try" in
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9075esac
9076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_try") 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009081 llvm_cv_link_use_export_dynamic=yes
9082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009083 echo "$as_me: failed program was:" >&5
9084sed 's/^/| /' conftest.$ac_ext >&5
9085
9086 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009088
Bill Wendlingebcceee2009-04-18 11:20:33 +00009089rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009090 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009091 CFLAGS="$oldcflags"
9092 ac_ext=c
9093ac_cpp='$CPP $CPPFLAGS'
9094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096ac_compiler_gnu=$ac_cv_c_compiler_gnu
9097
9098
9099fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009100{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9101echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009102if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009104cat >>confdefs.h <<\_ACEOF
9105#define HAVE_LINK_EXPORT_DYNAMIC 1
9106_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009107
9108 fi
9109
9110
Dan Gohmanda612d62010-06-01 14:56:56 +00009111{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9112echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9113if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115else
9116 ac_ext=c
9117ac_cpp='$CPP $CPPFLAGS'
9118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120ac_compiler_gnu=$ac_cv_c_compiler_gnu
9121
9122 oldcflags="$CFLAGS"
9123
9124 # The following code is from the autoconf manual,
9125 # "11.13: Limitations of Usual Tools".
9126 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9127 # Use mktemp if possible; otherwise fall back on mkdir,
9128 # with $RANDOM to make collisions less likely.
9129 : ${TMPDIR=/tmp}
9130 {
9131 tmp=`
9132 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9133 ` &&
9134 test -n "$tmp" && test -d "$tmp"
9135 } || {
9136 tmp=$TMPDIR/foo$$-$RANDOM
9137 (umask 077 && mkdir "$tmp")
9138 } || exit $?
9139
Dan Gohmanda612d62010-06-01 14:56:56 +00009140 echo "{" > "$tmp/export.map"
9141 echo " global: main;" >> "$tmp/export.map"
9142 echo " local: *;" >> "$tmp/export.map"
9143 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009144
Dan Gohmanda612d62010-06-01 14:56:56 +00009145 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009146 cat >conftest.$ac_ext <<_ACEOF
9147/* confdefs.h. */
9148_ACEOF
9149cat confdefs.h >>conftest.$ac_ext
9150cat >>conftest.$ac_ext <<_ACEOF
9151/* end confdefs.h. */
9152
9153int
9154main ()
9155{
Dan Gohman39ed6782010-04-25 00:12:20 +00009156
Dan Gohman391569c2010-04-16 22:59:06 +00009157 ;
9158 return 0;
9159}
9160_ACEOF
9161rm -f conftest.$ac_objext conftest$ac_exeext
9162if { (ac_try="$ac_link"
9163case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166esac
9167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_link") 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9176 { (case "(($ac_try" in
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9179esac
9180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_try") 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest$ac_exeext'
9186 { (case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189esac
9190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_try") 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009195 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009196else
9197 echo "$as_me: failed program was:" >&5
9198sed 's/^/| /' conftest.$ac_ext >&5
9199
Dan Gohman943005e2010-06-01 16:22:27 +00009200 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009201fi
9202
9203rm -f core conftest.err conftest.$ac_objext \
9204 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009205 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009206 rmdir "$tmp"
9207 CFLAGS="$oldcflags"
9208 ac_ext=c
9209ac_cpp='$CPP $CPPFLAGS'
9210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9212ac_compiler_gnu=$ac_cv_c_compiler_gnu
9213
9214
9215fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009216{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9217echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9218if test "$llvm_cv_link_use_version_script" = yes ; then
9219 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009220
9221 fi
9222
9223
Reid Spencera773bd52006-08-04 18:18:08 +00009224
9225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009226{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9227echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9228if test "${ac_cv_c_const+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009231 cat >conftest.$ac_ext <<_ACEOF
9232/* confdefs.h. */
9233_ACEOF
9234cat confdefs.h >>conftest.$ac_ext
9235cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009236/* end confdefs.h. */
9237
9238int
9239main ()
9240{
9241/* FIXME: Include the comments suggested by Paul. */
9242#ifndef __cplusplus
9243 /* Ultrix mips cc rejects this. */
9244 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009245 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009246 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009247 char const *const *ccp;
9248 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009249 /* NEC SVR4.0.2 mips cc rejects this. */
9250 struct point {int x, y;};
9251 static struct point const zero = {0,0};
9252 /* AIX XL C 1.02.0.0 rejects this.
9253 It does not let you subtract one const X* pointer from another in
9254 an arm of an if-expression whose if-part is not a constant
9255 expression */
9256 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009258 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259 ++ccp;
9260 p = (char**) ccp;
9261 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009262 { /* SCO 3.2v4 cc rejects this. */
9263 char *t;
9264 char const *s = 0 ? (char *) 0 : (char const *) 0;
9265
9266 *t++ = 0;
9267 if (s) return 0;
9268 }
9269 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9270 int x[] = {25, 17};
9271 const int *foo = &x[0];
9272 ++foo;
9273 }
9274 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9275 typedef const int *iptr;
9276 iptr p = 0;
9277 ++p;
9278 }
9279 { /* AIX XL C 1.02.0.0 rejects this saying
9280 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9281 struct s { int j; const int *ap[3]; };
9282 struct s *b; b->j = 5;
9283 }
9284 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9285 const int foo = 10;
9286 if (!foo) return 0;
9287 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009288 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009289#endif
9290
9291 ;
9292 return 0;
9293}
9294_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009295rm -f conftest.$ac_objext
9296if { (ac_try="$ac_compile"
9297case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300esac
9301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9310 { (case "(($ac_try" in
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9313esac
9314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_try") 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; } &&
9319 { ac_try='test -s conftest.$ac_objext'
9320 { (case "(($ac_try" in
9321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322 *) ac_try_echo=$ac_try;;
9323esac
9324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325 (eval "$ac_try") 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009329 ac_cv_c_const=yes
9330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009331 echo "$as_me: failed program was:" >&5
9332sed 's/^/| /' conftest.$ac_ext >&5
9333
9334 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009336
Reid Spencera773bd52006-08-04 18:18:08 +00009337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009339{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9340echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009341if test $ac_cv_c_const = no; then
9342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009343cat >>confdefs.h <<\_ACEOF
9344#define const
9345_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009346
9347fi
9348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009349
9350
9351
9352
9353
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009354ac_header_dirent=no
9355for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009356 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9357{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9358echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009362 cat >conftest.$ac_ext <<_ACEOF
9363/* confdefs.h. */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367/* end confdefs.h. */
9368#include <sys/types.h>
9369#include <$ac_hdr>
9370
9371int
9372main ()
9373{
9374if ((DIR *) 0)
9375return 0;
9376 ;
9377 return 0;
9378}
9379_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009380rm -f conftest.$ac_objext
9381if { (ac_try="$ac_compile"
9382case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385esac
9386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9395 { (case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398esac
9399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_try") 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; } &&
9404 { ac_try='test -s conftest.$ac_objext'
9405 { (case "(($ac_try" in
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9408esac
9409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_try") 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009414 eval "$as_ac_Header=yes"
9415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009416 echo "$as_me: failed program was:" >&5
9417sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009421
Reid Spencera773bd52006-08-04 18:18:08 +00009422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009424ac_res=`eval echo '${'$as_ac_Header'}'`
9425 { echo "$as_me:$LINENO: result: $ac_res" >&5
9426echo "${ECHO_T}$ac_res" >&6; }
9427if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009428 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009429#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430_ACEOF
9431
9432ac_header_dirent=$ac_hdr; break
9433fi
9434
9435done
9436# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9437if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9439echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9440if test "${ac_cv_search_opendir+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442else
9443 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009444cat >conftest.$ac_ext <<_ACEOF
9445/* confdefs.h. */
9446_ACEOF
9447cat confdefs.h >>conftest.$ac_ext
9448cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009449/* end confdefs.h. */
9450
Reid Spencera773bd52006-08-04 18:18:08 +00009451/* Override any GCC internal prototype to avoid an error.
9452 Use char because int might match the return type of a GCC
9453 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454#ifdef __cplusplus
9455extern "C"
9456#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009457char opendir ();
9458int
9459main ()
9460{
Reid Spencera773bd52006-08-04 18:18:08 +00009461return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462 ;
9463 return 0;
9464}
9465_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009466for ac_lib in '' dir; do
9467 if test -z "$ac_lib"; then
9468 ac_res="none required"
9469 else
9470 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009472 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009473 rm -f conftest.$ac_objext conftest$ac_exeext
9474if { (ac_try="$ac_link"
9475case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478esac
9479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_link") 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9488 { (case "(($ac_try" in
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9491esac
9492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_try") 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; } &&
9497 { ac_try='test -s conftest$ac_exeext'
9498 { (case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501esac
9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_try") 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009507 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009508else
9509 echo "$as_me: failed program was:" >&5
9510sed 's/^/| /' conftest.$ac_ext >&5
9511
9512
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009514
Bill Wendlingebcceee2009-04-18 11:20:33 +00009515rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009516 conftest$ac_exeext
9517 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009518 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519fi
John Criswell7a73b802003-06-30 21:59:07 +00009520done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009521if test "${ac_cv_search_opendir+set}" = set; then
9522 :
Reid Spencera773bd52006-08-04 18:18:08 +00009523else
9524 ac_cv_search_opendir=no
9525fi
9526rm conftest.$ac_ext
9527LIBS=$ac_func_search_save_LIBS
9528fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009529{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9530echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009531ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009532if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009534
Reid Spencera773bd52006-08-04 18:18:08 +00009535fi
9536
9537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009538 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9539echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9540if test "${ac_cv_search_opendir+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009542else
9543 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h. */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009549/* end confdefs.h. */
9550
9551/* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554#ifdef __cplusplus
9555extern "C"
9556#endif
9557char opendir ();
9558int
9559main ()
9560{
9561return opendir ();
9562 ;
9563 return 0;
9564}
9565_ACEOF
9566for ac_lib in '' x; do
9567 if test -z "$ac_lib"; then
9568 ac_res="none required"
9569 else
9570 ac_res=-l$ac_lib
9571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9572 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009573 rm -f conftest.$ac_objext conftest$ac_exeext
9574if { (ac_try="$ac_link"
9575case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578esac
9579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_link") 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591esac
9592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601esac
9602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009607 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009608else
9609 echo "$as_me: failed program was:" >&5
9610sed 's/^/| /' conftest.$ac_ext >&5
9611
9612
Reid Spencera773bd52006-08-04 18:18:08 +00009613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009614
Bill Wendlingebcceee2009-04-18 11:20:33 +00009615rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009616 conftest$ac_exeext
9617 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009618 break
9619fi
9620done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009621if test "${ac_cv_search_opendir+set}" = set; then
9622 :
Reid Spencera773bd52006-08-04 18:18:08 +00009623else
9624 ac_cv_search_opendir=no
9625fi
9626rm conftest.$ac_ext
9627LIBS=$ac_func_search_save_LIBS
9628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009629{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9630echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009631ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009632if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9634
9635fi
9636
9637fi
John Criswell7a73b802003-06-30 21:59:07 +00009638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009639
John Criswell7a73b802003-06-30 21:59:07 +00009640for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009641do
9642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648fi
9649ac_res=`eval echo '${'$as_ac_Header'}'`
9650 { echo "$as_me:$LINENO: result: $ac_res" >&5
9651echo "${ECHO_T}$ac_res" >&6; }
9652else
9653 # Is the header compilable?
9654{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9656cat >conftest.$ac_ext <<_ACEOF
9657/* confdefs.h. */
9658_ACEOF
9659cat confdefs.h >>conftest.$ac_ext
9660cat >>conftest.$ac_ext <<_ACEOF
9661/* end confdefs.h. */
9662$ac_includes_default
9663#include <$ac_header>
9664_ACEOF
9665rm -f conftest.$ac_objext
9666if { (ac_try="$ac_compile"
9667case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670esac
9671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_compile") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9680 { (case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683esac
9684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_try") 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest.$ac_objext'
9690 { (case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693esac
9694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_try") 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_header_compiler=yes
9700else
9701 echo "$as_me: failed program was:" >&5
9702sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 ac_header_compiler=no
9705fi
9706
9707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9709echo "${ECHO_T}$ac_header_compiler" >&6; }
9710
9711# Is the header present?
9712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9714cat >conftest.$ac_ext <<_ACEOF
9715/* confdefs.h. */
9716_ACEOF
9717cat confdefs.h >>conftest.$ac_ext
9718cat >>conftest.$ac_ext <<_ACEOF
9719/* end confdefs.h. */
9720#include <$ac_header>
9721_ACEOF
9722if { (ac_try="$ac_cpp conftest.$ac_ext"
9723case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726esac
9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } >/dev/null; then
9735 if test -s conftest.err; then
9736 ac_cpp_err=$ac_c_preproc_warn_flag
9737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9738 else
9739 ac_cpp_err=
9740 fi
9741else
9742 ac_cpp_err=yes
9743fi
9744if test -z "$ac_cpp_err"; then
9745 ac_header_preproc=yes
9746else
9747 echo "$as_me: failed program was:" >&5
9748sed 's/^/| /' conftest.$ac_ext >&5
9749
9750 ac_header_preproc=no
9751fi
9752
9753rm -f conftest.err conftest.$ac_ext
9754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9755echo "${ECHO_T}$ac_header_preproc" >&6; }
9756
9757# So? What about this header?
9758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9759 yes:no: )
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9764 ac_header_preproc=yes
9765 ;;
9766 no:yes:* )
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9779 ( cat <<\_ASBOX
9780## ----------------------------------- ##
9781## Report this to llvmbugs@cs.uiuc.edu ##
9782## ----------------------------------- ##
9783_ASBOX
9784 ) | sed "s/^/$as_me: WARNING: /" >&2
9785 ;;
9786esac
9787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791else
9792 eval "$as_ac_Header=\$ac_header_preproc"
9793fi
9794ac_res=`eval echo '${'$as_ac_Header'}'`
9795 { echo "$as_me:$LINENO: result: $ac_res" >&5
9796echo "${ECHO_T}$ac_res" >&6; }
9797
9798fi
9799if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009800 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009802_ACEOF
9803
9804fi
9805
9806done
9807
Reid Spencera773bd52006-08-04 18:18:08 +00009808# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009809if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009810 enableval=$enable_ltdl_install;
9811fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009814
9815
9816if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817 INSTALL_LTDL_TRUE=
9818 INSTALL_LTDL_FALSE='#'
9819else
9820 INSTALL_LTDL_TRUE='#'
9821 INSTALL_LTDL_FALSE=
9822fi
9823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009824
9825
9826if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827 CONVENIENCE_LTDL_TRUE=
9828 CONVENIENCE_LTDL_FALSE='#'
9829else
9830 CONVENIENCE_LTDL_TRUE='#'
9831 CONVENIENCE_LTDL_FALSE=
9832fi
9833
9834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009835{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9836echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837library_names_spec=
9838libname_spec='lib$name'
9839soname_spec=
9840shrext_cmds=".so"
9841postinstall_cmds=
9842postuninstall_cmds=
9843finish_cmds=
9844finish_eval=
9845shlibpath_var=
9846shlibpath_overrides_runpath=unknown
9847version_type=none
9848dynamic_linker="$host_os ld.so"
9849sys_lib_dlsearch_path_spec="/lib /usr/lib"
9850if test "$GCC" = yes; then
9851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9852 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9853 # if the path contains ";" then we assume it to be the separator
9854 # otherwise default to the standard path separator (i.e. ":") - it is
9855 # assumed that no part of a normal pathname contains ";" but that should
9856 # okay in the real world where ";" in dirpaths is itself problematic.
9857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9858 else
9859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9860 fi
9861else
9862 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9863fi
9864need_lib_prefix=unknown
9865hardcode_into_libs=no
9866
9867# when you set need_version to no, make sure it does not cause -set_version
9868# flags to be left without arguments
9869need_version=unknown
9870
9871case $host_os in
9872aix3*)
9873 version_type=linux
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9875 shlibpath_var=LIBPATH
9876
9877 # AIX 3 has no versioning support, so we append a major version to the name.
9878 soname_spec='${libname}${release}${shared_ext}$major'
9879 ;;
9880
9881aix4* | aix5*)
9882 version_type=linux
9883 need_lib_prefix=no
9884 need_version=no
9885 hardcode_into_libs=yes
9886 if test "$host_cpu" = ia64; then
9887 # AIX 5 supports IA64
9888 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9889 shlibpath_var=LD_LIBRARY_PATH
9890 else
9891 # With GCC up to 2.95.x, collect2 would create an import file
9892 # for dependence libraries. The import file would start with
9893 # the line `#! .'. This would cause the generated library to
9894 # depend on `.', always an invalid library. This was fixed in
9895 # development snapshots of GCC prior to 3.0.
9896 case $host_os in
9897 aix4 | aix4.[01] | aix4.[01].*)
9898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9899 echo ' yes '
9900 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9901 :
9902 else
9903 can_build_shared=no
9904 fi
9905 ;;
9906 esac
9907 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9908 # soname into executable. Probably we can add versioning support to
9909 # collect2, so additional links can be useful in future.
9910 if test "$aix_use_runtimelinking" = yes; then
9911 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9912 # instead of lib<name>.a to let people know that these are not
9913 # typical AIX shared libraries.
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 else
9916 # We preserve .a as extension for shared libraries through AIX4.2
9917 # and later when we are not doing run time linking.
9918 library_names_spec='${libname}${release}.a $libname.a'
9919 soname_spec='${libname}${release}${shared_ext}$major'
9920 fi
9921 shlibpath_var=LIBPATH
9922 fi
9923 ;;
9924
9925amigaos*)
9926 library_names_spec='$libname.ixlibrary $libname.a'
9927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9928 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'
9929 ;;
9930
9931beos*)
9932 library_names_spec='${libname}${shared_ext}'
9933 dynamic_linker="$host_os ld.so"
9934 shlibpath_var=LIBRARY_PATH
9935 ;;
9936
9937bsdi[45]*)
9938 version_type=linux
9939 need_version=no
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9946 # the default ld.so.conf also contains /usr/contrib/lib and
9947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9948 # libtool to hard-code these into programs
9949 ;;
9950
9951cygwin* | mingw* | pw32*)
9952 version_type=windows
9953 shrext_cmds=".dll"
9954 need_version=no
9955 need_lib_prefix=no
9956
9957 case $GCC,$host_os in
9958 yes,cygwin* | yes,mingw* | yes,pw32*)
9959 library_names_spec='$libname.dll.a'
9960 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9961 postinstall_cmds='base_file=`basename \${file}`~
9962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9963 dldir=$destdir/`dirname \$dlpath`~
9964 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009965 $install_prog $dir/$dlname \$dldir/$dlname~
9966 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9968 dlpath=$dir/\$dldll~
9969 $rm \$dlpath'
9970 shlibpath_overrides_runpath=yes
9971
9972 case $host_os in
9973 cygwin*)
9974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9977 ;;
9978 mingw*)
9979 # MinGW DLLs use traditional 'lib' prefix
9980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9981 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9982 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9983 # It is most probably a Windows format PATH printed by
9984 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9985 # path with ; separators, and with drive letters. We can handle the
9986 # drive letters (cygwin fileutils understands them), so leave them,
9987 # especially as we might pass files found there to a mingw objdump,
9988 # which wouldn't understand a cygwinified path. Ahh.
9989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9990 else
9991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9992 fi
9993 ;;
9994 pw32*)
9995 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009996 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 +00009997 ;;
9998 esac
9999 ;;
10000
10001 *)
10002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10003 ;;
10004 esac
10005 dynamic_linker='Win32 ld.exe'
10006 # FIXME: first we should search . and the directory the executable is in
10007 shlibpath_var=PATH
10008 ;;
10009
10010darwin* | rhapsody*)
10011 dynamic_linker="$host_os dyld"
10012 version_type=darwin
10013 need_lib_prefix=no
10014 need_version=no
10015 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10016 soname_spec='${libname}${release}${major}$shared_ext'
10017 shlibpath_overrides_runpath=yes
10018 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000010019 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10021 if test "$GCC" = yes; then
10022 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"`
10023 else
10024 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10025 fi
10026 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10027 ;;
10028
10029dgux*)
10030 version_type=linux
10031 need_lib_prefix=no
10032 need_version=no
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 shlibpath_var=LD_LIBRARY_PATH
10036 ;;
10037
10038freebsd1*)
10039 dynamic_linker=no
10040 ;;
10041
10042kfreebsd*-gnu)
10043 version_type=linux
10044 need_lib_prefix=no
10045 need_version=no
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=no
10050 hardcode_into_libs=yes
10051 dynamic_linker='GNU ld.so'
10052 ;;
10053
Reid Spencera773bd52006-08-04 18:18:08 +000010054freebsd* | dragonfly*)
10055 # DragonFly does not have aout. When/if they implement a new
10056 # versioning mechanism, adjust this.
10057 if test -x /usr/bin/objformat; then
10058 objformat=`/usr/bin/objformat`
10059 else
10060 case $host_os in
10061 freebsd[123]*) objformat=aout ;;
10062 *) objformat=elf ;;
10063 esac
10064 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010065 version_type=freebsd-$objformat
10066 case $version_type in
10067 freebsd-elf*)
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10069 need_version=no
10070 need_lib_prefix=no
10071 ;;
10072 freebsd-*)
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10074 need_version=yes
10075 ;;
10076 esac
10077 shlibpath_var=LD_LIBRARY_PATH
10078 case $host_os in
10079 freebsd2*)
10080 shlibpath_overrides_runpath=yes
10081 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010082 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083 shlibpath_overrides_runpath=yes
10084 hardcode_into_libs=yes
10085 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010086 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10087 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088 shlibpath_overrides_runpath=no
10089 hardcode_into_libs=yes
10090 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010091 freebsd*) # from 4.6 on
10092 shlibpath_overrides_runpath=yes
10093 hardcode_into_libs=yes
10094 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095 esac
10096 ;;
10097
10098gnu*)
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 hardcode_into_libs=yes
10106 ;;
10107
10108hpux9* | hpux10* | hpux11*)
10109 # Give a soname corresponding to the major version so that dld.sl refuses to
10110 # link against other versions.
10111 version_type=sunos
10112 need_lib_prefix=no
10113 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010114 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115 ia64*)
10116 shrext_cmds='.so'
10117 hardcode_into_libs=yes
10118 dynamic_linker="$host_os dld.so"
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 if test "X$HPUX_IA64_MODE" = X32; then
10124 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10125 else
10126 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10127 fi
10128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10129 ;;
10130 hppa*64*)
10131 shrext_cmds='.sl'
10132 hardcode_into_libs=yes
10133 dynamic_linker="$host_os dld.sl"
10134 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10140 ;;
10141 *)
10142 shrext_cmds='.sl'
10143 dynamic_linker="$host_os dld.sl"
10144 shlibpath_var=SHLIB_PATH
10145 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 ;;
10149 esac
10150 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10151 postinstall_cmds='chmod 555 $lib'
10152 ;;
10153
Reid Spencera773bd52006-08-04 18:18:08 +000010154interix3*)
10155 version_type=linux
10156 need_lib_prefix=no
10157 need_version=no
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 shlibpath_overrides_runpath=no
10163 hardcode_into_libs=yes
10164 ;;
10165
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166irix5* | irix6* | nonstopux*)
10167 case $host_os in
10168 nonstopux*) version_type=nonstopux ;;
10169 *)
10170 if test "$lt_cv_prog_gnu_ld" = yes; then
10171 version_type=linux
10172 else
10173 version_type=irix
10174 fi ;;
10175 esac
10176 need_lib_prefix=no
10177 need_version=no
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10180 case $host_os in
10181 irix5* | nonstopux*)
10182 libsuff= shlibsuff=
10183 ;;
10184 *)
10185 case $LD in # libtool.m4 will add one of these switches to LD
10186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10187 libsuff= shlibsuff= libmagic=32-bit;;
10188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10189 libsuff=32 shlibsuff=N32 libmagic=N32;;
10190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10192 *) libsuff= shlibsuff= libmagic=never-match;;
10193 esac
10194 ;;
10195 esac
10196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10197 shlibpath_overrides_runpath=no
10198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10200 hardcode_into_libs=yes
10201 ;;
10202
10203# No shared lib support for Linux oldld, aout, or coff.
10204linux*oldld* | linux*aout* | linux*coff*)
10205 dynamic_linker=no
10206 ;;
10207
10208# This must be Linux ELF.
10209linux*)
10210 version_type=linux
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=no
10218 # This implies no fast_install, which is unacceptable.
10219 # Some rework will be needed to allow for fast_install
10220 # before this can be enabled.
10221 hardcode_into_libs=yes
10222
10223 # Append ld.so.conf contents to the search path
10224 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010225 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 +000010226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10227 fi
10228
10229 # We used to test for /lib/ld.so.1 and disable shared libraries on
10230 # powerpc, because MkLinux only supported shared libraries with the
10231 # GNU dynamic linker. Since this was broken with cross compilers,
10232 # most powerpc-linux boxes support dynamic linking these days and
10233 # people can always --disable-shared, the test was removed, and we
10234 # assume the GNU/Linux dynamic linker is in use.
10235 dynamic_linker='GNU/Linux ld.so'
10236 ;;
10237
10238knetbsd*-gnu)
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 dynamic_linker='GNU ld.so'
10248 ;;
10249
10250netbsd*)
10251 version_type=sunos
10252 need_lib_prefix=no
10253 need_version=no
10254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10257 dynamic_linker='NetBSD (a.out) ld.so'
10258 else
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 dynamic_linker='NetBSD ld.elf_so'
10262 fi
10263 shlibpath_var=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10266 ;;
10267
10268newsos6)
10269 version_type=linux
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10273 ;;
10274
10275nto-qnx*)
10276 version_type=linux
10277 need_lib_prefix=no
10278 need_version=no
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10283 ;;
10284
10285openbsd*)
10286 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010287 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010289 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10290 case $host_os in
10291 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10292 *) need_version=no ;;
10293 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10298 case $host_os in
10299 openbsd2.[89] | openbsd2.[89].*)
10300 shlibpath_overrides_runpath=no
10301 ;;
10302 *)
10303 shlibpath_overrides_runpath=yes
10304 ;;
10305 esac
10306 else
10307 shlibpath_overrides_runpath=yes
10308 fi
10309 ;;
10310
10311os2*)
10312 libname_spec='$name'
10313 shrext_cmds=".dll"
10314 need_lib_prefix=no
10315 library_names_spec='$libname${shared_ext} $libname.a'
10316 dynamic_linker='OS/2 ld.exe'
10317 shlibpath_var=LIBPATH
10318 ;;
10319
10320osf3* | osf4* | osf5*)
10321 version_type=osf
10322 need_lib_prefix=no
10323 need_version=no
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10328 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10329 ;;
10330
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331solaris*)
10332 version_type=linux
10333 need_lib_prefix=no
10334 need_version=no
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 hardcode_into_libs=yes
10340 # ldd complains unless libraries are executable
10341 postinstall_cmds='chmod +x $lib'
10342 ;;
10343
10344sunos4*)
10345 version_type=sunos
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10347 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes
10350 if test "$with_gnu_ld" = yes; then
10351 need_lib_prefix=no
10352 fi
10353 need_version=yes
10354 ;;
10355
Reid Spencera773bd52006-08-04 18:18:08 +000010356sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357 version_type=linux
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 case $host_vendor in
10362 sni)
10363 shlibpath_overrides_runpath=no
10364 need_lib_prefix=no
10365 export_dynamic_flag_spec='${wl}-Blargedynsym'
10366 runpath_var=LD_RUN_PATH
10367 ;;
10368 siemens)
10369 need_lib_prefix=no
10370 ;;
10371 motorola)
10372 need_lib_prefix=no
10373 need_version=no
10374 shlibpath_overrides_runpath=no
10375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10376 ;;
10377 esac
10378 ;;
10379
10380sysv4*MP*)
10381 if test -d /usr/nec ;then
10382 version_type=linux
10383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10384 soname_spec='$libname${shared_ext}.$major'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 fi
10387 ;;
10388
Reid Spencera773bd52006-08-04 18:18:08 +000010389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10390 version_type=freebsd-elf
10391 need_lib_prefix=no
10392 need_version=no
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 hardcode_into_libs=yes
10397 if test "$with_gnu_ld" = yes; then
10398 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10399 shlibpath_overrides_runpath=no
10400 else
10401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10402 shlibpath_overrides_runpath=yes
10403 case $host_os in
10404 sco3.2v5*)
10405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10406 ;;
10407 esac
10408 fi
10409 sys_lib_dlsearch_path_spec='/usr/lib'
10410 ;;
10411
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412uts4*)
10413 version_type=linux
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 ;;
10418
10419*)
10420 dynamic_linker=no
10421 ;;
10422esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010423{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10424echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425test "$dynamic_linker" = no && can_build_shared=no
10426
Reid Spencera773bd52006-08-04 18:18:08 +000010427variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10428if test "$GCC" = yes; then
10429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10430fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431
Reid Spencera773bd52006-08-04 18:18:08 +000010432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010433{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10434echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10435if test "${libltdl_cv_shlibext+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010437else
10438
10439module=yes
10440eval libltdl_cv_shlibext=$shrext_cmds
10441
10442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010443{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10444echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445if test -n "$libltdl_cv_shlibext"; then
10446
10447cat >>confdefs.h <<_ACEOF
10448#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10449_ACEOF
10450
10451fi
10452
10453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010454{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10455echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10456if test "${libltdl_cv_shlibpath_var+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458else
10459 libltdl_cv_shlibpath_var="$shlibpath_var"
10460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010461{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10462echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010463if test -n "$libltdl_cv_shlibpath_var"; then
10464
10465cat >>confdefs.h <<_ACEOF
10466#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10467_ACEOF
10468
10469fi
10470
10471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010472{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10473echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10474if test "${libltdl_cv_sys_search_path+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010476else
10477 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010479{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10480echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010481if test -n "$libltdl_cv_sys_search_path"; then
10482 sys_search_path=
10483 for dir in $libltdl_cv_sys_search_path; do
10484 if test -z "$sys_search_path"; then
10485 sys_search_path="$dir"
10486 else
10487 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10488 fi
10489 done
10490
10491cat >>confdefs.h <<_ACEOF
10492#define LTDL_SYSSEARCHPATH "$sys_search_path"
10493_ACEOF
10494
10495fi
10496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010497{ echo "$as_me:$LINENO: checking for objdir" >&5
10498echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10499if test "${libltdl_cv_objdir+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501else
10502 libltdl_cv_objdir="$objdir"
10503 if test -n "$objdir"; then
10504 :
10505 else
10506 rm -f .libs 2>/dev/null
10507 mkdir .libs 2>/dev/null
10508 if test -d .libs; then
10509 libltdl_cv_objdir=.libs
10510 else
10511 # MS-DOS does not allow filenames that begin with a dot.
10512 libltdl_cv_objdir=_libs
10513 fi
10514 rmdir .libs 2>/dev/null
10515 fi
10516
10517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010518{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10519echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010520
10521cat >>confdefs.h <<_ACEOF
10522#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10523_ACEOF
10524
10525
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526
10527
10528
10529
10530# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010531{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10532echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10533if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535else
10536
10537# These are sane defaults that work on at least a few old systems.
10538# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10539
10540# Character class describing NM global symbol codes.
10541symcode='[BCDEGRST]'
10542
10543# Regexp to match symbols that can be accessed directly from C.
10544sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10545
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546# Transform an extracted symbol line into a proper C declaration
10547lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10548
10549# Transform an extracted symbol line into symbol name and symbol address
10550lt_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'"
10551
10552# Define system-specific variables.
10553case $host_os in
10554aix*)
10555 symcode='[BCDT]'
10556 ;;
10557cygwin* | mingw* | pw32*)
10558 symcode='[ABCDGISTW]'
10559 ;;
10560hpux*) # Its linker distinguishes data from code symbols
10561 if test "$host_cpu" = ia64; then
10562 symcode='[ABCDEGRST]'
10563 fi
10564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10565 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'"
10566 ;;
10567linux*)
10568 if test "$host_cpu" = ia64; then
10569 symcode='[ABCDGIRSTW]'
10570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10571 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'"
10572 fi
10573 ;;
10574irix* | nonstopux*)
10575 symcode='[BCDEGRST]'
10576 ;;
10577osf*)
10578 symcode='[BCDEGQRST]'
10579 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010580solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581 symcode='[BDRT]'
10582 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010583sco3.2v5*)
10584 symcode='[DT]'
10585 ;;
10586sysv4.2uw2*)
10587 symcode='[DT]'
10588 ;;
10589sysv5* | sco5v6* | unixware* | OpenUNIX*)
10590 symcode='[ABDT]'
10591 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010592sysv4)
10593 symcode='[DFNSTU]'
10594 ;;
10595esac
10596
10597# Handle CRLF in mingw tool chain
10598opt_cr=
10599case $build_os in
10600mingw*)
10601 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10602 ;;
10603esac
10604
10605# If we're using GNU nm, then use its standard symbol codes.
10606case `$NM -V 2>&1` in
10607*GNU* | *'with BFD'*)
10608 symcode='[ABCDGIRSTW]' ;;
10609esac
10610
10611# Try without a prefix undercore, then with it.
10612for ac_symprfx in "" "_"; do
10613
Reid Spencera773bd52006-08-04 18:18:08 +000010614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10615 symxfrm="\\1 $ac_symprfx\\2 \\2"
10616
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010617 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010618 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 +000010619
10620 # Check to see that the pipe works correctly.
10621 pipe_works=no
10622
10623 rm -f conftest*
10624 cat > conftest.$ac_ext <<EOF
10625#ifdef __cplusplus
10626extern "C" {
10627#endif
10628char nm_test_var;
10629void nm_test_func(){}
10630#ifdef __cplusplus
10631}
10632#endif
10633int main(){nm_test_var='a';nm_test_func();return(0);}
10634EOF
10635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637 (eval $ac_compile) 2>&5
10638 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641 # Now try to grab the symbols.
10642 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010643 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 +000010644 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10645 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648 # Try sorting and uniquifying the output.
10649 if sort "$nlist" | uniq > "$nlist"T; then
10650 mv -f "$nlist"T "$nlist"
10651 else
10652 rm -f "$nlist"T
10653 fi
10654
10655 # Make sure that we snagged all the symbols we need.
10656 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10657 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10658 cat <<EOF > conftest.$ac_ext
10659#ifdef __cplusplus
10660extern "C" {
10661#endif
10662
10663EOF
10664 # Now generate the symbol file.
10665 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10666
10667 cat <<EOF >> conftest.$ac_ext
10668#if defined (__STDC__) && __STDC__
10669# define lt_ptr_t void *
10670#else
10671# define lt_ptr_t char *
10672# define const
10673#endif
10674
10675/* The mapping between symbol names and symbols. */
10676const struct {
10677 const char *name;
10678 lt_ptr_t address;
10679}
10680lt_preloaded_symbols[] =
10681{
10682EOF
10683 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10684 cat <<\EOF >> conftest.$ac_ext
10685 {0, (lt_ptr_t) 0}
10686};
10687
10688#ifdef __cplusplus
10689}
10690#endif
10691EOF
10692 # Now try linking the two files.
10693 mv conftest.$ac_objext conftstm.$ac_objext
10694 lt_save_LIBS="$LIBS"
10695 lt_save_CFLAGS="$CFLAGS"
10696 LIBS="conftstm.$ac_objext"
10697 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699 (eval $ac_link) 2>&5
10700 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703 pipe_works=yes
10704 fi
10705 LIBS="$lt_save_LIBS"
10706 CFLAGS="$lt_save_CFLAGS"
10707 else
10708 echo "cannot find nm_test_func in $nlist" >&5
10709 fi
10710 else
10711 echo "cannot find nm_test_var in $nlist" >&5
10712 fi
10713 else
10714 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10715 fi
10716 else
10717 echo "$progname: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10719 fi
10720 rm -f conftest* conftst*
10721
10722 # Do not use the global_symbol_pipe unless it works.
10723 if test "$pipe_works" = yes; then
10724 break
10725 else
10726 lt_cv_sys_global_symbol_pipe=
10727 fi
10728done
10729
10730fi
10731
10732if test -z "$lt_cv_sys_global_symbol_pipe"; then
10733 lt_cv_sys_global_symbol_to_cdecl=
10734fi
10735if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010736 { echo "$as_me:$LINENO: result: failed" >&5
10737echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010739 { echo "$as_me:$LINENO: result: ok" >&5
10740echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010741fi
10742
10743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010744{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10745echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10746if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010748else
10749 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10750 libltdl_cv_preloaded_symbols=yes
10751 else
10752 libltdl_cv_preloaded_symbols=no
10753 fi
10754
10755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010756{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10757echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010758if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010760cat >>confdefs.h <<\_ACEOF
10761#define HAVE_PRELOADED_SYMBOLS 1
10762_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763
10764fi
10765
10766LIBADD_DL=
10767
10768ac_ext=c
10769ac_cpp='$CPP $CPPFLAGS'
10770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10772ac_compiler_gnu=$ac_cv_c_compiler_gnu
10773
10774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010775{ echo "$as_me:$LINENO: checking for shl_load" >&5
10776echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10777if test "${ac_cv_func_shl_load+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779else
10780 cat >conftest.$ac_ext <<_ACEOF
10781/* confdefs.h. */
10782_ACEOF
10783cat confdefs.h >>conftest.$ac_ext
10784cat >>conftest.$ac_ext <<_ACEOF
10785/* end confdefs.h. */
10786/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10788#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010790/* System header to define __stub macros and hopefully few prototypes,
10791 which can conflict with char shl_load (); below.
10792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10793 <limits.h> exists even on freestanding compilers. */
10794
10795#ifdef __STDC__
10796# include <limits.h>
10797#else
10798# include <assert.h>
10799#endif
10800
10801#undef shl_load
10802
10803/* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806#ifdef __cplusplus
10807extern "C"
10808#endif
10809char shl_load ();
10810/* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813#if defined __stub_shl_load || defined __stub___shl_load
10814choke me
10815#endif
10816
10817int
10818main ()
10819{
10820return shl_load ();
10821 ;
10822 return 0;
10823}
10824_ACEOF
10825rm -f conftest.$ac_objext conftest$ac_exeext
10826if { (ac_try="$ac_link"
10827case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830esac
10831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10840 { (case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843esac
10844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; } &&
10849 { ac_try='test -s conftest$ac_exeext'
10850 { (case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10853esac
10854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_try") 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_func_shl_load=yes
10860else
10861 echo "$as_me: failed program was:" >&5
10862sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 ac_cv_func_shl_load=no
10865fi
10866
10867rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869fi
10870{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10871echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10872if test $ac_cv_func_shl_load = yes; then
10873
10874cat >>confdefs.h <<\_ACEOF
10875#define HAVE_SHL_LOAD 1
10876_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877
10878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010879 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10880echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10881if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883else
10884 ac_check_lib_save_LIBS=$LIBS
10885LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010886cat >conftest.$ac_ext <<_ACEOF
10887/* confdefs.h. */
10888_ACEOF
10889cat confdefs.h >>conftest.$ac_ext
10890cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010891/* end confdefs.h. */
10892
Reid Spencera773bd52006-08-04 18:18:08 +000010893/* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010896#ifdef __cplusplus
10897extern "C"
10898#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899char shl_load ();
10900int
10901main ()
10902{
Reid Spencera773bd52006-08-04 18:18:08 +000010903return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904 ;
10905 return 0;
10906}
10907_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010908rm -f conftest.$ac_objext conftest$ac_exeext
10909if { (ac_try="$ac_link"
10910case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_link") 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926esac
10927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942 ac_cv_lib_dld_shl_load=yes
10943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010949
Bill Wendlingebcceee2009-04-18 11:20:33 +000010950rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010951 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952LIBS=$ac_check_lib_save_LIBS
10953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010954{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10955echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10956if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010958cat >>confdefs.h <<\_ACEOF
10959#define HAVE_SHL_LOAD 1
10960_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961
10962 LIBADD_DL="$LIBADD_DL -ldld"
10963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010964 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10965echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10966if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010968else
10969 ac_check_lib_save_LIBS=$LIBS
10970LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010971cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976/* end confdefs.h. */
10977
Reid Spencera773bd52006-08-04 18:18:08 +000010978/* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010981#ifdef __cplusplus
10982extern "C"
10983#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984char dlopen ();
10985int
10986main ()
10987{
Reid Spencera773bd52006-08-04 18:18:08 +000010988return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010989 ;
10990 return 0;
10991}
10992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010993rm -f conftest.$ac_objext conftest$ac_exeext
10994if { (ac_try="$ac_link"
10995case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998esac
10999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_link") 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11011esac
11012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest$ac_exeext'
11018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11021esac
11022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011027 ac_cv_lib_dl_dlopen=yes
11028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011029 echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011034
Bill Wendlingebcceee2009-04-18 11:20:33 +000011035rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011036 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037LIBS=$ac_check_lib_save_LIBS
11038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011039{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11040echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11041if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011043cat >>confdefs.h <<\_ACEOF
11044#define HAVE_LIBDL 1
11045_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046
11047 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011049 cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054/* end confdefs.h. */
11055#if HAVE_DLFCN_H
11056# include <dlfcn.h>
11057#endif
11058
11059int
11060main ()
11061{
11062dlopen(0, 0);
11063 ;
11064 return 0;
11065}
11066_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011067rm -f conftest.$ac_objext conftest$ac_exeext
11068if { (ac_try="$ac_link"
11069case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072esac
11073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_link") 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082 { (case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_try") 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095esac
11096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_try") 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011102cat >>confdefs.h <<\_ACEOF
11103#define HAVE_LIBDL 1
11104_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011105 libltdl_cv_func_dlopen="yes"
11106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011107 echo "$as_me: failed program was:" >&5
11108sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11111echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11112if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114else
11115 ac_check_lib_save_LIBS=$LIBS
11116LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011117cat >conftest.$ac_ext <<_ACEOF
11118/* confdefs.h. */
11119_ACEOF
11120cat confdefs.h >>conftest.$ac_ext
11121cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011122/* end confdefs.h. */
11123
Reid Spencera773bd52006-08-04 18:18:08 +000011124/* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127#ifdef __cplusplus
11128extern "C"
11129#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130char dlopen ();
11131int
11132main ()
11133{
Reid Spencera773bd52006-08-04 18:18:08 +000011134return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135 ;
11136 return 0;
11137}
11138_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011139rm -f conftest.$ac_objext conftest$ac_exeext
11140if { (ac_try="$ac_link"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157esac
11158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011173 ac_cv_lib_svld_dlopen=yes
11174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011175 echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011180
Bill Wendlingebcceee2009-04-18 11:20:33 +000011181rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011182 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183LIBS=$ac_check_lib_save_LIBS
11184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011185{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11186echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11187if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011189cat >>confdefs.h <<\_ACEOF
11190#define HAVE_LIBDL 1
11191_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011192
11193 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011195 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11196echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11197if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011199else
11200 ac_check_lib_save_LIBS=$LIBS
11201LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011202cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207/* end confdefs.h. */
11208
Reid Spencera773bd52006-08-04 18:18:08 +000011209/* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212#ifdef __cplusplus
11213extern "C"
11214#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215char dld_link ();
11216int
11217main ()
11218{
Reid Spencera773bd52006-08-04 18:18:08 +000011219return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220 ;
11221 return 0;
11222}
11223_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011224rm -f conftest.$ac_objext conftest$ac_exeext
11225if { (ac_try="$ac_link"
11226case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229esac
11230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_link") 2>conftest.er1
11232 ac_status=$?
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
11238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11239 { (case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242esac
11243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_try") 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest$ac_exeext'
11249 { (case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252esac
11253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_try") 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258 ac_cv_lib_dld_dld_link=yes
11259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011260 echo "$as_me: failed program was:" >&5
11261sed 's/^/| /' conftest.$ac_ext >&5
11262
11263 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011265
Bill Wendlingebcceee2009-04-18 11:20:33 +000011266rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011267 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268LIBS=$ac_check_lib_save_LIBS
11269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011270{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11271echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11272if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011274cat >>confdefs.h <<\_ACEOF
11275#define HAVE_DLD 1
11276_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277
11278 LIBADD_DL="$LIBADD_DL -ldld"
11279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011280 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11281echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11282if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284else
11285 cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011295/* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char _dyld_func_lookup (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011300#ifdef __STDC__
11301# include <limits.h>
11302#else
11303# include <assert.h>
11304#endif
11305
11306#undef _dyld_func_lookup
11307
11308/* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311#ifdef __cplusplus
11312extern "C"
11313#endif
11314char _dyld_func_lookup ();
11315/* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11319choke me
11320#endif
11321
11322int
11323main ()
11324{
11325return _dyld_func_lookup ();
11326 ;
11327 return 0;
11328}
11329_ACEOF
11330rm -f conftest.$ac_objext conftest$ac_exeext
11331if { (ac_try="$ac_link"
11332case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335esac
11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11345 { (case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348esac
11349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_try") 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try='test -s conftest$ac_exeext'
11355 { (case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358esac
11359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_try") 2>&5
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 ac_cv_func__dyld_func_lookup=yes
11365else
11366 echo "$as_me: failed program was:" >&5
11367sed 's/^/| /' conftest.$ac_ext >&5
11368
11369 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370fi
Reid Spencera773bd52006-08-04 18:18:08 +000011371
Bill Wendlingebcceee2009-04-18 11:20:33 +000011372rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011373 conftest$ac_exeext conftest.$ac_ext
11374fi
11375{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11376echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11377if test $ac_cv_func__dyld_func_lookup = yes; then
11378
11379cat >>confdefs.h <<\_ACEOF
11380#define HAVE_DYLD 1
11381_ACEOF
11382
11383fi
11384
11385
11386fi
11387
11388
11389fi
11390
11391
11392fi
11393
11394rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011396
11397fi
11398
11399
11400fi
11401
11402
11403fi
11404
11405
11406if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11407then
11408 lt_save_LIBS="$LIBS"
11409 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011410
11411for ac_func in dlerror
11412do
11413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11414{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11416if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418else
11419 cat >conftest.$ac_ext <<_ACEOF
11420/* confdefs.h. */
11421_ACEOF
11422cat confdefs.h >>conftest.$ac_ext
11423cat >>conftest.$ac_ext <<_ACEOF
11424/* end confdefs.h. */
11425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11427#define $ac_func innocuous_$ac_func
11428
11429/* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func (); below.
11431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11432 <limits.h> exists even on freestanding compilers. */
11433
11434#ifdef __STDC__
11435# include <limits.h>
11436#else
11437# include <assert.h>
11438#endif
11439
11440#undef $ac_func
11441
11442/* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11445#ifdef __cplusplus
11446extern "C"
11447#endif
11448char $ac_func ();
11449/* The GNU C library defines this for functions which it implements
11450 to always fail with ENOSYS. Some functions are actually named
11451 something starting with __ and the normal name is an alias. */
11452#if defined __stub_$ac_func || defined __stub___$ac_func
11453choke me
11454#endif
11455
11456int
11457main ()
11458{
11459return $ac_func ();
11460 ;
11461 return 0;
11462}
11463_ACEOF
11464rm -f conftest.$ac_objext conftest$ac_exeext
11465if { (ac_try="$ac_link"
11466case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469esac
11470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_link") 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } &&
11478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11479 { (case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482esac
11483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_try") 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest$ac_exeext'
11489 { (case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492esac
11493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_try") 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 eval "$as_ac_var=yes"
11499else
11500 echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503 eval "$as_ac_var=no"
11504fi
11505
11506rm -f core conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508fi
11509ac_res=`eval echo '${'$as_ac_var'}'`
11510 { echo "$as_me:$LINENO: result: $ac_res" >&5
11511echo "${ECHO_T}$ac_res" >&6; }
11512if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515_ACEOF
11516
11517fi
11518done
11519
11520 LIBS="$lt_save_LIBS"
11521fi
11522ac_ext=c
11523ac_cpp='$CPP $CPPFLAGS'
11524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11526ac_compiler_gnu=$ac_cv_c_compiler_gnu
11527
11528
11529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011530{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11531echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11532if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534else
11535 ac_cv_sys_symbol_underscore=no
11536 cat > conftest.$ac_ext <<EOF
11537void nm_test_func(){}
11538int main(){nm_test_func;return 0;}
11539EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011541 (eval $ac_compile) 2>&5
11542 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545 # Now try to grab the symbols.
11546 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011547 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 +000011548 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11549 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552 # See whether the symbols have a leading underscore.
11553 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11554 ac_cv_sys_symbol_underscore=yes
11555 else
11556 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11557 :
11558 else
11559 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11560 fi
11561 fi
11562 else
11563 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11564 fi
11565 else
11566 echo "configure: failed program was:" >&5
11567 cat conftest.c >&5
11568 fi
11569 rm -rf conftest*
11570
11571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011572{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11573echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011574
11575
11576if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11577 if test x"$libltdl_cv_func_dlopen" = xyes ||
11578 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011579 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11580echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11581if test "${libltdl_cv_need_uscore+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583else
11584 libltdl_cv_need_uscore=unknown
11585 save_LIBS="$LIBS"
11586 LIBS="$LIBS $LIBADD_DL"
11587 if test "$cross_compiling" = yes; then :
11588 libltdl_cv_need_uscore=cross
11589else
11590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11591 lt_status=$lt_dlunknown
11592 cat > conftest.$ac_ext <<EOF
Daniel Dunbared344d22011-06-16 22:30:41 +000011593#line 11591 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594#include "confdefs.h"
11595
11596#if HAVE_DLFCN_H
11597#include <dlfcn.h>
11598#endif
11599
11600#include <stdio.h>
11601
11602#ifdef RTLD_GLOBAL
11603# define LT_DLGLOBAL RTLD_GLOBAL
11604#else
11605# ifdef DL_GLOBAL
11606# define LT_DLGLOBAL DL_GLOBAL
11607# else
11608# define LT_DLGLOBAL 0
11609# endif
11610#endif
11611
11612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11613 find out it does not work in some platform. */
11614#ifndef LT_DLLAZY_OR_NOW
11615# ifdef RTLD_LAZY
11616# define LT_DLLAZY_OR_NOW RTLD_LAZY
11617# else
11618# ifdef DL_LAZY
11619# define LT_DLLAZY_OR_NOW DL_LAZY
11620# else
11621# ifdef RTLD_NOW
11622# define LT_DLLAZY_OR_NOW RTLD_NOW
11623# else
11624# ifdef DL_NOW
11625# define LT_DLLAZY_OR_NOW DL_NOW
11626# else
11627# define LT_DLLAZY_OR_NOW 0
11628# endif
11629# endif
11630# endif
11631# endif
11632#endif
11633
11634#ifdef __cplusplus
11635extern "C" void exit (int);
11636#endif
11637
11638void fnord() { int i=42;}
11639int main ()
11640{
11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11642 int status = $lt_dlunknown;
11643
11644 if (self)
11645 {
11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11648 /* dlclose (self); */
11649 }
Reid Spencera773bd52006-08-04 18:18:08 +000011650 else
11651 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011652
11653 exit (status);
11654}
11655EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011657 (eval $ac_link) 2>&5
11658 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011661 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662 lt_status=$?
11663 case x$lt_status in
11664 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11665 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011666 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011667 esac
11668 else :
11669 # compilation failed
11670
11671 fi
11672fi
11673rm -fr conftest*
11674
11675 LIBS="$save_LIBS"
11676
11677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011678{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11679echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680 fi
11681fi
11682
11683if test x"$libltdl_cv_need_uscore" = xyes; then
11684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011685cat >>confdefs.h <<\_ACEOF
11686#define NEED_USCORE 1
11687_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688
11689fi
11690
11691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011692{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11693echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11694if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011696else
11697 # PORTME does your system automatically load deplibs for dlopen?
11698 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11699 # For now, we just catch OSes we know something about -- in the
11700 # future, we'll try test this programmatically.
11701 libltdl_cv_sys_dlopen_deplibs=unknown
11702 case "$host_os" in
11703 aix3*|aix4.1.*|aix4.2.*)
11704 # Unknown whether this is true for these versions of AIX, but
11705 # we want this `case' here to explicitly catch those versions.
11706 libltdl_cv_sys_dlopen_deplibs=unknown
11707 ;;
11708 aix[45]*)
11709 libltdl_cv_sys_dlopen_deplibs=yes
11710 ;;
11711 darwin*)
11712 # Assuming the user has installed a libdl from somewhere, this is true
11713 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11714 libltdl_cv_sys_dlopen_deplibs=yes
11715 ;;
11716 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11717 # GNU and its variants, using gnu ld.so (Glibc)
11718 libltdl_cv_sys_dlopen_deplibs=yes
11719 ;;
11720 hpux10*|hpux11*)
11721 libltdl_cv_sys_dlopen_deplibs=yes
11722 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011723 interix*)
11724 libltdl_cv_sys_dlopen_deplibs=yes
11725 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011726 irix[12345]*|irix6.[01]*)
11727 # Catch all versions of IRIX before 6.2, and indicate that we don't
11728 # know how it worked for any of those versions.
11729 libltdl_cv_sys_dlopen_deplibs=unknown
11730 ;;
11731 irix*)
11732 # The case above catches anything before 6.2, and it's known that
11733 # at 6.2 and later dlopen does load deplibs.
11734 libltdl_cv_sys_dlopen_deplibs=yes
11735 ;;
11736 netbsd*)
11737 libltdl_cv_sys_dlopen_deplibs=yes
11738 ;;
11739 openbsd*)
11740 libltdl_cv_sys_dlopen_deplibs=yes
11741 ;;
11742 osf[1234]*)
11743 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11744 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000011745 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746 libltdl_cv_sys_dlopen_deplibs=no
11747 ;;
11748 osf5.0|osf5.0a|osf5.1)
11749 # dlopen *does* load deplibs and with the right loader patch applied
11750 # it even uses RPATH in a shared library to search for shared objects
11751 # that the library depends on, but there's no easy way to know if that
11752 # patch is installed. Since this is the case, all we can really
11753 # say is unknown -- it depends on the patch being installed. If
11754 # it is, this changes to `yes'. Without it, it would be `no'.
11755 libltdl_cv_sys_dlopen_deplibs=unknown
11756 ;;
11757 osf*)
11758 # the two cases above should catch all versions of osf <= 5.1. Read
11759 # the comments above for what we know about them.
11760 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11761 # is used to find them so we can finally say `yes'.
11762 libltdl_cv_sys_dlopen_deplibs=yes
11763 ;;
11764 solaris*)
11765 libltdl_cv_sys_dlopen_deplibs=yes
11766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11768 libltdl_cv_sys_dlopen_deplibs=yes
11769 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770 esac
11771
11772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011773{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11774echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011777cat >>confdefs.h <<\_ACEOF
11778#define LTDL_DLOPEN_DEPLIBS 1
11779_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780
11781fi
11782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011783
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011785do
11786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792fi
11793ac_res=`eval echo '${'$as_ac_Header'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795echo "${ECHO_T}$ac_res" >&6; }
11796else
11797 # Is the header compilable?
11798{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11800cat >conftest.$ac_ext <<_ACEOF
11801/* confdefs.h. */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h. */
11806$ac_includes_default
11807#include <$ac_header>
11808_ACEOF
11809rm -f conftest.$ac_objext
11810if { (ac_try="$ac_compile"
11811case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814esac
11815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827esac
11828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest.$ac_objext'
11834 { (case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837esac
11838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_try") 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 ac_header_compiler=yes
11844else
11845 echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_header_compiler=no
11849fi
11850
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11853echo "${ECHO_T}$ac_header_compiler" >&6; }
11854
11855# Is the header present?
11856{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11858cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
11864#include <$ac_header>
11865_ACEOF
11866if { (ac_try="$ac_cpp conftest.$ac_ext"
11867case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11870esac
11871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11873 ac_status=$?
11874 grep -v '^ *+' conftest.er1 >conftest.err
11875 rm -f conftest.er1
11876 cat conftest.err >&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } >/dev/null; then
11879 if test -s conftest.err; then
11880 ac_cpp_err=$ac_c_preproc_warn_flag
11881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11882 else
11883 ac_cpp_err=
11884 fi
11885else
11886 ac_cpp_err=yes
11887fi
11888if test -z "$ac_cpp_err"; then
11889 ac_header_preproc=yes
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 ac_header_preproc=no
11895fi
11896
11897rm -f conftest.err conftest.$ac_ext
11898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11899echo "${ECHO_T}$ac_header_preproc" >&6; }
11900
11901# So? What about this header?
11902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11903 yes:no: )
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11908 ac_header_preproc=yes
11909 ;;
11910 no:yes:* )
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11923 ( cat <<\_ASBOX
11924## ----------------------------------- ##
11925## Report this to llvmbugs@cs.uiuc.edu ##
11926## ----------------------------------- ##
11927_ASBOX
11928 ) | sed "s/^/$as_me: WARNING: /" >&2
11929 ;;
11930esac
11931{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935else
11936 eval "$as_ac_Header=\$ac_header_preproc"
11937fi
11938ac_res=`eval echo '${'$as_ac_Header'}'`
11939 { echo "$as_me:$LINENO: result: $ac_res" >&5
11940echo "${ECHO_T}$ac_res" >&6; }
11941
11942fi
11943if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946_ACEOF
11947
11948fi
11949
11950done
11951
11952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011953{ echo "$as_me:$LINENO: checking for error_t" >&5
11954echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11955if test "${ac_cv_type_error_t+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957else
11958 cat >conftest.$ac_ext <<_ACEOF
11959/* confdefs.h. */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h. */
11964#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965# include <argz.h>
11966#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011967
11968typedef error_t ac__type_new_;
11969int
11970main ()
11971{
11972if ((ac__type_new_ *) 0)
11973 return 0;
11974if (sizeof (ac__type_new_))
11975 return 0;
11976 ;
11977 return 0;
11978}
11979_ACEOF
11980rm -f conftest.$ac_objext
11981if { (ac_try="$ac_compile"
11982case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985esac
11986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_compile") 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest.$ac_objext'
12005 { (case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008esac
12009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_try") 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_type_error_t=yes
12015else
12016 echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ac_cv_type_error_t=no
12020fi
12021
12022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023fi
12024{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12025echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12026if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027
12028cat >>confdefs.h <<_ACEOF
12029#define HAVE_ERROR_T 1
12030_ACEOF
12031
12032
12033else
12034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012035cat >>confdefs.h <<\_ACEOF
12036#define error_t int
12037_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012038
12039fi
12040
12041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012042
12043
12044
12045
12046
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012047for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
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
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012175
12176
12177
12178
12179
12180
12181
12182
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012183for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12184 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012185do
12186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192fi
12193ac_res=`eval echo '${'$as_ac_Header'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195echo "${ECHO_T}$ac_res" >&6; }
12196else
12197 # Is the header compilable?
12198{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12200cat >conftest.$ac_ext <<_ACEOF
12201/* confdefs.h. */
12202_ACEOF
12203cat confdefs.h >>conftest.$ac_ext
12204cat >>conftest.$ac_ext <<_ACEOF
12205/* end confdefs.h. */
12206$ac_includes_default
12207#include <$ac_header>
12208_ACEOF
12209rm -f conftest.$ac_objext
12210if { (ac_try="$ac_compile"
12211case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12227esac
12228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest.$ac_objext'
12234 { (case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237esac
12238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_try") 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_header_compiler=yes
12244else
12245 echo "$as_me: failed program was:" >&5
12246sed 's/^/| /' conftest.$ac_ext >&5
12247
12248 ac_header_compiler=no
12249fi
12250
12251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12253echo "${ECHO_T}$ac_header_compiler" >&6; }
12254
12255# Is the header present?
12256{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12258cat >conftest.$ac_ext <<_ACEOF
12259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
12264#include <$ac_header>
12265_ACEOF
12266if { (ac_try="$ac_cpp conftest.$ac_ext"
12267case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270esac
12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } >/dev/null; then
12279 if test -s conftest.err; then
12280 ac_cpp_err=$ac_c_preproc_warn_flag
12281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12282 else
12283 ac_cpp_err=
12284 fi
12285else
12286 ac_cpp_err=yes
12287fi
12288if test -z "$ac_cpp_err"; then
12289 ac_header_preproc=yes
12290else
12291 echo "$as_me: failed program was:" >&5
12292sed 's/^/| /' conftest.$ac_ext >&5
12293
12294 ac_header_preproc=no
12295fi
12296
12297rm -f conftest.err conftest.$ac_ext
12298{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12299echo "${ECHO_T}$ac_header_preproc" >&6; }
12300
12301# So? What about this header?
12302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12303 yes:no: )
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12305echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12307echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12308 ac_header_preproc=yes
12309 ;;
12310 no:yes:* )
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12312echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12314echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12316echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12318echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12320echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12322echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12323 ( cat <<\_ASBOX
12324## ----------------------------------- ##
12325## Report this to llvmbugs@cs.uiuc.edu ##
12326## ----------------------------------- ##
12327_ASBOX
12328 ) | sed "s/^/$as_me: WARNING: /" >&2
12329 ;;
12330esac
12331{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335else
12336 eval "$as_ac_Header=\$ac_header_preproc"
12337fi
12338ac_res=`eval echo '${'$as_ac_Header'}'`
12339 { echo "$as_me:$LINENO: result: $ac_res" >&5
12340echo "${ECHO_T}$ac_res" >&6; }
12341
12342fi
12343if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012346_ACEOF
12347
12348fi
12349
12350done
12351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012352
12353
12354
12355
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012356for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012357do
12358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12364fi
12365ac_res=`eval echo '${'$as_ac_Header'}'`
12366 { echo "$as_me:$LINENO: result: $ac_res" >&5
12367echo "${ECHO_T}$ac_res" >&6; }
12368else
12369 # Is the header compilable?
12370{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12372cat >conftest.$ac_ext <<_ACEOF
12373/* confdefs.h. */
12374_ACEOF
12375cat confdefs.h >>conftest.$ac_ext
12376cat >>conftest.$ac_ext <<_ACEOF
12377/* end confdefs.h. */
12378$ac_includes_default
12379#include <$ac_header>
12380_ACEOF
12381rm -f conftest.$ac_objext
12382if { (ac_try="$ac_compile"
12383case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_compile") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399esac
12400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_header_compiler=yes
12416else
12417 echo "$as_me: failed program was:" >&5
12418sed 's/^/| /' conftest.$ac_ext >&5
12419
12420 ac_header_compiler=no
12421fi
12422
12423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12425echo "${ECHO_T}$ac_header_compiler" >&6; }
12426
12427# Is the header present?
12428{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12430cat >conftest.$ac_ext <<_ACEOF
12431/* confdefs.h. */
12432_ACEOF
12433cat confdefs.h >>conftest.$ac_ext
12434cat >>conftest.$ac_ext <<_ACEOF
12435/* end confdefs.h. */
12436#include <$ac_header>
12437_ACEOF
12438if { (ac_try="$ac_cpp conftest.$ac_ext"
12439case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442esac
12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } >/dev/null; then
12451 if test -s conftest.err; then
12452 ac_cpp_err=$ac_c_preproc_warn_flag
12453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12454 else
12455 ac_cpp_err=
12456 fi
12457else
12458 ac_cpp_err=yes
12459fi
12460if test -z "$ac_cpp_err"; then
12461 ac_header_preproc=yes
12462else
12463 echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 ac_header_preproc=no
12467fi
12468
12469rm -f conftest.err conftest.$ac_ext
12470{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471echo "${ECHO_T}$ac_header_preproc" >&6; }
12472
12473# So? What about this header?
12474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12475 yes:no: )
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12480 ac_header_preproc=yes
12481 ;;
12482 no:yes:* )
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12495 ( cat <<\_ASBOX
12496## ----------------------------------- ##
12497## Report this to llvmbugs@cs.uiuc.edu ##
12498## ----------------------------------- ##
12499_ASBOX
12500 ) | sed "s/^/$as_me: WARNING: /" >&2
12501 ;;
12502esac
12503{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507else
12508 eval "$as_ac_Header=\$ac_header_preproc"
12509fi
12510ac_res=`eval echo '${'$as_ac_Header'}'`
12511 { echo "$as_me:$LINENO: result: $ac_res" >&5
12512echo "${ECHO_T}$ac_res" >&6; }
12513
12514fi
12515if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012516 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012518_ACEOF
12519
12520fi
12521
12522done
12523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012524
12525
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012526for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012527do
12528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12534fi
12535ac_res=`eval echo '${'$as_ac_Header'}'`
12536 { echo "$as_me:$LINENO: result: $ac_res" >&5
12537echo "${ECHO_T}$ac_res" >&6; }
12538else
12539 # Is the header compilable?
12540{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12542cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548$ac_includes_default
12549#include <$ac_header>
12550_ACEOF
12551rm -f conftest.$ac_objext
12552if { (ac_try="$ac_compile"
12553case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556esac
12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_compile") 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12566 { (case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569esac
12570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_try") 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579esac
12580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_try") 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 ac_header_compiler=yes
12586else
12587 echo "$as_me: failed program was:" >&5
12588sed 's/^/| /' conftest.$ac_ext >&5
12589
12590 ac_header_compiler=no
12591fi
12592
12593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12595echo "${ECHO_T}$ac_header_compiler" >&6; }
12596
12597# Is the header present?
12598{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12600cat >conftest.$ac_ext <<_ACEOF
12601/* confdefs.h. */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h. */
12606#include <$ac_header>
12607_ACEOF
12608if { (ac_try="$ac_cpp conftest.$ac_ext"
12609case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612esac
12613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev/null; then
12621 if test -s conftest.err; then
12622 ac_cpp_err=$ac_c_preproc_warn_flag
12623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12624 else
12625 ac_cpp_err=
12626 fi
12627else
12628 ac_cpp_err=yes
12629fi
12630if test -z "$ac_cpp_err"; then
12631 ac_header_preproc=yes
12632else
12633 echo "$as_me: failed program was:" >&5
12634sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 ac_header_preproc=no
12637fi
12638
12639rm -f conftest.err conftest.$ac_ext
12640{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12641echo "${ECHO_T}$ac_header_preproc" >&6; }
12642
12643# So? What about this header?
12644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12645 yes:no: )
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12650 ac_header_preproc=yes
12651 ;;
12652 no:yes:* )
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12665 ( cat <<\_ASBOX
12666## ----------------------------------- ##
12667## Report this to llvmbugs@cs.uiuc.edu ##
12668## ----------------------------------- ##
12669_ASBOX
12670 ) | sed "s/^/$as_me: WARNING: /" >&2
12671 ;;
12672esac
12673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677else
12678 eval "$as_ac_Header=\$ac_header_preproc"
12679fi
12680ac_res=`eval echo '${'$as_ac_Header'}'`
12681 { echo "$as_me:$LINENO: result: $ac_res" >&5
12682echo "${ECHO_T}$ac_res" >&6; }
12683
12684fi
12685if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012686 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012688_ACEOF
12689 break
12690fi
12691
12692done
12693
12694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012695
12696
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012698do
12699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12700{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12702if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705 cat >conftest.$ac_ext <<_ACEOF
12706/* confdefs.h. */
12707_ACEOF
12708cat confdefs.h >>conftest.$ac_ext
12709cat >>conftest.$ac_ext <<_ACEOF
12710/* end confdefs.h. */
12711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12713#define $ac_func innocuous_$ac_func
12714
12715/* System header to define __stub macros and hopefully few prototypes,
12716 which can conflict with char $ac_func (); below.
12717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12718 <limits.h> exists even on freestanding compilers. */
12719
12720#ifdef __STDC__
12721# include <limits.h>
12722#else
12723# include <assert.h>
12724#endif
12725
12726#undef $ac_func
12727
12728/* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
12731#ifdef __cplusplus
12732extern "C"
12733#endif
12734char $ac_func ();
12735/* The GNU C library defines this for functions which it implements
12736 to always fail with ENOSYS. Some functions are actually named
12737 something starting with __ and the normal name is an alias. */
12738#if defined __stub_$ac_func || defined __stub___$ac_func
12739choke me
12740#endif
12741
12742int
12743main ()
12744{
12745return $ac_func ();
12746 ;
12747 return 0;
12748}
12749_ACEOF
12750rm -f conftest.$ac_objext conftest$ac_exeext
12751if { (ac_try="$ac_link"
12752case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755esac
12756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_link") 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12765 { (case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768esac
12769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_try") 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try='test -s conftest$ac_exeext'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 eval "$as_ac_var=yes"
12785else
12786 echo "$as_me: failed program was:" >&5
12787sed 's/^/| /' conftest.$ac_ext >&5
12788
12789 eval "$as_ac_var=no"
12790fi
12791
12792rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12794fi
12795ac_res=`eval echo '${'$as_ac_var'}'`
12796 { echo "$as_me:$LINENO: result: $ac_res" >&5
12797echo "${ECHO_T}$ac_res" >&6; }
12798if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012799 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012801_ACEOF
12802 break
12803fi
12804done
12805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012806
12807
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012808for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012809do
12810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12811{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12813if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815else
12816 cat >conftest.$ac_ext <<_ACEOF
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
12822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12824#define $ac_func innocuous_$ac_func
12825
12826/* System header to define __stub macros and hopefully few prototypes,
12827 which can conflict with char $ac_func (); below.
12828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829 <limits.h> exists even on freestanding compilers. */
12830
12831#ifdef __STDC__
12832# include <limits.h>
12833#else
12834# include <assert.h>
12835#endif
12836
12837#undef $ac_func
12838
12839/* Override any GCC internal prototype to avoid an error.
12840 Use char because int might match the return type of a GCC
12841 builtin and then its argument prototype would still apply. */
12842#ifdef __cplusplus
12843extern "C"
12844#endif
12845char $ac_func ();
12846/* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849#if defined __stub_$ac_func || defined __stub___$ac_func
12850choke me
12851#endif
12852
12853int
12854main ()
12855{
12856return $ac_func ();
12857 ;
12858 return 0;
12859}
12860_ACEOF
12861rm -f conftest.$ac_objext conftest$ac_exeext
12862if { (ac_try="$ac_link"
12863case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866esac
12867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_link") 2>conftest.er1
12869 ac_status=$?
12870 grep -v '^ *+' conftest.er1 >conftest.err
12871 rm -f conftest.er1
12872 cat conftest.err >&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12876 { (case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12879esac
12880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_try") 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } &&
12885 { ac_try='test -s conftest$ac_exeext'
12886 { (case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889esac
12890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_try") 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 eval "$as_ac_var=yes"
12896else
12897 echo "$as_me: failed program was:" >&5
12898sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 eval "$as_ac_var=no"
12901fi
12902
12903rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905fi
12906ac_res=`eval echo '${'$as_ac_var'}'`
12907 { echo "$as_me:$LINENO: result: $ac_res" >&5
12908echo "${ECHO_T}$ac_res" >&6; }
12909if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012910 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012912_ACEOF
12913 break
12914fi
12915done
12916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012917
12918
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012919for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012920do
12921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12922{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926else
12927 cat >conftest.$ac_ext <<_ACEOF
12928/* confdefs.h. */
12929_ACEOF
12930cat confdefs.h >>conftest.$ac_ext
12931cat >>conftest.$ac_ext <<_ACEOF
12932/* end confdefs.h. */
12933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12935#define $ac_func innocuous_$ac_func
12936
12937/* System header to define __stub macros and hopefully few prototypes,
12938 which can conflict with char $ac_func (); below.
12939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12940 <limits.h> exists even on freestanding compilers. */
12941
12942#ifdef __STDC__
12943# include <limits.h>
12944#else
12945# include <assert.h>
12946#endif
12947
12948#undef $ac_func
12949
12950/* Override any GCC internal prototype to avoid an error.
12951 Use char because int might match the return type of a GCC
12952 builtin and then its argument prototype would still apply. */
12953#ifdef __cplusplus
12954extern "C"
12955#endif
12956char $ac_func ();
12957/* The GNU C library defines this for functions which it implements
12958 to always fail with ENOSYS. Some functions are actually named
12959 something starting with __ and the normal name is an alias. */
12960#if defined __stub_$ac_func || defined __stub___$ac_func
12961choke me
12962#endif
12963
12964int
12965main ()
12966{
12967return $ac_func ();
12968 ;
12969 return 0;
12970}
12971_ACEOF
12972rm -f conftest.$ac_objext conftest$ac_exeext
12973if { (ac_try="$ac_link"
12974case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest$ac_exeext'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000esac
13001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 eval "$as_ac_var=yes"
13007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 eval "$as_ac_var=no"
13012fi
13013
13014rm -f core conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13016fi
13017ac_res=`eval echo '${'$as_ac_var'}'`
13018 { echo "$as_me:$LINENO: result: $ac_res" >&5
13019echo "${ECHO_T}$ac_res" >&6; }
13020if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013021 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013023_ACEOF
13024 break
13025fi
13026done
13027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013028
13029
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013030for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013031do
13032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037else
13038 cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h. */
13044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13046#define $ac_func innocuous_$ac_func
13047
13048/* System header to define __stub macros and hopefully few prototypes,
13049 which can conflict with char $ac_func (); below.
13050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13051 <limits.h> exists even on freestanding compilers. */
13052
13053#ifdef __STDC__
13054# include <limits.h>
13055#else
13056# include <assert.h>
13057#endif
13058
13059#undef $ac_func
13060
13061/* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13064#ifdef __cplusplus
13065extern "C"
13066#endif
13067char $ac_func ();
13068/* The GNU C library defines this for functions which it implements
13069 to always fail with ENOSYS. Some functions are actually named
13070 something starting with __ and the normal name is an alias. */
13071#if defined __stub_$ac_func || defined __stub___$ac_func
13072choke me
13073#endif
13074
13075int
13076main ()
13077{
13078return $ac_func ();
13079 ;
13080 return 0;
13081}
13082_ACEOF
13083rm -f conftest.$ac_objext conftest$ac_exeext
13084if { (ac_try="$ac_link"
13085case "(($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_link") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13098 { (case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101esac
13102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest$ac_exeext'
13108 { (case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111esac
13112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_try") 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 eval "$as_ac_var=yes"
13118else
13119 echo "$as_me: failed program was:" >&5
13120sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 eval "$as_ac_var=no"
13123fi
13124
13125rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13127fi
13128ac_res=`eval echo '${'$as_ac_var'}'`
13129 { echo "$as_me:$LINENO: result: $ac_res" >&5
13130echo "${ECHO_T}$ac_res" >&6; }
13131if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013132 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013134_ACEOF
13135
13136fi
13137done
13138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013139
13140
13141
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013142for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013143do
13144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149else
13150 cat >conftest.$ac_ext <<_ACEOF
13151/* confdefs.h. */
13152_ACEOF
13153cat confdefs.h >>conftest.$ac_ext
13154cat >>conftest.$ac_ext <<_ACEOF
13155/* end confdefs.h. */
13156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13158#define $ac_func innocuous_$ac_func
13159
13160/* System header to define __stub macros and hopefully few prototypes,
13161 which can conflict with char $ac_func (); below.
13162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13163 <limits.h> exists even on freestanding compilers. */
13164
13165#ifdef __STDC__
13166# include <limits.h>
13167#else
13168# include <assert.h>
13169#endif
13170
13171#undef $ac_func
13172
13173/* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13176#ifdef __cplusplus
13177extern "C"
13178#endif
13179char $ac_func ();
13180/* The GNU C library defines this for functions which it implements
13181 to always fail with ENOSYS. Some functions are actually named
13182 something starting with __ and the normal name is an alias. */
13183#if defined __stub_$ac_func || defined __stub___$ac_func
13184choke me
13185#endif
13186
13187int
13188main ()
13189{
13190return $ac_func ();
13191 ;
13192 return 0;
13193}
13194_ACEOF
13195rm -f conftest.$ac_objext conftest$ac_exeext
13196if { (ac_try="$ac_link"
13197case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13210 { (case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13213esac
13214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_try") 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest$ac_exeext'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223esac
13224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 eval "$as_ac_var=yes"
13230else
13231 echo "$as_me: failed program was:" >&5
13232sed 's/^/| /' conftest.$ac_ext >&5
13233
13234 eval "$as_ac_var=no"
13235fi
13236
13237rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239fi
13240ac_res=`eval echo '${'$as_ac_var'}'`
13241 { echo "$as_me:$LINENO: result: $ac_res" >&5
13242echo "${ECHO_T}$ac_res" >&6; }
13243if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013244 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013246_ACEOF
13247
13248fi
13249done
13250
13251
Douglas Gregor01746742009-05-11 18:05:52 +000013252
Reid Spencer7931a782004-12-27 06:15:02 +000013253if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013254 LLVMGCC="llvm-gcc${EXEEXT}"
13255 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013256 LLVMGCCCOMMAND="$LLVMGCC"
13257 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013258 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13259
13260 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13261
Reid Spencerc84492c2005-06-02 22:34:49 +000013262 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13263set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13266if test "${ac_cv_path_LLVMGCC+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013268else
13269 case $LLVMGCC in
13270 [\\/]* | ?:[\\/]*)
13271 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13272 ;;
13273 *)
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013281 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013283 break 2
13284 fi
13285done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013286done
Reid Spencera773bd52006-08-04 18:18:08 +000013287IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013288
Reid Spencer59473af2004-12-25 07:31:29 +000013289 ;;
13290esac
13291fi
13292LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013293if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013294 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13295echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013297 { echo "$as_me:$LINENO: result: no" >&5
13298echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013299fi
13300
Reid Spencera773bd52006-08-04 18:18:08 +000013301
Reid Spencerc84492c2005-06-02 22:34:49 +000013302 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13303set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13306if test "${ac_cv_path_LLVMGXX+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013308else
13309 case $LLVMGXX in
13310 [\\/]* | ?:[\\/]*)
13311 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13312 ;;
13313 *)
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315for as_dir in $PATH
13316do
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013321 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013323 break 2
13324 fi
13325done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326done
Reid Spencera773bd52006-08-04 18:18:08 +000013327IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013328
Reid Spencer59473af2004-12-25 07:31:29 +000013329 ;;
13330esac
13331fi
13332LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013333if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013334 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13335echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013337 { echo "$as_me:$LINENO: result: no" >&5
13338echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013339fi
13340
Reid Spencera773bd52006-08-04 18:18:08 +000013341
Reid Spencer59473af2004-12-25 07:31:29 +000013342else
Devang Patel5d28b882007-12-04 22:54:47 +000013343 if test -z "$LLVMGCC"; then
13344 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013345 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013346 fi
13347 if test -z "$LLVMGXX"; then
13348 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013349 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013350 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013351
Reid Spencer59473af2004-12-25 07:31:29 +000013352 LLVMGCC=$LLVMGCC
13353
13354 LLVMGXX=$LLVMGXX
13355
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013356 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13357
13358 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13359
Reid Spencer59473af2004-12-25 07:31:29 +000013360fi
13361
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013362
Daniel Dunbar98515672010-02-23 10:00:49 +000013363# Check whether --with-llvmcc was given.
13364if test "${with_llvmcc+set}" = set; then
13365 withval=$with_llvmcc;
13366else
13367 with_llvmcc=check
13368fi
13369
13370{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13371echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13372if test "$with_llvmcc" != "check"; then
13373 if (test "$with_llvmcc" != "llvm-gcc" &&
13374 test "$with_llvmcc" != "clang" &&
13375 test "$with_llvmcc" != "none"); then
13376 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13377echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13378 { (exit 1); exit 1; }; }
13379 fi
13380 WITH_LLVMCC="$with_llvmcc"
13381elif test -n "$LLVMGCC"; then
13382 WITH_LLVMCC=llvm-gcc
13383elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13384 WITH_LLVMCC=clang
13385else
13386 WITH_LLVMCC=none
13387fi
13388{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13389echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13390LLVMCC_OPTION=$WITH_LLVMCC
13391
13392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013393{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13394echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013395
Reid Spencer86901802004-12-08 23:07:27 +000013396ICC=no
13397IXX=no
13398case $CC in
13399 icc*|icpc*)
13400 ICC=yes
13401 IXX=yes
13402 ;;
13403 *)
13404 ;;
13405esac
13406
Duraid Madina937c60a2006-02-15 07:57:42 +000013407if test "$GCC" != "yes" && test "$ICC" != "yes"
13408then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013409 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13410echo "$as_me: error: gcc|icc required but not found" >&2;}
13411 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013412fi
13413
13414if test "$GXX" != "yes" && test "$IXX" != "yes"
13415then
Eric Christopher73e36da2010-12-08 02:02:14 +000013416 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13417echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013418 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013419fi
13420
Reid Spencer86901802004-12-08 23:07:27 +000013421if test "$GCC" = "yes"
13422then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013423 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013424#if !defined(__GNUC__) || __GNUC__ < 3
13425#error Unsupported GCC version
13426#endif
13427
13428_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013429rm -f conftest.$ac_objext
13430if { (ac_try="$ac_compile"
13431case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13434esac
13435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_compile") 2>conftest.er1
13437 ac_status=$?
13438 grep -v '^ *+' conftest.er1 >conftest.err
13439 rm -f conftest.er1
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13444 { (case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13447esac
13448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_try") 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457esac
13458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
13468 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13469echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13470 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013471fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013472
Chris Lattner399c7c72008-02-05 19:43:53 +000013473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013474fi
13475
13476if test -z "$llvm_cv_gnu_make_command"
13477then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013478 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13479echo "$as_me: error: GNU Make required but not found" >&2;}
13480 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013481fi
13482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013483{ echo "$as_me:$LINENO: result: ok" >&5
13484echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013486{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13487echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013488NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13489
13490NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13493echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013494
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013496
13497{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13498echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13499if test "${ac_cv_lib_m_sin+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013501else
13502 ac_check_lib_save_LIBS=$LIBS
13503LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013504cat >conftest.$ac_ext <<_ACEOF
13505/* confdefs.h. */
13506_ACEOF
13507cat confdefs.h >>conftest.$ac_ext
13508cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013509/* end confdefs.h. */
13510
Reid Spencera773bd52006-08-04 18:18:08 +000013511/* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013514#ifdef __cplusplus
13515extern "C"
13516#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013517char sin ();
13518int
13519main ()
13520{
Reid Spencera773bd52006-08-04 18:18:08 +000013521return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013522 ;
13523 return 0;
13524}
13525_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526rm -f conftest.$ac_objext conftest$ac_exeext
13527if { (ac_try="$ac_link"
13528case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13531esac
13532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_link") 2>conftest.er1
13534 ac_status=$?
13535 grep -v '^ *+' conftest.er1 >conftest.err
13536 rm -f conftest.er1
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
13540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13541 { (case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544esac
13545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_try") 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest$ac_exeext'
13551 { (case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13554esac
13555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_try") 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013560 ac_cv_lib_m_sin=yes
13561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013562 echo "$as_me: failed program was:" >&5
13563sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013566fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013567
Bill Wendlingebcceee2009-04-18 11:20:33 +000013568rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013569 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013570LIBS=$ac_check_lib_save_LIBS
13571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013572{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13573echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13574if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013575 cat >>confdefs.h <<_ACEOF
13576#define HAVE_LIBM 1
13577_ACEOF
13578
13579 LIBS="-lm $LIBS"
13580
13581fi
13582
Jeff Cohen28783c32007-01-12 18:22:38 +000013583if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013584
13585{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13586echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13587if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013589else
13590 ac_check_lib_save_LIBS=$LIBS
13591LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013597/* end confdefs.h. */
13598
Reid Spencer48fdf912006-06-01 19:03:21 +000013599
Reid Spencer484fc8e2006-06-01 16:55:59 +000013600int
13601main ()
13602{
Reid Spencera773bd52006-08-04 18:18:08 +000013603return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013604 ;
13605 return 0;
13606}
13607_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013608rm -f conftest.$ac_objext conftest$ac_exeext
13609if { (ac_try="$ac_link"
13610case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613esac
13614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_link") 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13623 { (case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13626esac
13627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_try") 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13636esac
13637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_try") 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013642 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013644 echo "$as_me: failed program was:" >&5
13645sed 's/^/| /' conftest.$ac_ext >&5
13646
13647 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013649
Bill Wendlingebcceee2009-04-18 11:20:33 +000013650rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013651 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013652LIBS=$ac_check_lib_save_LIBS
13653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013654{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13655echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13656if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013657 cat >>confdefs.h <<_ACEOF
13658#define HAVE_LIBIMAGEHLP 1
13659_ACEOF
13660
13661 LIBS="-limagehlp $LIBS"
13662
13663fi
13664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013665
13666{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13667echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13668if test "${ac_cv_lib_psapi_main+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013670else
13671 ac_check_lib_save_LIBS=$LIBS
13672LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013673cat >conftest.$ac_ext <<_ACEOF
13674/* confdefs.h. */
13675_ACEOF
13676cat confdefs.h >>conftest.$ac_ext
13677cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013678/* end confdefs.h. */
13679
Reid Spencer48fdf912006-06-01 19:03:21 +000013680
Reid Spencer484fc8e2006-06-01 16:55:59 +000013681int
13682main ()
13683{
Reid Spencera773bd52006-08-04 18:18:08 +000013684return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013685 ;
13686 return 0;
13687}
13688_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013689rm -f conftest.$ac_objext conftest$ac_exeext
13690if { (ac_try="$ac_link"
13691case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694esac
13695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_link") 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707esac
13708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try='test -s conftest$ac_exeext'
13714 { (case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717esac
13718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_try") 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013723 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013725 echo "$as_me: failed program was:" >&5
13726sed 's/^/| /' conftest.$ac_ext >&5
13727
13728 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013730
Bill Wendlingebcceee2009-04-18 11:20:33 +000013731rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013732 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013733LIBS=$ac_check_lib_save_LIBS
13734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013735{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13736echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13737if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013738 cat >>confdefs.h <<_ACEOF
13739#define HAVE_LIBPSAPI 1
13740_ACEOF
13741
13742 LIBS="-lpsapi $LIBS"
13743
13744fi
13745
13746fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013748{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13749echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13750if test "${ac_cv_search_dlopen+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013752else
13753 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013760
Reid Spencera773bd52006-08-04 18:18:08 +000013761/* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013764#ifdef __cplusplus
13765extern "C"
13766#endif
John Criswell7a73b802003-06-30 21:59:07 +000013767char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013768int
13769main ()
13770{
Reid Spencera773bd52006-08-04 18:18:08 +000013771return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013772 ;
13773 return 0;
13774}
13775_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013776for ac_lib in '' dl; do
13777 if test -z "$ac_lib"; then
13778 ac_res="none required"
13779 else
13780 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013782 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013783 rm -f conftest.$ac_objext conftest$ac_exeext
13784if { (ac_try="$ac_link"
13785case "(($ac_try" in
13786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787 *) ac_try_echo=$ac_try;;
13788esac
13789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790 (eval "$ac_link") 2>conftest.er1
13791 ac_status=$?
13792 grep -v '^ *+' conftest.er1 >conftest.err
13793 rm -f conftest.er1
13794 cat conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } &&
13797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13798 { (case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801esac
13802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_try") 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest$ac_exeext'
13808 { (case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13811esac
13812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_try") 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013817 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013818else
13819 echo "$as_me: failed program was:" >&5
13820sed 's/^/| /' conftest.$ac_ext >&5
13821
13822
John Criswell7a73b802003-06-30 21:59:07 +000013823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013824
Bill Wendlingebcceee2009-04-18 11:20:33 +000013825rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013826 conftest$ac_exeext
13827 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013828 break
John Criswell7a73b802003-06-30 21:59:07 +000013829fi
Reid Spencera773bd52006-08-04 18:18:08 +000013830done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013831if test "${ac_cv_search_dlopen+set}" = set; then
13832 :
Reid Spencera773bd52006-08-04 18:18:08 +000013833else
13834 ac_cv_search_dlopen=no
13835fi
13836rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013837LIBS=$ac_func_search_save_LIBS
13838fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013839{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13840echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013841ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013842if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013845cat >>confdefs.h <<\_ACEOF
13846#define HAVE_DLOPEN 1
13847_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013848
13849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013850 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13851echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013852fi
13853
13854
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013855if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013856 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13857echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13858if test "${ac_cv_search_ffi_call+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013860else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013861 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013862cat >conftest.$ac_ext <<_ACEOF
13863/* confdefs.h. */
13864_ACEOF
13865cat confdefs.h >>conftest.$ac_ext
13866cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013867/* end confdefs.h. */
13868
13869/* Override any GCC internal prototype to avoid an error.
13870 Use char because int might match the return type of a GCC
13871 builtin and then its argument prototype would still apply. */
13872#ifdef __cplusplus
13873extern "C"
13874#endif
13875char ffi_call ();
13876int
13877main ()
13878{
13879return ffi_call ();
13880 ;
13881 return 0;
13882}
13883_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013884for ac_lib in '' ffi; do
13885 if test -z "$ac_lib"; then
13886 ac_res="none required"
13887 else
13888 ac_res=-l$ac_lib
13889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13890 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013891 rm -f conftest.$ac_objext conftest$ac_exeext
13892if { (ac_try="$ac_link"
13893case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896esac
13897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_link") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909esac
13910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; } &&
13915 { ac_try='test -s conftest$ac_exeext'
13916 { (case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919esac
13920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_try") 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013925 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013926else
13927 echo "$as_me: failed program was:" >&5
13928sed 's/^/| /' conftest.$ac_ext >&5
13929
13930
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013932
Bill Wendlingebcceee2009-04-18 11:20:33 +000013933rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013934 conftest$ac_exeext
13935 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013936 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013937fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013938done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013939if test "${ac_cv_search_ffi_call+set}" = set; then
13940 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013941else
13942 ac_cv_search_ffi_call=no
13943fi
13944rm conftest.$ac_ext
13945LIBS=$ac_func_search_save_LIBS
13946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013947{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13948echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013949ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013950if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013953cat >>confdefs.h <<\_ACEOF
13954#define HAVE_FFI_CALL 1
13955_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013956
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013957else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013958 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13959echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13960 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013961fi
13962
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013963fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013965{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13966echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13967if test "${ac_cv_search_mallinfo+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013969else
13970 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971cat >conftest.$ac_ext <<_ACEOF
13972/* confdefs.h. */
13973_ACEOF
13974cat confdefs.h >>conftest.$ac_ext
13975cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013976/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013977
Reid Spencera773bd52006-08-04 18:18:08 +000013978/* Override any GCC internal prototype to avoid an error.
13979 Use char because int might match the return type of a GCC
13980 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013981#ifdef __cplusplus
13982extern "C"
13983#endif
John Criswell7a73b802003-06-30 21:59:07 +000013984char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013985int
13986main ()
13987{
Reid Spencera773bd52006-08-04 18:18:08 +000013988return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013989 ;
13990 return 0;
13991}
13992_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013993for ac_lib in '' malloc; do
13994 if test -z "$ac_lib"; then
13995 ac_res="none required"
13996 else
13997 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013999 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000 rm -f conftest.$ac_objext conftest$ac_exeext
14001if { (ac_try="$ac_link"
14002case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005esac
14006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_link") 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14015 { (case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14018esac
14019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_try") 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest$ac_exeext'
14025 { (case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028esac
14029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_try") 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014034 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014035else
14036 echo "$as_me: failed program was:" >&5
14037sed 's/^/| /' conftest.$ac_ext >&5
14038
14039
John Criswell7a73b802003-06-30 21:59:07 +000014040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041
Bill Wendlingebcceee2009-04-18 11:20:33 +000014042rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014043 conftest$ac_exeext
14044 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014045 break
John Criswell7a73b802003-06-30 21:59:07 +000014046fi
Reid Spencera773bd52006-08-04 18:18:08 +000014047done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048if test "${ac_cv_search_mallinfo+set}" = set; then
14049 :
Reid Spencera773bd52006-08-04 18:18:08 +000014050else
14051 ac_cv_search_mallinfo=no
14052fi
14053rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014054LIBS=$ac_func_search_save_LIBS
14055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014056{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14057echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014058ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014062cat >>confdefs.h <<\_ACEOF
14063#define HAVE_MALLINFO 1
14064_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014065
14066fi
14067
14068
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014069if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014070
14071{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14072echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14073if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014075else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014076 ac_check_lib_save_LIBS=$LIBS
14077LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014078cat >conftest.$ac_ext <<_ACEOF
14079/* confdefs.h. */
14080_ACEOF
14081cat confdefs.h >>conftest.$ac_ext
14082cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014083/* end confdefs.h. */
14084
Reid Spencera773bd52006-08-04 18:18:08 +000014085/* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014088#ifdef __cplusplus
14089extern "C"
14090#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014091char pthread_mutex_init ();
14092int
14093main ()
14094{
Reid Spencera773bd52006-08-04 18:18:08 +000014095return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014096 ;
14097 return 0;
14098}
14099_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100rm -f conftest.$ac_objext conftest$ac_exeext
14101if { (ac_try="$ac_link"
14102case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105esac
14106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14118esac
14119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest$ac_exeext'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128esac
14129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014134 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014136 echo "$as_me: failed program was:" >&5
14137sed 's/^/| /' conftest.$ac_ext >&5
14138
14139 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141
Bill Wendlingebcceee2009-04-18 11:20:33 +000014142rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014143 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014144LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14147echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14148if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014149 cat >>confdefs.h <<_ACEOF
14150#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014151_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014152
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014153 LIBS="-lpthread $LIBS"
14154
Reid Spencer22177fe2005-07-12 15:24:20 +000014155fi
14156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014157 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14158echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14159if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014161else
14162 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163cat >conftest.$ac_ext <<_ACEOF
14164/* confdefs.h. */
14165_ACEOF
14166cat confdefs.h >>conftest.$ac_ext
14167cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014168/* end confdefs.h. */
14169
Reid Spencera773bd52006-08-04 18:18:08 +000014170/* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014173#ifdef __cplusplus
14174extern "C"
14175#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014176char pthread_mutex_lock ();
14177int
14178main ()
14179{
Reid Spencera773bd52006-08-04 18:18:08 +000014180return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014181 ;
14182 return 0;
14183}
14184_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014185for ac_lib in '' pthread; do
14186 if test -z "$ac_lib"; then
14187 ac_res="none required"
14188 else
14189 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014191 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014192 rm -f conftest.$ac_objext conftest$ac_exeext
14193if { (ac_try="$ac_link"
14194case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210esac
14211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014226 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227else
14228 echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
14230
14231
Brian Gaeke5f268f72003-12-05 19:29:01 +000014232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233
Bill Wendlingebcceee2009-04-18 11:20:33 +000014234rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235 conftest$ac_exeext
14236 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014237 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014238fi
Reid Spencera773bd52006-08-04 18:18:08 +000014239done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014240if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14241 :
Reid Spencera773bd52006-08-04 18:18:08 +000014242else
14243 ac_cv_search_pthread_mutex_lock=no
14244fi
14245rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014246LIBS=$ac_func_search_save_LIBS
14247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14249echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014250ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014251if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254cat >>confdefs.h <<\_ACEOF
14255#define HAVE_PTHREAD_MUTEX_LOCK 1
14256_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014257
14258fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014260 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14261echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14262if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014264else
14265 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266cat >conftest.$ac_ext <<_ACEOF
14267/* confdefs.h. */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014271/* end confdefs.h. */
14272
14273/* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14276#ifdef __cplusplus
14277extern "C"
14278#endif
14279char pthread_rwlock_init ();
14280int
14281main ()
14282{
14283return pthread_rwlock_init ();
14284 ;
14285 return 0;
14286}
14287_ACEOF
14288for ac_lib in '' pthread; do
14289 if test -z "$ac_lib"; then
14290 ac_res="none required"
14291 else
14292 ac_res=-l$ac_lib
14293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14294 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014295 rm -f conftest.$ac_objext conftest$ac_exeext
14296if { (ac_try="$ac_link"
14297case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300esac
14301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14303 ac_status=$?
14304 grep -v '^ *+' conftest.er1 >conftest.err
14305 rm -f conftest.er1
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
14309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14313esac
14314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_try") 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest$ac_exeext'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323esac
14324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014329 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014330else
14331 echo "$as_me: failed program was:" >&5
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
14334
Owen Andersonde8aed22009-06-16 18:20:20 +000014335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014336
Owen Andersonde8aed22009-06-16 18:20:20 +000014337rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014338 conftest$ac_exeext
14339 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014340 break
14341fi
14342done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014343if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14344 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014345else
14346 ac_cv_search_pthread_rwlock_init=no
14347fi
14348rm conftest.$ac_ext
14349LIBS=$ac_func_search_save_LIBS
14350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014351{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14352echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014353ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014354if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014357cat >>confdefs.h <<\_ACEOF
14358#define HAVE_PTHREAD_RWLOCK_INIT 1
14359_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014360
14361fi
14362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014363 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14364echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14365if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014367else
14368 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014369cat >conftest.$ac_ext <<_ACEOF
14370/* confdefs.h. */
14371_ACEOF
14372cat confdefs.h >>conftest.$ac_ext
14373cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014374/* end confdefs.h. */
14375
14376/* Override any GCC internal prototype to avoid an error.
14377 Use char because int might match the return type of a GCC
14378 builtin and then its argument prototype would still apply. */
14379#ifdef __cplusplus
14380extern "C"
14381#endif
14382char pthread_getspecific ();
14383int
14384main ()
14385{
14386return pthread_getspecific ();
14387 ;
14388 return 0;
14389}
14390_ACEOF
14391for ac_lib in '' pthread; do
14392 if test -z "$ac_lib"; then
14393 ac_res="none required"
14394 else
14395 ac_res=-l$ac_lib
14396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14397 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014398 rm -f conftest.$ac_objext conftest$ac_exeext
14399if { (ac_try="$ac_link"
14400case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403esac
14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_link") 2>conftest.er1
14406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416esac
14417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426esac
14427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_try") 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014432 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014433else
14434 echo "$as_me: failed program was:" >&5
14435sed 's/^/| /' conftest.$ac_ext >&5
14436
14437
Owen Anderson27fcfe12009-06-25 23:10:26 +000014438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014439
Owen Anderson27fcfe12009-06-25 23:10:26 +000014440rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014441 conftest$ac_exeext
14442 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014443 break
14444fi
14445done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014446if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14447 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014448else
14449 ac_cv_search_pthread_getspecific=no
14450fi
14451rm conftest.$ac_ext
14452LIBS=$ac_func_search_save_LIBS
14453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014454{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14455echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014456ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014457if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014460cat >>confdefs.h <<\_ACEOF
14461#define HAVE_PTHREAD_GETSPECIFIC 1
14462_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014463
14464fi
14465
Reid Spencer0a262ba2005-08-24 10:07:20 +000014466fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014467
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014468
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014469# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014470if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014471 withval=$with_udis86;
14472 USE_UDIS86=1
14473
14474 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014475 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014476 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14477 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014478
14479{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14480echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14481if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014483else
14484 ac_check_lib_save_LIBS=$LIBS
14485LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014486cat >conftest.$ac_ext <<_ACEOF
14487/* confdefs.h. */
14488_ACEOF
14489cat confdefs.h >>conftest.$ac_ext
14490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014491/* end confdefs.h. */
14492
14493/* Override any GCC internal prototype to avoid an error.
14494 Use char because int might match the return type of a GCC
14495 builtin and then its argument prototype would still apply. */
14496#ifdef __cplusplus
14497extern "C"
14498#endif
14499char ud_init ();
14500int
14501main ()
14502{
14503return ud_init ();
14504 ;
14505 return 0;
14506}
14507_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014508rm -f conftest.$ac_objext conftest$ac_exeext
14509if { (ac_try="$ac_link"
14510case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513esac
14514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_link") 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14523 { (case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526esac
14527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_try") 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest$ac_exeext'
14533 { (case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536esac
14537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014542 ac_cv_lib_udis86_ud_init=yes
14543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014544 echo "$as_me: failed program was:" >&5
14545sed 's/^/| /' conftest.$ac_ext >&5
14546
14547 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014549
Bill Wendlingebcceee2009-04-18 11:20:33 +000014550rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014551 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014552LIBS=$ac_check_lib_save_LIBS
14553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014554{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14555echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14556if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014557 cat >>confdefs.h <<_ACEOF
14558#define HAVE_LIBUDIS86 1
14559_ACEOF
14560
14561 LIBS="-ludis86 $LIBS"
14562
14563else
14564
14565 echo "Error! You need to have libudis86 around."
14566 exit -1
14567
14568fi
14569
14570
14571else
14572 USE_UDIS86=0
14573
14574fi
14575
14576
14577cat >>confdefs.h <<_ACEOF
14578#define USE_UDIS86 $USE_UDIS86
14579_ACEOF
14580
14581
14582
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014583# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014584if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014585 withval=$with_oprofile;
14586 USE_OPROFILE=1
14587
14588 case "$withval" in
14589 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014590 no) llvm_cv_oppath=
14591 USE_OPROFILE=0
14592 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014593 *) llvm_cv_oppath="${withval}/lib/oprofile"
14594 CPPFLAGS="-I${withval}/include";;
14595 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014596 if test -n "$llvm_cv_oppath" ; then
14597 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014598 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14599echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14600if test "${ac_cv_search_bfd_init+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014602else
14603 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014604cat >conftest.$ac_ext <<_ACEOF
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014609/* end confdefs.h. */
14610
14611/* Override any GCC internal prototype to avoid an error.
14612 Use char because int might match the return type of a GCC
14613 builtin and then its argument prototype would still apply. */
14614#ifdef __cplusplus
14615extern "C"
14616#endif
14617char bfd_init ();
14618int
14619main ()
14620{
14621return bfd_init ();
14622 ;
14623 return 0;
14624}
14625_ACEOF
14626for ac_lib in '' bfd; do
14627 if test -z "$ac_lib"; then
14628 ac_res="none required"
14629 else
14630 ac_res=-l$ac_lib
14631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14632 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014633 rm -f conftest.$ac_objext conftest$ac_exeext
14634if { (ac_try="$ac_link"
14635case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638esac
14639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_link") 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651esac
14652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; } &&
14657 { ac_try='test -s conftest$ac_exeext'
14658 { (case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661esac
14662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_try") 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014667 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014668else
14669 echo "$as_me: failed program was:" >&5
14670sed 's/^/| /' conftest.$ac_ext >&5
14671
14672
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014673fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014674
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014675rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014676 conftest$ac_exeext
14677 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014678 break
14679fi
14680done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014681if test "${ac_cv_search_bfd_init+set}" = set; then
14682 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014683else
14684 ac_cv_search_bfd_init=no
14685fi
14686rm conftest.$ac_ext
14687LIBS=$ac_func_search_save_LIBS
14688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014689{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14690echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014691ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014692if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14694
14695fi
14696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014697 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14698echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14699if test "${ac_cv_search_op_open_agent+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014701else
14702 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703cat >conftest.$ac_ext <<_ACEOF
14704/* confdefs.h. */
14705_ACEOF
14706cat confdefs.h >>conftest.$ac_ext
14707cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014708/* end confdefs.h. */
14709
14710/* Override any GCC internal prototype to avoid an error.
14711 Use char because int might match the return type of a GCC
14712 builtin and then its argument prototype would still apply. */
14713#ifdef __cplusplus
14714extern "C"
14715#endif
14716char op_open_agent ();
14717int
14718main ()
14719{
14720return op_open_agent ();
14721 ;
14722 return 0;
14723}
14724_ACEOF
14725for ac_lib in '' opagent; do
14726 if test -z "$ac_lib"; then
14727 ac_res="none required"
14728 else
14729 ac_res=-l$ac_lib
14730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14731 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014732 rm -f conftest.$ac_objext conftest$ac_exeext
14733if { (ac_try="$ac_link"
14734case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737esac
14738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest$ac_exeext'
14757 { (case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760esac
14761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014766 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014767else
14768 echo "$as_me: failed program was:" >&5
14769sed 's/^/| /' conftest.$ac_ext >&5
14770
14771
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014773
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014774rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014775 conftest$ac_exeext
14776 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014777 break
14778fi
14779done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014780if test "${ac_cv_search_op_open_agent+set}" = set; then
14781 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014782else
14783 ac_cv_search_op_open_agent=no
14784fi
14785rm conftest.$ac_ext
14786LIBS=$ac_func_search_save_LIBS
14787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014788{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14789echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014790ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014791if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14793
14794else
14795
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014796 echo "Error! You need to have libopagent around."
14797 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014798
14799fi
14800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014801 if test "${ac_cv_header_opagent_h+set}" = set; then
14802 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14803echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14804if test "${ac_cv_header_opagent_h+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806fi
14807{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14808echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14809else
14810 # Is the header compilable?
14811{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14812echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14813cat >conftest.$ac_ext <<_ACEOF
14814/* confdefs.h. */
14815_ACEOF
14816cat confdefs.h >>conftest.$ac_ext
14817cat >>conftest.$ac_ext <<_ACEOF
14818/* end confdefs.h. */
14819$ac_includes_default
14820#include <opagent.h>
14821_ACEOF
14822rm -f conftest.$ac_objext
14823if { (ac_try="$ac_compile"
14824case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14827esac
14828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_compile") 2>conftest.er1
14830 ac_status=$?
14831 grep -v '^ *+' conftest.er1 >conftest.err
14832 rm -f conftest.er1
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14837 { (case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14840esac
14841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14850esac
14851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_try") 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_header_compiler=yes
14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014861 ac_header_compiler=no
14862fi
14863
14864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14866echo "${ECHO_T}$ac_header_compiler" >&6; }
14867
14868# Is the header present?
14869{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14870echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14871cat >conftest.$ac_ext <<_ACEOF
14872/* confdefs.h. */
14873_ACEOF
14874cat confdefs.h >>conftest.$ac_ext
14875cat >>conftest.$ac_ext <<_ACEOF
14876/* end confdefs.h. */
14877#include <opagent.h>
14878_ACEOF
14879if { (ac_try="$ac_cpp conftest.$ac_ext"
14880case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } >/dev/null; then
14892 if test -s conftest.err; then
14893 ac_cpp_err=$ac_c_preproc_warn_flag
14894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14895 else
14896 ac_cpp_err=
14897 fi
14898else
14899 ac_cpp_err=yes
14900fi
14901if test -z "$ac_cpp_err"; then
14902 ac_header_preproc=yes
14903else
14904 echo "$as_me: failed program was:" >&5
14905sed 's/^/| /' conftest.$ac_ext >&5
14906
14907 ac_header_preproc=no
14908fi
14909
14910rm -f conftest.err conftest.$ac_ext
14911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14912echo "${ECHO_T}$ac_header_preproc" >&6; }
14913
14914# So? What about this header?
14915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14916 yes:no: )
14917 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14918echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14920echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14921 ac_header_preproc=yes
14922 ;;
14923 no:yes:* )
14924 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14925echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14927echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14929echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14931echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14933echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14935echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14936 ( cat <<\_ASBOX
14937## ----------------------------------- ##
14938## Report this to llvmbugs@cs.uiuc.edu ##
14939## ----------------------------------- ##
14940_ASBOX
14941 ) | sed "s/^/$as_me: WARNING: /" >&2
14942 ;;
14943esac
14944{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14945echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14946if test "${ac_cv_header_opagent_h+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948else
14949 ac_cv_header_opagent_h=$ac_header_preproc
14950fi
14951{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14952echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14953
14954fi
14955if test $ac_cv_header_opagent_h = yes; then
14956 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014957else
14958
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014959 echo "Error! You need to have opagent.h around."
14960 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014961
14962fi
14963
14964
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014965 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014966
14967else
14968
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014969 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014970
14971
14972fi
14973
14974
14975cat >>confdefs.h <<_ACEOF
14976#define USE_OPROFILE $USE_OPROFILE
14977_ACEOF
14978
14979
14980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014981
14982
14983
14984
14985
Reid Spencer59473af2004-12-25 07:31:29 +000014986ac_header_dirent=no
14987for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014988 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14989{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14990echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014994 cat >conftest.$ac_ext <<_ACEOF
14995/* confdefs.h. */
14996_ACEOF
14997cat confdefs.h >>conftest.$ac_ext
14998cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014999/* end confdefs.h. */
15000#include <sys/types.h>
15001#include <$ac_hdr>
15002
15003int
15004main ()
15005{
15006if ((DIR *) 0)
15007return 0;
15008 ;
15009 return 0;
15010}
15011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015012rm -f conftest.$ac_objext
15013if { (ac_try="$ac_compile"
15014case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017esac
15018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030esac
15031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040esac
15041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_try") 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015046 eval "$as_ac_Header=yes"
15047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015048 echo "$as_me: failed program was:" >&5
15049sed 's/^/| /' conftest.$ac_ext >&5
15050
15051 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015053
Reid Spencera773bd52006-08-04 18:18:08 +000015054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015056ac_res=`eval echo '${'$as_ac_Header'}'`
15057 { echo "$as_me:$LINENO: result: $ac_res" >&5
15058echo "${ECHO_T}$ac_res" >&6; }
15059if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015060 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015061#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015062_ACEOF
15063
15064ac_header_dirent=$ac_hdr; break
15065fi
15066
15067done
15068# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15069if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015070 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15071echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15072if test "${ac_cv_search_opendir+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015074else
15075 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076cat >conftest.$ac_ext <<_ACEOF
15077/* confdefs.h. */
15078_ACEOF
15079cat confdefs.h >>conftest.$ac_ext
15080cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015081/* end confdefs.h. */
15082
Reid Spencera773bd52006-08-04 18:18:08 +000015083/* Override any GCC internal prototype to avoid an error.
15084 Use char because int might match the return type of a GCC
15085 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015086#ifdef __cplusplus
15087extern "C"
15088#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015089char opendir ();
15090int
15091main ()
15092{
Reid Spencera773bd52006-08-04 18:18:08 +000015093return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015094 ;
15095 return 0;
15096}
15097_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015098for ac_lib in '' dir; do
15099 if test -z "$ac_lib"; then
15100 ac_res="none required"
15101 else
15102 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015104 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015105 rm -f conftest.$ac_objext conftest$ac_exeext
15106if { (ac_try="$ac_link"
15107case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110esac
15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest$ac_exeext'
15130 { (case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133esac
15134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_try") 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015139 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015140else
15141 echo "$as_me: failed program was:" >&5
15142sed 's/^/| /' conftest.$ac_ext >&5
15143
15144
Reid Spencer59473af2004-12-25 07:31:29 +000015145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015146
Bill Wendlingebcceee2009-04-18 11:20:33 +000015147rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015148 conftest$ac_exeext
15149 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015150 break
Reid Spencer59473af2004-12-25 07:31:29 +000015151fi
Reid Spencera773bd52006-08-04 18:18:08 +000015152done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015153if test "${ac_cv_search_opendir+set}" = set; then
15154 :
Reid Spencera773bd52006-08-04 18:18:08 +000015155else
15156 ac_cv_search_opendir=no
15157fi
15158rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015159LIBS=$ac_func_search_save_LIBS
15160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015161{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15162echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015163ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015164if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015166
15167fi
15168
15169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015170 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15171echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15172if test "${ac_cv_search_opendir+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015174else
15175 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176cat >conftest.$ac_ext <<_ACEOF
15177/* confdefs.h. */
15178_ACEOF
15179cat confdefs.h >>conftest.$ac_ext
15180cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015181/* end confdefs.h. */
15182
Reid Spencera773bd52006-08-04 18:18:08 +000015183/* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015186#ifdef __cplusplus
15187extern "C"
15188#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015189char opendir ();
15190int
15191main ()
15192{
Reid Spencera773bd52006-08-04 18:18:08 +000015193return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015194 ;
15195 return 0;
15196}
15197_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015198for ac_lib in '' x; do
15199 if test -z "$ac_lib"; then
15200 ac_res="none required"
15201 else
15202 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015204 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015205 rm -f conftest.$ac_objext conftest$ac_exeext
15206if { (ac_try="$ac_link"
15207case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15220 { (case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223esac
15224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_try") 2>&5
15226 ac_status=$?
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; } &&
15229 { ac_try='test -s conftest$ac_exeext'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233esac
15234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015239 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015240else
15241 echo "$as_me: failed program was:" >&5
15242sed 's/^/| /' conftest.$ac_ext >&5
15243
15244
Reid Spencer59473af2004-12-25 07:31:29 +000015245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015246
Bill Wendlingebcceee2009-04-18 11:20:33 +000015247rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248 conftest$ac_exeext
15249 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015250 break
Reid Spencer59473af2004-12-25 07:31:29 +000015251fi
Reid Spencera773bd52006-08-04 18:18:08 +000015252done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015253if test "${ac_cv_search_opendir+set}" = set; then
15254 :
Reid Spencera773bd52006-08-04 18:18:08 +000015255else
15256 ac_cv_search_opendir=no
15257fi
15258rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015259LIBS=$ac_func_search_save_LIBS
15260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015261{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15262echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015263ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015264if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015266
15267fi
15268
15269fi
15270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015271{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15272echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15273if test "${ac_cv_header_mmap_anon+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015275else
15276 ac_ext=c
15277ac_cpp='$CPP $CPPFLAGS'
15278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280ac_compiler_gnu=$ac_cv_c_compiler_gnu
15281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015282 cat >conftest.$ac_ext <<_ACEOF
15283/* confdefs.h. */
15284_ACEOF
15285cat confdefs.h >>conftest.$ac_ext
15286cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015287/* end confdefs.h. */
15288#include <sys/mman.h>
15289#include <unistd.h>
15290#include <fcntl.h>
15291int
15292main ()
15293{
15294mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15295 ;
15296 return 0;
15297}
15298_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015299rm -f conftest.$ac_objext
15300if { (ac_try="$ac_compile"
15301case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304esac
15305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_compile") 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15314 { (case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15317esac
15318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_try") 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15327esac
15328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_try") 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015333 ac_cv_header_mmap_anon=yes
15334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015335 echo "$as_me: failed program was:" >&5
15336sed 's/^/| /' conftest.$ac_ext >&5
15337
15338 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015340
Reid Spencera773bd52006-08-04 18:18:08 +000015341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015342 ac_ext=c
15343ac_cpp='$CPP $CPPFLAGS'
15344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15346ac_compiler_gnu=$ac_cv_c_compiler_gnu
15347
15348
15349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015350{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15351echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015352if test "$ac_cv_header_mmap_anon" = yes; then
15353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015354cat >>confdefs.h <<\_ACEOF
15355#define HAVE_MMAP_ANONYMOUS 1
15356_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015357
15358fi
15359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015360{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15361echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15362if test "${ac_cv_header_stat_broken+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015365 cat >conftest.$ac_ext <<_ACEOF
15366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015370/* end confdefs.h. */
15371#include <sys/types.h>
15372#include <sys/stat.h>
15373
Reid Spencera773bd52006-08-04 18:18:08 +000015374#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015375# if S_ISBLK (S_IFDIR)
15376You lose.
15377# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015378#endif
15379
Reid Spencera773bd52006-08-04 18:18:08 +000015380#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015381# if S_ISBLK (S_IFCHR)
15382You lose.
15383# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015384#endif
15385
Reid Spencera773bd52006-08-04 18:18:08 +000015386#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015387# if S_ISLNK (S_IFREG)
15388You lose.
15389# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015390#endif
15391
Reid Spencera773bd52006-08-04 18:18:08 +000015392#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015393# if S_ISSOCK (S_IFREG)
15394You lose.
15395# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015396#endif
15397
15398_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15400 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015401 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015402else
15403 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015405rm -f conftest*
15406
Reid Spencer59473af2004-12-25 07:31:29 +000015407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015408{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15409echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015410if test $ac_cv_header_stat_broken = yes; then
15411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015412cat >>confdefs.h <<\_ACEOF
15413#define STAT_MACROS_BROKEN 1
15414_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015415
15416fi
15417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015418{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15419echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15420if test "${ac_cv_header_stdc+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015423 cat >conftest.$ac_ext <<_ACEOF
15424/* confdefs.h. */
15425_ACEOF
15426cat confdefs.h >>conftest.$ac_ext
15427cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015429#include <stdlib.h>
15430#include <stdarg.h>
15431#include <string.h>
15432#include <float.h>
15433
John Criswell0c38eaf2003-09-10 15:17:25 +000015434int
15435main ()
15436{
15437
15438 ;
15439 return 0;
15440}
John Criswell7a73b802003-06-30 21:59:07 +000015441_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015442rm -f conftest.$ac_objext
15443if { (ac_try="$ac_compile"
15444case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447esac
15448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_compile") 2>conftest.er1
15450 ac_status=$?
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15457 { (case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15460esac
15461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_try") 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470esac
15471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_try") 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015476 ac_cv_header_stdc=yes
15477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015483
Reid Spencera773bd52006-08-04 18:18:08 +000015484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015485
15486if test $ac_cv_header_stdc = yes; then
15487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015488 cat >conftest.$ac_ext <<_ACEOF
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015494#include <string.h>
15495
15496_ACEOF
15497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015498 $EGREP "memchr" >/dev/null 2>&1; then
15499 :
John Criswell7a73b802003-06-30 21:59:07 +000015500else
15501 ac_cv_header_stdc=no
15502fi
15503rm -f conftest*
15504
15505fi
15506
15507if test $ac_cv_header_stdc = yes; then
15508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015509 cat >conftest.$ac_ext <<_ACEOF
15510/* confdefs.h. */
15511_ACEOF
15512cat confdefs.h >>conftest.$ac_ext
15513cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015515#include <stdlib.h>
15516
15517_ACEOF
15518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015519 $EGREP "free" >/dev/null 2>&1; then
15520 :
John Criswell7a73b802003-06-30 21:59:07 +000015521else
15522 ac_cv_header_stdc=no
15523fi
15524rm -f conftest*
15525
15526fi
15527
15528if test $ac_cv_header_stdc = yes; then
15529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015530 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015531 :
15532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015533 cat >conftest.$ac_ext <<_ACEOF
15534/* confdefs.h. */
15535_ACEOF
15536cat confdefs.h >>conftest.$ac_ext
15537cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015539#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015540#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015541#if ((' ' & 0x0FF) == 0x020)
15542# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15543# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15544#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015545# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015546 (('a' <= (c) && (c) <= 'i') \
15547 || ('j' <= (c) && (c) <= 'r') \
15548 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015549# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15550#endif
15551
15552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15553int
15554main ()
15555{
15556 int i;
15557 for (i = 0; i < 256; i++)
15558 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015559 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015560 return 2;
15561 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015562}
15563_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015564rm -f conftest$ac_exeext
15565if { (ac_try="$ac_link"
15566case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15569esac
15570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_link") 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 :
John Criswell7a73b802003-06-30 21:59:07 +000015585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015586 echo "$as_me: program exited with status $ac_status" >&5
15587echo "$as_me: failed program was:" >&5
15588sed 's/^/| /' conftest.$ac_ext >&5
15589
15590( exit $ac_status )
15591ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015593rm -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 +000015594fi
15595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015596
John Criswell7a73b802003-06-30 21:59:07 +000015597fi
15598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015599{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15600echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015601if test $ac_cv_header_stdc = yes; then
15602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015603cat >>confdefs.h <<\_ACEOF
15604#define STDC_HEADERS 1
15605_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015606
15607fi
15608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015609{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15610echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15611if test "${ac_cv_header_sys_wait_h+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015614 cat >conftest.$ac_ext <<_ACEOF
15615/* confdefs.h. */
15616_ACEOF
15617cat confdefs.h >>conftest.$ac_ext
15618cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015620#include <sys/types.h>
15621#include <sys/wait.h>
15622#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015623# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015624#endif
15625#ifndef WIFEXITED
15626# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15627#endif
15628
John Criswell7a73b802003-06-30 21:59:07 +000015629int
15630main ()
15631{
15632 int s;
15633 wait (&s);
15634 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15635 ;
15636 return 0;
15637}
15638_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015639rm -f conftest.$ac_objext
15640if { (ac_try="$ac_compile"
15641case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644esac
15645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_compile") 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15654 { (case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15657esac
15658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_try") 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try='test -s conftest.$ac_objext'
15664 { (case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15667esac
15668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_try") 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015673 ac_cv_header_sys_wait_h=yes
15674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015675 echo "$as_me: failed program was:" >&5
15676sed 's/^/| /' conftest.$ac_ext >&5
15677
15678 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015680
Reid Spencera773bd52006-08-04 18:18:08 +000015681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015683{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15684echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015685if test $ac_cv_header_sys_wait_h = yes; then
15686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015687cat >>confdefs.h <<\_ACEOF
15688#define HAVE_SYS_WAIT_H 1
15689_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015690
15691fi
15692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015693{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15694echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15695if test "${ac_cv_header_time+set}" = set; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015698 cat >conftest.$ac_ext <<_ACEOF
15699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015703/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015704#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015705#include <sys/time.h>
15706#include <time.h>
15707
15708int
15709main ()
15710{
15711if ((struct tm *) 0)
15712return 0;
15713 ;
15714 return 0;
15715}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015716_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015717rm -f conftest.$ac_objext
15718if { (ac_try="$ac_compile"
15719case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722esac
15723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_compile") 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732 { (case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735esac
15736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_try") 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try='test -s conftest.$ac_objext'
15742 { (case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745esac
15746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_try") 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015751 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015753 echo "$as_me: failed program was:" >&5
15754sed 's/^/| /' conftest.$ac_ext >&5
15755
15756 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015758
Reid Spencera773bd52006-08-04 18:18:08 +000015759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015761{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15762echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015763if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015765cat >>confdefs.h <<\_ACEOF
15766#define TIME_WITH_SYS_TIME 1
15767_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015768
15769fi
15770
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015772
15773
15774
15775
15776
15777
Reid Spencer59473af2004-12-25 07:31:29 +000015778for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015779do
15780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15786fi
15787ac_res=`eval echo '${'$as_ac_Header'}'`
15788 { echo "$as_me:$LINENO: result: $ac_res" >&5
15789echo "${ECHO_T}$ac_res" >&6; }
15790else
15791 # Is the header compilable?
15792{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15794cat >conftest.$ac_ext <<_ACEOF
15795/* confdefs.h. */
15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
15800$ac_includes_default
15801#include <$ac_header>
15802_ACEOF
15803rm -f conftest.$ac_objext
15804if { (ac_try="$ac_compile"
15805case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15808esac
15809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_compile") 2>conftest.er1
15811 ac_status=$?
15812 grep -v '^ *+' conftest.er1 >conftest.err
15813 rm -f conftest.er1
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15818 { (case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15821esac
15822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_try") 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; } &&
15827 { ac_try='test -s conftest.$ac_objext'
15828 { (case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831esac
15832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_try") 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_header_compiler=yes
15838else
15839 echo "$as_me: failed program was:" >&5
15840sed 's/^/| /' conftest.$ac_ext >&5
15841
15842 ac_header_compiler=no
15843fi
15844
15845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15846{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15847echo "${ECHO_T}$ac_header_compiler" >&6; }
15848
15849# Is the header present?
15850{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15852cat >conftest.$ac_ext <<_ACEOF
15853/* confdefs.h. */
15854_ACEOF
15855cat confdefs.h >>conftest.$ac_ext
15856cat >>conftest.$ac_ext <<_ACEOF
15857/* end confdefs.h. */
15858#include <$ac_header>
15859_ACEOF
15860if { (ac_try="$ac_cpp conftest.$ac_ext"
15861case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15864esac
15865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15867 ac_status=$?
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } >/dev/null; then
15873 if test -s conftest.err; then
15874 ac_cpp_err=$ac_c_preproc_warn_flag
15875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15876 else
15877 ac_cpp_err=
15878 fi
15879else
15880 ac_cpp_err=yes
15881fi
15882if test -z "$ac_cpp_err"; then
15883 ac_header_preproc=yes
15884else
15885 echo "$as_me: failed program was:" >&5
15886sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 ac_header_preproc=no
15889fi
15890
15891rm -f conftest.err conftest.$ac_ext
15892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15893echo "${ECHO_T}$ac_header_preproc" >&6; }
15894
15895# So? What about this header?
15896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15897 yes:no: )
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15902 ac_header_preproc=yes
15903 ;;
15904 no:yes:* )
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15917 ( cat <<\_ASBOX
15918## ----------------------------------- ##
15919## Report this to llvmbugs@cs.uiuc.edu ##
15920## ----------------------------------- ##
15921_ASBOX
15922 ) | sed "s/^/$as_me: WARNING: /" >&2
15923 ;;
15924esac
15925{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929else
15930 eval "$as_ac_Header=\$ac_header_preproc"
15931fi
15932ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934echo "${ECHO_T}$ac_res" >&6; }
15935
15936fi
15937if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015938 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015940_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015941
15942fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015943
Reid Spencer59473af2004-12-25 07:31:29 +000015944done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015946
15947
15948
15949
15950
15951
Douglas Gregor071d73d2009-05-18 17:21:34 +000015952for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015953do
15954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15960fi
15961ac_res=`eval echo '${'$as_ac_Header'}'`
15962 { echo "$as_me:$LINENO: result: $ac_res" >&5
15963echo "${ECHO_T}$ac_res" >&6; }
15964else
15965 # Is the header compilable?
15966{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15968cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974$ac_includes_default
15975#include <$ac_header>
15976_ACEOF
15977rm -f conftest.$ac_objext
15978if { (ac_try="$ac_compile"
15979case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15982esac
15983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_compile") 2>conftest.er1
15985 ac_status=$?
15986 grep -v '^ *+' conftest.er1 >conftest.err
15987 rm -f conftest.er1
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992 { (case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995esac
15996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_try") 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005esac
16006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_header_compiler=yes
16012else
16013 echo "$as_me: failed program was:" >&5
16014sed 's/^/| /' conftest.$ac_ext >&5
16015
16016 ac_header_compiler=no
16017fi
16018
16019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16021echo "${ECHO_T}$ac_header_compiler" >&6; }
16022
16023# Is the header present?
16024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16026cat >conftest.$ac_ext <<_ACEOF
16027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
16032#include <$ac_header>
16033_ACEOF
16034if { (ac_try="$ac_cpp conftest.$ac_ext"
16035case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16038esac
16039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } >/dev/null; then
16047 if test -s conftest.err; then
16048 ac_cpp_err=$ac_c_preproc_warn_flag
16049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16050 else
16051 ac_cpp_err=
16052 fi
16053else
16054 ac_cpp_err=yes
16055fi
16056if test -z "$ac_cpp_err"; then
16057 ac_header_preproc=yes
16058else
16059 echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 ac_header_preproc=no
16063fi
16064
16065rm -f conftest.err conftest.$ac_ext
16066{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067echo "${ECHO_T}$ac_header_preproc" >&6; }
16068
16069# So? What about this header?
16070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16071 yes:no: )
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076 ac_header_preproc=yes
16077 ;;
16078 no:yes:* )
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16091 ( cat <<\_ASBOX
16092## ----------------------------------- ##
16093## Report this to llvmbugs@cs.uiuc.edu ##
16094## ----------------------------------- ##
16095_ASBOX
16096 ) | sed "s/^/$as_me: WARNING: /" >&2
16097 ;;
16098esac
16099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103else
16104 eval "$as_ac_Header=\$ac_header_preproc"
16105fi
16106ac_res=`eval echo '${'$as_ac_Header'}'`
16107 { echo "$as_me:$LINENO: result: $ac_res" >&5
16108echo "${ECHO_T}$ac_res" >&6; }
16109
16110fi
16111if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016112 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016114_ACEOF
16115
16116fi
16117
16118done
16119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016120
16121
Douglas Gregor071d73d2009-05-18 17:21:34 +000016122for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016123do
16124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16130fi
16131ac_res=`eval echo '${'$as_ac_Header'}'`
16132 { echo "$as_me:$LINENO: result: $ac_res" >&5
16133echo "${ECHO_T}$ac_res" >&6; }
16134else
16135 # Is the header compilable?
16136{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16137echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16138cat >conftest.$ac_ext <<_ACEOF
16139/* confdefs.h. */
16140_ACEOF
16141cat confdefs.h >>conftest.$ac_ext
16142cat >>conftest.$ac_ext <<_ACEOF
16143/* end confdefs.h. */
16144$ac_includes_default
16145#include <$ac_header>
16146_ACEOF
16147rm -f conftest.$ac_objext
16148if { (ac_try="$ac_compile"
16149case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_compile") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } &&
16161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16162 { (case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16165esac
16166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_try") 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest.$ac_objext'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175esac
16176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_header_compiler=yes
16182else
16183 echo "$as_me: failed program was:" >&5
16184sed 's/^/| /' conftest.$ac_ext >&5
16185
16186 ac_header_compiler=no
16187fi
16188
16189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16191echo "${ECHO_T}$ac_header_compiler" >&6; }
16192
16193# Is the header present?
16194{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16196cat >conftest.$ac_ext <<_ACEOF
16197/* confdefs.h. */
16198_ACEOF
16199cat confdefs.h >>conftest.$ac_ext
16200cat >>conftest.$ac_ext <<_ACEOF
16201/* end confdefs.h. */
16202#include <$ac_header>
16203_ACEOF
16204if { (ac_try="$ac_cpp conftest.$ac_ext"
16205case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16208esac
16209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16211 ac_status=$?
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } >/dev/null; then
16217 if test -s conftest.err; then
16218 ac_cpp_err=$ac_c_preproc_warn_flag
16219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16220 else
16221 ac_cpp_err=
16222 fi
16223else
16224 ac_cpp_err=yes
16225fi
16226if test -z "$ac_cpp_err"; then
16227 ac_header_preproc=yes
16228else
16229 echo "$as_me: failed program was:" >&5
16230sed 's/^/| /' conftest.$ac_ext >&5
16231
16232 ac_header_preproc=no
16233fi
16234
16235rm -f conftest.err conftest.$ac_ext
16236{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16237echo "${ECHO_T}$ac_header_preproc" >&6; }
16238
16239# So? What about this header?
16240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16241 yes:no: )
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16246 ac_header_preproc=yes
16247 ;;
16248 no:yes:* )
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16252echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16256echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16261 ( cat <<\_ASBOX
16262## ----------------------------------- ##
16263## Report this to llvmbugs@cs.uiuc.edu ##
16264## ----------------------------------- ##
16265_ASBOX
16266 ) | sed "s/^/$as_me: WARNING: /" >&2
16267 ;;
16268esac
16269{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273else
16274 eval "$as_ac_Header=\$ac_header_preproc"
16275fi
16276ac_res=`eval echo '${'$as_ac_Header'}'`
16277 { echo "$as_me:$LINENO: result: $ac_res" >&5
16278echo "${ECHO_T}$ac_res" >&6; }
16279
16280fi
16281if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016282 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016284_ACEOF
16285
16286fi
16287
16288done
Reid Spencer59473af2004-12-25 07:31:29 +000016289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016290
16291
16292
16293
Daniel Dunbar3e462932011-02-03 02:40:02 +000016294
16295for 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 +000016296do
16297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16303fi
16304ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306echo "${ECHO_T}$ac_res" >&6; }
16307else
16308 # Is the header compilable?
16309{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16310echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16311cat >conftest.$ac_ext <<_ACEOF
16312/* confdefs.h. */
16313_ACEOF
16314cat confdefs.h >>conftest.$ac_ext
16315cat >>conftest.$ac_ext <<_ACEOF
16316/* end confdefs.h. */
16317$ac_includes_default
16318#include <$ac_header>
16319_ACEOF
16320rm -f conftest.$ac_objext
16321if { (ac_try="$ac_compile"
16322case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325esac
16326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_compile") 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16335 { (case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16338esac
16339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_try") 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try='test -s conftest.$ac_objext'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16348esac
16349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_header_compiler=yes
16355else
16356 echo "$as_me: failed program was:" >&5
16357sed 's/^/| /' conftest.$ac_ext >&5
16358
16359 ac_header_compiler=no
16360fi
16361
16362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16364echo "${ECHO_T}$ac_header_compiler" >&6; }
16365
16366# Is the header present?
16367{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16368echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16369cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
16375#include <$ac_header>
16376_ACEOF
16377if { (ac_try="$ac_cpp conftest.$ac_ext"
16378case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16381esac
16382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } >/dev/null; then
16390 if test -s conftest.err; then
16391 ac_cpp_err=$ac_c_preproc_warn_flag
16392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16393 else
16394 ac_cpp_err=
16395 fi
16396else
16397 ac_cpp_err=yes
16398fi
16399if test -z "$ac_cpp_err"; then
16400 ac_header_preproc=yes
16401else
16402 echo "$as_me: failed program was:" >&5
16403sed 's/^/| /' conftest.$ac_ext >&5
16404
16405 ac_header_preproc=no
16406fi
16407
16408rm -f conftest.err conftest.$ac_ext
16409{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16410echo "${ECHO_T}$ac_header_preproc" >&6; }
16411
16412# So? What about this header?
16413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16414 yes:no: )
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16419 ac_header_preproc=yes
16420 ;;
16421 no:yes:* )
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16425echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16429echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16434 ( cat <<\_ASBOX
16435## ----------------------------------- ##
16436## Report this to llvmbugs@cs.uiuc.edu ##
16437## ----------------------------------- ##
16438_ASBOX
16439 ) | sed "s/^/$as_me: WARNING: /" >&2
16440 ;;
16441esac
16442{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446else
16447 eval "$as_ac_Header=\$ac_header_preproc"
16448fi
16449ac_res=`eval echo '${'$as_ac_Header'}'`
16450 { echo "$as_me:$LINENO: result: $ac_res" >&5
16451echo "${ECHO_T}$ac_res" >&6; }
16452
16453fi
16454if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016455 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016457_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016458
16459fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016460
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016461done
16462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016463
16464
16465
16466
Douglas Gregor01746742009-05-11 18:05:52 +000016467for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016468do
16469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475fi
16476ac_res=`eval echo '${'$as_ac_Header'}'`
16477 { echo "$as_me:$LINENO: result: $ac_res" >&5
16478echo "${ECHO_T}$ac_res" >&6; }
16479else
16480 # Is the header compilable?
16481{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16483cat >conftest.$ac_ext <<_ACEOF
16484/* confdefs.h. */
16485_ACEOF
16486cat confdefs.h >>conftest.$ac_ext
16487cat >>conftest.$ac_ext <<_ACEOF
16488/* end confdefs.h. */
16489$ac_includes_default
16490#include <$ac_header>
16491_ACEOF
16492rm -f conftest.$ac_objext
16493if { (ac_try="$ac_compile"
16494case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16497esac
16498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_compile") 2>conftest.er1
16500 ac_status=$?
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16507 { (case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510esac
16511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_try") 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try='test -s conftest.$ac_objext'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_header_compiler=yes
16527else
16528 echo "$as_me: failed program was:" >&5
16529sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 ac_header_compiler=no
16532fi
16533
16534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16536echo "${ECHO_T}$ac_header_compiler" >&6; }
16537
16538# Is the header present?
16539{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16541cat >conftest.$ac_ext <<_ACEOF
16542/* confdefs.h. */
16543_ACEOF
16544cat confdefs.h >>conftest.$ac_ext
16545cat >>conftest.$ac_ext <<_ACEOF
16546/* end confdefs.h. */
16547#include <$ac_header>
16548_ACEOF
16549if { (ac_try="$ac_cpp conftest.$ac_ext"
16550case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16553esac
16554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16556 ac_status=$?
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } >/dev/null; then
16562 if test -s conftest.err; then
16563 ac_cpp_err=$ac_c_preproc_warn_flag
16564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16565 else
16566 ac_cpp_err=
16567 fi
16568else
16569 ac_cpp_err=yes
16570fi
16571if test -z "$ac_cpp_err"; then
16572 ac_header_preproc=yes
16573else
16574 echo "$as_me: failed program was:" >&5
16575sed 's/^/| /' conftest.$ac_ext >&5
16576
16577 ac_header_preproc=no
16578fi
16579
16580rm -f conftest.err conftest.$ac_ext
16581{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16582echo "${ECHO_T}$ac_header_preproc" >&6; }
16583
16584# So? What about this header?
16585case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16586 yes:no: )
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16590echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16591 ac_header_preproc=yes
16592 ;;
16593 no:yes:* )
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16595echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16597echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16599echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16601echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16603echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16605echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16606 ( cat <<\_ASBOX
16607## ----------------------------------- ##
16608## Report this to llvmbugs@cs.uiuc.edu ##
16609## ----------------------------------- ##
16610_ASBOX
16611 ) | sed "s/^/$as_me: WARNING: /" >&2
16612 ;;
16613esac
16614{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16618else
16619 eval "$as_ac_Header=\$ac_header_preproc"
16620fi
16621ac_res=`eval echo '${'$as_ac_Header'}'`
16622 { echo "$as_me:$LINENO: result: $ac_res" >&5
16623echo "${ECHO_T}$ac_res" >&6; }
16624
16625fi
16626if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016627 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016629_ACEOF
16630
16631fi
16632
16633done
16634
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016635
16636for ac_header in valgrind/valgrind.h
16637do
16638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644fi
16645ac_res=`eval echo '${'$as_ac_Header'}'`
16646 { echo "$as_me:$LINENO: result: $ac_res" >&5
16647echo "${ECHO_T}$ac_res" >&6; }
16648else
16649 # Is the header compilable?
16650{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16652cat >conftest.$ac_ext <<_ACEOF
16653/* confdefs.h. */
16654_ACEOF
16655cat confdefs.h >>conftest.$ac_ext
16656cat >>conftest.$ac_ext <<_ACEOF
16657/* end confdefs.h. */
16658$ac_includes_default
16659#include <$ac_header>
16660_ACEOF
16661rm -f conftest.$ac_objext
16662if { (ac_try="$ac_compile"
16663case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666esac
16667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16669 ac_status=$?
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16689esac
16690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_header_compiler=yes
16696else
16697 echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 ac_header_compiler=no
16701fi
16702
16703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16705echo "${ECHO_T}$ac_header_compiler" >&6; }
16706
16707# Is the header present?
16708{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16710cat >conftest.$ac_ext <<_ACEOF
16711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716#include <$ac_header>
16717_ACEOF
16718if { (ac_try="$ac_cpp conftest.$ac_ext"
16719case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722esac
16723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16725 ac_status=$?
16726 grep -v '^ *+' conftest.er1 >conftest.err
16727 rm -f conftest.er1
16728 cat conftest.err >&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } >/dev/null; then
16731 if test -s conftest.err; then
16732 ac_cpp_err=$ac_c_preproc_warn_flag
16733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16734 else
16735 ac_cpp_err=
16736 fi
16737else
16738 ac_cpp_err=yes
16739fi
16740if test -z "$ac_cpp_err"; then
16741 ac_header_preproc=yes
16742else
16743 echo "$as_me: failed program was:" >&5
16744sed 's/^/| /' conftest.$ac_ext >&5
16745
16746 ac_header_preproc=no
16747fi
16748
16749rm -f conftest.err conftest.$ac_ext
16750{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16751echo "${ECHO_T}$ac_header_preproc" >&6; }
16752
16753# So? What about this header?
16754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16755 yes:no: )
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16757echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16759echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16760 ac_header_preproc=yes
16761 ;;
16762 no:yes:* )
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16764echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16766echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16768echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16770echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16774echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16775 ( cat <<\_ASBOX
16776## ----------------------------------- ##
16777## Report this to llvmbugs@cs.uiuc.edu ##
16778## ----------------------------------- ##
16779_ASBOX
16780 ) | sed "s/^/$as_me: WARNING: /" >&2
16781 ;;
16782esac
16783{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787else
16788 eval "$as_ac_Header=\$ac_header_preproc"
16789fi
16790ac_res=`eval echo '${'$as_ac_Header'}'`
16791 { echo "$as_me:$LINENO: result: $ac_res" >&5
16792echo "${ECHO_T}$ac_res" >&6; }
16793
16794fi
16795if test `eval echo '${'$as_ac_Header'}'` = yes; then
16796 cat >>confdefs.h <<_ACEOF
16797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16798_ACEOF
16799
16800fi
16801
16802done
16803
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016804
16805for ac_header in fenv.h
16806do
16807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813fi
16814ac_res=`eval echo '${'$as_ac_Header'}'`
16815 { echo "$as_me:$LINENO: result: $ac_res" >&5
16816echo "${ECHO_T}$ac_res" >&6; }
16817else
16818 # Is the header compilable?
16819{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16821cat >conftest.$ac_ext <<_ACEOF
16822/* confdefs.h. */
16823_ACEOF
16824cat confdefs.h >>conftest.$ac_ext
16825cat >>conftest.$ac_ext <<_ACEOF
16826/* end confdefs.h. */
16827$ac_includes_default
16828#include <$ac_header>
16829_ACEOF
16830rm -f conftest.$ac_objext
16831if { (ac_try="$ac_compile"
16832case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835esac
16836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_compile") 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16845 { (case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848esac
16849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_try") 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } &&
16854 { ac_try='test -s conftest.$ac_objext'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858esac
16859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_header_compiler=yes
16865else
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869 ac_header_compiler=no
16870fi
16871
16872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16874echo "${ECHO_T}$ac_header_compiler" >&6; }
16875
16876# Is the header present?
16877{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16879cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h. */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h. */
16885#include <$ac_header>
16886_ACEOF
16887if { (ac_try="$ac_cpp conftest.$ac_ext"
16888case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16891esac
16892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } >/dev/null; then
16900 if test -s conftest.err; then
16901 ac_cpp_err=$ac_c_preproc_warn_flag
16902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16903 else
16904 ac_cpp_err=
16905 fi
16906else
16907 ac_cpp_err=yes
16908fi
16909if test -z "$ac_cpp_err"; then
16910 ac_header_preproc=yes
16911else
16912 echo "$as_me: failed program was:" >&5
16913sed 's/^/| /' conftest.$ac_ext >&5
16914
16915 ac_header_preproc=no
16916fi
16917
16918rm -f conftest.err conftest.$ac_ext
16919{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16920echo "${ECHO_T}$ac_header_preproc" >&6; }
16921
16922# So? What about this header?
16923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16924 yes:no: )
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16929 ac_header_preproc=yes
16930 ;;
16931 no:yes:* )
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16935echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16939echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16944 ( cat <<\_ASBOX
16945## ----------------------------------- ##
16946## Report this to llvmbugs@cs.uiuc.edu ##
16947## ----------------------------------- ##
16948_ASBOX
16949 ) | sed "s/^/$as_me: WARNING: /" >&2
16950 ;;
16951esac
16952{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956else
16957 eval "$as_ac_Header=\$ac_header_preproc"
16958fi
16959ac_res=`eval echo '${'$as_ac_Header'}'`
16960 { echo "$as_me:$LINENO: result: $ac_res" >&5
16961echo "${ECHO_T}$ac_res" >&6; }
16962
16963fi
16964if test `eval echo '${'$as_ac_Header'}'` = yes; then
16965 cat >>confdefs.h <<_ACEOF
16966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16967_ACEOF
16968
16969fi
16970
16971done
16972
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016973if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016974
16975for ac_header in pthread.h
16976do
16977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16983fi
16984ac_res=`eval echo '${'$as_ac_Header'}'`
16985 { echo "$as_me:$LINENO: result: $ac_res" >&5
16986echo "${ECHO_T}$ac_res" >&6; }
16987else
16988 # Is the header compilable?
16989{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16990echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16991cat >conftest.$ac_ext <<_ACEOF
16992/* confdefs.h. */
16993_ACEOF
16994cat confdefs.h >>conftest.$ac_ext
16995cat >>conftest.$ac_ext <<_ACEOF
16996/* end confdefs.h. */
16997$ac_includes_default
16998#include <$ac_header>
16999_ACEOF
17000rm -f conftest.$ac_objext
17001if { (ac_try="$ac_compile"
17002case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17005esac
17006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_compile") 2>conftest.er1
17008 ac_status=$?
17009 grep -v '^ *+' conftest.er1 >conftest.err
17010 rm -f conftest.er1
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17015 { (case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018esac
17019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest.$ac_objext'
17025 { (case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028esac
17029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_try") 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 ac_header_compiler=yes
17035else
17036 echo "$as_me: failed program was:" >&5
17037sed 's/^/| /' conftest.$ac_ext >&5
17038
17039 ac_header_compiler=no
17040fi
17041
17042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17044echo "${ECHO_T}$ac_header_compiler" >&6; }
17045
17046# Is the header present?
17047{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17049cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055#include <$ac_header>
17056_ACEOF
17057if { (ac_try="$ac_cpp conftest.$ac_ext"
17058case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } >/dev/null; then
17070 if test -s conftest.err; then
17071 ac_cpp_err=$ac_c_preproc_warn_flag
17072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17073 else
17074 ac_cpp_err=
17075 fi
17076else
17077 ac_cpp_err=yes
17078fi
17079if test -z "$ac_cpp_err"; then
17080 ac_header_preproc=yes
17081else
17082 echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085 ac_header_preproc=no
17086fi
17087
17088rm -f conftest.err conftest.$ac_ext
17089{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090echo "${ECHO_T}$ac_header_preproc" >&6; }
17091
17092# So? What about this header?
17093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17094 yes:no: )
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc=yes
17100 ;;
17101 no:yes:* )
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17114 ( cat <<\_ASBOX
17115## ----------------------------------- ##
17116## Report this to llvmbugs@cs.uiuc.edu ##
17117## ----------------------------------- ##
17118_ASBOX
17119 ) | sed "s/^/$as_me: WARNING: /" >&2
17120 ;;
17121esac
17122{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126else
17127 eval "$as_ac_Header=\$ac_header_preproc"
17128fi
17129ac_res=`eval echo '${'$as_ac_Header'}'`
17130 { echo "$as_me:$LINENO: result: $ac_res" >&5
17131echo "${ECHO_T}$ac_res" >&6; }
17132
17133fi
17134if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017135 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017137_ACEOF
17138 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017139
17140else
17141 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017142
17143fi
17144
Reid Spencerbe3e4192007-08-17 05:45:26 +000017145done
Reid Spencer1000b732006-12-01 00:37:14 +000017146
17147else
17148 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017149
17150fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017151
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017152if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017153
17154
17155for ac_header in ffi.h ffi/ffi.h
17156do
17157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17163fi
17164ac_res=`eval echo '${'$as_ac_Header'}'`
17165 { echo "$as_me:$LINENO: result: $ac_res" >&5
17166echo "${ECHO_T}$ac_res" >&6; }
17167else
17168 # Is the header compilable?
17169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17171cat >conftest.$ac_ext <<_ACEOF
17172/* confdefs.h. */
17173_ACEOF
17174cat confdefs.h >>conftest.$ac_ext
17175cat >>conftest.$ac_ext <<_ACEOF
17176/* end confdefs.h. */
17177$ac_includes_default
17178#include <$ac_header>
17179_ACEOF
17180rm -f conftest.$ac_objext
17181if { (ac_try="$ac_compile"
17182case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185esac
17186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_compile") 2>conftest.er1
17188 ac_status=$?
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195 { (case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198esac
17199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_try") 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17208esac
17209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_try") 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_header_compiler=yes
17215else
17216 echo "$as_me: failed program was:" >&5
17217sed 's/^/| /' conftest.$ac_ext >&5
17218
17219 ac_header_compiler=no
17220fi
17221
17222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17224echo "${ECHO_T}$ac_header_compiler" >&6; }
17225
17226# Is the header present?
17227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17229cat >conftest.$ac_ext <<_ACEOF
17230/* confdefs.h. */
17231_ACEOF
17232cat confdefs.h >>conftest.$ac_ext
17233cat >>conftest.$ac_ext <<_ACEOF
17234/* end confdefs.h. */
17235#include <$ac_header>
17236_ACEOF
17237if { (ac_try="$ac_cpp conftest.$ac_ext"
17238case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241esac
17242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } >/dev/null; then
17250 if test -s conftest.err; then
17251 ac_cpp_err=$ac_c_preproc_warn_flag
17252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17253 else
17254 ac_cpp_err=
17255 fi
17256else
17257 ac_cpp_err=yes
17258fi
17259if test -z "$ac_cpp_err"; then
17260 ac_header_preproc=yes
17261else
17262 echo "$as_me: failed program was:" >&5
17263sed 's/^/| /' conftest.$ac_ext >&5
17264
17265 ac_header_preproc=no
17266fi
17267
17268rm -f conftest.err conftest.$ac_ext
17269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17270echo "${ECHO_T}$ac_header_preproc" >&6; }
17271
17272# So? What about this header?
17273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17274 yes:no: )
17275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17279 ac_header_preproc=yes
17280 ;;
17281 no:yes:* )
17282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17294 ( cat <<\_ASBOX
17295## ----------------------------------- ##
17296## Report this to llvmbugs@cs.uiuc.edu ##
17297## ----------------------------------- ##
17298_ASBOX
17299 ) | sed "s/^/$as_me: WARNING: /" >&2
17300 ;;
17301esac
17302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306else
17307 eval "$as_ac_Header=\$ac_header_preproc"
17308fi
17309ac_res=`eval echo '${'$as_ac_Header'}'`
17310 { echo "$as_me:$LINENO: result: $ac_res" >&5
17311echo "${ECHO_T}$ac_res" >&6; }
17312
17313fi
17314if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017315 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017317_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017318
17319fi
17320
17321done
17322
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017323fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017324
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017325
Eric Christopher654dee42010-06-22 21:01:04 +000017326for ac_header in CrashReporterClient.h
17327do
17328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17334fi
17335ac_res=`eval echo '${'$as_ac_Header'}'`
17336 { echo "$as_me:$LINENO: result: $ac_res" >&5
17337echo "${ECHO_T}$ac_res" >&6; }
17338else
17339 # Is the header compilable?
17340{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17342cat >conftest.$ac_ext <<_ACEOF
17343/* confdefs.h. */
17344_ACEOF
17345cat confdefs.h >>conftest.$ac_ext
17346cat >>conftest.$ac_ext <<_ACEOF
17347/* end confdefs.h. */
17348$ac_includes_default
17349#include <$ac_header>
17350_ACEOF
17351rm -f conftest.$ac_objext
17352if { (ac_try="$ac_compile"
17353case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356esac
17357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_compile") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest.$ac_objext'
17376 { (case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17379esac
17380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_try") 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_header_compiler=yes
17386else
17387 echo "$as_me: failed program was:" >&5
17388sed 's/^/| /' conftest.$ac_ext >&5
17389
17390 ac_header_compiler=no
17391fi
17392
17393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17394{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17395echo "${ECHO_T}$ac_header_compiler" >&6; }
17396
17397# Is the header present?
17398{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17400cat >conftest.$ac_ext <<_ACEOF
17401/* confdefs.h. */
17402_ACEOF
17403cat confdefs.h >>conftest.$ac_ext
17404cat >>conftest.$ac_ext <<_ACEOF
17405/* end confdefs.h. */
17406#include <$ac_header>
17407_ACEOF
17408if { (ac_try="$ac_cpp conftest.$ac_ext"
17409case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412esac
17413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } >/dev/null; then
17421 if test -s conftest.err; then
17422 ac_cpp_err=$ac_c_preproc_warn_flag
17423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17424 else
17425 ac_cpp_err=
17426 fi
17427else
17428 ac_cpp_err=yes
17429fi
17430if test -z "$ac_cpp_err"; then
17431 ac_header_preproc=yes
17432else
17433 echo "$as_me: failed program was:" >&5
17434sed 's/^/| /' conftest.$ac_ext >&5
17435
17436 ac_header_preproc=no
17437fi
17438
17439rm -f conftest.err conftest.$ac_ext
17440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17441echo "${ECHO_T}$ac_header_preproc" >&6; }
17442
17443# So? What about this header?
17444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17445 yes:no: )
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17450 ac_header_preproc=yes
17451 ;;
17452 no:yes:* )
17453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17465 ( cat <<\_ASBOX
17466## ----------------------------------- ##
17467## Report this to llvmbugs@cs.uiuc.edu ##
17468## ----------------------------------- ##
17469_ASBOX
17470 ) | sed "s/^/$as_me: WARNING: /" >&2
17471 ;;
17472esac
17473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477else
17478 eval "$as_ac_Header=\$ac_header_preproc"
17479fi
17480ac_res=`eval echo '${'$as_ac_Header'}'`
17481 { echo "$as_me:$LINENO: result: $ac_res" >&5
17482echo "${ECHO_T}$ac_res" >&6; }
17483
17484fi
17485if test `eval echo '${'$as_ac_Header'}'` = yes; then
17486 cat >>confdefs.h <<_ACEOF
17487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17488_ACEOF
17489
17490fi
17491
17492done
17493
17494
Eric Christopher51e57132010-12-07 02:05:42 +000017495{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17496echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017497cat >conftest.$ac_ext <<_ACEOF
17498/* confdefs.h. */
17499_ACEOF
17500cat confdefs.h >>conftest.$ac_ext
17501cat >>conftest.$ac_ext <<_ACEOF
17502/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017503extern const char *__crashreporter_info__;
17504 int main() {
17505 __crashreporter_info__ = "test";
17506 return 0;
17507 }
Eric Christopher481d4022010-12-03 07:45:22 +000017508
Eric Christopher481d4022010-12-03 07:45:22 +000017509_ACEOF
17510rm -f conftest.$ac_objext conftest$ac_exeext
17511if { (ac_try="$ac_link"
17512case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515esac
17516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_link") 2>conftest.er1
17518 ac_status=$?
17519 grep -v '^ *+' conftest.er1 >conftest.err
17520 rm -f conftest.er1
17521 cat conftest.err >&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } &&
17524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17525 { (case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17528esac
17529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_try") 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17538esac
17539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_try") 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017544 { echo "$as_me:$LINENO: result: yes" >&5
17545echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017546
17547cat >>confdefs.h <<\_ACEOF
17548#define HAVE_CRASHREPORTER_INFO 1
17549_ACEOF
17550
Eric Christopher51e57132010-12-07 02:05:42 +000017551else
17552 echo "$as_me: failed program was:" >&5
17553sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 { echo "$as_me:$LINENO: result: no" >&5
17556echo "${ECHO_T}no" >&6; }
17557
17558cat >>confdefs.h <<\_ACEOF
17559#define HAVE_CRASHREPORTER_INFO 0
17560_ACEOF
17561
Eric Christopher481d4022010-12-03 07:45:22 +000017562fi
Eric Christopher654dee42010-06-22 21:01:04 +000017563
Eric Christopher51e57132010-12-07 02:05:42 +000017564rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17566
17567
Reid Spencer8085cff2005-01-16 02:58:39 +000017568
Torok Edwin871384f2010-01-26 08:50:50 +000017569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017570 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17571echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17572if test "${ac_cv_huge_val_sanity+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017574else
17575
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017576 ac_ext=cpp
17577ac_cpp='$CXXCPP $CPPFLAGS'
17578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017581
Eric Christopherc7718502010-03-02 05:06:54 +000017582 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017583 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017584 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017585 ac_cv_huge_val_sanity=yes
17586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017587 cat >conftest.$ac_ext <<_ACEOF
17588/* confdefs.h. */
17589_ACEOF
17590cat confdefs.h >>conftest.$ac_ext
17591cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017592/* end confdefs.h. */
17593#include <math.h>
17594int
17595main ()
17596{
17597double x = HUGE_VAL; return x != x;
17598 ;
17599 return 0;
17600}
17601_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017602rm -f conftest$ac_exeext
17603if { (ac_try="$ac_link"
17604case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607esac
17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_link") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17613 { (case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616esac
17617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_try") 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017622 ac_cv_huge_val_sanity=yes
17623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017624 echo "$as_me: program exited with status $ac_status" >&5
17625echo "$as_me: failed program was:" >&5
17626sed 's/^/| /' conftest.$ac_ext >&5
17627
17628( exit $ac_status )
17629ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017630fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017631rm -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 +000017632fi
17633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017634
Eric Christopherc7718502010-03-02 05:06:54 +000017635 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017636 ac_ext=c
17637ac_cpp='$CPP $CPPFLAGS'
17638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640ac_compiler_gnu=$ac_cv_c_compiler_gnu
17641
17642
17643fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017644{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17645echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017646 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17647
17648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017649{ echo "$as_me:$LINENO: checking for pid_t" >&5
17650echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17651if test "${ac_cv_type_pid_t+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17653else
17654 cat >conftest.$ac_ext <<_ACEOF
17655/* confdefs.h. */
17656_ACEOF
17657cat confdefs.h >>conftest.$ac_ext
17658cat >>conftest.$ac_ext <<_ACEOF
17659/* end confdefs.h. */
17660$ac_includes_default
17661typedef pid_t ac__type_new_;
17662int
17663main ()
17664{
17665if ((ac__type_new_ *) 0)
17666 return 0;
17667if (sizeof (ac__type_new_))
17668 return 0;
17669 ;
17670 return 0;
17671}
17672_ACEOF
17673rm -f conftest.$ac_objext
17674if { (ac_try="$ac_compile"
17675case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678esac
17679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_compile") 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17688 { (case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17691esac
17692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_try") 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try='test -s conftest.$ac_objext'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17701esac
17702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_type_pid_t=yes
17708else
17709 echo "$as_me: failed program was:" >&5
17710sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017712 ac_cv_type_pid_t=no
17713fi
17714
17715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17716fi
17717{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17718echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17719if test $ac_cv_type_pid_t = yes; then
17720 :
John Criswell7a73b802003-06-30 21:59:07 +000017721else
17722
17723cat >>confdefs.h <<_ACEOF
17724#define pid_t int
17725_ACEOF
17726
17727fi
17728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017729{ echo "$as_me:$LINENO: checking for size_t" >&5
17730echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17731if test "${ac_cv_type_size_t+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733else
17734 cat >conftest.$ac_ext <<_ACEOF
17735/* confdefs.h. */
17736_ACEOF
17737cat confdefs.h >>conftest.$ac_ext
17738cat >>conftest.$ac_ext <<_ACEOF
17739/* end confdefs.h. */
17740$ac_includes_default
17741typedef size_t ac__type_new_;
17742int
17743main ()
17744{
17745if ((ac__type_new_ *) 0)
17746 return 0;
17747if (sizeof (ac__type_new_))
17748 return 0;
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753rm -f conftest.$ac_objext
17754if { (ac_try="$ac_compile"
17755case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17758esac
17759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_compile") 2>conftest.er1
17761 ac_status=$?
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781esac
17782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 ac_cv_type_size_t=yes
17788else
17789 echo "$as_me: failed program was:" >&5
17790sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017792 ac_cv_type_size_t=no
17793fi
17794
17795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17796fi
17797{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17798echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17799if test $ac_cv_type_size_t = yes; then
17800 :
John Criswell7a73b802003-06-30 21:59:07 +000017801else
17802
17803cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017804#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017805_ACEOF
17806
17807fi
17808
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017809
17810cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017811#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017812_ACEOF
17813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017814{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17815echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17816if test "${ac_cv_struct_tm+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017819 cat >conftest.$ac_ext <<_ACEOF
17820/* confdefs.h. */
17821_ACEOF
17822cat confdefs.h >>conftest.$ac_ext
17823cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017824/* end confdefs.h. */
17825#include <sys/types.h>
17826#include <time.h>
17827
17828int
17829main ()
17830{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017831struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017832 ;
17833 return 0;
17834}
17835_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017836rm -f conftest.$ac_objext
17837if { (ac_try="$ac_compile"
17838case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_compile") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17854esac
17855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest.$ac_objext'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864esac
17865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017870 ac_cv_struct_tm=time.h
17871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017872 echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017877
Reid Spencera773bd52006-08-04 18:18:08 +000017878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017880{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17881echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017882if test $ac_cv_struct_tm = sys/time.h; then
17883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017884cat >>confdefs.h <<\_ACEOF
17885#define TM_IN_SYS_TIME 1
17886_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017887
17888fi
17889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017890{ echo "$as_me:$LINENO: checking for int64_t" >&5
17891echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17892if test "${ac_cv_type_int64_t+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894else
17895 cat >conftest.$ac_ext <<_ACEOF
17896/* confdefs.h. */
17897_ACEOF
17898cat confdefs.h >>conftest.$ac_ext
17899cat >>conftest.$ac_ext <<_ACEOF
17900/* end confdefs.h. */
17901$ac_includes_default
17902typedef int64_t ac__type_new_;
17903int
17904main ()
17905{
17906if ((ac__type_new_ *) 0)
17907 return 0;
17908if (sizeof (ac__type_new_))
17909 return 0;
17910 ;
17911 return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext
17915if { (ac_try="$ac_compile"
17916case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919esac
17920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_compile") 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17929 { (case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17932esac
17933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_try") 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try='test -s conftest.$ac_objext'
17939 { (case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17942esac
17943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_cv_type_int64_t=yes
17949else
17950 echo "$as_me: failed program was:" >&5
17951sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 ac_cv_type_int64_t=no
17954fi
17955
17956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17957fi
17958{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17959echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17960if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017961
17962cat >>confdefs.h <<_ACEOF
17963#define HAVE_INT64_T 1
17964_ACEOF
17965
17966
17967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017968 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17969echo "$as_me: error: Type int64_t required but not found" >&2;}
17970 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017971fi
17972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017973{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17974echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17975if test "${ac_cv_type_uint64_t+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977else
17978 cat >conftest.$ac_ext <<_ACEOF
17979/* confdefs.h. */
17980_ACEOF
17981cat confdefs.h >>conftest.$ac_ext
17982cat >>conftest.$ac_ext <<_ACEOF
17983/* end confdefs.h. */
17984$ac_includes_default
17985typedef uint64_t ac__type_new_;
17986int
17987main ()
17988{
17989if ((ac__type_new_ *) 0)
17990 return 0;
17991if (sizeof (ac__type_new_))
17992 return 0;
17993 ;
17994 return 0;
17995}
17996_ACEOF
17997rm -f conftest.$ac_objext
17998if { (ac_try="$ac_compile"
17999case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002esac
18003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015esac
18016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18031 ac_cv_type_uint64_t=yes
18032else
18033 echo "$as_me: failed program was:" >&5
18034sed 's/^/| /' conftest.$ac_ext >&5
18035
18036 ac_cv_type_uint64_t=no
18037fi
18038
18039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18040fi
18041{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18042echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18043if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018044
18045cat >>confdefs.h <<_ACEOF
18046#define HAVE_UINT64_T 1
18047_ACEOF
18048
18049
18050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018051 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18052echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18053if test "${ac_cv_type_u_int64_t+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055else
18056 cat >conftest.$ac_ext <<_ACEOF
18057/* confdefs.h. */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h. */
18062$ac_includes_default
18063typedef u_int64_t ac__type_new_;
18064int
18065main ()
18066{
18067if ((ac__type_new_ *) 0)
18068 return 0;
18069if (sizeof (ac__type_new_))
18070 return 0;
18071 ;
18072 return 0;
18073}
18074_ACEOF
18075rm -f conftest.$ac_objext
18076if { (ac_try="$ac_compile"
18077case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18080esac
18081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_compile") 2>conftest.er1
18083 ac_status=$?
18084 grep -v '^ *+' conftest.er1 >conftest.err
18085 rm -f conftest.er1
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18090 { (case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093esac
18094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_try") 2>&5
18096 ac_status=$?
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; } &&
18099 { ac_try='test -s conftest.$ac_objext'
18100 { (case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103esac
18104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_try") 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; }; then
18109 ac_cv_type_u_int64_t=yes
18110else
18111 echo "$as_me: failed program was:" >&5
18112sed 's/^/| /' conftest.$ac_ext >&5
18113
18114 ac_cv_type_u_int64_t=no
18115fi
18116
18117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118fi
18119{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18120echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18121if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018122
18123cat >>confdefs.h <<_ACEOF
18124#define HAVE_U_INT64_T 1
18125_ACEOF
18126
18127
Misha Brukmanceca9042004-09-02 23:02:30 +000018128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018129 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18130echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18131 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018132fi
18133
John Criswell679ff312004-09-02 18:44:44 +000018134fi
18135
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018136
18137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018138
18139
18140
18141
18142
18143
18144
Reid Spencerdf3be822006-01-23 08:15:53 +000018145for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018146do
18147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152else
18153 cat >conftest.$ac_ext <<_ACEOF
18154/* confdefs.h. */
18155_ACEOF
18156cat confdefs.h >>conftest.$ac_ext
18157cat >>conftest.$ac_ext <<_ACEOF
18158/* end confdefs.h. */
18159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161#define $ac_func innocuous_$ac_func
18162
18163/* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18167
18168#ifdef __STDC__
18169# include <limits.h>
18170#else
18171# include <assert.h>
18172#endif
18173
18174#undef $ac_func
18175
18176/* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18179#ifdef __cplusplus
18180extern "C"
18181#endif
18182char $ac_func ();
18183/* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186#if defined __stub_$ac_func || defined __stub___$ac_func
18187choke me
18188#endif
18189
18190int
18191main ()
18192{
18193return $ac_func ();
18194 ;
18195 return 0;
18196}
18197_ACEOF
18198rm -f conftest.$ac_objext conftest$ac_exeext
18199if { (ac_try="$ac_link"
18200case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203esac
18204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_link") 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18213 { (case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18216esac
18217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest$ac_exeext'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18226esac
18227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 eval "$as_ac_var=yes"
18233else
18234 echo "$as_me: failed program was:" >&5
18235sed 's/^/| /' conftest.$ac_ext >&5
18236
18237 eval "$as_ac_var=no"
18238fi
18239
18240rm -f core conftest.err conftest.$ac_objext \
18241 conftest$ac_exeext conftest.$ac_ext
18242fi
18243ac_res=`eval echo '${'$as_ac_var'}'`
18244 { echo "$as_me:$LINENO: result: $ac_res" >&5
18245echo "${ECHO_T}$ac_res" >&6; }
18246if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018247 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018249_ACEOF
18250
18251fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018252done
John Criswell7a73b802003-06-30 21:59:07 +000018253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018254
18255
18256
18257
Reid Spencer96cf5872007-07-13 10:05:30 +000018258for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018259do
18260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18261{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18263if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18265else
18266 cat >conftest.$ac_ext <<_ACEOF
18267/* confdefs.h. */
18268_ACEOF
18269cat confdefs.h >>conftest.$ac_ext
18270cat >>conftest.$ac_ext <<_ACEOF
18271/* end confdefs.h. */
18272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274#define $ac_func innocuous_$ac_func
18275
18276/* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char $ac_func (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18280
18281#ifdef __STDC__
18282# include <limits.h>
18283#else
18284# include <assert.h>
18285#endif
18286
18287#undef $ac_func
18288
18289/* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18292#ifdef __cplusplus
18293extern "C"
18294#endif
18295char $ac_func ();
18296/* The GNU C library defines this for functions which it implements
18297 to always fail with ENOSYS. Some functions are actually named
18298 something starting with __ and the normal name is an alias. */
18299#if defined __stub_$ac_func || defined __stub___$ac_func
18300choke me
18301#endif
18302
18303int
18304main ()
18305{
18306return $ac_func ();
18307 ;
18308 return 0;
18309}
18310_ACEOF
18311rm -f conftest.$ac_objext conftest$ac_exeext
18312if { (ac_try="$ac_link"
18313case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316esac
18317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_link") 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329esac
18330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339esac
18340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 eval "$as_ac_var=yes"
18346else
18347 echo "$as_me: failed program was:" >&5
18348sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 eval "$as_ac_var=no"
18351fi
18352
18353rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355fi
18356ac_res=`eval echo '${'$as_ac_var'}'`
18357 { echo "$as_me:$LINENO: result: $ac_res" >&5
18358echo "${ECHO_T}$ac_res" >&6; }
18359if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018360 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018362_ACEOF
18363
18364fi
18365done
18366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018367
18368
18369
18370
18371
Reid Spencerb90645c2007-02-16 19:17:20 +000018372for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018373do
18374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18375{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18377if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379else
18380 cat >conftest.$ac_ext <<_ACEOF
18381/* confdefs.h. */
18382_ACEOF
18383cat confdefs.h >>conftest.$ac_ext
18384cat >>conftest.$ac_ext <<_ACEOF
18385/* end confdefs.h. */
18386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18388#define $ac_func innocuous_$ac_func
18389
18390/* System header to define __stub macros and hopefully few prototypes,
18391 which can conflict with char $ac_func (); below.
18392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 <limits.h> exists even on freestanding compilers. */
18394
18395#ifdef __STDC__
18396# include <limits.h>
18397#else
18398# include <assert.h>
18399#endif
18400
18401#undef $ac_func
18402
18403/* Override any GCC internal prototype to avoid an error.
18404 Use char because int might match the return type of a GCC
18405 builtin and then its argument prototype would still apply. */
18406#ifdef __cplusplus
18407extern "C"
18408#endif
18409char $ac_func ();
18410/* The GNU C library defines this for functions which it implements
18411 to always fail with ENOSYS. Some functions are actually named
18412 something starting with __ and the normal name is an alias. */
18413#if defined __stub_$ac_func || defined __stub___$ac_func
18414choke me
18415#endif
18416
18417int
18418main ()
18419{
18420return $ac_func ();
18421 ;
18422 return 0;
18423}
18424_ACEOF
18425rm -f conftest.$ac_objext conftest$ac_exeext
18426if { (ac_try="$ac_link"
18427case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18430esac
18431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_link") 2>conftest.er1
18433 ac_status=$?
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443esac
18444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_try") 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18453esac
18454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 eval "$as_ac_var=yes"
18460else
18461 echo "$as_me: failed program was:" >&5
18462sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 eval "$as_ac_var=no"
18465fi
18466
18467rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18469fi
18470ac_res=`eval echo '${'$as_ac_var'}'`
18471 { echo "$as_me:$LINENO: result: $ac_res" >&5
18472echo "${ECHO_T}$ac_res" >&6; }
18473if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018474 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018476_ACEOF
18477
18478fi
18479done
18480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018481
18482
18483
Reid Spencerb90645c2007-02-16 19:17:20 +000018484for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018485do
18486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18487{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18489if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18491else
18492 cat >conftest.$ac_ext <<_ACEOF
18493/* confdefs.h. */
18494_ACEOF
18495cat confdefs.h >>conftest.$ac_ext
18496cat >>conftest.$ac_ext <<_ACEOF
18497/* end confdefs.h. */
18498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18500#define $ac_func innocuous_$ac_func
18501
18502/* System header to define __stub macros and hopefully few prototypes,
18503 which can conflict with char $ac_func (); below.
18504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18505 <limits.h> exists even on freestanding compilers. */
18506
18507#ifdef __STDC__
18508# include <limits.h>
18509#else
18510# include <assert.h>
18511#endif
18512
18513#undef $ac_func
18514
18515/* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18518#ifdef __cplusplus
18519extern "C"
18520#endif
18521char $ac_func ();
18522/* The GNU C library defines this for functions which it implements
18523 to always fail with ENOSYS. Some functions are actually named
18524 something starting with __ and the normal name is an alias. */
18525#if defined __stub_$ac_func || defined __stub___$ac_func
18526choke me
18527#endif
18528
18529int
18530main ()
18531{
18532return $ac_func ();
18533 ;
18534 return 0;
18535}
18536_ACEOF
18537rm -f conftest.$ac_objext conftest$ac_exeext
18538if { (ac_try="$ac_link"
18539case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542esac
18543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_link") 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18555esac
18556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18565esac
18566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 eval "$as_ac_var=yes"
18572else
18573 echo "$as_me: failed program was:" >&5
18574sed 's/^/| /' conftest.$ac_ext >&5
18575
18576 eval "$as_ac_var=no"
18577fi
18578
18579rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18581fi
18582ac_res=`eval echo '${'$as_ac_var'}'`
18583 { echo "$as_me:$LINENO: result: $ac_res" >&5
18584echo "${ECHO_T}$ac_res" >&6; }
18585if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018586 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018588_ACEOF
18589
18590fi
18591done
18592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018593
18594
18595
18596
18597
Eric Christophere4291822010-04-16 05:14:21 +000018598
18599for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018600do
18601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18602{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
18606else
18607 cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18615#define $ac_func innocuous_$ac_func
18616
18617/* System header to define __stub macros and hopefully few prototypes,
18618 which can conflict with char $ac_func (); below.
18619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18620 <limits.h> exists even on freestanding compilers. */
18621
18622#ifdef __STDC__
18623# include <limits.h>
18624#else
18625# include <assert.h>
18626#endif
18627
18628#undef $ac_func
18629
18630/* Override any GCC internal prototype to avoid an error.
18631 Use char because int might match the return type of a GCC
18632 builtin and then its argument prototype would still apply. */
18633#ifdef __cplusplus
18634extern "C"
18635#endif
18636char $ac_func ();
18637/* The GNU C library defines this for functions which it implements
18638 to always fail with ENOSYS. Some functions are actually named
18639 something starting with __ and the normal name is an alias. */
18640#if defined __stub_$ac_func || defined __stub___$ac_func
18641choke me
18642#endif
18643
18644int
18645main ()
18646{
18647return $ac_func ();
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext conftest$ac_exeext
18653if { (ac_try="$ac_link"
18654case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657esac
18658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670esac
18671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest$ac_exeext'
18677 { (case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18680esac
18681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_try") 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 eval "$as_ac_var=yes"
18687else
18688 echo "$as_me: failed program was:" >&5
18689sed 's/^/| /' conftest.$ac_ext >&5
18690
18691 eval "$as_ac_var=no"
18692fi
18693
18694rm -f core conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext conftest.$ac_ext
18696fi
18697ac_res=`eval echo '${'$as_ac_var'}'`
18698 { echo "$as_me:$LINENO: result: $ac_res" >&5
18699echo "${ECHO_T}$ac_res" >&6; }
18700if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018701 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018702#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018703_ACEOF
18704
18705fi
18706done
Reid Spencerdf3be822006-01-23 08:15:53 +000018707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018708
18709
18710
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018711for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018712do
18713as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18714{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18716if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718else
18719 cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h. */
18725/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18727#define $ac_func innocuous_$ac_func
18728
18729/* System header to define __stub macros and hopefully few prototypes,
18730 which can conflict with char $ac_func (); below.
18731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18732 <limits.h> exists even on freestanding compilers. */
18733
18734#ifdef __STDC__
18735# include <limits.h>
18736#else
18737# include <assert.h>
18738#endif
18739
18740#undef $ac_func
18741
18742/* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18745#ifdef __cplusplus
18746extern "C"
18747#endif
18748char $ac_func ();
18749/* The GNU C library defines this for functions which it implements
18750 to always fail with ENOSYS. Some functions are actually named
18751 something starting with __ and the normal name is an alias. */
18752#if defined __stub_$ac_func || defined __stub___$ac_func
18753choke me
18754#endif
18755
18756int
18757main ()
18758{
18759return $ac_func ();
18760 ;
18761 return 0;
18762}
18763_ACEOF
18764rm -f conftest.$ac_objext conftest$ac_exeext
18765if { (ac_try="$ac_link"
18766case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18769esac
18770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_link") 2>conftest.er1
18772 ac_status=$?
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
18778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18779 { (case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782esac
18783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_try") 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try='test -s conftest$ac_exeext'
18789 { (case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18792esac
18793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_try") 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 eval "$as_ac_var=yes"
18799else
18800 echo "$as_me: failed program was:" >&5
18801sed 's/^/| /' conftest.$ac_ext >&5
18802
18803 eval "$as_ac_var=no"
18804fi
18805
18806rm -f core conftest.err conftest.$ac_objext \
18807 conftest$ac_exeext conftest.$ac_ext
18808fi
18809ac_res=`eval echo '${'$as_ac_var'}'`
18810 { echo "$as_me:$LINENO: result: $ac_res" >&5
18811echo "${ECHO_T}$ac_res" >&6; }
18812if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018813 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018815_ACEOF
18816
18817fi
18818done
18819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018820
18821
18822
18823
Chris Lattner511f11d2005-11-14 07:25:50 +000018824for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018825do
18826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18827{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18829if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831else
18832 cat >conftest.$ac_ext <<_ACEOF
18833/* confdefs.h. */
18834_ACEOF
18835cat confdefs.h >>conftest.$ac_ext
18836cat >>conftest.$ac_ext <<_ACEOF
18837/* end confdefs.h. */
18838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18840#define $ac_func innocuous_$ac_func
18841
18842/* System header to define __stub macros and hopefully few prototypes,
18843 which can conflict with char $ac_func (); below.
18844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18845 <limits.h> exists even on freestanding compilers. */
18846
18847#ifdef __STDC__
18848# include <limits.h>
18849#else
18850# include <assert.h>
18851#endif
18852
18853#undef $ac_func
18854
18855/* Override any GCC internal prototype to avoid an error.
18856 Use char because int might match the return type of a GCC
18857 builtin and then its argument prototype would still apply. */
18858#ifdef __cplusplus
18859extern "C"
18860#endif
18861char $ac_func ();
18862/* The GNU C library defines this for functions which it implements
18863 to always fail with ENOSYS. Some functions are actually named
18864 something starting with __ and the normal name is an alias. */
18865#if defined __stub_$ac_func || defined __stub___$ac_func
18866choke me
18867#endif
18868
18869int
18870main ()
18871{
18872return $ac_func ();
18873 ;
18874 return 0;
18875}
18876_ACEOF
18877rm -f conftest.$ac_objext conftest$ac_exeext
18878if { (ac_try="$ac_link"
18879case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882esac
18883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_link") 2>conftest.er1
18885 ac_status=$?
18886 grep -v '^ *+' conftest.er1 >conftest.err
18887 rm -f conftest.er1
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18892 { (case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895esac
18896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest$ac_exeext'
18902 { (case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18905esac
18906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_try") 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 eval "$as_ac_var=yes"
18912else
18913 echo "$as_me: failed program was:" >&5
18914sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 eval "$as_ac_var=no"
18917fi
18918
18919rm -f core conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
18921fi
18922ac_res=`eval echo '${'$as_ac_var'}'`
18923 { echo "$as_me:$LINENO: result: $ac_res" >&5
18924echo "${ECHO_T}$ac_res" >&6; }
18925if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018926 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018928_ACEOF
18929
18930fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018931done
John Criswell7a73b802003-06-30 21:59:07 +000018932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018933
18934
18935
18936
Daniel Dunbar3e462932011-02-03 02:40:02 +000018937
18938for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018939do
18940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945else
18946 cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18954#define $ac_func innocuous_$ac_func
18955
18956/* System header to define __stub macros and hopefully few prototypes,
18957 which can conflict with char $ac_func (); below.
18958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18959 <limits.h> exists even on freestanding compilers. */
18960
18961#ifdef __STDC__
18962# include <limits.h>
18963#else
18964# include <assert.h>
18965#endif
18966
18967#undef $ac_func
18968
18969/* Override any GCC internal prototype to avoid an error.
18970 Use char because int might match the return type of a GCC
18971 builtin and then its argument prototype would still apply. */
18972#ifdef __cplusplus
18973extern "C"
18974#endif
18975char $ac_func ();
18976/* The GNU C library defines this for functions which it implements
18977 to always fail with ENOSYS. Some functions are actually named
18978 something starting with __ and the normal name is an alias. */
18979#if defined __stub_$ac_func || defined __stub___$ac_func
18980choke me
18981#endif
18982
18983int
18984main ()
18985{
18986return $ac_func ();
18987 ;
18988 return 0;
18989}
18990_ACEOF
18991rm -f conftest.$ac_objext conftest$ac_exeext
18992if { (ac_try="$ac_link"
18993case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996esac
18997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_link") 2>conftest.er1
18999 ac_status=$?
19000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
19005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009esac
19010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try='test -s conftest$ac_exeext'
19016 { (case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019esac
19020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_try") 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; }; then
19025 eval "$as_ac_var=yes"
19026else
19027 echo "$as_me: failed program was:" >&5
19028sed 's/^/| /' conftest.$ac_ext >&5
19029
19030 eval "$as_ac_var=no"
19031fi
19032
19033rm -f core conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext conftest.$ac_ext
19035fi
19036ac_res=`eval echo '${'$as_ac_var'}'`
19037 { echo "$as_me:$LINENO: result: $ac_res" >&5
19038echo "${ECHO_T}$ac_res" >&6; }
19039if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019040 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019042_ACEOF
19043
19044fi
19045done
19046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019047{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19048echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19049if test "${llvm_cv_c_printf_a+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019051else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019052 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019053ac_cpp='$CPP $CPPFLAGS'
19054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19056ac_compiler_gnu=$ac_cv_c_compiler_gnu
19057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019058 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019059 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019061 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019063 /* confdefs.h. */
19064_ACEOF
19065cat confdefs.h >>conftest.$ac_ext
19066cat >>conftest.$ac_ext <<_ACEOF
19067/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019068
John Criswella0137d32003-10-13 16:22:01 +000019069#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019070#include <stdlib.h>
19071
John Criswella0137d32003-10-13 16:22:01 +000019072int
19073main ()
19074{
19075
Reid Spencer2706f8c2004-09-19 23:53:36 +000019076volatile double A, B;
19077char Buffer[100];
19078A = 1;
19079A /= 10.0;
19080sprintf(Buffer, "%a", A);
19081B = atof(Buffer);
19082if (A != B)
19083 return (1);
19084if (A != 0x1.999999999999ap-4)
19085 return (1);
19086return (0);
John Criswella0137d32003-10-13 16:22:01 +000019087 ;
19088 return 0;
19089}
19090_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019091rm -f conftest$ac_exeext
19092if { (ac_try="$ac_link"
19093case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_link") 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19102 { (case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19105esac
19106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019111 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019113 echo "$as_me: program exited with status $ac_status" >&5
19114echo "$as_me: failed program was:" >&5
19115sed 's/^/| /' conftest.$ac_ext >&5
19116
19117( exit $ac_status )
19118llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019120rm -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 +000019121fi
Reid Spencera773bd52006-08-04 18:18:08 +000019122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019123
Reid Spencer2706f8c2004-09-19 23:53:36 +000019124 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019125ac_cpp='$CPP $CPPFLAGS'
19126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19128ac_compiler_gnu=$ac_cv_c_compiler_gnu
19129
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019131{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19132echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019133 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019135cat >>confdefs.h <<\_ACEOF
19136#define HAVE_PRINTF_A 1
19137_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019138
Reid Spencer2706f8c2004-09-19 23:53:36 +000019139 fi
John Criswella0137d32003-10-13 16:22:01 +000019140
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019142{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19143echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19144if test "${ac_cv_func_rand48+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019146else
Reid Spencera773bd52006-08-04 18:18:08 +000019147 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019148ac_cpp='$CXXCPP $CPPFLAGS'
19149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019153 cat >conftest.$ac_ext <<_ACEOF
19154/* confdefs.h. */
19155_ACEOF
19156cat confdefs.h >>conftest.$ac_ext
19157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019158/* end confdefs.h. */
19159#include <stdlib.h>
19160int
19161main ()
19162{
19163srand48(0);lrand48();drand48();
19164 ;
19165 return 0;
19166}
19167_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019168rm -f conftest.$ac_objext
19169if { (ac_try="$ac_compile"
19170case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173esac
19174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_compile") 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19183 { (case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19186esac
19187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; } &&
19192 { ac_try='test -s conftest.$ac_objext'
19193 { (case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19196esac
19197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_try") 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019202 ac_cv_func_rand48=yes
19203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019204 echo "$as_me: failed program was:" >&5
19205sed 's/^/| /' conftest.$ac_ext >&5
19206
19207 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019209
Reid Spencera773bd52006-08-04 18:18:08 +000019210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019211 ac_ext=c
19212ac_cpp='$CPP $CPPFLAGS'
19213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215ac_compiler_gnu=$ac_cv_c_compiler_gnu
19216
19217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019218{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19219echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019220
19221if test "$ac_cv_func_rand48" = "yes" ; then
19222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019223cat >>confdefs.h <<\_ACEOF
19224#define HAVE_RAND48 1
19225_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019226
19227fi
John Criswell0021c312004-02-13 21:57:29 +000019228
19229
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000019230{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19231echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19232if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234else
19235 cat >conftest.$ac_ext <<_ACEOF
19236/* confdefs.h. */
19237_ACEOF
19238cat confdefs.h >>conftest.$ac_ext
19239cat >>conftest.$ac_ext <<_ACEOF
19240/* end confdefs.h. */
19241$ac_includes_default
19242int
19243main ()
19244{
19245#ifndef strerror_s
19246 char *p = (char *) strerror_s;
19247 return !p;
19248#endif
19249
19250 ;
19251 return 0;
19252}
19253_ACEOF
19254rm -f conftest.$ac_objext
19255if { (ac_try="$ac_compile"
19256case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259esac
19260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19269 { (case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19272esac
19273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_try") 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; } &&
19278 { ac_try='test -s conftest.$ac_objext'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282esac
19283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_cv_have_decl_strerror_s=yes
19289else
19290 echo "$as_me: failed program was:" >&5
19291sed 's/^/| /' conftest.$ac_ext >&5
19292
19293 ac_cv_have_decl_strerror_s=no
19294fi
19295
19296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19297fi
19298{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19299echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19300if test $ac_cv_have_decl_strerror_s = yes; then
19301
19302cat >>confdefs.h <<_ACEOF
19303#define HAVE_DECL_STRERROR_S 1
19304_ACEOF
19305
19306
19307else
19308 cat >>confdefs.h <<_ACEOF
19309#define HAVE_DECL_STRERROR_S 0
19310_ACEOF
19311
19312
19313fi
19314
19315
19316
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019317if test "$llvm_cv_os_type" = "MingW" ; then
19318 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19319echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19320if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322else
19323 ac_check_lib_save_LIBS=$LIBS
19324LIBS="-lgcc $LIBS"
19325cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h. */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h. */
19331
19332/* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19335#ifdef __cplusplus
19336extern "C"
19337#endif
19338char _alloca ();
19339int
19340main ()
19341{
19342return _alloca ();
19343 ;
19344 return 0;
19345}
19346_ACEOF
19347rm -f conftest.$ac_objext conftest$ac_exeext
19348if { (ac_try="$ac_link"
19349case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352esac
19353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19362 { (case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19365esac
19366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_try") 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest$ac_exeext'
19372 { (case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19375esac
19376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_try") 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 ac_cv_lib_gcc__alloca=yes
19382else
19383 echo "$as_me: failed program was:" >&5
19384sed 's/^/| /' conftest.$ac_ext >&5
19385
19386 ac_cv_lib_gcc__alloca=no
19387fi
19388
19389rm -f core conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
19391LIBS=$ac_check_lib_save_LIBS
19392fi
19393{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19394echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19395if test $ac_cv_lib_gcc__alloca = yes; then
19396
19397cat >>confdefs.h <<\_ACEOF
19398#define HAVE__ALLOCA 1
19399_ACEOF
19400
19401fi
19402
19403 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19404echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19405if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407else
19408 ac_check_lib_save_LIBS=$LIBS
19409LIBS="-lgcc $LIBS"
19410cat >conftest.$ac_ext <<_ACEOF
19411/* confdefs.h. */
19412_ACEOF
19413cat confdefs.h >>conftest.$ac_ext
19414cat >>conftest.$ac_ext <<_ACEOF
19415/* end confdefs.h. */
19416
19417/* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19420#ifdef __cplusplus
19421extern "C"
19422#endif
19423char __alloca ();
19424int
19425main ()
19426{
19427return __alloca ();
19428 ;
19429 return 0;
19430}
19431_ACEOF
19432rm -f conftest.$ac_objext conftest$ac_exeext
19433if { (ac_try="$ac_link"
19434case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437esac
19438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
19446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19447 { (case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19450esac
19451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_try") 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; } &&
19456 { ac_try='test -s conftest$ac_exeext'
19457 { (case "(($ac_try" in
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19460esac
19461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462 (eval "$ac_try") 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_cv_lib_gcc___alloca=yes
19467else
19468 echo "$as_me: failed program was:" >&5
19469sed 's/^/| /' conftest.$ac_ext >&5
19470
19471 ac_cv_lib_gcc___alloca=no
19472fi
19473
19474rm -f core conftest.err conftest.$ac_objext \
19475 conftest$ac_exeext conftest.$ac_ext
19476LIBS=$ac_check_lib_save_LIBS
19477fi
19478{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19479echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19480if test $ac_cv_lib_gcc___alloca = yes; then
19481
19482cat >>confdefs.h <<\_ACEOF
19483#define HAVE___ALLOCA 1
19484_ACEOF
19485
19486fi
19487
19488 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19489echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19490if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492else
19493 ac_check_lib_save_LIBS=$LIBS
19494LIBS="-lgcc $LIBS"
19495cat >conftest.$ac_ext <<_ACEOF
19496/* confdefs.h. */
19497_ACEOF
19498cat confdefs.h >>conftest.$ac_ext
19499cat >>conftest.$ac_ext <<_ACEOF
19500/* end confdefs.h. */
19501
19502/* Override any GCC internal prototype to avoid an error.
19503 Use char because int might match the return type of a GCC
19504 builtin and then its argument prototype would still apply. */
19505#ifdef __cplusplus
19506extern "C"
19507#endif
19508char __chkstk ();
19509int
19510main ()
19511{
19512return __chkstk ();
19513 ;
19514 return 0;
19515}
19516_ACEOF
19517rm -f conftest.$ac_objext conftest$ac_exeext
19518if { (ac_try="$ac_link"
19519case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522esac
19523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_link") 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19532 { (case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19535esac
19536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_try") 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest$ac_exeext'
19542 { (case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19545esac
19546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_try") 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 ac_cv_lib_gcc___chkstk=yes
19552else
19553 echo "$as_me: failed program was:" >&5
19554sed 's/^/| /' conftest.$ac_ext >&5
19555
19556 ac_cv_lib_gcc___chkstk=no
19557fi
19558
19559rm -f core conftest.err conftest.$ac_objext \
19560 conftest$ac_exeext conftest.$ac_ext
19561LIBS=$ac_check_lib_save_LIBS
19562fi
19563{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19564echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19565if test $ac_cv_lib_gcc___chkstk = yes; then
19566
19567cat >>confdefs.h <<\_ACEOF
19568#define HAVE___CHKSTK 1
19569_ACEOF
19570
19571fi
19572
19573 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19574echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19575if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577else
19578 ac_check_lib_save_LIBS=$LIBS
19579LIBS="-lgcc $LIBS"
19580cat >conftest.$ac_ext <<_ACEOF
19581/* confdefs.h. */
19582_ACEOF
19583cat confdefs.h >>conftest.$ac_ext
19584cat >>conftest.$ac_ext <<_ACEOF
19585/* end confdefs.h. */
19586
19587/* Override any GCC internal prototype to avoid an error.
19588 Use char because int might match the return type of a GCC
19589 builtin and then its argument prototype would still apply. */
19590#ifdef __cplusplus
19591extern "C"
19592#endif
19593char ___chkstk ();
19594int
19595main ()
19596{
19597return ___chkstk ();
19598 ;
19599 return 0;
19600}
19601_ACEOF
19602rm -f conftest.$ac_objext conftest$ac_exeext
19603if { (ac_try="$ac_link"
19604case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19607esac
19608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_link") 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } &&
19616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19617 { (case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620esac
19621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_try") 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; } &&
19626 { ac_try='test -s conftest$ac_exeext'
19627 { (case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19630esac
19631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_try") 2>&5
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_cv_lib_gcc____chkstk=yes
19637else
19638 echo "$as_me: failed program was:" >&5
19639sed 's/^/| /' conftest.$ac_ext >&5
19640
19641 ac_cv_lib_gcc____chkstk=no
19642fi
19643
19644rm -f core conftest.err conftest.$ac_objext \
19645 conftest$ac_exeext conftest.$ac_ext
19646LIBS=$ac_check_lib_save_LIBS
19647fi
19648{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19649echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19650if test $ac_cv_lib_gcc____chkstk = yes; then
19651
19652cat >>confdefs.h <<\_ACEOF
19653#define HAVE____CHKSTK 1
19654_ACEOF
19655
19656fi
19657
19658
19659 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19660echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19661if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663else
19664 ac_check_lib_save_LIBS=$LIBS
19665LIBS="-lgcc $LIBS"
19666cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
19672
19673/* Override any GCC internal prototype to avoid an error.
19674 Use char because int might match the return type of a GCC
19675 builtin and then its argument prototype would still apply. */
19676#ifdef __cplusplus
19677extern "C"
19678#endif
19679char __ashldi3 ();
19680int
19681main ()
19682{
19683return __ashldi3 ();
19684 ;
19685 return 0;
19686}
19687_ACEOF
19688rm -f conftest.$ac_objext conftest$ac_exeext
19689if { (ac_try="$ac_link"
19690case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693esac
19694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19703 { (case "(($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_try") 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; } &&
19712 { ac_try='test -s conftest$ac_exeext'
19713 { (case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716esac
19717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_try") 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; }; then
19722 ac_cv_lib_gcc___ashldi3=yes
19723else
19724 echo "$as_me: failed program was:" >&5
19725sed 's/^/| /' conftest.$ac_ext >&5
19726
19727 ac_cv_lib_gcc___ashldi3=no
19728fi
19729
19730rm -f core conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
19732LIBS=$ac_check_lib_save_LIBS
19733fi
19734{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19735echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19736if test $ac_cv_lib_gcc___ashldi3 = yes; then
19737
19738cat >>confdefs.h <<\_ACEOF
19739#define HAVE___ASHLDI3 1
19740_ACEOF
19741
19742fi
19743
19744 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19745echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19746if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748else
19749 ac_check_lib_save_LIBS=$LIBS
19750LIBS="-lgcc $LIBS"
19751cat >conftest.$ac_ext <<_ACEOF
19752/* confdefs.h. */
19753_ACEOF
19754cat confdefs.h >>conftest.$ac_ext
19755cat >>conftest.$ac_ext <<_ACEOF
19756/* end confdefs.h. */
19757
19758/* Override any GCC internal prototype to avoid an error.
19759 Use char because int might match the return type of a GCC
19760 builtin and then its argument prototype would still apply. */
19761#ifdef __cplusplus
19762extern "C"
19763#endif
19764char __ashrdi3 ();
19765int
19766main ()
19767{
19768return __ashrdi3 ();
19769 ;
19770 return 0;
19771}
19772_ACEOF
19773rm -f conftest.$ac_objext conftest$ac_exeext
19774if { (ac_try="$ac_link"
19775case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19778esac
19779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_link") 2>conftest.er1
19781 ac_status=$?
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19788 { (case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791esac
19792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_try") 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest$ac_exeext'
19798 { (case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19801esac
19802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_try") 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_lib_gcc___ashrdi3=yes
19808else
19809 echo "$as_me: failed program was:" >&5
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
19812 ac_cv_lib_gcc___ashrdi3=no
19813fi
19814
19815rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19817LIBS=$ac_check_lib_save_LIBS
19818fi
19819{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19820echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19821if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19822
19823cat >>confdefs.h <<\_ACEOF
19824#define HAVE___ASHRDI3 1
19825_ACEOF
19826
19827fi
19828
19829 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19830echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19831if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833else
19834 ac_check_lib_save_LIBS=$LIBS
19835LIBS="-lgcc $LIBS"
19836cat >conftest.$ac_ext <<_ACEOF
19837/* confdefs.h. */
19838_ACEOF
19839cat confdefs.h >>conftest.$ac_ext
19840cat >>conftest.$ac_ext <<_ACEOF
19841/* end confdefs.h. */
19842
19843/* Override any GCC internal prototype to avoid an error.
19844 Use char because int might match the return type of a GCC
19845 builtin and then its argument prototype would still apply. */
19846#ifdef __cplusplus
19847extern "C"
19848#endif
19849char __divdi3 ();
19850int
19851main ()
19852{
19853return __divdi3 ();
19854 ;
19855 return 0;
19856}
19857_ACEOF
19858rm -f conftest.$ac_objext conftest$ac_exeext
19859if { (ac_try="$ac_link"
19860case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863esac
19864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_link") 2>conftest.er1
19866 ac_status=$?
19867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } &&
19872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19873 { (case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19876esac
19877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_try") 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest$ac_exeext'
19883 { (case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886esac
19887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_try") 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 ac_cv_lib_gcc___divdi3=yes
19893else
19894 echo "$as_me: failed program was:" >&5
19895sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 ac_cv_lib_gcc___divdi3=no
19898fi
19899
19900rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
19902LIBS=$ac_check_lib_save_LIBS
19903fi
19904{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19905echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19906if test $ac_cv_lib_gcc___divdi3 = yes; then
19907
19908cat >>confdefs.h <<\_ACEOF
19909#define HAVE___DIVDI3 1
19910_ACEOF
19911
19912fi
19913
19914 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19915echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19916if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918else
19919 ac_check_lib_save_LIBS=$LIBS
19920LIBS="-lgcc $LIBS"
19921cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
19926/* end confdefs.h. */
19927
19928/* Override any GCC internal prototype to avoid an error.
19929 Use char because int might match the return type of a GCC
19930 builtin and then its argument prototype would still apply. */
19931#ifdef __cplusplus
19932extern "C"
19933#endif
19934char __fixdfdi ();
19935int
19936main ()
19937{
19938return __fixdfdi ();
19939 ;
19940 return 0;
19941}
19942_ACEOF
19943rm -f conftest.$ac_objext conftest$ac_exeext
19944if { (ac_try="$ac_link"
19945case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948esac
19949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_link") 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
19957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19958 { (case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961esac
19962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_try") 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try='test -s conftest$ac_exeext'
19968 { (case "(($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_try") 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_cv_lib_gcc___fixdfdi=yes
19978else
19979 echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981
19982 ac_cv_lib_gcc___fixdfdi=no
19983fi
19984
19985rm -f core conftest.err conftest.$ac_objext \
19986 conftest$ac_exeext conftest.$ac_ext
19987LIBS=$ac_check_lib_save_LIBS
19988fi
19989{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19990echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19991if test $ac_cv_lib_gcc___fixdfdi = yes; then
19992
19993cat >>confdefs.h <<\_ACEOF
19994#define HAVE___FIXDFDI 1
19995_ACEOF
19996
19997fi
19998
19999 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20000echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20001if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003else
20004 ac_check_lib_save_LIBS=$LIBS
20005LIBS="-lgcc $LIBS"
20006cat >conftest.$ac_ext <<_ACEOF
20007/* confdefs.h. */
20008_ACEOF
20009cat confdefs.h >>conftest.$ac_ext
20010cat >>conftest.$ac_ext <<_ACEOF
20011/* end confdefs.h. */
20012
20013/* Override any GCC internal prototype to avoid an error.
20014 Use char because int might match the return type of a GCC
20015 builtin and then its argument prototype would still apply. */
20016#ifdef __cplusplus
20017extern "C"
20018#endif
20019char __fixsfdi ();
20020int
20021main ()
20022{
20023return __fixsfdi ();
20024 ;
20025 return 0;
20026}
20027_ACEOF
20028rm -f conftest.$ac_objext conftest$ac_exeext
20029if { (ac_try="$ac_link"
20030case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20033esac
20034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_link") 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20043 { (case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046esac
20047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest$ac_exeext'
20053 { (case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056esac
20057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_try") 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 ac_cv_lib_gcc___fixsfdi=yes
20063else
20064 echo "$as_me: failed program was:" >&5
20065sed 's/^/| /' conftest.$ac_ext >&5
20066
20067 ac_cv_lib_gcc___fixsfdi=no
20068fi
20069
20070rm -f core conftest.err conftest.$ac_objext \
20071 conftest$ac_exeext conftest.$ac_ext
20072LIBS=$ac_check_lib_save_LIBS
20073fi
20074{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20075echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20076if test $ac_cv_lib_gcc___fixsfdi = yes; then
20077
20078cat >>confdefs.h <<\_ACEOF
20079#define HAVE___FIXSFDI 1
20080_ACEOF
20081
20082fi
20083
20084 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20085echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20086if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20088else
20089 ac_check_lib_save_LIBS=$LIBS
20090LIBS="-lgcc $LIBS"
20091cat >conftest.$ac_ext <<_ACEOF
20092/* confdefs.h. */
20093_ACEOF
20094cat confdefs.h >>conftest.$ac_ext
20095cat >>conftest.$ac_ext <<_ACEOF
20096/* end confdefs.h. */
20097
20098/* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20101#ifdef __cplusplus
20102extern "C"
20103#endif
20104char __floatdidf ();
20105int
20106main ()
20107{
20108return __floatdidf ();
20109 ;
20110 return 0;
20111}
20112_ACEOF
20113rm -f conftest.$ac_objext conftest$ac_exeext
20114if { (ac_try="$ac_link"
20115case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118esac
20119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_link") 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
20127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20128 { (case "(($ac_try" in
20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20131esac
20132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_try") 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest$ac_exeext'
20138 { (case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141esac
20142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_try") 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 ac_cv_lib_gcc___floatdidf=yes
20148else
20149 echo "$as_me: failed program was:" >&5
20150sed 's/^/| /' conftest.$ac_ext >&5
20151
20152 ac_cv_lib_gcc___floatdidf=no
20153fi
20154
20155rm -f core conftest.err conftest.$ac_objext \
20156 conftest$ac_exeext conftest.$ac_ext
20157LIBS=$ac_check_lib_save_LIBS
20158fi
20159{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20160echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20161if test $ac_cv_lib_gcc___floatdidf = yes; then
20162
20163cat >>confdefs.h <<\_ACEOF
20164#define HAVE___FLOATDIDF 1
20165_ACEOF
20166
20167fi
20168
20169 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20170echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20171if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20173else
20174 ac_check_lib_save_LIBS=$LIBS
20175LIBS="-lgcc $LIBS"
20176cat >conftest.$ac_ext <<_ACEOF
20177/* confdefs.h. */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h. */
20182
20183/* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20186#ifdef __cplusplus
20187extern "C"
20188#endif
20189char __lshrdi3 ();
20190int
20191main ()
20192{
20193return __lshrdi3 ();
20194 ;
20195 return 0;
20196}
20197_ACEOF
20198rm -f conftest.$ac_objext conftest$ac_exeext
20199if { (ac_try="$ac_link"
20200case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203esac
20204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_link") 2>conftest.er1
20206 ac_status=$?
20207 grep -v '^ *+' conftest.er1 >conftest.err
20208 rm -f conftest.er1
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20213 { (case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20216esac
20217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218 (eval "$ac_try") 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest$ac_exeext'
20223 { (case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20226esac
20227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_try") 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; }; then
20232 ac_cv_lib_gcc___lshrdi3=yes
20233else
20234 echo "$as_me: failed program was:" >&5
20235sed 's/^/| /' conftest.$ac_ext >&5
20236
20237 ac_cv_lib_gcc___lshrdi3=no
20238fi
20239
20240rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20242LIBS=$ac_check_lib_save_LIBS
20243fi
20244{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20245echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20246if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20247
20248cat >>confdefs.h <<\_ACEOF
20249#define HAVE___LSHRDI3 1
20250_ACEOF
20251
20252fi
20253
20254 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20255echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20256if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20258else
20259 ac_check_lib_save_LIBS=$LIBS
20260LIBS="-lgcc $LIBS"
20261cat >conftest.$ac_ext <<_ACEOF
20262/* confdefs.h. */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h. */
20267
20268/* Override any GCC internal prototype to avoid an error.
20269 Use char because int might match the return type of a GCC
20270 builtin and then its argument prototype would still apply. */
20271#ifdef __cplusplus
20272extern "C"
20273#endif
20274char __moddi3 ();
20275int
20276main ()
20277{
20278return __moddi3 ();
20279 ;
20280 return 0;
20281}
20282_ACEOF
20283rm -f conftest.$ac_objext conftest$ac_exeext
20284if { (ac_try="$ac_link"
20285case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288esac
20289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_link") 2>conftest.er1
20291 ac_status=$?
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } &&
20297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20298 { (case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20301esac
20302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_try") 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest$ac_exeext'
20308 { (case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20311esac
20312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_try") 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 ac_cv_lib_gcc___moddi3=yes
20318else
20319 echo "$as_me: failed program was:" >&5
20320sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 ac_cv_lib_gcc___moddi3=no
20323fi
20324
20325rm -f core conftest.err conftest.$ac_objext \
20326 conftest$ac_exeext conftest.$ac_ext
20327LIBS=$ac_check_lib_save_LIBS
20328fi
20329{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20330echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20331if test $ac_cv_lib_gcc___moddi3 = yes; then
20332
20333cat >>confdefs.h <<\_ACEOF
20334#define HAVE___MODDI3 1
20335_ACEOF
20336
20337fi
20338
20339 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20340echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20341if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20343else
20344 ac_check_lib_save_LIBS=$LIBS
20345LIBS="-lgcc $LIBS"
20346cat >conftest.$ac_ext <<_ACEOF
20347/* confdefs.h. */
20348_ACEOF
20349cat confdefs.h >>conftest.$ac_ext
20350cat >>conftest.$ac_ext <<_ACEOF
20351/* end confdefs.h. */
20352
20353/* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20356#ifdef __cplusplus
20357extern "C"
20358#endif
20359char __udivdi3 ();
20360int
20361main ()
20362{
20363return __udivdi3 ();
20364 ;
20365 return 0;
20366}
20367_ACEOF
20368rm -f conftest.$ac_objext conftest$ac_exeext
20369if { (ac_try="$ac_link"
20370case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373esac
20374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_link") 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20383 { (case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20386esac
20387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest$ac_exeext'
20393 { (case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396esac
20397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_try") 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_cv_lib_gcc___udivdi3=yes
20403else
20404 echo "$as_me: failed program was:" >&5
20405sed 's/^/| /' conftest.$ac_ext >&5
20406
20407 ac_cv_lib_gcc___udivdi3=no
20408fi
20409
20410rm -f core conftest.err conftest.$ac_objext \
20411 conftest$ac_exeext conftest.$ac_ext
20412LIBS=$ac_check_lib_save_LIBS
20413fi
20414{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20415echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20416if test $ac_cv_lib_gcc___udivdi3 = yes; then
20417
20418cat >>confdefs.h <<\_ACEOF
20419#define HAVE___UDIVDI3 1
20420_ACEOF
20421
20422fi
20423
20424 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20425echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20426if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20428else
20429 ac_check_lib_save_LIBS=$LIBS
20430LIBS="-lgcc $LIBS"
20431cat >conftest.$ac_ext <<_ACEOF
20432/* confdefs.h. */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h. */
20437
20438/* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20441#ifdef __cplusplus
20442extern "C"
20443#endif
20444char __umoddi3 ();
20445int
20446main ()
20447{
20448return __umoddi3 ();
20449 ;
20450 return 0;
20451}
20452_ACEOF
20453rm -f conftest.$ac_objext conftest$ac_exeext
20454if { (ac_try="$ac_link"
20455case "(($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_link") 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20468 { (case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471esac
20472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_try") 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest$ac_exeext'
20478 { (case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20481esac
20482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_try") 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 ac_cv_lib_gcc___umoddi3=yes
20488else
20489 echo "$as_me: failed program was:" >&5
20490sed 's/^/| /' conftest.$ac_ext >&5
20491
20492 ac_cv_lib_gcc___umoddi3=no
20493fi
20494
20495rm -f core conftest.err conftest.$ac_objext \
20496 conftest$ac_exeext conftest.$ac_ext
20497LIBS=$ac_check_lib_save_LIBS
20498fi
20499{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20500echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20501if test $ac_cv_lib_gcc___umoddi3 = yes; then
20502
20503cat >>confdefs.h <<\_ACEOF
20504#define HAVE___UMODDI3 1
20505_ACEOF
20506
20507fi
20508
20509
20510 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20511echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20512if test "${ac_cv_lib_gcc___main+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514else
20515 ac_check_lib_save_LIBS=$LIBS
20516LIBS="-lgcc $LIBS"
20517cat >conftest.$ac_ext <<_ACEOF
20518/* confdefs.h. */
20519_ACEOF
20520cat confdefs.h >>conftest.$ac_ext
20521cat >>conftest.$ac_ext <<_ACEOF
20522/* end confdefs.h. */
20523
20524/* Override any GCC internal prototype to avoid an error.
20525 Use char because int might match the return type of a GCC
20526 builtin and then its argument prototype would still apply. */
20527#ifdef __cplusplus
20528extern "C"
20529#endif
20530char __main ();
20531int
20532main ()
20533{
20534return __main ();
20535 ;
20536 return 0;
20537}
20538_ACEOF
20539rm -f conftest.$ac_objext conftest$ac_exeext
20540if { (ac_try="$ac_link"
20541case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544esac
20545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_link") 2>conftest.er1
20547 ac_status=$?
20548 grep -v '^ *+' conftest.er1 >conftest.err
20549 rm -f conftest.er1
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } &&
20553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20554 { (case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557esac
20558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_try") 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; } &&
20563 { ac_try='test -s conftest$ac_exeext'
20564 { (case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567esac
20568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_try") 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_cv_lib_gcc___main=yes
20574else
20575 echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 ac_cv_lib_gcc___main=no
20579fi
20580
20581rm -f core conftest.err conftest.$ac_objext \
20582 conftest$ac_exeext conftest.$ac_ext
20583LIBS=$ac_check_lib_save_LIBS
20584fi
20585{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20586echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20587if test $ac_cv_lib_gcc___main = yes; then
20588
20589cat >>confdefs.h <<\_ACEOF
20590#define HAVE___MAIN 1
20591_ACEOF
20592
20593fi
20594
20595 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20596echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20597if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599else
20600 ac_check_lib_save_LIBS=$LIBS
20601LIBS="-lgcc $LIBS"
20602cat >conftest.$ac_ext <<_ACEOF
20603/* confdefs.h. */
20604_ACEOF
20605cat confdefs.h >>conftest.$ac_ext
20606cat >>conftest.$ac_ext <<_ACEOF
20607/* end confdefs.h. */
20608
20609/* Override any GCC internal prototype to avoid an error.
20610 Use char because int might match the return type of a GCC
20611 builtin and then its argument prototype would still apply. */
20612#ifdef __cplusplus
20613extern "C"
20614#endif
20615char __cmpdi2 ();
20616int
20617main ()
20618{
20619return __cmpdi2 ();
20620 ;
20621 return 0;
20622}
20623_ACEOF
20624rm -f conftest.$ac_objext conftest$ac_exeext
20625if { (ac_try="$ac_link"
20626case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629esac
20630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_link") 2>conftest.er1
20632 ac_status=$?
20633 grep -v '^ *+' conftest.er1 >conftest.err
20634 rm -f conftest.er1
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642esac
20643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest$ac_exeext'
20649 { (case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652esac
20653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_try") 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_lib_gcc___cmpdi2=yes
20659else
20660 echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 ac_cv_lib_gcc___cmpdi2=no
20664fi
20665
20666rm -f core conftest.err conftest.$ac_objext \
20667 conftest$ac_exeext conftest.$ac_ext
20668LIBS=$ac_check_lib_save_LIBS
20669fi
20670{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20671echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20672if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20673
20674cat >>confdefs.h <<\_ACEOF
20675#define HAVE___CMPDI2 1
20676_ACEOF
20677
20678fi
20679
20680fi
20681
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000020682if test "$llvm_cv_os_type" = "MingW" ; then
20683 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20684echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20685 cat >conftest.$ac_ext <<_ACEOF
20686#include <windows.h>
20687#include <imagehlp.h>
20688extern void foo(PENUMLOADED_MODULES_CALLBACK);
20689extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20690_ACEOF
20691rm -f conftest.$ac_objext
20692if { (ac_try="$ac_compile"
20693case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20696esac
20697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_compile") 2>conftest.er1
20699 ac_status=$?
20700 grep -v '^ *+' conftest.er1 >conftest.err
20701 rm -f conftest.er1
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } &&
20705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20706 { (case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20709esac
20710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_try") 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest.$ac_objext'
20716 { (case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719esac
20720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725
20726 { echo "$as_me:$LINENO: result: yes" >&5
20727echo "${ECHO_T}yes" >&6; }
20728 llvm_cv_win32_elmcb_pcstr="PCSTR"
20729
20730else
20731 echo "$as_me: failed program was:" >&5
20732sed 's/^/| /' conftest.$ac_ext >&5
20733
20734
20735 { echo "$as_me:$LINENO: result: no" >&5
20736echo "${ECHO_T}no" >&6; }
20737 llvm_cv_win32_elmcb_pcstr="PSTR"
20738
20739fi
20740
20741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742
20743cat >>confdefs.h <<_ACEOF
20744#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20745_ACEOF
20746
20747fi
20748
Torok Edwin871384f2010-01-26 08:50:50 +000020749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020750{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20751echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20752if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020754else
Reid Spencera773bd52006-08-04 18:18:08 +000020755 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020756ac_cpp='$CXXCPP $CPPFLAGS'
20757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020761 cat >conftest.$ac_ext <<_ACEOF
20762/* confdefs.h. */
20763_ACEOF
20764cat confdefs.h >>conftest.$ac_ext
20765cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020766/* end confdefs.h. */
20767#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020768int
20769main ()
20770{
20771float f; isnan(f);
20772 ;
20773 return 0;
20774}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020775_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020776rm -f conftest.$ac_objext
20777if { (ac_try="$ac_compile"
20778case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20781esac
20782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_compile") 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } &&
20790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20791 { (case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794esac
20795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_try") 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; } &&
20800 { ac_try='test -s conftest.$ac_objext'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804esac
20805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020810 ac_cv_func_isnan_in_math_h=yes
20811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020812 echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020817
Reid Spencera773bd52006-08-04 18:18:08 +000020818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020819 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020820ac_cpp='$CPP $CPPFLAGS'
20821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824
20825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020826{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20827echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020828
20829
20830if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020832cat >>confdefs.h <<\_ACEOF
20833#define HAVE_ISNAN_IN_MATH_H 1
20834_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020835
Reid Spencerabec8f92004-10-27 23:03:44 +000020836fi
20837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020838{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20839echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20840if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020842else
Reid Spencera773bd52006-08-04 18:18:08 +000020843 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020844ac_cpp='$CXXCPP $CPPFLAGS'
20845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020849 cat >conftest.$ac_ext <<_ACEOF
20850/* confdefs.h. */
20851_ACEOF
20852cat confdefs.h >>conftest.$ac_ext
20853cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020854/* end confdefs.h. */
20855#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020856int
20857main ()
20858{
20859float f; isnan(f);
20860 ;
20861 return 0;
20862}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020863_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020864rm -f conftest.$ac_objext
20865if { (ac_try="$ac_compile"
20866case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20869esac
20870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20879 { (case "(($ac_try" in
20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20882esac
20883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884 (eval "$ac_try") 2>&5
20885 ac_status=$?
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; } &&
20888 { ac_try='test -s conftest.$ac_objext'
20889 { (case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20892esac
20893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_try") 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020898 ac_cv_func_isnan_in_cmath=yes
20899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020900 echo "$as_me: failed program was:" >&5
20901sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020905
Reid Spencera773bd52006-08-04 18:18:08 +000020906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020907 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020908ac_cpp='$CPP $CPPFLAGS'
20909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911ac_compiler_gnu=$ac_cv_c_compiler_gnu
20912
20913fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020914{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20915echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020916
20917if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020919cat >>confdefs.h <<\_ACEOF
20920#define HAVE_ISNAN_IN_CMATH 1
20921_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020922
Reid Spencerabec8f92004-10-27 23:03:44 +000020923fi
20924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020925{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20926echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20927if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020929else
Reid Spencera773bd52006-08-04 18:18:08 +000020930 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020931ac_cpp='$CXXCPP $CPPFLAGS'
20932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020936 cat >conftest.$ac_ext <<_ACEOF
20937/* confdefs.h. */
20938_ACEOF
20939cat confdefs.h >>conftest.$ac_ext
20940cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020941/* end confdefs.h. */
20942#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020943int
20944main ()
20945{
20946float f; std::isnan(f);
20947 ;
20948 return 0;
20949}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020950_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020951rm -f conftest.$ac_objext
20952if { (ac_try="$ac_compile"
20953case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20956esac
20957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_compile") 2>conftest.er1
20959 ac_status=$?
20960 grep -v '^ *+' conftest.er1 >conftest.err
20961 rm -f conftest.er1
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } &&
20965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20966 { (case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969esac
20970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_try") 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try='test -s conftest.$ac_objext'
20976 { (case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20979esac
20980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_try") 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020985 ac_cv_func_std_isnan_in_cmath=yes
20986else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020987 echo "$as_me: failed program was:" >&5
20988sed 's/^/| /' conftest.$ac_ext >&5
20989
20990 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020992
Reid Spencera773bd52006-08-04 18:18:08 +000020993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020994 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020995ac_cpp='$CPP $CPPFLAGS'
20996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20998ac_compiler_gnu=$ac_cv_c_compiler_gnu
20999
21000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021001{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21002echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021003
21004if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021006cat >>confdefs.h <<\_ACEOF
21007#define HAVE_STD_ISNAN_IN_CMATH 1
21008_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021009
Reid Spencerabec8f92004-10-27 23:03:44 +000021010fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021011
21012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021013{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21014echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21015if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021017else
Reid Spencera773bd52006-08-04 18:18:08 +000021018 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021019ac_cpp='$CXXCPP $CPPFLAGS'
21020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021024 cat >conftest.$ac_ext <<_ACEOF
21025/* confdefs.h. */
21026_ACEOF
21027cat confdefs.h >>conftest.$ac_ext
21028cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021029/* end confdefs.h. */
21030#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021031int
21032main ()
21033{
21034float f; isinf(f);
21035 ;
21036 return 0;
21037}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021038_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021039rm -f conftest.$ac_objext
21040if { (ac_try="$ac_compile"
21041case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21044esac
21045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval "$ac_compile") 2>conftest.er1
21047 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21054 { (case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057esac
21058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_try") 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; } &&
21063 { ac_try='test -s conftest.$ac_objext'
21064 { (case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21067esac
21068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_try") 2>&5
21070 ac_status=$?
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021073 ac_cv_func_isinf_in_math_h=yes
21074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021075 echo "$as_me: failed program was:" >&5
21076sed 's/^/| /' conftest.$ac_ext >&5
21077
21078 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021080
Reid Spencera773bd52006-08-04 18:18:08 +000021081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021082 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021083ac_cpp='$CPP $CPPFLAGS'
21084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087
21088fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021089{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21090echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021091
21092if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021094cat >>confdefs.h <<\_ACEOF
21095#define HAVE_ISINF_IN_MATH_H 1
21096_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021097
Reid Spencerabec8f92004-10-27 23:03:44 +000021098fi
21099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021100{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21101echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21102if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021104else
Reid Spencera773bd52006-08-04 18:18:08 +000021105 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021106ac_cpp='$CXXCPP $CPPFLAGS'
21107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021111 cat >conftest.$ac_ext <<_ACEOF
21112/* confdefs.h. */
21113_ACEOF
21114cat confdefs.h >>conftest.$ac_ext
21115cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021116/* end confdefs.h. */
21117#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021118int
21119main ()
21120{
21121float f; isinf(f);
21122 ;
21123 return 0;
21124}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021125_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021126rm -f conftest.$ac_objext
21127if { (ac_try="$ac_compile"
21128case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21131esac
21132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_compile") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21141 { (case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21144esac
21145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest.$ac_objext'
21151 { (case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21154esac
21155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_try") 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021160 ac_cv_func_isinf_in_cmath=yes
21161else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021162 echo "$as_me: failed program was:" >&5
21163sed 's/^/| /' conftest.$ac_ext >&5
21164
21165 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021167
Reid Spencera773bd52006-08-04 18:18:08 +000021168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021169 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021170ac_cpp='$CPP $CPPFLAGS'
21171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21173ac_compiler_gnu=$ac_cv_c_compiler_gnu
21174
21175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021176{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21177echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021178
21179if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021181cat >>confdefs.h <<\_ACEOF
21182#define HAVE_ISINF_IN_CMATH 1
21183_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021184
Reid Spencerabec8f92004-10-27 23:03:44 +000021185fi
21186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21188echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21189if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021191else
Reid Spencera773bd52006-08-04 18:18:08 +000021192 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021193ac_cpp='$CXXCPP $CPPFLAGS'
21194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21197
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021198 cat >conftest.$ac_ext <<_ACEOF
21199/* confdefs.h. */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021203/* end confdefs.h. */
21204#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021205int
21206main ()
21207{
21208float f; std::isinf(f)}
21209 ;
21210 return 0;
21211}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021212_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213rm -f conftest.$ac_objext
21214if { (ac_try="$ac_compile"
21215case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21218esac
21219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_compile") 2>conftest.er1
21221 ac_status=$?
21222 grep -v '^ *+' conftest.er1 >conftest.err
21223 rm -f conftest.er1
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
21227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21228 { (case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21231esac
21232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_try") 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; } &&
21237 { ac_try='test -s conftest.$ac_objext'
21238 { (case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21241esac
21242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_try") 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021247 ac_cv_func_std_isinf_in_cmath=yes
21248else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021249 echo "$as_me: failed program was:" >&5
21250sed 's/^/| /' conftest.$ac_ext >&5
21251
21252 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021254
Reid Spencera773bd52006-08-04 18:18:08 +000021255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021256 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021257ac_cpp='$CPP $CPPFLAGS'
21258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261
21262fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021263{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21264echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021265
21266if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021268cat >>confdefs.h <<\_ACEOF
21269#define HAVE_STD_ISINF_IN_CMATH 1
21270_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021271
Reid Spencerabec8f92004-10-27 23:03:44 +000021272fi
21273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021274{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21275echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21276if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021278else
Reid Spencera773bd52006-08-04 18:18:08 +000021279 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021280ac_cpp='$CXXCPP $CPPFLAGS'
21281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021285 cat >conftest.$ac_ext <<_ACEOF
21286/* confdefs.h. */
21287_ACEOF
21288cat confdefs.h >>conftest.$ac_ext
21289cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021290/* end confdefs.h. */
21291#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021292int
21293main ()
21294{
21295float f; finite(f);
21296 ;
21297 return 0;
21298}
Brian Gaeked59a6472004-07-21 03:33:58 +000021299_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300rm -f conftest.$ac_objext
21301if { (ac_try="$ac_compile"
21302case "(($ac_try" in
21303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304 *) ac_try_echo=$ac_try;;
21305esac
21306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307 (eval "$ac_compile") 2>conftest.er1
21308 ac_status=$?
21309 grep -v '^ *+' conftest.er1 >conftest.err
21310 rm -f conftest.er1
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21315 { (case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318esac
21319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_try") 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; } &&
21324 { ac_try='test -s conftest.$ac_objext'
21325 { (case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21328esac
21329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330 (eval "$ac_try") 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021334 ac_cv_func_finite_in_ieeefp_h=yes
21335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021336 echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
21338
21339 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021341
Reid Spencera773bd52006-08-04 18:18:08 +000021342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021343 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021344ac_cpp='$CPP $CPPFLAGS'
21345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347ac_compiler_gnu=$ac_cv_c_compiler_gnu
21348
21349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021350{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21351echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021352
Brian Gaeke6802b552004-10-28 05:06:45 +000021353if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021355cat >>confdefs.h <<\_ACEOF
21356#define HAVE_FINITE_IN_IEEEFP_H 1
21357_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021358
Reid Spencerabec8f92004-10-27 23:03:44 +000021359fi
21360
21361
21362
Reid Spencer30fe5262007-01-20 07:48:49 +000021363if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021364
21365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021366for ac_header in stdlib.h unistd.h
21367do
21368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21374fi
21375ac_res=`eval echo '${'$as_ac_Header'}'`
21376 { echo "$as_me:$LINENO: result: $ac_res" >&5
21377echo "${ECHO_T}$ac_res" >&6; }
21378else
21379 # Is the header compilable?
21380{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21382cat >conftest.$ac_ext <<_ACEOF
21383/* confdefs.h. */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h. */
21388$ac_includes_default
21389#include <$ac_header>
21390_ACEOF
21391rm -f conftest.$ac_objext
21392if { (ac_try="$ac_compile"
21393case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21396esac
21397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21399 ac_status=$?
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21406 { (case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21409esac
21410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411 (eval "$ac_try") 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try='test -s conftest.$ac_objext'
21416 { (case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21419esac
21420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421 (eval "$ac_try") 2>&5
21422 ac_status=$?
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21425 ac_header_compiler=yes
21426else
21427 echo "$as_me: failed program was:" >&5
21428sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021430 ac_header_compiler=no
21431fi
21432
21433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21435echo "${ECHO_T}$ac_header_compiler" >&6; }
21436
21437# Is the header present?
21438{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21440cat >conftest.$ac_ext <<_ACEOF
21441/* confdefs.h. */
21442_ACEOF
21443cat confdefs.h >>conftest.$ac_ext
21444cat >>conftest.$ac_ext <<_ACEOF
21445/* end confdefs.h. */
21446#include <$ac_header>
21447_ACEOF
21448if { (ac_try="$ac_cpp conftest.$ac_ext"
21449case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21452esac
21453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21455 ac_status=$?
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } >/dev/null; then
21461 if test -s conftest.err; then
21462 ac_cpp_err=$ac_c_preproc_warn_flag
21463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21464 else
21465 ac_cpp_err=
21466 fi
21467else
21468 ac_cpp_err=yes
21469fi
21470if test -z "$ac_cpp_err"; then
21471 ac_header_preproc=yes
21472else
21473 echo "$as_me: failed program was:" >&5
21474sed 's/^/| /' conftest.$ac_ext >&5
21475
21476 ac_header_preproc=no
21477fi
21478
21479rm -f conftest.err conftest.$ac_ext
21480{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21481echo "${ECHO_T}$ac_header_preproc" >&6; }
21482
21483# So? What about this header?
21484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21485 yes:no: )
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21490 ac_header_preproc=yes
21491 ;;
21492 no:yes:* )
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21505 ( cat <<\_ASBOX
21506## ----------------------------------- ##
21507## Report this to llvmbugs@cs.uiuc.edu ##
21508## ----------------------------------- ##
21509_ASBOX
21510 ) | sed "s/^/$as_me: WARNING: /" >&2
21511 ;;
21512esac
21513{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517else
21518 eval "$as_ac_Header=\$ac_header_preproc"
21519fi
21520ac_res=`eval echo '${'$as_ac_Header'}'`
21521 { echo "$as_me:$LINENO: result: $ac_res" >&5
21522echo "${ECHO_T}$ac_res" >&6; }
21523
21524fi
21525if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021526 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021528_ACEOF
21529
21530fi
21531
21532done
21533
21534
21535for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536do
21537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21538{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21540if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542else
21543 cat >conftest.$ac_ext <<_ACEOF
21544/* confdefs.h. */
21545_ACEOF
21546cat confdefs.h >>conftest.$ac_ext
21547cat >>conftest.$ac_ext <<_ACEOF
21548/* end confdefs.h. */
21549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21551#define $ac_func innocuous_$ac_func
21552
21553/* System header to define __stub macros and hopefully few prototypes,
21554 which can conflict with char $ac_func (); below.
21555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21556 <limits.h> exists even on freestanding compilers. */
21557
21558#ifdef __STDC__
21559# include <limits.h>
21560#else
21561# include <assert.h>
21562#endif
21563
21564#undef $ac_func
21565
21566/* Override any GCC internal prototype to avoid an error.
21567 Use char because int might match the return type of a GCC
21568 builtin and then its argument prototype would still apply. */
21569#ifdef __cplusplus
21570extern "C"
21571#endif
21572char $ac_func ();
21573/* The GNU C library defines this for functions which it implements
21574 to always fail with ENOSYS. Some functions are actually named
21575 something starting with __ and the normal name is an alias. */
21576#if defined __stub_$ac_func || defined __stub___$ac_func
21577choke me
21578#endif
21579
21580int
21581main ()
21582{
21583return $ac_func ();
21584 ;
21585 return 0;
21586}
21587_ACEOF
21588rm -f conftest.$ac_objext conftest$ac_exeext
21589if { (ac_try="$ac_link"
21590case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593esac
21594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_link") 2>conftest.er1
21596 ac_status=$?
21597 grep -v '^ *+' conftest.er1 >conftest.err
21598 rm -f conftest.er1
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } &&
21602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21603 { (case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21606esac
21607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_try") 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest$ac_exeext'
21613 { (case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21616esac
21617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_try") 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 eval "$as_ac_var=yes"
21623else
21624 echo "$as_me: failed program was:" >&5
21625sed 's/^/| /' conftest.$ac_ext >&5
21626
21627 eval "$as_ac_var=no"
21628fi
21629
21630rm -f core conftest.err conftest.$ac_objext \
21631 conftest$ac_exeext conftest.$ac_ext
21632fi
21633ac_res=`eval echo '${'$as_ac_var'}'`
21634 { echo "$as_me:$LINENO: result: $ac_res" >&5
21635echo "${ECHO_T}$ac_res" >&6; }
21636if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021637 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021639_ACEOF
21640
21641fi
21642done
21643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021644{ echo "$as_me:$LINENO: checking for working mmap" >&5
21645echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21646if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021649 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021650 ac_cv_func_mmap_fixed_mapped=no
21651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021652 cat >conftest.$ac_ext <<_ACEOF
21653/* confdefs.h. */
21654_ACEOF
21655cat confdefs.h >>conftest.$ac_ext
21656cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021657/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021658$ac_includes_default
21659/* malloc might have been renamed as rpl_malloc. */
21660#undef malloc
21661
21662/* Thanks to Mike Haertel and Jim Avera for this test.
21663 Here is a matrix of mmap possibilities:
21664 mmap private not fixed
21665 mmap private fixed at somewhere currently unmapped
21666 mmap private fixed at somewhere already mapped
21667 mmap shared not fixed
21668 mmap shared fixed at somewhere currently unmapped
21669 mmap shared fixed at somewhere already mapped
21670 For private mappings, we should verify that changes cannot be read()
21671 back from the file, nor mmap's back from the file at a different
21672 address. (There have been systems where private was not correctly
21673 implemented like the infamous i386 svr4.0, and systems where the
21674 VM page cache was not coherent with the file system buffer cache
21675 like early versions of FreeBSD and possibly contemporary NetBSD.)
21676 For shared mappings, we should conversely verify that changes get
21677 propagated back to all the places they're supposed to be.
21678
21679 Grep wants private fixed already mapped.
21680 The main things grep needs to know about mmap are:
21681 * does it exist and is it safe to write into the mmap'd area
21682 * how to use it (BSD variants) */
21683
21684#include <fcntl.h>
21685#include <sys/mman.h>
21686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021687#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021688char *malloc ();
21689#endif
21690
21691/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021692#if !HAVE_GETPAGESIZE
21693/* Assume that all systems that can run configure have sys/param.h. */
21694# if !HAVE_SYS_PARAM_H
21695# define HAVE_SYS_PARAM_H 1
21696# endif
21697
John Criswell7a73b802003-06-30 21:59:07 +000021698# ifdef _SC_PAGESIZE
21699# define getpagesize() sysconf(_SC_PAGESIZE)
21700# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021701# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021702# include <sys/param.h>
21703# ifdef EXEC_PAGESIZE
21704# define getpagesize() EXEC_PAGESIZE
21705# else /* no EXEC_PAGESIZE */
21706# ifdef NBPG
21707# define getpagesize() NBPG * CLSIZE
21708# ifndef CLSIZE
21709# define CLSIZE 1
21710# endif /* no CLSIZE */
21711# else /* no NBPG */
21712# ifdef NBPC
21713# define getpagesize() NBPC
21714# else /* no NBPC */
21715# ifdef PAGESIZE
21716# define getpagesize() PAGESIZE
21717# endif /* PAGESIZE */
21718# endif /* no NBPC */
21719# endif /* no NBPG */
21720# endif /* no EXEC_PAGESIZE */
21721# else /* no HAVE_SYS_PARAM_H */
21722# define getpagesize() 8192 /* punt totally */
21723# endif /* no HAVE_SYS_PARAM_H */
21724# endif /* no _SC_PAGESIZE */
21725
21726#endif /* no HAVE_GETPAGESIZE */
21727
21728int
21729main ()
21730{
21731 char *data, *data2, *data3;
21732 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021733 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021734
21735 pagesize = getpagesize ();
21736
21737 /* First, make a file with some known garbage in it. */
21738 data = (char *) malloc (pagesize);
21739 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021740 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021741 for (i = 0; i < pagesize; ++i)
21742 *(data + i) = rand ();
21743 umask (0);
21744 fd = creat ("conftest.mmap", 0600);
21745 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021746 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021747 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021748 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021749 close (fd);
21750
21751 /* Next, try to mmap the file at a fixed address which already has
21752 something else allocated at it. If we can, also make sure that
21753 we see the same garbage. */
21754 fd = open ("conftest.mmap", O_RDWR);
21755 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756 return 1;
21757 data2 = (char *) malloc (2 * pagesize);
21758 if (!data2)
21759 return 1;
21760 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021761 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021762 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021763 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021764 for (i = 0; i < pagesize; ++i)
21765 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021766 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021767
21768 /* Finally, make sure that changes to the mapped area do not
21769 percolate back to the file as seen by read(). (This is a bug on
21770 some variants of i386 svr4.0.) */
21771 for (i = 0; i < pagesize; ++i)
21772 *(data2 + i) = *(data2 + i) + 1;
21773 data3 = (char *) malloc (pagesize);
21774 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021775 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021776 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021777 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021778 for (i = 0; i < pagesize; ++i)
21779 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021781 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021782 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021783}
21784_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785rm -f conftest$ac_exeext
21786if { (ac_try="$ac_link"
21787case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21790esac
21791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_link") 2>&5
21793 ac_status=$?
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21796 { (case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799esac
21800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_try") 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021805 ac_cv_func_mmap_fixed_mapped=yes
21806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021807 echo "$as_me: program exited with status $ac_status" >&5
21808echo "$as_me: failed program was:" >&5
21809sed 's/^/| /' conftest.$ac_ext >&5
21810
21811( exit $ac_status )
21812ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021813fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021814rm -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 +000021815fi
Reid Spencera773bd52006-08-04 18:18:08 +000021816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021817
John Criswell7a73b802003-06-30 21:59:07 +000021818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021819{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21820echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021821if test $ac_cv_func_mmap_fixed_mapped = yes; then
21822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823cat >>confdefs.h <<\_ACEOF
21824#define HAVE_MMAP 1
21825_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021826
21827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021828rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021830 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21831echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21832if test "${ac_cv_func_mmap_file+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021834else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021835 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021836ac_cpp='$CPP $CPPFLAGS'
21837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839ac_compiler_gnu=$ac_cv_c_compiler_gnu
21840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021842 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846 /* confdefs.h. */
21847_ACEOF
21848cat confdefs.h >>conftest.$ac_ext
21849cat >>conftest.$ac_ext <<_ACEOF
21850/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021851
John Criswell7a73b802003-06-30 21:59:07 +000021852#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021853#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021854#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021855
21856int
21857main ()
21858{
John Criswell7a73b802003-06-30 21:59:07 +000021859
21860 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021861 fd = creat ("foo",0777);
21862 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21863 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021864 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021865 ;
21866 return 0;
21867}
John Criswell7a73b802003-06-30 21:59:07 +000021868_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021869rm -f conftest$ac_exeext
21870if { (ac_try="$ac_link"
21871case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21874esac
21875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_link") 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21880 { (case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21883esac
21884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885 (eval "$ac_try") 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021889 ac_cv_func_mmap_file=yes
21890else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021891 echo "$as_me: program exited with status $ac_status" >&5
21892echo "$as_me: failed program was:" >&5
21893sed 's/^/| /' conftest.$ac_ext >&5
21894
21895( exit $ac_status )
21896ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021897fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021898rm -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 +000021899fi
Reid Spencera773bd52006-08-04 18:18:08 +000021900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021901
John Criswell7a73b802003-06-30 21:59:07 +000021902 ac_ext=c
21903ac_cpp='$CPP $CPPFLAGS'
21904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21906ac_compiler_gnu=$ac_cv_c_compiler_gnu
21907
21908
21909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21911echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021912if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914cat >>confdefs.h <<\_ACEOF
21915#define HAVE_MMAP_FILE
21916_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021917
21918 MMAP_FILE=yes
21919
21920fi
21921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21923echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21924if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021926else
Reid Spencer582a23c2004-12-29 07:07:57 +000021927 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021928 ac_cv_need_dev_zero_for_mmap=yes
21929 else
21930 ac_cv_need_dev_zero_for_mmap=no
21931 fi
21932
21933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021934{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21935echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021936if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938cat >>confdefs.h <<\_ACEOF
21939#define NEED_DEV_ZERO_FOR_MMAP 1
21940_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021941
21942fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021943
Reid Spencer30fe5262007-01-20 07:48:49 +000021944 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21945 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021946 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21947echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021948 fi
21949 if test "$ac_cv_func_mmap_file" = "no"
21950 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21952echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021953 fi
John Criswellb13092b2003-07-22 21:00:24 +000021954fi
John Criswell7a73b802003-06-30 21:59:07 +000021955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21957echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021958ac_ext=cpp
21959ac_cpp='$CXXCPP $CPPFLAGS'
21960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021964cat >conftest.$ac_ext <<_ACEOF
21965/* confdefs.h. */
21966_ACEOF
21967cat confdefs.h >>conftest.$ac_ext
21968cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021969/* end confdefs.h. */
21970int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021971 volatile unsigned long val = 1;
21972 __sync_synchronize();
21973 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000021974 __sync_add_and_fetch(&val, 1);
21975 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000021976 return 0;
21977 }
Owen Andersond4b272b2009-05-18 23:58:51 +000021978
21979_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980rm -f conftest.$ac_objext conftest$ac_exeext
21981if { (ac_try="$ac_link"
21982case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985esac
21986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_link") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995 { (case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21998esac
21999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_try") 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest$ac_exeext'
22005 { (case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008esac
22009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_try") 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000022014 ac_ext=c
22015ac_cpp='$CPP $CPPFLAGS'
22016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22018ac_compiler_gnu=$ac_cv_c_compiler_gnu
22019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022020 { echo "$as_me:$LINENO: result: yes" >&5
22021echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000022022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022023cat >>confdefs.h <<\_ACEOF
22024#define LLVM_MULTITHREADED 1
22025_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000022026
Owen Andersond4b272b2009-05-18 23:58:51 +000022027else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022028 echo "$as_me: failed program was:" >&5
22029sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000022030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022031 { echo "$as_me:$LINENO: result: no" >&5
22032echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000022033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022034cat >>confdefs.h <<\_ACEOF
22035#define LLVM_MULTITHREADED 0
22036_ACEOF
22037
22038 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22039echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000022040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041
Owen Andersond4b272b2009-05-18 23:58:51 +000022042rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022043 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000022044
John Criswell7a73b802003-06-30 21:59:07 +000022045
Nick Lewycky4372e692009-09-29 06:18:23 +000022046if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022047 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22048echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22049if test "${llvm_cv_linux_mixed+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000022051else
22052 ac_ext=c
22053ac_cpp='$CPP $CPPFLAGS'
22054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22056ac_compiler_gnu=$ac_cv_c_compiler_gnu
22057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058 cat >conftest.$ac_ext <<_ACEOF
22059/* confdefs.h. */
22060_ACEOF
22061cat confdefs.h >>conftest.$ac_ext
22062cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000022063/* end confdefs.h. */
22064#ifndef __x86_64__
22065 error: Not x86-64 even if uname says so!
22066 #endif
22067
22068int
22069main ()
22070{
22071
22072 ;
22073 return 0;
22074}
22075_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022076rm -f conftest.$ac_objext
22077if { (ac_try="$ac_compile"
22078case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22081esac
22082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_compile") 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } &&
22090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22091 { (case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22094esac
22095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_try") 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; } &&
22100 { ac_try='test -s conftest.$ac_objext'
22101 { (case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22104esac
22105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106 (eval "$ac_try") 2>&5
22107 ac_status=$?
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000022110 llvm_cv_linux_mixed=no
22111else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022112 echo "$as_me: failed program was:" >&5
22113sed 's/^/| /' conftest.$ac_ext >&5
22114
22115 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000022116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022117
Nick Lewycky4372e692009-09-29 06:18:23 +000022118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 ac_ext=c
22120ac_cpp='$CPP $CPPFLAGS'
22121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22123ac_compiler_gnu=$ac_cv_c_compiler_gnu
22124
22125
22126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022127{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22128echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000022129
22130 if test "$llvm_cv_linux_mixed" = "yes"; then
22131 llvm_cv_target_arch="x86"
22132 ARCH="x86"
22133 fi
22134fi
22135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022136
Reid Spencer9372f152007-07-30 20:13:24 +000022137for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022138do
22139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22140{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22142if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22144else
22145 cat >conftest.$ac_ext <<_ACEOF
22146/* confdefs.h. */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h. */
22151/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22153#define $ac_func innocuous_$ac_func
22154
22155/* System header to define __stub macros and hopefully few prototypes,
22156 which can conflict with char $ac_func (); below.
22157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22158 <limits.h> exists even on freestanding compilers. */
22159
22160#ifdef __STDC__
22161# include <limits.h>
22162#else
22163# include <assert.h>
22164#endif
22165
22166#undef $ac_func
22167
22168/* Override any GCC internal prototype to avoid an error.
22169 Use char because int might match the return type of a GCC
22170 builtin and then its argument prototype would still apply. */
22171#ifdef __cplusplus
22172extern "C"
22173#endif
22174char $ac_func ();
22175/* The GNU C library defines this for functions which it implements
22176 to always fail with ENOSYS. Some functions are actually named
22177 something starting with __ and the normal name is an alias. */
22178#if defined __stub_$ac_func || defined __stub___$ac_func
22179choke me
22180#endif
22181
22182int
22183main ()
22184{
22185return $ac_func ();
22186 ;
22187 return 0;
22188}
22189_ACEOF
22190rm -f conftest.$ac_objext conftest$ac_exeext
22191if { (ac_try="$ac_link"
22192case "(($ac_try" in
22193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194 *) ac_try_echo=$ac_try;;
22195esac
22196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22197 (eval "$ac_link") 2>conftest.er1
22198 ac_status=$?
22199 grep -v '^ *+' conftest.er1 >conftest.err
22200 rm -f conftest.er1
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } &&
22204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22205 { (case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22208esac
22209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_try") 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; } &&
22214 { ac_try='test -s conftest$ac_exeext'
22215 { (case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22218esac
22219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_try") 2>&5
22221 ac_status=$?
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; }; then
22224 eval "$as_ac_var=yes"
22225else
22226 echo "$as_me: failed program was:" >&5
22227sed 's/^/| /' conftest.$ac_ext >&5
22228
22229 eval "$as_ac_var=no"
22230fi
22231
22232rm -f core conftest.err conftest.$ac_objext \
22233 conftest$ac_exeext conftest.$ac_ext
22234fi
22235ac_res=`eval echo '${'$as_ac_var'}'`
22236 { echo "$as_me:$LINENO: result: $ac_res" >&5
22237echo "${ECHO_T}$ac_res" >&6; }
22238if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022239 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022240#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022241_ACEOF
22242
22243fi
22244done
22245
22246
Tobias Grossera84b5672010-11-10 16:31:34 +000022247{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22248echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22249if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22251else
22252 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022253if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022254 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022255 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022256 if test $? -eq 0 ; then
22257 llvm_cv_llvmgcc_dragonegg="yes"
22258 fi
22259 rm conftest.c
22260fi
22261fi
22262{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22263echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22264
22265if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22266 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sandsfcc482e2011-05-23 16:50:29 +000022267 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
Tobias Grossera84b5672010-11-10 16:31:34 +000022268else
22269 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022270 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022271fi
22272
22273
22274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022275{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22276echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22277if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022279else
22280 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022281if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022282 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022283 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022284 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022285 if test $? -eq 0 ; then
22286 llvm_cv_llvmgcc_sanity="yes"
22287 fi
22288 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022289fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022291{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22292echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022293
22294if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022295 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22296echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022297 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022298 LLVMCC1=$llvmcc1path
22299
Duncan Sands1526b192010-11-25 17:47:42 +000022300 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022301 LLVMCC1PLUS=$llvmcc1pluspath
22302
Reid Spencer502935f2004-12-22 05:56:56 +000022303 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22304 LLVMGCCDIR=$llvmgccdir
22305
Duncan Sands1526b192010-11-25 17:47:42 +000022306 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022307 LLVMGCC_LANGS=$llvmgcclangs
22308
Tobias Grossera84b5672010-11-10 16:31:34 +000022309 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22310
22311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022312 { echo "$as_me:$LINENO: result: ok" >&5
22313echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022314fi
22315
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022316SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022317
22318
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022319SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22320
22321
Reid Spencere9de0912004-08-20 09:03:57 +000022322# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022323# information into substitutions that will end up in Makefile.config.in
22324# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022325if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022326 prefix="/usr/local"
22327fi
Reid Spencere9de0912004-08-20 09:03:57 +000022328eval LLVM_PREFIX="${prefix}";
22329eval LLVM_BINDIR="${prefix}/bin";
22330eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022331eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022332eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022333eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022334eval LLVM_INCLUDEDIR="${prefix}/include";
22335eval LLVM_INFODIR="${prefix}/info";
22336eval LLVM_MANDIR="${prefix}/man";
22337LLVM_CONFIGTIME=`date`
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022349# Place the various directores into the config.h file as #defines so that we
22350# can know about the installation paths within LLVM.
22351
Reid Spencere9de0912004-08-20 09:03:57 +000022352cat >>confdefs.h <<_ACEOF
22353#define LLVM_PREFIX "$LLVM_PREFIX"
22354_ACEOF
22355
22356
22357cat >>confdefs.h <<_ACEOF
22358#define LLVM_BINDIR "$LLVM_BINDIR"
22359_ACEOF
22360
22361
22362cat >>confdefs.h <<_ACEOF
22363#define LLVM_LIBDIR "$LLVM_LIBDIR"
22364_ACEOF
22365
22366
22367cat >>confdefs.h <<_ACEOF
22368#define LLVM_DATADIR "$LLVM_DATADIR"
22369_ACEOF
22370
22371
22372cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022373#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022374_ACEOF
22375
22376
22377cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022378#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022379_ACEOF
22380
22381
22382cat >>confdefs.h <<_ACEOF
22383#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22384_ACEOF
22385
22386
22387cat >>confdefs.h <<_ACEOF
22388#define LLVM_INFODIR "$LLVM_INFODIR"
22389_ACEOF
22390
22391
22392cat >>confdefs.h <<_ACEOF
22393#define LLVM_MANDIR "$LLVM_MANDIR"
22394_ACEOF
22395
22396
22397cat >>confdefs.h <<_ACEOF
22398#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22399_ACEOF
22400
22401
Eric Christopher790e11c2007-12-01 00:34:39 +000022402cat >>confdefs.h <<_ACEOF
22403#define LLVM_HOSTTRIPLE "$host"
22404_ACEOF
22405
22406
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022407# Determine which bindings to build.
22408if test "$BINDINGS_TO_BUILD" = auto ; then
22409 BINDINGS_TO_BUILD=""
22410 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22411 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22412 fi
22413fi
22414BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22415
22416
22417# This isn't really configurey, but it avoids having to repeat the list in
22418# other files.
22419ALL_BINDINGS=ocaml
22420
22421
Gordon Henriksenf0915682007-10-02 16:42:22 +000022422# Do any work necessary to ensure that bindings have what they need.
22423binding_prereqs_failed=0
22424for a_binding in $BINDINGS_TO_BUILD ; do
22425 case "$a_binding" in
22426 ocaml)
22427 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022428 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22429echo "$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 +000022430 binding_prereqs_failed=1
22431 fi
22432 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022433 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22434echo "$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 +000022435 binding_prereqs_failed=1
22436 fi
22437 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022438 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22439echo "$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 +000022440 fi
22441 if test "x$with_ocaml_libdir" != xauto ; then
22442 OCAML_LIBDIR=$with_ocaml_libdir
22443
22444 else
22445 ocaml_stdlib="`"$OCAMLC" -where`"
22446 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22447 then
22448 # ocaml stdlib is beneath our prefix; use stdlib
22449 OCAML_LIBDIR=$ocaml_stdlib
22450
22451 else
22452 # ocaml stdlib is outside our prefix; use libdir/ocaml
22453 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22454
22455 fi
22456 fi
22457 ;;
22458 esac
22459done
22460if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022461 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22462echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22463 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022464fi
22465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022466{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22467echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22468if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022470else
22471 ac_ext=cpp
22472ac_cpp='$CXXCPP $CPPFLAGS'
22473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22476
22477 oldcxxflags="$CXXFLAGS"
22478 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022479 cat >conftest.$ac_ext <<_ACEOF
22480/* confdefs.h. */
22481_ACEOF
22482cat confdefs.h >>conftest.$ac_ext
22483cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022484/* end confdefs.h. */
22485
22486int
22487main ()
22488{
22489
22490 ;
22491 return 0;
22492}
22493_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022494rm -f conftest.$ac_objext
22495if { (ac_try="$ac_compile"
22496case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22499esac
22500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22501 (eval "$ac_compile") 2>conftest.er1
22502 ac_status=$?
22503 grep -v '^ *+' conftest.er1 >conftest.err
22504 rm -f conftest.er1
22505 cat conftest.err >&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); } &&
22508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22509 { (case "(($ac_try" in
22510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511 *) ac_try_echo=$ac_try;;
22512esac
22513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514 (eval "$ac_try") 2>&5
22515 ac_status=$?
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; } &&
22518 { ac_try='test -s conftest.$ac_objext'
22519 { (case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22522esac
22523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_try") 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022528 llvm_cv_cxx_visibility_inlines_hidden=yes
22529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022530 echo "$as_me: failed program was:" >&5
22531sed 's/^/| /' conftest.$ac_ext >&5
22532
22533 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022535
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22537 CXXFLAGS="$oldcxxflags"
22538 ac_ext=c
22539ac_cpp='$CPP $CPPFLAGS'
22540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22542ac_compiler_gnu=$ac_cv_c_compiler_gnu
22543
22544
22545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022546{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22547echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022548if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22549 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22550
22551else
22552 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22553
22554fi
22555
Gordon Henriksenf0915682007-10-02 16:42:22 +000022556
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022557if test "$llvm_cv_link_use_r" = "yes" ; then
22558 RPATH="-Wl,-R"
22559else
22560 RPATH="-Wl,-rpath"
22561fi
22562
22563
22564if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22565 RDYNAMIC="-Wl,-export-dynamic"
22566else
22567 RDYNAMIC=""
22568fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022569
22570
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022571
Eric Christophera1cba682010-08-08 02:44:25 +000022572ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022573
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022574
22575
22576
22577
22578
Douglas Gregor1555a232009-06-16 20:12:29 +000022579ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22580
22581ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22582
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022583ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22584
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022585ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22586
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022587ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022588
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022589
Reid Spencera773bd52006-08-04 18:18:08 +000022590ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022591
22592
Reid Spencerea949cf2006-08-16 00:45:38 +000022593ac_config_files="$ac_config_files llvm.spec"
22594
22595
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022596ac_config_files="$ac_config_files docs/doxygen.cfg"
22597
22598if test -f ${srcdir}/tools/clang/README.txt; then
22599 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22600
22601fi
22602
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022603ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022604
22605
Reid Spencera773bd52006-08-04 18:18:08 +000022606ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022607
22608
Reid Spencera773bd52006-08-04 18:18:08 +000022609ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022610
Reid Spencera773bd52006-08-04 18:18:08 +000022611ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022612
22613
Reid Spencera773bd52006-08-04 18:18:08 +000022614ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022615
22616
Reid Spencera773bd52006-08-04 18:18:08 +000022617ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022618
22619
Reid Spencera773bd52006-08-04 18:18:08 +000022620ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022621
22622
Reid Spencer8b2e1412006-11-17 03:32:33 +000022623ac_config_commands="$ac_config_commands runtime/Makefile"
22624
22625
Reid Spencera773bd52006-08-04 18:18:08 +000022626ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022627
22628
Reid Spencera773bd52006-08-04 18:18:08 +000022629ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022630
22631
Bill Wendlingf24eb392009-01-04 23:12:30 +000022632ac_config_commands="$ac_config_commands unittests/Makefile"
22633
22634
Reid Spencera773bd52006-08-04 18:18:08 +000022635ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022636
22637
Reid Spencera773bd52006-08-04 18:18:08 +000022638ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022639
22640
Reid Spencera773bd52006-08-04 18:18:08 +000022641ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022642
22643
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022644ac_config_commands="$ac_config_commands bindings/Makefile"
22645
22646
22647ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22648
22649
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022650
John Criswell7a73b802003-06-30 21:59:07 +000022651cat >confcache <<\_ACEOF
22652# This file is a shell script that caches the results of configure
22653# tests run on this system so they can be shared between configure
22654# scripts and configure runs, see configure's option --config-cache.
22655# It is not useful on other systems. If it contains results you don't
22656# want to keep, you may remove or edit it.
22657#
22658# config.status only pays attention to the cache file if you give it
22659# the --recheck option to rerun configure.
22660#
John Criswell0c38eaf2003-09-10 15:17:25 +000022661# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022662# loading this file, other *unset* `ac_cv_foo' will be assigned the
22663# following values.
22664
22665_ACEOF
22666
22667# The following way of writing the cache mishandles newlines in values,
22668# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022669# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022670# Ultrix sh set writes to stderr and can't be redirected directly,
22671# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022672(
22673 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22674 eval ac_val=\$$ac_var
22675 case $ac_val in #(
22676 *${as_nl}*)
22677 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022678 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22679echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022680 esac
22681 case $ac_var in #(
22682 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022683 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022684 esac ;;
22685 esac
22686 done
22687
John Criswell7a73b802003-06-30 21:59:07 +000022688 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022689 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22690 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022691 # `set' does not quote correctly, so add quotes (double-quote
22692 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022693 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022694 "s/'/'\\\\''/g;
22695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022696 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022697 *)
22698 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022700 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022701 esac |
22702 sort
22703) |
John Criswell7a73b802003-06-30 21:59:07 +000022704 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022705 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022706 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022707 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22709 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022710 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22711 :end' >>confcache
22712if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22713 if test -w "$cache_file"; then
22714 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022715 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22716echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022717 cat confcache >$cache_file
22718 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022719 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22720echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022721 fi
22722fi
22723rm -f confcache
22724
22725test "x$prefix" = xNONE && prefix=$ac_default_prefix
22726# Let make expand exec_prefix.
22727test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22728
John Criswell7a73b802003-06-30 21:59:07 +000022729DEFS=-DHAVE_CONFIG_H
22730
John Criswell0c38eaf2003-09-10 15:17:25 +000022731ac_libobjs=
22732ac_ltlibobjs=
22733for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22734 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022736 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22738 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022739 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22740 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022741done
22742LIBOBJS=$ac_libobjs
22743
22744LTLIBOBJS=$ac_ltlibobjs
22745
22746
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022747if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022748 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22749Usually this means the macro was only invoked conditionally." >&5
22750echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22751Usually this means the macro was only invoked conditionally." >&2;}
22752 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022753fi
22754if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022755 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22756Usually this means the macro was only invoked conditionally." >&5
22757echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22758Usually this means the macro was only invoked conditionally." >&2;}
22759 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022760fi
John Criswell7a73b802003-06-30 21:59:07 +000022761
22762: ${CONFIG_STATUS=./config.status}
22763ac_clean_files_save=$ac_clean_files
22764ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022765{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22766echo "$as_me: creating $CONFIG_STATUS" >&6;}
22767cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022768#! $SHELL
22769# Generated by $as_me.
22770# Run this file to recreate the current configuration.
22771# Compiler output produced by configure, useful for debugging
22772# configure, is in config.log if it exists.
22773
22774debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022775ac_cs_recheck=false
22776ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022777SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022778_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022780cat >>$CONFIG_STATUS <<\_ACEOF
22781## --------------------- ##
22782## M4sh Initialization. ##
22783## --------------------- ##
22784
22785# Be Bourne compatible
22786if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022787 emulate sh
22788 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022789 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022790 # is contrary to our usage. Disable this feature.
22791 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022792 setopt NO_GLOB_SUBST
22793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022794 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022796BIN_SH=xpg4; export BIN_SH # for Tru64
22797DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022798
John Criswell7a73b802003-06-30 21:59:07 +000022799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022800# PATH needs CR
22801# Avoid depending upon Character Ranges.
22802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22805as_cr_digits='0123456789'
22806as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022807
22808# The user is always right.
22809if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022810 echo "#! /bin/sh" >conf$$.sh
22811 echo "exit 0" >>conf$$.sh
22812 chmod +x conf$$.sh
22813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22814 PATH_SEPARATOR=';'
22815 else
22816 PATH_SEPARATOR=:
22817 fi
22818 rm -f conf$$.sh
22819fi
22820
22821# Support unset when possible.
22822if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22823 as_unset=unset
22824else
22825 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022826fi
John Criswell7a73b802003-06-30 21:59:07 +000022827
Reid Spencera773bd52006-08-04 18:18:08 +000022828
22829# IFS
22830# We need space, tab and new line, in precisely that order. Quoting is
22831# there to prevent editors from complaining about space-tab.
22832# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22833# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022834as_nl='
22835'
Reid Spencera773bd52006-08-04 18:18:08 +000022836IFS=" "" $as_nl"
22837
22838# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022839case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022840 *[\\/]* ) as_myself=$0 ;;
22841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022842for as_dir in $PATH
22843do
22844 IFS=$as_save_IFS
22845 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22847done
Reid Spencera773bd52006-08-04 18:18:08 +000022848IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022849
Reid Spencera773bd52006-08-04 18:18:08 +000022850 ;;
22851esac
22852# We did not find ourselves, most probably we were run as `sh COMMAND'
22853# in which case we are not to be found in the path.
22854if test "x$as_myself" = x; then
22855 as_myself=$0
22856fi
22857if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022858 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22859 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022860fi
22861
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022862# Work around bugs in pre-3.0 UWIN ksh.
22863for as_var in ENV MAIL MAILPATH
22864do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022865done
22866PS1='$ '
22867PS2='> '
22868PS4='+ '
22869
22870# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022871for as_var in \
22872 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22873 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22874 LC_TELEPHONE LC_TIME
22875do
22876 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22877 eval $as_var=C; export $as_var
22878 else
22879 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022880 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022881done
Torok Edwin871384f2010-01-26 08:50:50 +000022882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022883# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022884if expr a : '\(a\)' >/dev/null 2>&1 &&
22885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22886 as_expr=expr
22887else
22888 as_expr=false
22889fi
22890
22891if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22892 as_basename=basename
22893else
22894 as_basename=false
22895fi
22896
22897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022898# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022899as_me=`$as_basename -- "$0" ||
22900$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22901 X"$0" : 'X\(//\)$' \| \
22902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022903echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022904 sed '/^.*\/\([^/][^/]*\)\/*$/{
22905 s//\1/
22906 q
22907 }
22908 /^X\/\(\/\/\)$/{
22909 s//\1/
22910 q
22911 }
22912 /^X\/\(\/\).*/{
22913 s//\1/
22914 q
22915 }
22916 s/.*/./; q'`
22917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022918# CDPATH.
22919$as_unset CDPATH
22920
22921
22922
22923 as_lineno_1=$LINENO
22924 as_lineno_2=$LINENO
22925 test "x$as_lineno_1" != "x$as_lineno_2" &&
22926 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22927
22928 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22929 # uniformly replaced by the line number. The first 'sed' inserts a
22930 # line-number line after each line using $LINENO; the second 'sed'
22931 # does the real work. The second script uses 'N' to pair each
22932 # line-number line with the line containing $LINENO, and appends
22933 # trailing '-' during substitution so that $LINENO is not a special
22934 # case at line end.
22935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22936 # scripts with optimization help from Paolo Bonzini. Blame Lee
22937 # E. McMahon (1931-1989) for sed's syntax. :-)
22938 sed -n '
22939 p
22940 /[$]LINENO/=
22941 ' <$as_myself |
22942 sed '
22943 s/[$]LINENO.*/&-/
22944 t lineno
22945 b
22946 :lineno
22947 N
22948 :loop
22949 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22950 t loop
22951 s/-\n.*//
22952 ' >$as_me.lineno &&
22953 chmod +x "$as_me.lineno" ||
22954 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22955 { (exit 1); exit 1; }; }
22956
22957 # Don't try to exec as it changes $[0], causing all sort of problems
22958 # (the dirname of $[0] is not the place where we might find the
22959 # original and so on. Autoconf is especially sensitive to this).
22960 . "./$as_me.lineno"
22961 # Exit status is that of the last command.
22962 exit
22963}
22964
22965
22966if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22967 as_dirname=dirname
22968else
22969 as_dirname=false
22970fi
Reid Spencera773bd52006-08-04 18:18:08 +000022971
22972ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022973case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022974-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022975 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000022976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022977 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000022978 esac;;
22979*)
22980 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000022981esac
22982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022983if expr a : '\(a\)' >/dev/null 2>&1 &&
22984 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22985 as_expr=expr
22986else
22987 as_expr=false
22988fi
22989
John Criswell7a73b802003-06-30 21:59:07 +000022990rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000022991if test -d conf$$.dir; then
22992 rm -f conf$$.dir/conf$$.file
22993else
22994 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022995 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000022996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022997echo >conf$$.file
22998if ln -s conf$$.file conf$$ 2>/dev/null; then
22999 as_ln_s='ln -s'
23000 # ... but there are two gotchas:
23001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23003 # In both cases, we have to default to `cp -p'.
23004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000023005 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023006elif ln conf$$.file conf$$ 2>/dev/null; then
23007 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000023008else
23009 as_ln_s='cp -p'
23010fi
Reid Spencera773bd52006-08-04 18:18:08 +000023011rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23012rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000023013
John Criswell0c38eaf2003-09-10 15:17:25 +000023014if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023015 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023016else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023017 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000023018 as_mkdir_p=false
23019fi
23020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023021# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23022# systems may use methods other than mode bits to determine executability.
23023cat >conf$$.file <<_ASEOF
23024#! /bin/sh
23025exit 0
23026_ASEOF
23027chmod +x conf$$.file
23028if test -x conf$$.file >/dev/null 2>&1; then
23029 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000023030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023031 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000023032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023033rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000023034
23035# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023036as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023037
23038# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023039as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023040
23041
John Criswell7a73b802003-06-30 21:59:07 +000023042exec 6>&1
23043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023044# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000023045# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000023046# values after options handling.
23047ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023048This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023049generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023050
23051 CONFIG_FILES = $CONFIG_FILES
23052 CONFIG_HEADERS = $CONFIG_HEADERS
23053 CONFIG_LINKS = $CONFIG_LINKS
23054 CONFIG_COMMANDS = $CONFIG_COMMANDS
23055 $ $0 $@
23056
Reid Spencera773bd52006-08-04 18:18:08 +000023057on `(hostname || uname -n) 2>/dev/null | sed 1q`
23058"
23059
John Criswell7a73b802003-06-30 21:59:07 +000023060_ACEOF
23061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023062cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023063# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000023064config_files="$ac_config_files"
23065config_headers="$ac_config_headers"
23066config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000023067
Reid Spencera773bd52006-08-04 18:18:08 +000023068_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023070cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023071ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023072\`$as_me' instantiates files from templates according to the
23073current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000023074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023075Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000023076
23077 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023078 -V, --version print version number, then exit
23079 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023080 -d, --debug don't remove temporary files
23081 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023082 --file=FILE[:TEMPLATE]
23083 instantiate the configuration file FILE
23084 --header=FILE[:TEMPLATE]
23085 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000023086
23087Configuration files:
23088$config_files
23089
23090Configuration headers:
23091$config_headers
23092
John Criswellc764fbc2003-09-06 15:17:13 +000023093Configuration commands:
23094$config_commands
23095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023096Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000023097
Reid Spencera773bd52006-08-04 18:18:08 +000023098_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023099cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023100ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023101llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023102configured by $0, generated by GNU Autoconf 2.60,
23103 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000023104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023105Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023106This config.status script is free software; the Free Software Foundation
23107gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000023108
23109ac_pwd='$ac_pwd'
23110srcdir='$srcdir'
23111INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000023112_ACEOF
23113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023114cat >>$CONFIG_STATUS <<\_ACEOF
23115# If no file are specified by the user, then we need to provide default
23116# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000023117ac_need_defaults=:
23118while test $# != 0
23119do
23120 case $1 in
23121 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000023122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23123 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023124 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023125 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023126 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000023127 ac_option=$1
23128 ac_optarg=$2
23129 ac_shift=shift
23130 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023131 esac
23132
John Criswell0c38eaf2003-09-10 15:17:25 +000023133 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023134 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000023135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23136 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023138 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023139 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000023140 debug=: ;;
23141 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023142 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023143 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023144 ac_need_defaults=false;;
23145 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023146 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023147 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023148 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000023149 --he | --h)
23150 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023151 { echo "$as_me: error: ambiguous option: $1
23152Try \`$0 --help' for more information." >&2
23153 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023154 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023155 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23158 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023159
23160 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023161 -*) { echo "$as_me: error: unrecognized option: $1
23162Try \`$0 --help' for more information." >&2
23163 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000023164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023165 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000023166 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000023167
23168 esac
23169 shift
23170done
23171
John Criswell0c38eaf2003-09-10 15:17:25 +000023172ac_configure_extra_args=
23173
23174if $ac_cs_silent; then
23175 exec 6>/dev/null
23176 ac_configure_extra_args="$ac_configure_extra_args --silent"
23177fi
23178
23179_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023180cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023181if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023182 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23183 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000023184 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023185 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000023186fi
23187
John Criswell7a73b802003-06-30 21:59:07 +000023188_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023189cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023190exec 5>>config.log
23191{
23192 echo
23193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23194## Running $as_me. ##
23195_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023196 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023197} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023198
Reid Spencera773bd52006-08-04 18:18:08 +000023199_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023200cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023201#
Reid Spencera773bd52006-08-04 18:18:08 +000023202# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023203#
Reid Spencerc0682832005-02-24 19:05:19 +000023204llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023205
23206_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023208cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023209
23210# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023211for ac_config_target in $ac_config_targets
23212do
Reid Spencera773bd52006-08-04 18:18:08 +000023213 case $ac_config_target in
23214 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023215 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023216 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23217 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023218 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023219 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023220 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023221 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023222 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000023223 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23224 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023225 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023226 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23227 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23228 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23229 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23230 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23231 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023232 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023233 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23234 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023235 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023236 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23237 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23238 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023239 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23240 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023242 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23243echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23244 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023245 esac
23246done
23247
Reid Spencera773bd52006-08-04 18:18:08 +000023248
John Criswell7a73b802003-06-30 21:59:07 +000023249# If the user did not use the arguments to specify the items to instantiate,
23250# then the envvar interface is used. Set only those that are not.
23251# We use the long form for the default assignment because of an extremely
23252# bizarre bug on SunOS 4.1.3.
23253if $ac_need_defaults; then
23254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023257fi
23258
John Criswell0c38eaf2003-09-10 15:17:25 +000023259# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023260# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023261# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023262# Hook for its removal unless debugging.
23263# Note that there is a small window in which the directory will not be cleaned:
23264# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023265$debug ||
23266{
Reid Spencera773bd52006-08-04 18:18:08 +000023267 tmp=
23268 trap 'exit_status=$?
23269 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23270' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023271 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023272}
John Criswell7a73b802003-06-30 21:59:07 +000023273# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023274
John Criswell7a73b802003-06-30 21:59:07 +000023275{
Reid Spencera773bd52006-08-04 18:18:08 +000023276 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023277 test -n "$tmp" && test -d "$tmp"
23278} ||
23279{
Reid Spencera773bd52006-08-04 18:18:08 +000023280 tmp=./conf$$-$RANDOM
23281 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023282} ||
23283{
23284 echo "$me: cannot create a temporary directory in ." >&2
23285 { (exit 1); exit 1; }
23286}
John Criswell7a73b802003-06-30 21:59:07 +000023287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023288#
23289# Set up the sed scripts for CONFIG_FILES section.
23290#
23291
23292# No need to generate the scripts if there are no CONFIG_FILES.
23293# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023294if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023295
23296_ACEOF
23297
Reid Spencera773bd52006-08-04 18:18:08 +000023298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023299
Reid Spencera773bd52006-08-04 18:18:08 +000023300ac_delim='%!_!# '
23301for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023302 cat >conf$$subs.sed <<_ACEOF
23303SHELL!$SHELL$ac_delim
23304PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23305PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23306PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23307PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23308PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23309PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23310exec_prefix!$exec_prefix$ac_delim
23311prefix!$prefix$ac_delim
23312program_transform_name!$program_transform_name$ac_delim
23313bindir!$bindir$ac_delim
23314sbindir!$sbindir$ac_delim
23315libexecdir!$libexecdir$ac_delim
23316datarootdir!$datarootdir$ac_delim
23317datadir!$datadir$ac_delim
23318sysconfdir!$sysconfdir$ac_delim
23319sharedstatedir!$sharedstatedir$ac_delim
23320localstatedir!$localstatedir$ac_delim
23321includedir!$includedir$ac_delim
23322oldincludedir!$oldincludedir$ac_delim
23323docdir!$docdir$ac_delim
23324infodir!$infodir$ac_delim
23325htmldir!$htmldir$ac_delim
23326dvidir!$dvidir$ac_delim
23327pdfdir!$pdfdir$ac_delim
23328psdir!$psdir$ac_delim
23329libdir!$libdir$ac_delim
23330localedir!$localedir$ac_delim
23331mandir!$mandir$ac_delim
23332DEFS!$DEFS$ac_delim
23333ECHO_C!$ECHO_C$ac_delim
23334ECHO_N!$ECHO_N$ac_delim
23335ECHO_T!$ECHO_T$ac_delim
23336LIBS!$LIBS$ac_delim
23337build_alias!$build_alias$ac_delim
23338host_alias!$host_alias$ac_delim
23339target_alias!$target_alias$ac_delim
23340LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23341subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023342ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23343LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023344build!$build$ac_delim
23345build_cpu!$build_cpu$ac_delim
23346build_vendor!$build_vendor$ac_delim
23347build_os!$build_os$ac_delim
23348host!$host$ac_delim
23349host_cpu!$host_cpu$ac_delim
23350host_vendor!$host_vendor$ac_delim
23351host_os!$host_os$ac_delim
23352target!$target$ac_delim
23353target_cpu!$target_cpu$ac_delim
23354target_vendor!$target_vendor$ac_delim
23355target_os!$target_os$ac_delim
23356OS!$OS$ac_delim
23357HOST_OS!$HOST_OS$ac_delim
23358TARGET_OS!$TARGET_OS$ac_delim
23359LINKALL!$LINKALL$ac_delim
23360NOLINKALL!$NOLINKALL$ac_delim
23361LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23362LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23363ARCH!$ARCH$ac_delim
23364ENDIAN!$ENDIAN$ac_delim
23365CC!$CC$ac_delim
23366CFLAGS!$CFLAGS$ac_delim
23367LDFLAGS!$LDFLAGS$ac_delim
23368CPPFLAGS!$CPPFLAGS$ac_delim
23369ac_ct_CC!$ac_ct_CC$ac_delim
23370EXEEXT!$EXEEXT$ac_delim
23371OBJEXT!$OBJEXT$ac_delim
23372CPP!$CPP$ac_delim
23373GREP!$GREP$ac_delim
23374EGREP!$EGREP$ac_delim
23375LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23376BUILD_CC!$BUILD_CC$ac_delim
23377BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23378BUILD_CXX!$BUILD_CXX$ac_delim
23379CVSBUILD!$CVSBUILD$ac_delim
23380ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23381ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23382DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23383ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23384EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23385DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23386DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23387JIT!$JIT$ac_delim
23388TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023389ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023390ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23391ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023392ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023393ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023394ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023395ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023396ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023397TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23398LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23399LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023400_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023402 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023403 break
23404 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023405 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23406echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23407 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023408 else
23409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023410 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023411done
23412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023413ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23414if test -n "$ac_eof"; then
23415 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23416 ac_eof=`expr $ac_eof + 1`
23417fi
23418
23419cat >>$CONFIG_STATUS <<_ACEOF
23420cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23421/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023423sed '
23424s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23425s/^/s,@/; s/!/@,|#_!!_#|/
23426:n
23427t n
23428s/'"$ac_delim"'$/,g/; t
23429s/$/\\/; p
23430N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23431' >>$CONFIG_STATUS <conf$$subs.sed
23432rm -f conf$$subs.sed
23433cat >>$CONFIG_STATUS <<_ACEOF
23434CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023435_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023436
23437
23438ac_delim='%!_!# '
23439for ac_last_try in false false false false false :; do
23440 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023441LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023442LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023443ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023444CLANGPATH!$CLANGPATH$ac_delim
23445CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023446ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023447OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023448EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000023449EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023450BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023451CXX!$CXX$ac_delim
23452CXXFLAGS!$CXXFLAGS$ac_delim
23453ac_ct_CXX!$ac_ct_CXX$ac_delim
23454NM!$NM$ac_delim
23455ifGNUmake!$ifGNUmake$ac_delim
23456LN_S!$LN_S$ac_delim
23457CMP!$CMP$ac_delim
23458CP!$CP$ac_delim
23459DATE!$DATE$ac_delim
23460FIND!$FIND$ac_delim
23461MKDIR!$MKDIR$ac_delim
23462MV!$MV$ac_delim
23463RANLIB!$RANLIB$ac_delim
23464AR!$AR$ac_delim
23465RM!$RM$ac_delim
23466SED!$SED$ac_delim
23467TAR!$TAR$ac_delim
23468BINPWD!$BINPWD$ac_delim
23469GRAPHVIZ!$GRAPHVIZ$ac_delim
23470DOT!$DOT$ac_delim
23471FDP!$FDP$ac_delim
23472NEATO!$NEATO$ac_delim
23473TWOPI!$TWOPI$ac_delim
23474CIRCO!$CIRCO$ac_delim
23475GV!$GV$ac_delim
23476DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023477XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023478PERL!$PERL$ac_delim
23479HAVE_PERL!$HAVE_PERL$ac_delim
23480INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23481INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23482INSTALL_DATA!$INSTALL_DATA$ac_delim
23483BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023484CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023485DOXYGEN!$DOXYGEN$ac_delim
23486GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023487GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023488POD2HTML!$POD2HTML$ac_delim
23489POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023490PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023491RUNTEST!$RUNTEST$ac_delim
23492TCLSH!$TCLSH$ac_delim
23493ZIP!$ZIP$ac_delim
23494OCAMLC!$OCAMLC$ac_delim
23495OCAMLOPT!$OCAMLOPT$ac_delim
23496OCAMLDEP!$OCAMLDEP$ac_delim
23497OCAMLDOC!$OCAMLDOC$ac_delim
23498GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023499HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023500INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23501INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23502CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23503CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23504LIBADD_DL!$LIBADD_DL$ac_delim
23505LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23506LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23507LLVMGCC!$LLVMGCC$ac_delim
23508LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023509LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023510NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23511NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23512USE_UDIS86!$USE_UDIS86$ac_delim
23513USE_OPROFILE!$USE_OPROFILE$ac_delim
23514HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23515HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23516MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023517LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023518LLVMCC1!$LLVMCC1$ac_delim
23519LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23520LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023521LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023522LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023523LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023524SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023525SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023526LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23527LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23528LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23529LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23530LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23531LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23532LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23533LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23534LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23535LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23536BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23537ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023538_ACEOF
23539
Tobias Grossera84b5672010-11-10 16:31:34 +000023540 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023541 break
23542 elif $ac_last_try; then
23543 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23544echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23545 { (exit 1); exit 1; }; }
23546 else
23547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23548 fi
23549done
23550
23551ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23552if test -n "$ac_eof"; then
23553 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23554 ac_eof=`expr $ac_eof + 1`
23555fi
23556
23557cat >>$CONFIG_STATUS <<_ACEOF
23558cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023560_ACEOF
23561sed '
23562s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23563s/^/s,@/; s/!/@,|#_!!_#|/
23564:n
23565t n
23566s/'"$ac_delim"'$/,g/; t
23567s/$/\\/; p
23568N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23569' >>$CONFIG_STATUS <conf$$subs.sed
23570rm -f conf$$subs.sed
23571cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023572CEOF$ac_eof
23573_ACEOF
23574
23575
Tobias Grossera84b5672010-11-10 16:31:34 +000023576ac_delim='%!_!# '
23577for ac_last_try in false false false false false :; do
23578 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbared344d22011-06-16 22:30:41 +000023579OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023580ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023581RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023582RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023583LIBOBJS!$LIBOBJS$ac_delim
23584LTLIBOBJS!$LTLIBOBJS$ac_delim
23585_ACEOF
23586
Daniel Dunbared344d22011-06-16 22:30:41 +000023587 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023588 break
23589 elif $ac_last_try; then
23590 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23591echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23592 { (exit 1); exit 1; }; }
23593 else
23594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23595 fi
23596done
23597
23598ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23599if test -n "$ac_eof"; then
23600 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23601 ac_eof=`expr $ac_eof + 1`
23602fi
23603
23604cat >>$CONFIG_STATUS <<_ACEOF
23605cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23606/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23607_ACEOF
23608sed '
23609s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23610s/^/s,@/; s/!/@,|#_!!_#|/
23611:n
23612t n
23613s/'"$ac_delim"'$/,g/; t
23614s/$/\\/; p
23615N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23616' >>$CONFIG_STATUS <conf$$subs.sed
23617rm -f conf$$subs.sed
23618cat >>$CONFIG_STATUS <<_ACEOF
23619:end
23620s/|#_!!_#|//g
23621CEOF$ac_eof
23622_ACEOF
23623
23624
Reid Spencera773bd52006-08-04 18:18:08 +000023625# VPATH may cause trouble with some makes, so we remove $(srcdir),
23626# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23627# trailing colons and then remove the whole line if VPATH becomes empty
23628# (actually we leave an empty line to preserve line numbers).
23629if test "x$srcdir" = x.; then
23630 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23631s/:*\$(srcdir):*/:/
23632s/:*\${srcdir}:*/:/
23633s/:*@srcdir@:*/:/
23634s/^\([^=]*=[ ]*\):*/\1/
23635s/:*$//
23636s/^[^=]*=[ ]*$//
23637}'
23638fi
23639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023640cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023641fi # test -n "$CONFIG_FILES"
23642
Reid Spencera773bd52006-08-04 18:18:08 +000023643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023644for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023645do
23646 case $ac_tag in
23647 :[FHLC]) ac_mode=$ac_tag; continue;;
23648 esac
23649 case $ac_mode$ac_tag in
23650 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023651 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23652echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23653 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023654 :[FH]-) ac_tag=-:-;;
23655 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23656 esac
23657 ac_save_IFS=$IFS
23658 IFS=:
23659 set x $ac_tag
23660 IFS=$ac_save_IFS
23661 shift
23662 ac_file=$1
23663 shift
23664
23665 case $ac_mode in
23666 :L) ac_source=$1;;
23667 :[FH])
23668 ac_file_inputs=
23669 for ac_f
23670 do
23671 case $ac_f in
23672 -) ac_f="$tmp/stdin";;
23673 *) # Look for the file first in the build tree, then in the source tree
23674 # (if the path is not absolute). The absolute path cannot be DOS-style,
23675 # because $ac_f cannot contain `:'.
23676 test -f "$ac_f" ||
23677 case $ac_f in
23678 [\\/$]*) false;;
23679 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23680 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023681 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23682echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23683 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023684 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023685 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023686 done
23687
23688 # Let's still pretend it is `configure' which instantiates (i.e., don't
23689 # use $as_me), people would be surprised to read:
23690 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023691 configure_input="Generated from "`IFS=:
23692 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023693 if test x"$ac_file" != x-; then
23694 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023695 { echo "$as_me:$LINENO: creating $ac_file" >&5
23696echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023697 fi
23698
23699 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023700 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023701 esac
23702 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023703 esac
23704
Reid Spencera773bd52006-08-04 18:18:08 +000023705 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023706$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023707 X"$ac_file" : 'X\(//\)[^/]' \| \
23708 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023710echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23712 s//\1/
23713 q
23714 }
23715 /^X\(\/\/\)[^/].*/{
23716 s//\1/
23717 q
23718 }
23719 /^X\(\/\/\)$/{
23720 s//\1/
23721 q
23722 }
23723 /^X\(\/\).*/{
23724 s//\1/
23725 q
23726 }
23727 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023728 { as_dir="$ac_dir"
23729 case $as_dir in #(
23730 -*) as_dir=./$as_dir;;
23731 esac
23732 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23733 as_dirs=
23734 while :; do
23735 case $as_dir in #(
23736 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23737 *) as_qdir=$as_dir;;
23738 esac
23739 as_dirs="'$as_qdir' $as_dirs"
23740 as_dir=`$as_dirname -- "$as_dir" ||
23741$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23742 X"$as_dir" : 'X\(//\)[^/]' \| \
23743 X"$as_dir" : 'X\(//\)$' \| \
23744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23745echo X"$as_dir" |
23746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23747 s//\1/
23748 q
23749 }
23750 /^X\(\/\/\)[^/].*/{
23751 s//\1/
23752 q
23753 }
23754 /^X\(\/\/\)$/{
23755 s//\1/
23756 q
23757 }
23758 /^X\(\/\).*/{
23759 s//\1/
23760 q
23761 }
23762 s/.*/./; q'`
23763 test -d "$as_dir" && break
23764 done
23765 test -z "$as_dirs" || eval "mkdir $as_dirs"
23766 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23767echo "$as_me: error: cannot create directory $as_dir" >&2;}
23768 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023769 ac_builddir=.
23770
Reid Spencera773bd52006-08-04 18:18:08 +000023771case "$ac_dir" in
23772.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23773*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023774 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023775 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023776 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023777 case $ac_top_builddir_sub in
23778 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23779 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23780 esac ;;
23781esac
23782ac_abs_top_builddir=$ac_pwd
23783ac_abs_builddir=$ac_pwd$ac_dir_suffix
23784# for backward compatibility:
23785ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023786
23787case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023788 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023789 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023790 ac_top_srcdir=$ac_top_builddir_sub
23791 ac_abs_top_srcdir=$ac_pwd ;;
23792 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023793 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023794 ac_top_srcdir=$srcdir
23795 ac_abs_top_srcdir=$srcdir ;;
23796 *) # Relative name.
23797 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23798 ac_top_srcdir=$ac_top_build_prefix$srcdir
23799 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023800esac
Reid Spencera773bd52006-08-04 18:18:08 +000023801ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023802
John Criswell7a73b802003-06-30 21:59:07 +000023803
Reid Spencera773bd52006-08-04 18:18:08 +000023804 case $ac_mode in
23805 :F)
23806 #
23807 # CONFIG_FILE
23808 #
John Criswell7a73b802003-06-30 21:59:07 +000023809
23810 case $INSTALL in
23811 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023812 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023813 esac
John Criswell7a73b802003-06-30 21:59:07 +000023814_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023816cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023817# If the template does not know about datarootdir, expand it.
23818# FIXME: This hack should be removed a few years after 2.60.
23819ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023820
23821case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023822 p
23823 q
23824}
23825/@datadir@/p
23826/@docdir@/p
23827/@infodir@/p
23828/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023829/@mandir@/p
23830' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023831*datarootdir*) ac_datarootdir_seen=yes;;
23832*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023833 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23834echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023835_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023836cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023837 ac_datarootdir_hack='
23838 s&@datadir@&$datadir&g
23839 s&@docdir@&$docdir&g
23840 s&@infodir@&$infodir&g
23841 s&@localedir@&$localedir&g
23842 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023843 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023844esac
23845_ACEOF
23846
23847# Neutralize VPATH when `$srcdir' = `.'.
23848# Shell code in configure.ac might set extrasub.
23849# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023850cat >>$CONFIG_STATUS <<_ACEOF
23851 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023852$extrasub
23853_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023854cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023855:t
23856/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023857s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023858s&@top_builddir@&$ac_top_builddir_sub&;t t
23859s&@srcdir@&$ac_srcdir&;t t
23860s&@abs_srcdir@&$ac_abs_srcdir&;t t
23861s&@top_srcdir@&$ac_top_srcdir&;t t
23862s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23863s&@builddir@&$ac_builddir&;t t
23864s&@abs_builddir@&$ac_abs_builddir&;t t
23865s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23866s&@INSTALL@&$ac_INSTALL&;t t
23867$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023868" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000023869
Reid Spencera773bd52006-08-04 18:18:08 +000023870test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23871 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23872 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023873 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023874which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023875echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023876which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023877
Reid Spencera773bd52006-08-04 18:18:08 +000023878 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023879 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023880 -) cat "$tmp/out"; rm -f "$tmp/out";;
23881 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23882 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023883 ;;
23884 :H)
23885 #
23886 # CONFIG_HEADER
23887 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023888_ACEOF
23889
23890# Transform confdefs.h into a sed script `conftest.defines', that
23891# substitutes the proper values into config.h.in to produce config.h.
23892rm -f conftest.defines conftest.tail
23893# First, append a space to every undef/define line, to ease matching.
23894echo 's/$/ /' >conftest.defines
23895# Then, protect against being on the right side of a sed subst, or in
23896# an unquoted here document, in config.status. If some macros were
23897# called several times there might be several #defines for the same
23898# symbol, which is useless. But do not sort them, since the last
23899# AC_DEFINE must be honored.
23900ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23901# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23902# NAME is the cpp macro being defined, VALUE is the value it is being given.
23903# PARAMS is the parameter list in the macro definition--in most cases, it's
23904# just an empty string.
23905ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23906ac_dB='\\)[ (].*,\\1define\\2'
23907ac_dC=' '
23908ac_dD=' ,'
23909
23910uniq confdefs.h |
23911 sed -n '
23912 t rset
23913 :rset
23914 s/^[ ]*#[ ]*define[ ][ ]*//
23915 t ok
23916 d
23917 :ok
23918 s/[\\&,]/\\&/g
23919 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23920 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23921 ' >>conftest.defines
23922
23923# Remove the space that was appended to ease matching.
23924# Then replace #undef with comments. This is necessary, for
23925# example, in the case of _POSIX_SOURCE, which is predefined and required
23926# on some systems where configure will not decide to define it.
23927# (The regexp can be short, since the line contains either #define or #undef.)
23928echo 's/ $//
23929s,^[ #]*u.*,/* & */,' >>conftest.defines
23930
23931# Break up conftest.defines:
23932ac_max_sed_lines=50
23933
23934# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23935# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23936# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23937# et cetera.
23938ac_in='$ac_file_inputs'
23939ac_out='"$tmp/out1"'
23940ac_nxt='"$tmp/out2"'
23941
23942while :
23943do
23944 # Write a here document:
23945 cat >>$CONFIG_STATUS <<_ACEOF
23946 # First, check the format of the line:
23947 cat >"\$tmp/defines.sed" <<\\CEOF
23948/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23949/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23950b
23951:def
23952_ACEOF
23953 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23954 echo 'CEOF
23955 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23956 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23957 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23958 grep . conftest.tail >/dev/null || break
23959 rm -f conftest.defines
23960 mv conftest.tail conftest.defines
23961done
23962rm -f conftest.defines conftest.tail
23963
23964echo "ac_result=$ac_in" >>$CONFIG_STATUS
23965cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023966 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023967 echo "/* $configure_input */" >"$tmp/config.h"
23968 cat "$ac_result" >>"$tmp/config.h"
23969 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23970 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23971echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023972 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023973 rm -f $ac_file
23974 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023975 fi
23976 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023977 echo "/* $configure_input */"
23978 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000023979 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023980 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000023981 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023983 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23984echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023985 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023986 esac
John Criswell7a73b802003-06-30 21:59:07 +000023987
Reid Spencera773bd52006-08-04 18:18:08 +000023988
23989 case $ac_file$ac_mode in
23990 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023992 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000023993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023994 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023996 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023998 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024000 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024002 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000024003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000024004 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024006 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024008 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024010 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024012 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024014 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000024015 ${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 +000024016
24017 esac
24018done # for ac_tag
24019
John Criswell7a73b802003-06-30 21:59:07 +000024020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024021{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000024022_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024023chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024024ac_clean_files=$ac_clean_files_save
24025
24026
24027# configure is writing to config.log, and then calls config.status.
24028# config.status does its own redirection, appending to config.log.
24029# Unfortunately, on DOS this fails, as config.log is still kept open
24030# by configure, so config.status won't be able to write to it; its
24031# output is simply discarded. So we exec the FD to /dev/null,
24032# effectively closing config.log, so it can be properly (re)opened and
24033# appended to by config.status. When coming back to configure, we
24034# need to make the FD available again.
24035if test "$no_create" != yes; then
24036 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024037 ac_config_status_args=
24038 test "$silent" = yes &&
24039 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024040 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024042 exec 5>>config.log
24043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24044 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024045 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000024046fi
24047
John Criswell12399a12003-09-30 15:55:44 +000024048#
24049# CONFIG_SUBDIRS section.
24050#
24051if test "$no_recursion" != yes; then
24052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024053 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000024054 ac_sub_configure_args=
24055 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000024056 eval "set x $ac_configure_args"
24057 shift
24058 for ac_arg
24059 do
John Criswell12399a12003-09-30 15:55:44 +000024060 if test -n "$ac_prev"; then
24061 ac_prev=
24062 continue
24063 fi
24064 case $ac_arg in
24065 -cache-file | --cache-file | --cache-fil | --cache-fi \
24066 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24067 ac_prev=cache_file ;;
24068 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24069 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24070 | --c=*)
24071 ;;
24072 --config-cache | -C)
24073 ;;
24074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24075 ac_prev=srcdir ;;
24076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24077 ;;
24078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24079 ac_prev=prefix ;;
24080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24081 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024082 *)
24083 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024084 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024085 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024086 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000024087 esac
24088 done
24089
24090 # Always prepend --prefix to ensure using the same prefix
24091 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000024092 ac_arg="--prefix=$prefix"
24093 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024094 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024095 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024096 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000024097
24098 ac_popdir=`pwd`
24099 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24100
24101 # Do not complain, so a configure script can configure whichever
24102 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000024103 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000024104
Reid Spencera773bd52006-08-04 18:18:08 +000024105 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024106 echo "$as_me:$LINENO: $ac_msg" >&5
24107 echo "$ac_msg" >&6
24108 { as_dir="$ac_dir"
24109 case $as_dir in #(
24110 -*) as_dir=./$as_dir;;
24111 esac
24112 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24113 as_dirs=
24114 while :; do
24115 case $as_dir in #(
24116 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24117 *) as_qdir=$as_dir;;
24118 esac
24119 as_dirs="'$as_qdir' $as_dirs"
24120 as_dir=`$as_dirname -- "$as_dir" ||
24121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24122 X"$as_dir" : 'X\(//\)[^/]' \| \
24123 X"$as_dir" : 'X\(//\)$' \| \
24124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24125echo X"$as_dir" |
24126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24127 s//\1/
24128 q
24129 }
24130 /^X\(\/\/\)[^/].*/{
24131 s//\1/
24132 q
24133 }
24134 /^X\(\/\/\)$/{
24135 s//\1/
24136 q
24137 }
24138 /^X\(\/\).*/{
24139 s//\1/
24140 q
24141 }
24142 s/.*/./; q'`
24143 test -d "$as_dir" && break
24144 done
24145 test -z "$as_dirs" || eval "mkdir $as_dirs"
24146 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24147echo "$as_me: error: cannot create directory $as_dir" >&2;}
24148 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000024149 ac_builddir=.
24150
Reid Spencera773bd52006-08-04 18:18:08 +000024151case "$ac_dir" in
24152.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24153*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024154 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024155 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024156 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024157 case $ac_top_builddir_sub in
24158 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24159 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24160 esac ;;
24161esac
24162ac_abs_top_builddir=$ac_pwd
24163ac_abs_builddir=$ac_pwd$ac_dir_suffix
24164# for backward compatibility:
24165ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000024166
24167case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000024168 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000024169 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000024170 ac_top_srcdir=$ac_top_builddir_sub
24171 ac_abs_top_srcdir=$ac_pwd ;;
24172 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000024173 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000024174 ac_top_srcdir=$srcdir
24175 ac_abs_top_srcdir=$srcdir ;;
24176 *) # Relative name.
24177 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24178 ac_top_srcdir=$ac_top_build_prefix$srcdir
24179 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000024180esac
Reid Spencera773bd52006-08-04 18:18:08 +000024181ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000024182
24183
Reid Spencera773bd52006-08-04 18:18:08 +000024184 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000024185
24186 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000024187 if test -f "$ac_srcdir/configure.gnu"; then
24188 ac_sub_configure=$ac_srcdir/configure.gnu
24189 elif test -f "$ac_srcdir/configure"; then
24190 ac_sub_configure=$ac_srcdir/configure
24191 elif test -f "$ac_srcdir/configure.in"; then
24192 # This should be Cygnus configure.
24193 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024194 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024195 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24196echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024197 ac_sub_configure=
24198 fi
24199
24200 # The recursion is here.
24201 if test -n "$ac_sub_configure"; then
24202 # Make the cache file name correct relative to the subdirectory.
24203 case $cache_file in
24204 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024205 *) # Relative name.
24206 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024207 esac
24208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024209 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24210echo "$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 +000024211 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024212 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24213 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024214 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24215echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24216 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024217 fi
24218
Reid Spencera773bd52006-08-04 18:18:08 +000024219 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024220 done
24221fi
24222