blob: 280187e0e196f62370c77fc6ef9374828f3ce88b [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerb072da72010-03-19 21:22:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
John Criswell49428a22010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016
Daniel Dunbar41bab122010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030
31
Jeffrey Yasskinb6450492010-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinb6450492010-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000058fi
59
60
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 Yasskinb6450492010-02-03 02:11:49 +000066as_nl='
67'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000071case $0 in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000080IFS=$as_save_IFS
81
82 ;;
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 Yasskinb6450492010-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; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000092fi
93
Jeffrey Yasskinb6450492010-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskinb6450492010-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
Edwin Törökc27310c2010-01-26 08:50:50 +0000107do
Jeffrey Yasskinb6450492010-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
Edwin Törökc27310c2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Edwin Törökc27310c2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000113done
Edwin Törökc27310c2010-01-26 08:50:50 +0000114
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000115# Required to use basename.
Dan Gohmanf17a25c2007-07-18 16:29:46 +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 Yasskinb6450492010-02-03 02:11:49 +0000130# Name of the executable.
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000135echo X/"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +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 Yasskinb6450492010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000152
153
Jeffrey Yasskinb6450492010-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. :-)
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskinb6450492010-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; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +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
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskinb6450492010-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000471case `echo -n x` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000472-n*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
Jeffrey Yasskinb6450492010-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000494fi
Jeffrey Yasskinb6450492010-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 ||
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000503 as_ln_s='cp -p'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000506else
507 as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000513 as_mkdir_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000514else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517fi
518
Jeffrey Yasskinb6450492010-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"
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000528else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000529 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000530fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000531rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000542
543# 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
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000560
561# Identity of this package.
562PACKAGE_NAME='llvm'
563PACKAGE_TARNAME='-llvm-'
Tanya Lattnerb072da72010-03-19 21:22:13 +0000564PACKAGE_VERSION='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568ac_unique_file="lib/VMCore/Module.cpp"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000578#if STDC_HEADERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000593# include <strings.h>
594#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000596# include <inttypes.h>
597#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000599# include <stdint.h>
600#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Edwin Törökc27310c2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +0000692ENABLE_SHARED
Daniel Dunbar64732b72010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbarf80d8f32010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
706ENABLE_LLVMC_DYNAMIC
707ENABLE_LLVMC_DYNAMIC_PLUGINS
708CXX
709CXXFLAGS
710ac_ct_CXX
711NM
712ifGNUmake
713LN_S
714CMP
715CP
716DATE
717FIND
718MKDIR
719MV
720RANLIB
721AR
722RM
723SED
724TAR
725BINPWD
726GRAPHVIZ
727DOT
728FDP
729NEATO
730TWOPI
731CIRCO
732GV
733DOTTY
734PERL
735HAVE_PERL
736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
mike-mbc167782010-05-06 23:45:43 +0000740CAT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000741DOXYGEN
742GROFF
743GZIP
744POD2HTML
745POD2MAN
mike-mbc167782010-05-06 23:45:43 +0000746PDFROFF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
Dan Gohman27933ab2010-06-01 14:56:56 +0000755HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761LLVMGCCCOMMAND
762LLVMGXXCOMMAND
763LLVMGCC
764LLVMGXX
Daniel Dunbarf80d8f32010-02-23 10:00:49 +0000765LLVMCC_OPTION
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
768USE_UDIS86
769USE_OPROFILE
770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
773LLVMCC1
774LLVMCC1PLUS
775LLVMGCCDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000776LLVMGCC_LANGS
777SHLIBEXT
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +0000778SHLIBPATH_VAR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000779LLVM_PREFIX
780LLVM_BINDIR
781LLVM_LIBDIR
782LLVM_DATADIR
783LLVM_DOCSDIR
784LLVM_ETCDIR
785LLVM_INCLUDEDIR
786LLVM_INFODIR
787LLVM_MANDIR
788LLVM_CONFIGTIME
789BINDINGS_TO_BUILD
790ALL_BINDINGS
791OCAML_LIBDIR
792ENABLE_VISIBILITY_INLINES_HIDDEN
793RPATH
794RDYNAMIC
795LIBOBJS
796LTLIBOBJS'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000797ac_subst_files=''
798 ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804CPPFLAGS
805CPP
806CXX
807CXXFLAGS
Edwin Törökc27310c2010-01-26 08:50:50 +0000808CCC'
John Criswellc0c57d62010-03-19 21:31:39 +0000809ac_subdirs_all='projects/llvm-gcc
810projects/test-suite
811projects/llvm-test
812projects/poolalloc
813projects/llvm-poolalloc
814projects/sample
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000815projects/privbracket
816projects/llvm-stacker
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000817projects/llvm-reopt
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000818projects/llvm-java
819projects/llvm-tv
John Criswell20b815d2010-02-25 22:57:19 +0000820projects/safecode
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000821projects/llvm-kernel'
822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
915
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
923 -disable-* | --disable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000925 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000944 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001141 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001147
1148 -without-* | --without-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-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=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001204fi
1205
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001206# Be sure to have absolute directory names.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211do
1212 eval ac_val=\$$ac_var
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1236 fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
1245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001253
1254
1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001259 ac_confdir=`$as_dirname -- "$0" ||
1260$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264echo X"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
1289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001293fi
1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
1315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
Tanya Lattnerb072da72010-03-19 21:22:13 +00001323\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001345 [$ac_default_prefix]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001347 [PREFIX]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388 case $ac_init_help in
Tanya Lattnerb072da72010-03-19 21:22:13 +00001389 short | recursive ) echo "Configuration of llvm 2.8svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001390 esac
1391 cat <<\_ACEOF
1392
1393Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001400 --enable-expensive-checks
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 NO)
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00001405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001407 --enable-jit Enable Just In Time Compiling (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001411 is YES)
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +00001412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
Daniel Dunbar64732b72010-05-10 20:11:56 +00001414 --enable-timestamps Enable embedding timestamp information in build
1415 (default is YES)
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00001416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1420 and cpp (default=all)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskin260af332010-02-09 23:03:44 +00001425 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001426 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1427 Win32)
1428 --enable-llvmc-dynamic-plugins
1429 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001430 --enable-ltdl-install install libltdl
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001431
1432Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1436 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001437 --with-llvmgcc Specify location of llvm-gcc driver (default
1438 searches PATH)
1439 --with-llvmgxx Specify location of llvm-g++ driver (default
1440 searches PATH)
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00001441 --with-clang Specify location of clang compiler (default is
1442 --with-built-clang)
1443 --with-built-clang Use the compiled Clang as the LLVM compiler
1444 (default=check)
Daniel Dunbarca58fd82009-11-04 04:32:50 +00001445 --with-optimize-option Select the compiler options to use for optimized
1446 builds
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001447 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001448 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 is stdlib)
Rafael Espindola354924d2009-11-12 05:46:09 +00001450 --with-c-include-dirs Colon separated list of directories clang will
1451 search for headers
Rafael Espindola3890bf02009-11-16 19:46:55 +00001452 --with-cxx-include-root Directory with the libstdc++ headers.
1453 --with-cxx-include-arch Architecture of the libstdc++ headers.
1454 --with-cxx-include-32bit-dir
1455 32 bit multilib dir.
1456 --with-cxx-include-64bit-dir
1457 64 bit multilib directory.
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001458 --with-binutils-include Specify path to binutils/include/ containing
1459 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001460 --with-tclinclude directory where tcl headers are
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00001461 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1462 clang, or none; default=check)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001463 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001464 --with-oprofile=<prefix>
1465 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001466
1467Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
1481Report bugs to <llvmbugs@cs.uiuc.edu>.
1482_ACEOF
1483ac_status=$?
1484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001489 test -d "$ac_dir" || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001490 ac_builddir=.
1491
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001496 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
1507
1508case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1537fi
1538
1539test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then
1541 cat <<\_ACEOF
Tanya Lattnerb072da72010-03-19 21:22:13 +00001542llvm configure 2.8svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001543generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001544
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001545Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15462002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549
John Criswell49428a22010-03-19 21:04:16 +00001550Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001551_ACEOF
1552 exit
1553fi
1554cat >config.log <<_ACEOF
1555This file contains any messages produced by compilers while
1556running configure, to aid debugging if configure makes a mistake.
1557
Tanya Lattnerb072da72010-03-19 21:22:13 +00001558It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001559generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001560
1561 $ $0 $@
1562
1563_ACEOF
1564exec 5>>config.log
1565{
1566cat <<_ASUNAME
1567## --------- ##
1568## Platform. ##
1569## --------- ##
1570
1571hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576
1577/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1579
1580/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1584/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1587
1588_ASUNAME
1589
1590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591for as_dir in $PATH
1592do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001595 echo "PATH: $as_dir"
1596done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001597IFS=$as_save_IFS
1598
1599} >&5
1600
1601cat >&5 <<_ACEOF
1602
1603
1604## ----------- ##
1605## Core tests. ##
1606## ----------- ##
1607
1608_ACEOF
1609
1610
1611# Keep a trace of the command line.
1612# Strip out --no-create and --no-recursion so they do not pile up.
1613# Strip out --silent because we don't want to record it for future runs.
1614# Also quote any args containing shell meta-characters.
1615# Make two passes to allow for proper duplicate-argument suppression.
1616ac_configure_args=
1617ac_configure_args0=
1618ac_configure_args1=
1619ac_must_keep_next=false
1620for ac_pass in 1 2
1621do
1622 for ac_arg
1623 do
1624 case $ac_arg in
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1628 continue ;;
1629 *\'*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001631 esac
1632 case $ac_pass in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001634 2)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001636 if test $ac_must_keep_next = true; then
1637 ac_must_keep_next=false # Got value, back to normal.
1638 else
1639 case $ac_arg in
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 esac
1647 ;;
1648 -* ) ac_must_keep_next=true ;;
1649 esac
1650 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001651 ac_configure_args="$ac_configure_args '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001652 ;;
1653 esac
1654 done
1655done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001656$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001658
1659# When interrupted or exit'd, cleanup temporary files, and complete
1660# config.log. We remove comments because anyway the quotes in there
1661# would cause problems or look ugly.
1662# WARNING: Use '\'' to represent an apostrophe within the trap.
1663# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1666 {
1667 echo
1668
1669 cat <<\_ASBOX
1670## ---------------- ##
1671## Cache variables. ##
1672## ---------------- ##
1673_ASBOX
1674 echo
1675 # The following way of writing the cache mishandles newlines in values,
1676(
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1679 case $ac_val in #(
1680 *${as_nl}*)
1681 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001684 esac
1685 case $ac_var in #(
1686 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001687 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001688 esac ;;
1689 esac
1690 done
1691 (set) 2>&1 |
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1694 sed -n \
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
1698 *)
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700 ;;
1701 esac |
1702 sort
1703)
1704 echo
1705
1706 cat <<\_ASBOX
1707## ----------------- ##
1708## Output variables. ##
1709## ----------------- ##
1710_ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1713 do
1714 eval ac_val=\$$ac_var
1715 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001717 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001718 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001719 done | sort
1720 echo
1721
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
1724## ------------------- ##
1725## File substitutions. ##
1726## ------------------- ##
1727_ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1730 do
1731 eval ac_val=\$$ac_var
1732 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001734 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001735 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001736 done | sort
1737 echo
1738 fi
1739
1740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742## ----------- ##
1743## confdefs.h. ##
1744## ----------- ##
1745_ASBOX
1746 echo
1747 cat confdefs.h
1748 echo
1749 fi
1750 test "$ac_signal" != 0 &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001753 } >&5
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756 exit $exit_status
1757' 0
1758for ac_signal in 1 2 13 15; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001760done
1761ac_signal=0
1762
1763# confdefs.h avoids OS command line length limits that DEFS can exceed.
1764rm -f -r conftest* confdefs.h
1765
1766# Predefined preprocessor variables.
1767
1768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_NAME "$PACKAGE_NAME"
1770_ACEOF
1771
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001772
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775_ACEOF
1776
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001777
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_VERSION "$PACKAGE_VERSION"
1780_ACEOF
1781
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001782
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_STRING "$PACKAGE_STRING"
1785_ACEOF
1786
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001787
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790_ACEOF
1791
1792
1793# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001794# Prefer explicitly selected file to automatically selected ones.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001795if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001796 set x "$CONFIG_SITE"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001797elif test "x$prefix" != xNONE; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001799else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001802fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001803shift
1804for ac_site_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001805do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808echo "$as_me: loading site script $ac_site_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1811 fi
1812done
1813
1814if test -r "$cache_file"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819echo "$as_me: loading cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001820 case $cache_file in
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1823 esac
1824 fi
1825else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827echo "$as_me: creating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001828 >$cache_file
1829fi
1830
1831# Check that the precious variables saved in the cache have kept the same
1832# value.
1833ac_cache_corrupted=false
1834for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1840 set,)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001843 ac_cache_corrupted=: ;;
1844 ,set)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001847 ac_cache_corrupted=: ;;
1848 ,);;
1849 *)
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001858 fi;;
1859 esac
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1862 case $ac_new_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001864 *) ac_arg=$ac_var=$ac_new_val ;;
1865 esac
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001869 esac
1870 fi
1871done
1872if $ac_cache_corrupted; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001878fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001903
1904ac_ext=c
1905ac_cpp='$CPP $CPPFLAGS'
1906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909
1910
1911
John Criswell49428a22010-03-19 21:04:16 +00001912LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001913
1914
1915
1916
1917
1918
1919
1920ac_aux_dir=
1921for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1934 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001935done
1936if test -z "$ac_aux_dir"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001940fi
1941
1942# These three variables are undocumented and unsupported,
1943# and are intended to be withdrawn in a future Autoconf release.
1944# They can cause serious problems if a builder's source tree is in a directory
1945# whose full name contains unusual characters.
1946ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949
1950
1951
1952if test ${srcdir} != "." ; then
1953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001957 fi
1958fi
1959
John Criswellc0c57d62010-03-19 21:31:39 +00001960
1961
1962if test -d ${srcdir}/projects/llvm-gcc ; then
1963 subdirs="$subdirs projects/llvm-gcc"
1964
1965fi
1966
1967if test -d ${srcdir}/projects/test-suite ; then
1968 subdirs="$subdirs projects/test-suite"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/llvm-test ; then
1973 subdirs="$subdirs projects/llvm-test"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/poolalloc ; then
1978 subdirs="$subdirs projects/poolalloc"
1979
1980fi
1981
1982if test -d ${srcdir}/projects/llvm-poolalloc ; then
1983 subdirs="$subdirs projects/llvm-poolalloc"
1984
1985fi
1986
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001987for i in `ls ${srcdir}/projects`
1988do
1989 if test -d ${srcdir}/projects/${i} ; then
1990 case ${i} in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001991 sample) subdirs="$subdirs projects/sample"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001992 ;;
1993 privbracket) subdirs="$subdirs projects/privbracket"
1994 ;;
1995 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1996 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001997 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1998;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001999 llvm-java) subdirs="$subdirs projects/llvm-java"
2000 ;;
2001 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2002 ;;
John Criswell20b815d2010-02-25 22:57:19 +00002003 safecode) subdirs="$subdirs projects/safecode"
2004 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002005 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2006 ;;
John Criswella43f5df2010-03-25 13:59:09 +00002007 llvm-gcc) ;;
2008 test-suite) ;;
2009 llvm-test) ;;
2010 poolalloc) ;;
2011 llvm-poolalloc) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002012 *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002013 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2014echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002015 ;;
2016 esac
2017 fi
2018done
2019
2020
2021# Make sure we can run config.sub.
2022$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002023 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2024echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2025 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002026
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002027{ echo "$as_me:$LINENO: checking build system type" >&5
2028echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2029if test "${ac_cv_build+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002031else
2032 ac_build_alias=$build_alias
2033test "x$ac_build_alias" = x &&
2034 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2035test "x$ac_build_alias" = x &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002036 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2037echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2038 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002039ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002040 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2041echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2042 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002043
2044fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002045{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2046echo "${ECHO_T}$ac_cv_build" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002047case $ac_cv_build in
2048*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002049*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2050echo "$as_me: error: invalid value of canonical build" >&2;}
2051 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002052esac
2053build=$ac_cv_build
2054ac_save_IFS=$IFS; IFS='-'
2055set x $ac_cv_build
2056shift
2057build_cpu=$1
2058build_vendor=$2
2059shift; shift
2060# Remember, the first character of IFS is used to create $*,
2061# except with old shells:
2062build_os=$*
2063IFS=$ac_save_IFS
2064case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2065
2066
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002067{ echo "$as_me:$LINENO: checking host system type" >&5
2068echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2069if test "${ac_cv_host+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002071else
2072 if test "x$host_alias" = x; then
2073 ac_cv_host=$ac_cv_build
2074else
2075 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2077echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2078 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002079fi
2080
2081fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002082{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2083echo "${ECHO_T}$ac_cv_host" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002084case $ac_cv_host in
2085*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002086*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2087echo "$as_me: error: invalid value of canonical host" >&2;}
2088 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002089esac
2090host=$ac_cv_host
2091ac_save_IFS=$IFS; IFS='-'
2092set x $ac_cv_host
2093shift
2094host_cpu=$1
2095host_vendor=$2
2096shift; shift
2097# Remember, the first character of IFS is used to create $*,
2098# except with old shells:
2099host_os=$*
2100IFS=$ac_save_IFS
2101case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2102
2103
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002104{ echo "$as_me:$LINENO: checking target system type" >&5
2105echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2106if test "${ac_cv_target+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002108else
2109 if test "x$target_alias" = x; then
2110 ac_cv_target=$ac_cv_host
2111else
2112 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2114echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2115 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002116fi
2117
2118fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002119{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2120echo "${ECHO_T}$ac_cv_target" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002121case $ac_cv_target in
2122*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002123*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2124echo "$as_me: error: invalid value of canonical target" >&2;}
2125 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002126esac
2127target=$ac_cv_target
2128ac_save_IFS=$IFS; IFS='-'
2129set x $ac_cv_target
2130shift
2131target_cpu=$1
2132target_vendor=$2
2133shift; shift
2134# Remember, the first character of IFS is used to create $*,
2135# except with old shells:
2136target_os=$*
2137IFS=$ac_save_IFS
2138case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2139
2140
2141# The aliases save the names the user supplied, while $host etc.
2142# will get canonicalized.
2143test -n "$target_alias" &&
2144 test "$program_prefix$program_suffix$program_transform_name" = \
2145 NONENONEs,x,x, &&
2146 program_prefix=${target_alias}-
2147
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002148{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2149echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2150if test "${llvm_cv_os_type+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002152else
2153 case $host in
2154 *-*-aix*)
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="AIX"
2158 llvm_cv_platform_type="Unix" ;;
2159 *-*-irix*)
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="IRIX"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-cygwin*)
2165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167 llvm_cv_os_type="Cygwin"
2168 llvm_cv_platform_type="Unix" ;;
2169 *-*-darwin*)
2170 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002171 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002172 llvm_cv_os_type="Darwin"
2173 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar41bab122010-04-10 18:56:24 +00002174 *-*-minix*)
2175 llvm_cv_link_all_option="-Wl,-all_load"
2176 llvm_cv_no_link_all_option="-Wl,-noall_load"
2177 llvm_cv_os_type="Minix"
2178 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002179 *-*-freebsd*)
2180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182 llvm_cv_os_type="FreeBSD"
2183 llvm_cv_platform_type="Unix" ;;
2184 *-*-openbsd*)
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="OpenBSD"
2188 llvm_cv_platform_type="Unix" ;;
2189 *-*-netbsd*)
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="NetBSD"
2193 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002194 *-*-dragonfly*)
2195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197 llvm_cv_os_type="DragonFly"
2198 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002199 *-*-hpux*)
2200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202 llvm_cv_os_type="HP-UX"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-interix*)
2205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207 llvm_cv_os_type="Interix"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-linux*)
2210 llvm_cv_link_all_option="-Wl,--whole-archive"
2211 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2212 llvm_cv_os_type="Linux"
2213 llvm_cv_platform_type="Unix" ;;
2214 *-*-solaris*)
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="SunOS"
2218 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002219 *-*-auroraux*)
2220 llvm_cv_link_all_option="-Wl,-z,allextract"
2221 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2222 llvm_cv_os_type="AuroraUX"
2223 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002224 *-*-win32*)
2225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227 llvm_cv_os_type="Win32"
2228 llvm_cv_platform_type="Win32" ;;
2229 *-*-mingw*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="MingW"
2233 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002234 *-*-haiku*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Haiku"
2238 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002239 *-unknown-eabi*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
2244 *-unknown-elf*)
2245 llvm_cv_link_all_option="-Wl,--whole-archive"
2246 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2247 llvm_cv_os_type="Freestanding"
2248 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002249 *)
2250 llvm_cv_link_all_option=""
2251 llvm_cv_no_link_all_option=""
2252 llvm_cv_os_type="Unknown"
2253 llvm_cv_platform_type="Unknown" ;;
2254esac
2255fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002256{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2257echo "${ECHO_T}$llvm_cv_os_type" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002258
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002259{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2260echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2261if test "${llvm_cv_target_os_type+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002263else
2264 case $target in
2265 *-*-aix*)
2266 llvm_cv_target_os_type="AIX" ;;
2267 *-*-irix*)
2268 llvm_cv_target_os_type="IRIX" ;;
2269 *-*-cygwin*)
2270 llvm_cv_target_os_type="Cygwin" ;;
2271 *-*-darwin*)
2272 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar41bab122010-04-10 18:56:24 +00002273 *-*-minix*)
2274 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002275 *-*-freebsd*)
2276 llvm_cv_target_os_type="FreeBSD" ;;
2277 *-*-openbsd*)
2278 llvm_cv_target_os_type="OpenBSD" ;;
2279 *-*-netbsd*)
2280 llvm_cv_target_os_type="NetBSD" ;;
2281 *-*-dragonfly*)
2282 llvm_cv_target_os_type="DragonFly" ;;
2283 *-*-hpux*)
2284 llvm_cv_target_os_type="HP-UX" ;;
2285 *-*-interix*)
2286 llvm_cv_target_os_type="Interix" ;;
2287 *-*-linux*)
2288 llvm_cv_target_os_type="Linux" ;;
2289 *-*-solaris*)
2290 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002291 *-*-auroraux*)
2292 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002293 *-*-win32*)
2294 llvm_cv_target_os_type="Win32" ;;
2295 *-*-mingw*)
2296 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002297 *-*-haiku*)
2298 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002299 *-unknown-eabi*)
2300 llvm_cv_target_os_type="Freestanding" ;;
2301 *)
2302 llvm_cv_target_os_type="Unknown" ;;
2303esac
2304fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002305{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2306echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002307
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002308if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002309 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2310echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2311 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002312fi
2313
2314OS=$llvm_cv_os_type
2315
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002316HOST_OS=$llvm_cv_os_type
2317
2318TARGET_OS=$llvm_cv_target_os_type
2319
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002320
2321LINKALL=$llvm_cv_link_all_option
2322
2323NOLINKALL=$llvm_cv_no_link_all_option
2324
2325
2326case $llvm_cv_platform_type in
2327 Unix)
2328
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002329cat >>confdefs.h <<\_ACEOF
2330#define LLVM_ON_UNIX 1
2331_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002332
2333 LLVM_ON_UNIX=1
2334
2335 LLVM_ON_WIN32=0
2336
2337 ;;
2338 Win32)
2339
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002340cat >>confdefs.h <<\_ACEOF
2341#define LLVM_ON_WIN32 1
2342_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002343
2344 LLVM_ON_UNIX=0
2345
2346 LLVM_ON_WIN32=1
2347
2348 ;;
2349esac
2350
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002351{ echo "$as_me:$LINENO: checking target architecture" >&5
2352echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2353if test "${llvm_cv_target_arch+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002355else
2356 case $target in
2357 i?86-*) llvm_cv_target_arch="x86" ;;
2358 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2359 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2360 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2361 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002362 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002363 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002364 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002365 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002366 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002367 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00002368 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +00002369 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002370 *) llvm_cv_target_arch="Unknown" ;;
2371esac
2372fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002373{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2374echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002375
2376if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002377 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2378echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002379fi
2380
Nick Lewyckyd2813d02009-09-29 05:48:51 +00002381# Determine the LLVM native architecture for the target
2382case "$llvm_cv_target_arch" in
2383 x86) LLVM_NATIVE_ARCH="X86" ;;
2384 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2385 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2386esac
2387
2388ARCH=$llvm_cv_target_arch
2389
2390
2391ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396if test -n "$ac_tool_prefix"; then
2397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002403else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406else
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002416 break 2
2417 fi
2418done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002419done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002420IFS=$as_save_IFS
2421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002426 { echo "$as_me:$LINENO: result: $CC" >&5
2427echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002428else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002429 { echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002431fi
2432
2433
2434fi
2435if test -z "$ac_cv_prog_CC"; then
2436 ac_ct_CC=$CC
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002443else
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002454 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002456 break 2
2457 fi
2458done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002459done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002460IFS=$as_save_IFS
2461
2462fi
2463fi
2464ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002468else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002469 { echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002471fi
2472
2473 if test "x$ac_ct_CC" = x; then
2474 CC=""
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002478{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479whose name does not start with the host triplet. If you think this
2480configuration is useful to you, please write to autoconf@gnu.org." >&5
2481echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482whose name does not start with the host triplet. If you think this
2483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002484ac_tool_warned=yes ;;
2485esac
2486 CC=$ac_ct_CC
2487 fi
2488else
2489 CC="$ac_cv_prog_CC"
2490fi
2491
2492if test -z "$CC"; then
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2495set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002500else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002511 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002513 break 2
2514 fi
2515done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002516done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002517IFS=$as_save_IFS
2518
2519fi
2520fi
2521CC=$ac_cv_prog_CC
2522if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002523 { echo "$as_me:$LINENO: result: $CC" >&5
2524echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002525else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002526 { echo "$as_me:$LINENO: result: no" >&5
2527echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002528fi
2529
2530
2531 fi
2532fi
2533if test -z "$CC"; then
2534 # Extract the first word of "cc", so it can be a program name with args.
2535set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002540else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543else
2544 ac_prog_rejected=no
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553 ac_prog_rejected=yes
2554 continue
2555 fi
2556 ac_cv_prog_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002558 break 2
2559 fi
2560done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002561done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002562IFS=$as_save_IFS
2563
2564if test $ac_prog_rejected = yes; then
2565 # We found a bogon in the path, so make sure we never use it.
2566 set dummy $ac_cv_prog_CC
2567 shift
2568 if test $# != 0; then
2569 # We chose a different compiler from the bogus one.
2570 # However, it has the same basename, so the bogon will be chosen
2571 # first if we set CC to just the basename; use the full file name.
2572 shift
2573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 fi
2575fi
2576fi
2577fi
2578CC=$ac_cv_prog_CC
2579if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002580 { echo "$as_me:$LINENO: result: $CC" >&5
2581echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002582else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002583 { echo "$as_me:$LINENO: result: no" >&5
2584echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002585fi
2586
2587
2588fi
2589if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
2591 for ac_prog in cl.exe
2592 do
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002599else
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002612 break 2
2613 fi
2614done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002615done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002616IFS=$as_save_IFS
2617
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002622 { echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002624else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002625 { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002627fi
2628
2629
2630 test -n "$CC" && break
2631 done
2632fi
2633if test -z "$CC"; then
2634 ac_ct_CC=$CC
2635 for ac_prog in cl.exe
2636do
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002643else
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002654 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002656 break 2
2657 fi
2658done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002659done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002660IFS=$as_save_IFS
2661
2662fi
2663fi
2664ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002668else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002669 { echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002671fi
2672
2673
2674 test -n "$ac_ct_CC" && break
2675done
2676
2677 if test "x$ac_ct_CC" = x; then
2678 CC=""
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002682{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683whose name does not start with the host triplet. If you think this
2684configuration is useful to you, please write to autoconf@gnu.org." >&5
2685echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686whose name does not start with the host triplet. If you think this
2687configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002688ac_tool_warned=yes ;;
2689esac
2690 CC=$ac_ct_CC
2691 fi
2692fi
2693
2694fi
2695
2696
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002697test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698See \`config.log' for more details." >&5
2699echo "$as_me: error: no acceptable C compiler found in \$PATH
2700See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002702
2703# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002704echo "$as_me:$LINENO: checking for C compiler version" >&5
2705ac_compiler=`set X $ac_compile; echo $2`
2706{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002713 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
2716{ (ac_try="$ac_compiler -v >&5"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -v >&5") 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
2726{ (ac_try="$ac_compiler -V >&5"
2727case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730esac
2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler -V >&5") 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002736
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002737cat >conftest.$ac_ext <<_ACEOF
2738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002742/* end confdefs.h. */
2743
2744int
2745main ()
2746{
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002753ac_clean_files="$ac_clean_files a.out a.exe b.out"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002754# Try to create an executable without -o first, disregard a.out.
2755# It will help us diagnose broken compilers, and finding out an intuition
2756# of exeext.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002757{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2759ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2760#
2761# List of possible output files, starting from the most likely.
2762# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763# only as a last resort. b.out is created by i960 compilers.
2764ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2765#
2766# The IRIX 6 linker writes into existing files which may not be
2767# executable, retaining their permissions. Remove them first so a
2768# subsequent execution test works.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002769ac_rmfiles=
2770for ac_file in $ac_files
2771do
2772 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 esac
2776done
2777rm -f $ac_rmfiles
2778
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002779if { (ac_try="$ac_link_default"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002785 (eval "$ac_link_default") 2>&5
2786 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791# in a Makefile. We should not override ac_cv_exeext if it was cached,
2792# so that the user can short-circuit this test for compilers unknown to
2793# Autoconf.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002794for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002795do
2796 test -f "$ac_file" || continue
2797 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002799 ;;
2800 [ab].out )
2801 # We found the default executable, but exeext='' is most
2802 # certainly right.
2803 break;;
2804 *.* )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002806 then :; else
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808 fi
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2813 # actually working.
2814 break;;
2815 * )
2816 break;;
2817 esac
2818done
2819test "$ac_cv_exeext" = no && ac_cv_exeext=
2820
2821else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002822 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002823sed 's/^/| /' conftest.$ac_ext >&5
2824
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002825{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826See \`config.log' for more details." >&5
2827echo "$as_me: error: C compiler cannot create executables
2828See \`config.log' for more details." >&2;}
2829 { (exit 77); exit 77; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002830fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002831
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002832ac_exeext=$ac_cv_exeext
2833{ echo "$as_me:$LINENO: result: $ac_file" >&5
2834echo "${ECHO_T}$ac_file" >&6; }
2835
2836# Check that the compiler produces executables we can run. If not, either
2837# the compiler is broken, or we cross compile.
2838{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841# If not cross compiling, check that we can run a simple program.
2842if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
2844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 cross_compiling=no
2854 else
2855 if test "$cross_compiling" = maybe; then
2856 cross_compiling=yes
2857 else
2858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859If you meant to cross compile, use \`--host'.
2860See \`config.log' for more details." >&5
2861echo "$as_me: error: cannot run C compiled programs.
2862If you meant to cross compile, use \`--host'.
2863See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866 fi
2867fi
2868{ echo "$as_me:$LINENO: result: yes" >&5
2869echo "${ECHO_T}yes" >&6; }
2870
2871rm -f a.out a.exe conftest$ac_cv_exeext b.out
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002872ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002873# Check that the compiler produces executables we can run. If not, either
2874# the compiler is broken, or we cross compile.
2875{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878echo "${ECHO_T}$cross_compiling" >&6; }
2879
2880{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882if { (ac_try="$ac_link"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002888 (eval "$ac_link") 2>&5
2889 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894# work properly (i.e., refer to `conftest.exe'), while it won't with
2895# `rm'.
2896for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
2898 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 break;;
2902 * ) break;;
2903 esac
2904done
2905else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details." >&5
2908echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002911fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002912
2913rm -f conftest$ac_cv_exeext
2914{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915echo "${ECHO_T}$ac_cv_exeext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002916
2917rm -f conftest.$ac_ext
2918EXEEXT=$ac_cv_exeext
2919ac_exeext=$EXEEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002920{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00002924else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002925 cat >conftest.$ac_ext <<_ACEOF
2926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002930/* end confdefs.h. */
2931
2932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.o conftest.obj
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002941if { (ac_try="$ac_compile"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002947 (eval "$ac_compile") 2>&5
2948 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
2953 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 break;;
2957 esac
2958done
2959else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002960 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002961sed 's/^/| /' conftest.$ac_ext >&5
2962
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002963{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964See \`config.log' for more details." >&5
2965echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002968fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002969
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002970rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002972{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973echo "${ECHO_T}$ac_cv_objext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002974OBJEXT=$ac_cv_objext
2975ac_objext=$OBJEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002976{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002980else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002981 cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002986/* end confdefs.h. */
2987
2988int
2989main ()
2990{
2991#ifndef __GNUC__
2992 choke me
2993#endif
2994
2995 ;
2996 return 0;
2997}
2998_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002999rm -f conftest.$ac_objext
3000if { (ac_try="$ac_compile"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003033 ac_compiler_gnu=yes
3034else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003035 echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003039fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003040
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043
3044fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003045{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003048ac_test_CFLAGS=${CFLAGS+set}
3049ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003050{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052if test "${ac_cv_prog_cc_g+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003054else
3055 ac_save_c_werror_flag=$ac_c_werror_flag
3056 ac_c_werror_flag=yes
3057 ac_cv_prog_cc_g=no
3058 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003059 cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003064/* end confdefs.h. */
3065
3066int
3067main ()
3068{
3069
3070 ;
3071 return 0;
3072}
3073_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003074rm -f conftest.$ac_objext
3075if { (ac_try="$ac_compile"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003108 ac_cv_prog_cc_g=yes
3109else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003110 echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 CFLAGS=""
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003129rm -f conftest.$ac_objext
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 :
Edwin Törökc27310c2010-01-26 08:50:50 +00003164else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003169 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003170 cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h. */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003175/* end confdefs.h. */
3176
3177int
3178main ()
3179{
3180
3181 ;
3182 return 0;
3183}
3184_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003185rm -f conftest.$ac_objext
3186if { (ac_try="$ac_compile"
3187case "(($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_compile") 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003219 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003220else
3221 echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003225fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003226
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003229
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003232
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3235fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003236{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003238if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3242 CFLAGS="-g -O2"
3243 else
3244 CFLAGS="-g"
3245 fi
3246else
3247 if test "$GCC" = yes; then
3248 CFLAGS="-O2"
3249 else
3250 CFLAGS=
3251 fi
3252fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003253{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255if test "${ac_cv_prog_cc_c89+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003257else
3258 ac_cv_prog_cc_c89=no
3259ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003260cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003265/* end confdefs.h. */
3266#include <stdarg.h>
3267#include <stdio.h>
3268#include <sys/types.h>
3269#include <sys/stat.h>
3270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271struct buf { int x; };
3272FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273static char *e (p, i)
3274 char **p;
3275 int i;
3276{
3277 return p[i];
3278}
3279static char *f (char * (*g) (char **, int), char **p, ...)
3280{
3281 char *s;
3282 va_list v;
3283 va_start (v,p);
3284 s = g (p, va_arg (v,int));
3285 va_end (v);
3286 return s;
3287}
3288
3289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
3292 as 'x'. The following induces an error, until -std is added to get
3293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
3295 that's true only with -std. */
3296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
3298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3300#define FOO(x) 'x'
3301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
3303int test (int i, double x);
3304struct s1 {int (*f) (int a);};
3305struct s2 {int (*f) (double a);};
3306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307int argc;
3308char **argv;
3309int
3310main ()
3311{
3312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 ;
3314 return 0;
3315}
3316_ACEOF
3317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319do
3320 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003321 rm -f conftest.$ac_objext
3322if { (ac_try="$ac_compile"
3323case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349esac
3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_try") 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003355 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003361fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003362
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003363rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
3365done
3366rm -f conftest.$ac_ext
3367CC=$ac_save_CC
3368
3369fi
3370# AC_CACHE_VAL
3371case "x$ac_cv_prog_cc_c89" in
3372 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003373 { echo "$as_me:$LINENO: result: none needed" >&5
3374echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003375 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003378 *)
3379 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003382esac
3383
3384
3385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003397{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003399# On Suns, sometimes $CPP names a directory.
3400if test -n "$CPP" && test -d "$CPP"; then
3401 CPP=
3402fi
3403if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003404 if test "${ac_cv_prog_CPP+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003406else
3407 # Double quotes because CPP needs to be expanded
3408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409 do
3410 ac_preproc_ok=false
3411for ac_c_preproc_warn_flag in '' yes
3412do
3413 # Use a header file that comes with gcc, so configuring glibc
3414 # with a fresh cross-compiler works.
3415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 # <limits.h> exists even on freestanding compilers.
3417 # On the NeXT, cc -E runs the code through the compiler's parser,
3418 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003419 cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003424/* end confdefs.h. */
3425#ifdef __STDC__
3426# include <limits.h>
3427#else
3428# include <assert.h>
3429#endif
3430 Syntax error
3431_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003432if { (ac_try="$ac_cpp conftest.$ac_ext"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003451else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
3455 :
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003460 # Broken: fails on valid input.
3461continue
3462fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003463
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003464rm -f conftest.err conftest.$ac_ext
3465
3466 # OK, works on sane cases. Now check whether nonexistent headers
3467 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003468 cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h. */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003473/* end confdefs.h. */
3474#include <ac_nonexistent.h>
3475_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003476if { (ac_try="$ac_cpp conftest.$ac_ext"
3477case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480esac
3481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 else
3493 ac_cpp_err=
3494 fi
3495else
3496 ac_cpp_err=yes
3497fi
3498if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003499 # Broken: success on invalid input.
3500continue
3501else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003505 # Passes both tests.
3506ac_preproc_ok=:
3507break
3508fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003509
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003515if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003516 break
3517fi
3518
3519 done
3520 ac_cv_prog_CPP=$CPP
3521
3522fi
3523 CPP=$ac_cv_prog_CPP
3524else
3525 ac_cv_prog_CPP=$CPP
3526fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003527{ echo "$as_me:$LINENO: result: $CPP" >&5
3528echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003529ac_preproc_ok=false
3530for ac_c_preproc_warn_flag in '' yes
3531do
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003543/* end confdefs.h. */
3544#ifdef __STDC__
3545# include <limits.h>
3546#else
3547# include <assert.h>
3548#endif
3549 Syntax error
3550_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003551if { (ac_try="$ac_cpp conftest.$ac_ext"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3569 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003570else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003571 ac_cpp_err=yes
3572fi
3573if test -z "$ac_cpp_err"; then
3574 :
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003579 # Broken: fails on valid input.
3580continue
3581fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003582
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003583rm -f conftest.err conftest.$ac_ext
3584
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003592/* end confdefs.h. */
3593#include <ac_nonexistent.h>
3594_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003595if { (ac_try="$ac_cpp conftest.$ac_ext"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 else
3612 ac_cpp_err=
3613 fi
3614else
3615 ac_cpp_err=yes
3616fi
3617if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003618 # Broken: success on invalid input.
3619continue
3620else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003624 # Passes both tests.
3625ac_preproc_ok=:
3626break
3627fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003628
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003629rm -f conftest.err conftest.$ac_ext
3630
3631done
3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003634if $ac_preproc_ok; then
3635 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003636else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638See \`config.log' for more details." >&5
3639echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003642fi
3643
3644ac_ext=c
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
3650
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003651{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003655else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003656 # Extract the first word of "grep ggrep" to use in msg output
3657if test -z "$GREP"; then
3658set dummy grep ggrep; ac_prog_name=$2
3659if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003662 ac_path_GREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003663# Loop through the user's path and test for each of PROGNAME-LIST
3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003669 for ac_prog in grep ggrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003674 # Check for GNU $ac_path_GREP
3675case `"$ac_path_GREP" --version 2>&1` in
3676*GNU*)
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678*)
3679 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003686 echo 'GREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003689 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
3694 fi
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699esac
3700
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003701
3702 $ac_path_GREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003703 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003704done
3705
3706done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003707IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003708
3709
3710fi
3711
3712GREP="$ac_cv_path_GREP"
3713if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3717fi
3718
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003719else
3720 ac_cv_path_GREP=$GREP
3721fi
3722
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003723
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003724fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003725{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003727 GREP="$ac_cv_path_GREP"
3728
3729
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003730{ echo "$as_me:$LINENO: checking for egrep" >&5
3731echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003734else
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3737 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003738 # Extract the first word of "egrep" to use in msg output
3739if test -z "$EGREP"; then
3740set dummy egrep; ac_prog_name=$2
3741if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003744 ac_path_EGREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003745# Loop through the user's path and test for each of PROGNAME-LIST
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003756 # Check for GNU $ac_path_EGREP
3757case `"$ac_path_EGREP" --version 2>&1` in
3758*GNU*)
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760*)
3761 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003763 while :
3764 do
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003768 echo 'EGREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003771 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3776 fi
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781esac
3782
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003783
3784 $ac_path_EGREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003785 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003786done
3787
3788done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003789IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003790
3791
3792fi
3793
3794EGREP="$ac_cv_path_EGREP"
3795if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3799fi
3800
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003801else
3802 ac_cv_path_EGREP=$EGREP
3803fi
3804
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003805
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003806 fi
3807fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003808{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003810 EGREP="$ac_cv_path_EGREP"
3811
3812
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003813{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3815if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003817else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003818 cat >conftest.$ac_ext <<_ACEOF
3819/* confdefs.h. */
3820_ACEOF
3821cat confdefs.h >>conftest.$ac_ext
3822cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003823/* end confdefs.h. */
3824#include <stdlib.h>
3825#include <stdarg.h>
3826#include <string.h>
3827#include <float.h>
3828
3829int
3830main ()
3831{
3832
3833 ;
3834 return 0;
3835}
3836_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003837rm -f conftest.$ac_objext
3838if { (ac_try="$ac_compile"
3839case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003871 ac_cv_header_stdc=yes
3872else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003873 echo "$as_me: failed program was:" >&5
3874sed 's/^/| /' conftest.$ac_ext >&5
3875
3876 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003877fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003878
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880
3881if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003883 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003888/* end confdefs.h. */
3889#include <string.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003893 $EGREP "memchr" >/dev/null 2>&1; then
3894 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003895else
3896 ac_cv_header_stdc=no
3897fi
3898rm -f conftest*
3899
3900fi
3901
3902if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003904 cat >conftest.$ac_ext <<_ACEOF
3905/* confdefs.h. */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003909/* end confdefs.h. */
3910#include <stdlib.h>
3911
3912_ACEOF
3913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003914 $EGREP "free" >/dev/null 2>&1; then
3915 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003916else
3917 ac_cv_header_stdc=no
3918fi
3919rm -f conftest*
3920
3921fi
3922
3923if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003925 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003926 :
3927else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003933/* end confdefs.h. */
3934#include <ctype.h>
3935#include <stdlib.h>
3936#if ((' ' & 0x0FF) == 0x020)
3937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939#else
3940# define ISLOWER(c) \
3941 (('a' <= (c) && (c) <= 'i') \
3942 || ('j' <= (c) && (c) <= 'r') \
3943 || ('s' <= (c) && (c) <= 'z'))
3944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945#endif
3946
3947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948int
3949main ()
3950{
3951 int i;
3952 for (i = 0; i < 256; i++)
3953 if (XOR (islower (i), ISLOWER (i))
3954 || toupper (i) != TOUPPER (i))
3955 return 2;
3956 return 0;
3957}
3958_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003959rm -f conftest$ac_exeext
3960if { (ac_try="$ac_link"
3961case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964esac
3965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973esac
3974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003980else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003981 echo "$as_me: program exited with status $ac_status" >&5
3982echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985( exit $ac_status )
3986ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003987fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003989fi
3990
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003991
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003992fi
3993fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003994{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003996if test $ac_cv_header_stdc = yes; then
3997
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003998cat >>confdefs.h <<\_ACEOF
3999#define STDC_HEADERS 1
4000_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004001
4002fi
4003
4004# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004005
4006
4007
4008
4009
4010
4011
4012
4013
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004014for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004016do
4017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023 cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
4029$ac_includes_default
4030
4031#include <$ac_header>
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (ac_try="$ac_compile"
4035case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051esac
4052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061esac
4062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_try") 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 eval "$as_ac_Header=yes"
4068else
4069 echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 eval "$as_ac_Header=no"
4073fi
4074
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076fi
4077ac_res=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079echo "${ECHO_T}$ac_res" >&6; }
4080if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004081 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004083_ACEOF
4084
4085fi
4086
4087done
4088
4089
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004090{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092if test "${ac_cv_c_bigendian+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004094else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004095 # See if sys/param.h defines the BYTE_ORDER macro.
4096cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004098_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004101/* end confdefs.h. */
4102#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004103#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004104
4105int
4106main ()
4107{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004108#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4109 bogus endian macros
4110#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004111
4112 ;
4113 return 0;
4114}
4115_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004116rm -f conftest.$ac_objext
4117if { (ac_try="$ac_compile"
4118case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144esac
4145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004150 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004151cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004156/* end confdefs.h. */
4157#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004158#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004159
4160int
4161main ()
4162{
4163#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004164 not big endian
4165#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004166
4167 ;
4168 return 0;
4169}
4170_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004171rm -f conftest.$ac_objext
4172if { (ac_try="$ac_compile"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004205 ac_cv_c_bigendian=yes
4206else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00004209
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004210 ac_cv_c_bigendian=no
4211fi
4212
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 # It does not; compile a test program.
4219if test "$cross_compiling" = yes; then
4220 # try to guess the endianness by grepping values into an object file
4221 ac_cv_c_bigendian=unknown
4222 cat >conftest.$ac_ext <<_ACEOF
4223/* confdefs.h. */
4224_ACEOF
4225cat confdefs.h >>conftest.$ac_ext
4226cat >>conftest.$ac_ext <<_ACEOF
4227/* end confdefs.h. */
4228short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004234int
4235main ()
4236{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004237 _ascii (); _ebcdic ();
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004238 ;
4239 return 0;
4240}
4241_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004242rm -f conftest.$ac_objext
4243if { (ac_try="$ac_compile"
4244case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004277 ac_cv_c_bigendian=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004278fi
4279if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280 if test "$ac_cv_c_bigendian" = unknown; then
4281 ac_cv_c_bigendian=no
4282 else
4283 # finding both strings is unlikely to happen, but who knows?
4284 ac_cv_c_bigendian=unknown
4285 fi
4286fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004287else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004288 echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004290
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004291
Edwin Törökc27310c2010-01-26 08:50:50 +00004292fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004293
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004296 cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h. */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004301/* end confdefs.h. */
4302$ac_includes_default
4303int
4304main ()
4305{
4306
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004307 /* Are we little or big endian? From Harbison&Steele. */
4308 union
4309 {
4310 long int l;
4311 char c[sizeof (long int)];
4312 } u;
4313 u.l = 1;
4314 return u.c[sizeof (long int) - 1] == 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004315
4316 ;
4317 return 0;
4318}
4319_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004320rm -f conftest$ac_exeext
4321if { (ac_try="$ac_link"
4322case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325esac
4326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_link") 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004340 ac_cv_c_bigendian=no
4341else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004342 echo "$as_me: program exited with status $ac_status" >&5
4343echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346( exit $ac_status )
4347ac_cv_c_bigendian=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004348fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004350fi
4351
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004352
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004353fi
4354
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356fi
4357{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359case $ac_cv_c_bigendian in
4360 yes)
4361 ENDIAN=big
4362 ;;
4363 no)
4364 ENDIAN=little
4365 ;;
4366 *)
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369echo "$as_me: error: unknown endianness
4370presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4372esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004373
4374
4375if test "$cross_compiling" = yes; then
4376 LLVM_CROSS_COMPILING=1
4377
4378
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004379{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381if test "${ac_cv_build_exeext+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004383else
4384 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385 ac_cv_build_exeext=.exe
4386else
4387 ac_build_prefix=${build_alias}-
4388
4389 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004395else
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398else
4399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH
4401do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004406 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004408 break 2
4409 fi
4410done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004411done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004412IFS=$as_save_IFS
4413
4414fi
4415fi
4416BUILD_CC=$ac_cv_prog_BUILD_CC
4417if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004420else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004421 { echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004423fi
4424
4425
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "gcc", so it can be a program name with args.
4428set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004433else
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004444 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004446 break 2
4447 fi
4448done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004449done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004450IFS=$as_save_IFS
4451
4452fi
4453fi
4454BUILD_CC=$ac_cv_prog_BUILD_CC
4455if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004458else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004459 { echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004461fi
4462
4463
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004471else
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474else
4475 ac_prog_rejected=no
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4485 continue
4486 fi
4487 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004489 break 2
4490 fi
4491done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004492done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004493IFS=$as_save_IFS
4494
4495if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CC
4498 shift
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CC to just the basename; use the full file name.
4503 shift
4504 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 fi
4506fi
4507fi
4508fi
4509BUILD_CC=$ac_cv_prog_BUILD_CC
4510if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004511 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004513else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004514 { echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004516fi
4517
4518
4519 fi
4520 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004521 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004524 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4525 rm -f conftest*
4526 echo 'int main () { return 0; }' > conftest.$ac_ext
4527 ac_cv_build_exeext=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004528 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004529 (eval $ac_build_link) 2>&5
4530 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004533 for file in conftest.*; do
4534 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004535 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004536 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4537 esac
4538 done
4539 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004540 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004543 fi
4544 rm -f conftest*
4545 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546fi
4547fi
4548
4549BUILD_EXEEXT=""
4550test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004551{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004553ac_build_exeext=$BUILD_EXEEXT
4554
Jim Grosbache4c032e2008-10-02 22:56:44 +00004555 ac_build_prefix=${build_alias}-
4556 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4557set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004562else
4563 if test -n "$BUILD_CXX"; then
4564 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4565else
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
4568do
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004573 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004575 break 2
4576 fi
4577done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004578done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004579IFS=$as_save_IFS
4580
4581fi
4582fi
4583BUILD_CXX=$ac_cv_prog_BUILD_CXX
4584if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004585 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4586echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004587else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004588 { echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004590fi
4591
4592
4593 if test -z "$BUILD_CXX"; then
4594 # Extract the first word of "g++", so it can be a program name with args.
4595set dummy g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004600else
4601 if test -n "$BUILD_CXX"; then
4602 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004611 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004613 break 2
4614 fi
4615done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004616done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004617IFS=$as_save_IFS
4618
4619fi
4620fi
4621BUILD_CXX=$ac_cv_prog_BUILD_CXX
4622if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004623 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4624echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004625else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004626 { echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004628fi
4629
4630
4631 if test -z "$BUILD_CXX"; then
4632 # Extract the first word of "c++", so it can be a program name with args.
4633set dummy c++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004638else
4639 if test -n "$BUILD_CXX"; then
4640 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4641else
4642 ac_prog_rejected=no
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4651 ac_prog_rejected=yes
4652 continue
4653 fi
4654 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004656 break 2
4657 fi
4658done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004659done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004660IFS=$as_save_IFS
4661
4662if test $ac_prog_rejected = yes; then
4663 # We found a bogon in the path, so make sure we never use it.
4664 set dummy $ac_cv_prog_BUILD_CXX
4665 shift
4666 if test $# != 0; then
4667 # We chose a different compiler from the bogus one.
4668 # However, it has the same basename, so the bogon will be chosen
4669 # first if we set BUILD_CXX to just the basename; use the full file name.
4670 shift
4671 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4672 fi
4673fi
4674fi
4675fi
4676BUILD_CXX=$ac_cv_prog_BUILD_CXX
4677if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004678 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4679echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004680else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004681 { echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004683fi
4684
4685
4686 fi
4687 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004688else
4689 LLVM_CROSS_COMPILING=0
4690
4691fi
4692
Dan Gohman59b64f42010-08-04 16:25:01 +00004693if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004694 cvsbuild="yes"
4695 optimize="no"
4696 CVSBUILD=CVSBUILD=1
4697
4698else
4699 cvsbuild="no"
4700 optimize="yes"
4701fi
4702
4703
4704# Check whether --enable-optimized was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004705if test "${enable_optimized+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004706 enableval=$enable_optimized;
4707else
4708 enableval=$optimize
4709fi
4710
4711if test ${enableval} = "no" ; then
4712 ENABLE_OPTIMIZED=
4713
4714else
4715 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4716
4717fi
4718
David Greene19b1cbd2009-04-17 14:50:39 +00004719# Check whether --enable-profiling was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004720if test "${enable_profiling+set}" = set; then
David Greene19b1cbd2009-04-17 14:50:39 +00004721 enableval=$enable_profiling;
4722else
4723 enableval="no"
4724fi
4725
4726if test ${enableval} = "no" ; then
4727 ENABLE_PROFILING=
4728
4729else
4730 ENABLE_PROFILING=ENABLE_PROFILING=1
4731
4732fi
4733
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004734# Check whether --enable-assertions was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004735if test "${enable_assertions+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004736 enableval=$enable_assertions;
4737else
4738 enableval="yes"
4739fi
4740
4741if test ${enableval} = "yes" ; then
4742 DISABLE_ASSERTIONS=
4743
4744else
4745 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4746
4747fi
4748
4749# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004750if test "${enable_expensive_checks+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004751 enableval=$enable_expensive_checks;
4752else
4753 enableval="no"
4754fi
4755
4756if test ${enableval} = "yes" ; then
4757 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4758
4759 EXPENSIVE_CHECKS=yes
4760
4761else
4762 ENABLE_EXPENSIVE_CHECKS=
4763
4764 EXPENSIVE_CHECKS=no
4765
4766fi
4767
4768# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004769if test "${enable_debug_runtime+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004770 enableval=$enable_debug_runtime;
4771else
4772 enableval=no
4773fi
4774
4775if test ${enableval} = "no" ; then
4776 DEBUG_RUNTIME=
4777
4778else
4779 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4780
4781fi
4782
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004783# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004784if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004785 enableval=$enable_debug_symbols;
4786else
4787 enableval=no
4788fi
4789
4790if test ${enableval} = "no" ; then
4791 DEBUG_SYMBOLS=
4792
4793else
4794 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4795
4796fi
4797
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004798# Check whether --enable-jit was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004799if test "${enable_jit+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004800 enableval=$enable_jit;
4801else
4802 enableval=default
4803fi
4804
4805if test ${enableval} = "no"
4806then
4807 JIT=
4808
4809else
4810 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004811 x86) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004812 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004813 Sparc) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004814 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004815 PowerPC) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004816 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004817 x86_64) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004818 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004819 Alpha) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004820 ;;
Eric Christopher9ab1d2e2009-09-14 16:38:49 +00004821 ARM) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004822 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004823 Mips) TARGET_HAS_JIT=0
Tanya Lattner81915b12007-08-29 16:38:16 +00004824 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004825 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004826 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004827 XCore) TARGET_HAS_JIT=0
Richard Osborneab8167a2008-11-07 10:59:00 +00004828 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004829 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004830 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004831 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00004832 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004833 Blackfin) TARGET_HAS_JIT=0
4834 ;;
Wesley Peck5fbf1502010-02-23 19:15:24 +00004835 MBlaze) TARGET_HAS_JIT=0
4836 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004837 *) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004838 ;;
4839 esac
4840fi
4841
4842# Check whether --enable-doxygen was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004843if test "${enable_doxygen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004844 enableval=$enable_doxygen;
4845else
4846 enableval=default
4847fi
4848
4849case "$enableval" in
4850 yes) ENABLE_DOXYGEN=1
4851 ;;
4852 no) ENABLE_DOXYGEN=0
4853 ;;
4854 default) ENABLE_DOXYGEN=0
4855 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004856 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4857echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4858 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004859esac
4860
4861# Check whether --enable-threads was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004862if test "${enable_threads+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004863 enableval=$enable_threads;
4864else
4865 enableval=default
4866fi
4867
4868case "$enableval" in
4869 yes) ENABLE_THREADS=1
4870 ;;
4871 no) ENABLE_THREADS=0
4872 ;;
4873 default) ENABLE_THREADS=1
4874 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4876echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004878esac
4879
Owen Anderson96237ec2009-05-19 22:18:56 +00004880cat >>confdefs.h <<_ACEOF
4881#define ENABLE_THREADS $ENABLE_THREADS
4882_ACEOF
4883
4884
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004885# Check whether --enable-pic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004886if test "${enable_pic+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004887 enableval=$enable_pic;
4888else
4889 enableval=default
4890fi
4891
4892case "$enableval" in
4893 yes) ENABLE_PIC=1
4894 ;;
4895 no) ENABLE_PIC=0
4896 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004897 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004898 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4900echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004902esac
4903
4904cat >>confdefs.h <<_ACEOF
4905#define ENABLE_PIC $ENABLE_PIC
4906_ACEOF
4907
4908
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +00004909# Check whether --enable-shared was given.
4910if test "${enable_shared+set}" = set; then
4911 enableval=$enable_shared;
4912else
4913 enableval=default
4914fi
4915
4916case "$enableval" in
4917 yes) ENABLE_SHARED=1
4918 ;;
4919 no) ENABLE_SHARED=0
4920 ;;
4921 default) ENABLE_SHARED=0
4922 ;;
4923 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4924echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4925 { (exit 1); exit 1; }; } ;;
4926esac
4927
Daniel Dunbar64732b72010-05-10 20:11:56 +00004928# Check whether --enable-timestamps was given.
4929if test "${enable_timestamps+set}" = set; then
4930 enableval=$enable_timestamps;
4931else
4932 enableval=default
4933fi
4934
4935case "$enableval" in
4936 yes) ENABLE_TIMESTAMPS=1
4937 ;;
4938 no) ENABLE_TIMESTAMPS=0
4939 ;;
4940 default) ENABLE_TIMESTAMPS=1
4941 ;;
4942 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4943echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4944 { (exit 1); exit 1; }; } ;;
4945esac
4946
4947cat >>confdefs.h <<_ACEOF
4948#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4949_ACEOF
4950
4951
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004952TARGETS_TO_BUILD=""
4953# Check whether --enable-targets was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004954if test "${enable_targets+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004955 enableval=$enable_targets;
4956else
4957 enableval=all
4958fi
4959
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004960if test "$enableval" = host-only ; then
4961 enableval=host
4962fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004963case "$enableval" in
Wesley Peck5fbf1502010-02-23 19:15:24 +00004964 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004965 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4966 case "$a_target" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004967 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4968 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4969 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4970 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4971 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4972 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4973 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4974 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4975 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4976 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4977 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4978 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4979 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4980 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4981 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4982 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Peck5fbf1502010-02-23 19:15:24 +00004983 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004984 host) case "$llvm_cv_target_arch" in
4985 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4986 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4987 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4988 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4989 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4990 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4991 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Peck5fbf1502010-02-23 19:15:24 +00004992 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004993 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4994 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4995 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4996 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikovc5cbb462010-01-05 20:45:43 +00004997 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004998 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004999 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5000echo "$as_me: error: Can not set target to build" >&2;}
5001 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00005002 esac ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005003 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5004echo "$as_me: error: Unrecognized target $a_target" >&2;}
5005 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005006 esac
5007 done
5008 ;;
5009esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005010TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5011
5012
Douglas Gregor13e13882009-06-17 00:43:20 +00005013# Determine whether we are building LLVM support for the native architecture.
5014# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5015for a_target in $TARGETS_TO_BUILD; do
5016 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00005017 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00005018
5019cat >>confdefs.h <<_ACEOF
Daniel Dunbar00f5be02010-08-03 14:26:17 +00005020#define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5021_ACEOF
5022
5023
5024cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00005025#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00005026_ACEOF
5027
5028 fi
5029done
5030
Daniel Dunbar0e18f262009-11-25 04:37:28 +00005031# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5032# target feature def files.
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005033LLVM_ENUM_TARGETS=""
5034LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005035LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar0e18f262009-11-25 04:37:28 +00005036LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005037for target_to_build in $TARGETS_TO_BUILD; do
5038 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5039 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5040 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5041 fi
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005042 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5043 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5044 fi
Daniel Dunbar0e18f262009-11-25 04:37:28 +00005045 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5046 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5047 fi
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005048done
5049
5050
5051
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005052
Daniel Dunbar0e18f262009-11-25 04:37:28 +00005053
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005054# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005055if test "${enable_cbe_printf_a+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005056 enableval=$enable_cbe_printf_a;
5057else
5058 enableval=default
5059fi
5060
5061case "$enableval" in
5062 yes) ENABLE_CBE_PRINTF_A=1
5063 ;;
5064 no) ENABLE_CBE_PRINTF_A=0
5065 ;;
5066 default) ENABLE_CBE_PRINTF_A=1
5067 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005068 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5069echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5070 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005071esac
5072
5073cat >>confdefs.h <<_ACEOF
5074#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5075_ACEOF
5076
5077
5078
5079# Check whether --with-llvmgccdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005080if test "${with_llvmgccdir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005081 withval=$with_llvmgccdir;
5082else
5083 withval=default
5084fi
5085
5086case "$withval" in
5087 default) WITH_LLVMGCCDIR=default ;;
5088 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005089 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5090echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5091 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005092esac
5093
5094
Devang Pateld84ba7b2007-12-04 22:54:47 +00005095# Check whether --with-llvmgcc was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005096if test "${with_llvmgcc+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005097 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5098 WITH_LLVMGCCDIR=""
5099fi
5100
5101
5102
5103# Check whether --with-llvmgxx was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005104if test "${with_llvmgxx+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005105 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5106 WITH_LLVMGCCDIR=""
5107fi
5108
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005109
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005110if test -n "$LLVMGCC"; then
5111 LLVMGCCCOMMAND="$LLVMGCC"
5112fi
5113
5114if test -n "$LLVMGXX"; then
5115 LLVMGXXCOMMAND="$LLVMGXX"
5116fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005117
5118if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005119 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5120echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5121 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005122fi
5123
5124if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005125 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5126echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5127 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005128fi
5129
5130
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00005131# Check whether --with-clang was given.
5132if test "${with_clang+set}" = set; then
5133 withval=$with_clang;
5134else
5135 with_clang=default
5136fi
5137
5138
5139
5140# Check whether --with-built-clang was given.
5141if test "${with_built_clang+set}" = set; then
5142 withval=$with_built_clang;
5143else
5144 with_built_clang=check
5145fi
5146
5147
5148{ echo "$as_me:$LINENO: checking clang compiler" >&5
5149echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5150WITH_CLANGPATH=""
5151WITH_BUILT_CLANG=0
5152if test "$with_clang" != "default"; then
5153 WITH_CLANGPATH="$with_clang"
5154 if ! test -x "$WITH_CLANGPATH"; then
5155 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5156echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5157 { (exit 1); exit 1; }; }
5158 fi
5159elif test "$with_built_clang" = "yes"; then
5160 WITH_BUILT_CLANG=1
5161elif test "$with_built_clang" = "no"; then
5162 WITH_BUILT_CLANG=0
5163else
5164 if test "$with_built_clang" != "check"; then
5165 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5166echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5167 { (exit 1); exit 1; }; }
5168 fi
5169
5170 if test -f ${srcdir}/tools/clang/README.txt; then
5171 WITH_BUILT_CLANG=1
5172 fi
5173fi
5174
5175if ! test -z "$WITH_CLANGPATH"; then
5176 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5177echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5178 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5179elif test "$WITH_BUILT_CLANG" = "1"; then
5180 { echo "$as_me:$LINENO: result: built" >&5
5181echo "${ECHO_T}built" >&6; }
5182else
5183 { echo "$as_me:$LINENO: result: none" >&5
5184echo "${ECHO_T}none" >&6; }
5185fi
5186CLANGPATH=$WITH_CLANGPATH
5187
5188CLANGXXPATH=$WITH_CLANGXXPATH
5189
5190ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5191
5192
5193
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005194# Check whether --with-optimize-option was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005195if test "${with_optimize_option+set}" = set; then
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005196 withval=$with_optimize_option;
5197else
5198 withval=default
5199fi
5200
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005201{ echo "$as_me:$LINENO: checking optimization flags" >&5
5202echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005203case "$withval" in
5204 default)
5205 case "$llvm_cv_os_type" in
Daniel Dunbar569cf2a2010-04-30 17:12:26 +00005206 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar41bab122010-04-10 18:56:24 +00005207 MingW) optimize_option=-O2 ;;
5208 *) optimize_option=-O3 ;;
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005209 esac ;;
5210 *) optimize_option="$withval" ;;
5211esac
5212OPTIMIZE_OPTION=$optimize_option
5213
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005214{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5215echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005216
5217
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005218# Check whether --with-extra-options was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005219if test "${with_extra_options+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005220 withval=$with_extra_options;
5221else
5222 withval=default
5223fi
5224
5225case "$withval" in
5226 default) EXTRA_OPTIONS= ;;
5227 *) EXTRA_OPTIONS=$withval ;;
5228esac
5229EXTRA_OPTIONS=$EXTRA_OPTIONS
5230
5231
Gordon Henriksen016ec472007-10-02 09:50:32 +00005232# Check whether --enable-bindings was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005233if test "${enable_bindings+set}" = set; then
Gordon Henriksen016ec472007-10-02 09:50:32 +00005234 enableval=$enable_bindings;
5235else
5236 enableval=default
5237fi
5238
5239BINDINGS_TO_BUILD=""
5240case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005241 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005242 all ) BINDINGS_TO_BUILD="ocaml" ;;
5243 none | no) BINDINGS_TO_BUILD="" ;;
5244 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5245 case "$a_binding" in
5246 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005247 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5248echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5249 { (exit 1); exit 1; }; } ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005250 esac
5251 done
5252 ;;
5253esac
5254
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005255
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005256# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005257if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005258 withval=$with_ocaml_libdir;
5259else
5260 withval=auto
5261fi
5262
5263case "$withval" in
5264 auto) with_ocaml_libdir="$withval" ;;
5265 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005266 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5267echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5268 { (exit 1); exit 1; }; } ;;
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005269esac
5270
5271
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005272# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005273if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005274 withval=$with_c_include_dirs;
Rafael Espindola354924d2009-11-12 05:46:09 +00005275else
5276 withval=""
5277fi
5278
5279
5280cat >>confdefs.h <<_ACEOF
5281#define C_INCLUDE_DIRS "$withval"
5282_ACEOF
5283
5284
5285
Rafael Espindola3890bf02009-11-16 19:46:55 +00005286# Check whether --with-cxx-include-root was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005287if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005288 withval=$with_cxx_include_root;
5289else
5290 withval=""
5291fi
5292
5293
5294cat >>confdefs.h <<_ACEOF
5295#define CXX_INCLUDE_ROOT "$withval"
5296_ACEOF
5297
5298
5299
5300# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005301if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005302 withval=$with_cxx_include_arch;
5303else
5304 withval=""
5305fi
5306
5307
5308cat >>confdefs.h <<_ACEOF
5309#define CXX_INCLUDE_ARCH "$withval"
5310_ACEOF
5311
5312
5313
5314# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005315if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005316 withval=$with_cxx_include_32bit_dir;
5317else
5318 withval=""
5319fi
5320
5321
5322cat >>confdefs.h <<_ACEOF
5323#define CXX_INCLUDE_32BIT_DIR "$withval"
5324_ACEOF
5325
5326
5327
5328# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005329if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005330 withval=$with_cxx_include_64bit_dir;
5331else
5332 withval=""
5333fi
5334
5335
5336cat >>confdefs.h <<_ACEOF
5337#define CXX_INCLUDE_64BIT_DIR "$withval"
5338_ACEOF
5339
5340
5341
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005342# Check whether --with-binutils-include was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005343if test "${with_binutils_include+set}" = set; then
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005344 withval=$with_binutils_include;
5345else
5346 withval=default
5347fi
5348
5349case "$withval" in
5350 default) WITH_BINUTILS_INCDIR=default ;;
5351 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005352 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5353echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5354 { (exit 1); exit 1; }; } ;;
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005355esac
5356if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5357 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5358
5359 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5360 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005361 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5362echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5363 { (exit 1); exit 1; }; };
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005364 fi
5365fi
5366
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005367# Check whether --enable-libffi was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005368if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005369 enableval=$enable_libffi; case "$enableval" in
5370 yes) llvm_cv_enable_libffi="yes" ;;
5371 no) llvm_cv_enable_libffi="no" ;;
5372 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005373echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5374 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005375 esac
5376else
5377 llvm_cv_enable_libffi=no
5378fi
5379
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005380
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005381if test "$llvm_cv_os_type" = "Win32" ; then
5382 llvmc_dynamic="yes"
5383else
5384 llvmc_dynamic="no"
5385fi
5386
5387# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005388if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005389 enableval=$enable_llvmc_dynamic;
5390else
5391 enableval=$llvmc_dynamic
5392fi
5393
5394if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5395 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5396
5397else
5398 ENABLE_LLVMC_DYNAMIC=
5399
5400fi
5401
5402# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005403if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005404 enableval=$enable_llvmc_dynamic_plugins;
5405else
5406 enableval=yes
5407fi
5408
5409if test ${enableval} = "yes" ; then
5410 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5411
5412else
5413 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5414
5415fi
5416
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005417
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005418ac_ext=c
5419ac_cpp='$CPP $CPPFLAGS'
5420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005423{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5424echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005425# On Suns, sometimes $CPP names a directory.
5426if test -n "$CPP" && test -d "$CPP"; then
5427 CPP=
5428fi
5429if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005430 if test "${ac_cv_prog_CPP+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005432else
5433 # Double quotes because CPP needs to be expanded
5434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5435 do
5436 ac_preproc_ok=false
5437for ac_c_preproc_warn_flag in '' yes
5438do
5439 # Use a header file that comes with gcc, so configuring glibc
5440 # with a fresh cross-compiler works.
5441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5442 # <limits.h> exists even on freestanding compilers.
5443 # On the NeXT, cc -E runs the code through the compiler's parser,
5444 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005445 cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h. */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005450/* end confdefs.h. */
5451#ifdef __STDC__
5452# include <limits.h>
5453#else
5454# include <assert.h>
5455#endif
5456 Syntax error
5457_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005458if { (ac_try="$ac_cpp conftest.$ac_ext"
5459case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } >/dev/null; then
5471 if test -s conftest.err; then
5472 ac_cpp_err=$ac_c_preproc_warn_flag
5473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5474 else
5475 ac_cpp_err=
5476 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005477else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005478 ac_cpp_err=yes
5479fi
5480if test -z "$ac_cpp_err"; then
5481 :
5482else
5483 echo "$as_me: failed program was:" >&5
5484sed 's/^/| /' conftest.$ac_ext >&5
5485
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005486 # Broken: fails on valid input.
5487continue
5488fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005489
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005490rm -f conftest.err conftest.$ac_ext
5491
5492 # OK, works on sane cases. Now check whether nonexistent headers
5493 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005494 cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h. */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005499/* end confdefs.h. */
5500#include <ac_nonexistent.h>
5501_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005502if { (ac_try="$ac_cpp conftest.$ac_ext"
5503case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } >/dev/null; then
5515 if test -s conftest.err; then
5516 ac_cpp_err=$ac_c_preproc_warn_flag
5517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5518 else
5519 ac_cpp_err=
5520 fi
5521else
5522 ac_cpp_err=yes
5523fi
5524if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005525 # Broken: success on invalid input.
5526continue
5527else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005528 echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005531 # Passes both tests.
5532ac_preproc_ok=:
5533break
5534fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005535
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005536rm -f conftest.err conftest.$ac_ext
5537
5538done
5539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005541if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005542 break
5543fi
5544
5545 done
5546 ac_cv_prog_CPP=$CPP
5547
5548fi
5549 CPP=$ac_cv_prog_CPP
5550else
5551 ac_cv_prog_CPP=$CPP
5552fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005553{ echo "$as_me:$LINENO: result: $CPP" >&5
5554echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005555ac_preproc_ok=false
5556for ac_c_preproc_warn_flag in '' yes
5557do
5558 # Use a header file that comes with gcc, so configuring glibc
5559 # with a fresh cross-compiler works.
5560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561 # <limits.h> exists even on freestanding compilers.
5562 # On the NeXT, cc -E runs the code through the compiler's parser,
5563 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005564 cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h. */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005569/* end confdefs.h. */
5570#ifdef __STDC__
5571# include <limits.h>
5572#else
5573# include <assert.h>
5574#endif
5575 Syntax error
5576_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005577if { (ac_try="$ac_cpp conftest.$ac_ext"
5578case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581esac
5582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } >/dev/null; then
5590 if test -s conftest.err; then
5591 ac_cpp_err=$ac_c_preproc_warn_flag
5592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5593 else
5594 ac_cpp_err=
5595 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005596else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005597 ac_cpp_err=yes
5598fi
5599if test -z "$ac_cpp_err"; then
5600 :
5601else
5602 echo "$as_me: failed program was:" >&5
5603sed 's/^/| /' conftest.$ac_ext >&5
5604
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005605 # Broken: fails on valid input.
5606continue
5607fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005608
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005609rm -f conftest.err conftest.$ac_ext
5610
5611 # OK, works on sane cases. Now check whether nonexistent headers
5612 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005613 cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h. */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005618/* end confdefs.h. */
5619#include <ac_nonexistent.h>
5620_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005621if { (ac_try="$ac_cpp conftest.$ac_ext"
5622case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } >/dev/null; then
5634 if test -s conftest.err; then
5635 ac_cpp_err=$ac_c_preproc_warn_flag
5636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5637 else
5638 ac_cpp_err=
5639 fi
5640else
5641 ac_cpp_err=yes
5642fi
5643if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005644 # Broken: success on invalid input.
5645continue
5646else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005647 echo "$as_me: failed program was:" >&5
5648sed 's/^/| /' conftest.$ac_ext >&5
5649
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005650 # Passes both tests.
5651ac_preproc_ok=:
5652break
5653fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005654
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005655rm -f conftest.err conftest.$ac_ext
5656
5657done
5658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005660if $ac_preproc_ok; then
5661 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005662else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005663 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5664See \`config.log' for more details." >&5
5665echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5666See \`config.log' for more details." >&2;}
5667 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005668fi
5669
5670ac_ext=c
5671ac_cpp='$CPP $CPPFLAGS'
5672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675
5676ac_ext=c
5677ac_cpp='$CPP $CPPFLAGS'
5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681if test -n "$ac_tool_prefix"; then
5682 for ac_prog in gcc
5683 do
5684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5688if test "${ac_cv_prog_CC+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005690else
5691 if test -n "$CC"; then
5692 ac_cv_prog_CC="$CC" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005703 break 2
5704 fi
5705done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005706done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005707IFS=$as_save_IFS
5708
5709fi
5710fi
5711CC=$ac_cv_prog_CC
5712if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005713 { echo "$as_me:$LINENO: result: $CC" >&5
5714echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005715else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005716 { echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005718fi
5719
5720
5721 test -n "$CC" && break
5722 done
5723fi
5724if test -z "$CC"; then
5725 ac_ct_CC=$CC
5726 for ac_prog in gcc
5727do
5728 # Extract the first word of "$ac_prog", so it can be a program name with args.
5729set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5732if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005734else
5735 if test -n "$ac_ct_CC"; then
5736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005745 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005747 break 2
5748 fi
5749done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005750done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005751IFS=$as_save_IFS
5752
5753fi
5754fi
5755ac_ct_CC=$ac_cv_prog_ac_ct_CC
5756if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5758echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005759else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005760 { echo "$as_me:$LINENO: result: no" >&5
5761echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005762fi
5763
5764
5765 test -n "$ac_ct_CC" && break
5766done
5767
5768 if test "x$ac_ct_CC" = x; then
5769 CC=""
5770 else
5771 case $cross_compiling:$ac_tool_warned in
5772yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005773{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5774whose name does not start with the host triplet. If you think this
5775configuration is useful to you, please write to autoconf@gnu.org." >&5
5776echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5777whose name does not start with the host triplet. If you think this
5778configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005779ac_tool_warned=yes ;;
5780esac
5781 CC=$ac_ct_CC
5782 fi
5783fi
5784
5785
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005786test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5787See \`config.log' for more details." >&5
5788echo "$as_me: error: no acceptable C compiler found in \$PATH
5789See \`config.log' for more details." >&2;}
5790 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005791
5792# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005793echo "$as_me:$LINENO: checking for C compiler version" >&5
5794ac_compiler=`set X $ac_compile; echo $2`
5795{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005802 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }
5805{ (ac_try="$ac_compiler -v >&5"
5806case "(($ac_try" in
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5809esac
5810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_compiler -v >&5") 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }
5815{ (ac_try="$ac_compiler -V >&5"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compiler -V >&5") 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005825
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005826{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5827echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5828if test "${ac_cv_c_compiler_gnu+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005830else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005831 cat >conftest.$ac_ext <<_ACEOF
5832/* confdefs.h. */
5833_ACEOF
5834cat confdefs.h >>conftest.$ac_ext
5835cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005836/* end confdefs.h. */
5837
5838int
5839main ()
5840{
5841#ifndef __GNUC__
5842 choke me
5843#endif
5844
5845 ;
5846 return 0;
5847}
5848_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005849rm -f conftest.$ac_objext
5850if { (ac_try="$ac_compile"
5851case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005883 ac_compiler_gnu=yes
5884else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005885 echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005889fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005890
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892ac_cv_c_compiler_gnu=$ac_compiler_gnu
5893
5894fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005895{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5896echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5897GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005898ac_test_CFLAGS=${CFLAGS+set}
5899ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005900{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5901echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5902if test "${ac_cv_prog_cc_g+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005904else
5905 ac_save_c_werror_flag=$ac_c_werror_flag
5906 ac_c_werror_flag=yes
5907 ac_cv_prog_cc_g=no
5908 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005909 cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h. */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005914/* end confdefs.h. */
5915
5916int
5917main ()
5918{
5919
5920 ;
5921 return 0;
5922}
5923_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005924rm -f conftest.$ac_objext
5925if { (ac_try="$ac_compile"
5926case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929esac
5930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5939 { (case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
5943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_try") 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952esac
5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005958 ac_cv_prog_cc_g=yes
5959else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005960 echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 CFLAGS=""
5964 cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005969/* end confdefs.h. */
5970
5971int
5972main ()
5973{
5974
5975 ;
5976 return 0;
5977}
5978_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005979rm -f conftest.$ac_objext
5980if { (ac_try="$ac_compile"
5981case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984esac
5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 :
Edwin Törökc27310c2010-01-26 08:50:50 +00006014else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006019 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006020 cat >conftest.$ac_ext <<_ACEOF
6021/* confdefs.h. */
6022_ACEOF
6023cat confdefs.h >>conftest.$ac_ext
6024cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006025/* end confdefs.h. */
6026
6027int
6028main ()
6029{
6030
6031 ;
6032 return 0;
6033}
6034_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006035rm -f conftest.$ac_objext
6036if { (ac_try="$ac_compile"
6037case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040esac
6041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6050 { (case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053esac
6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_try") 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063esac
6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006069 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006075fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006076
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006079
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006082
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_c_werror_flag=$ac_save_c_werror_flag
6085fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006086{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6087echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006088if test "$ac_test_CFLAGS" = set; then
6089 CFLAGS=$ac_save_CFLAGS
6090elif test $ac_cv_prog_cc_g = yes; then
6091 if test "$GCC" = yes; then
6092 CFLAGS="-g -O2"
6093 else
6094 CFLAGS="-g"
6095 fi
6096else
6097 if test "$GCC" = yes; then
6098 CFLAGS="-O2"
6099 else
6100 CFLAGS=
6101 fi
6102fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006103{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6104echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6105if test "${ac_cv_prog_cc_c89+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006107else
6108 ac_cv_prog_cc_c89=no
6109ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006110cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006115/* end confdefs.h. */
6116#include <stdarg.h>
6117#include <stdio.h>
6118#include <sys/types.h>
6119#include <sys/stat.h>
6120/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6121struct buf { int x; };
6122FILE * (*rcsopen) (struct buf *, struct stat *, int);
6123static char *e (p, i)
6124 char **p;
6125 int i;
6126{
6127 return p[i];
6128}
6129static char *f (char * (*g) (char **, int), char **p, ...)
6130{
6131 char *s;
6132 va_list v;
6133 va_start (v,p);
6134 s = g (p, va_arg (v,int));
6135 va_end (v);
6136 return s;
6137}
6138
6139/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6140 function prototypes and stuff, but not '\xHH' hex character constants.
6141 These don't provoke an error unfortunately, instead are silently treated
6142 as 'x'. The following induces an error, until -std is added to get
6143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6144 array size at least. It's necessary to write '\x00'==0 to get something
6145 that's true only with -std. */
6146int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6147
6148/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6149 inside strings and character constants. */
6150#define FOO(x) 'x'
6151int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6152
6153int test (int i, double x);
6154struct s1 {int (*f) (int a);};
6155struct s2 {int (*f) (double a);};
6156int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6157int argc;
6158char **argv;
6159int
6160main ()
6161{
6162return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6169do
6170 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006171 rm -f conftest.$ac_objext
6172if { (ac_try="$ac_compile"
6173case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176esac
6177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189esac
6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199esac
6200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_try") 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006205 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006206else
6207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006211fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006212
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006213rm -f core conftest.err conftest.$ac_objext
6214 test "x$ac_cv_prog_cc_c89" != "xno" && break
6215done
6216rm -f conftest.$ac_ext
6217CC=$ac_save_CC
6218
6219fi
6220# AC_CACHE_VAL
6221case "x$ac_cv_prog_cc_c89" in
6222 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006223 { echo "$as_me:$LINENO: result: none needed" >&5
6224echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006225 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006226 { echo "$as_me:$LINENO: result: unsupported" >&5
6227echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006228 *)
6229 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006230 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6231echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006232esac
6233
6234
6235ac_ext=c
6236ac_cpp='$CPP $CPPFLAGS'
6237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6239ac_compiler_gnu=$ac_cv_c_compiler_gnu
6240
6241ac_ext=cpp
6242ac_cpp='$CXXCPP $CPPFLAGS'
6243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6246if test -z "$CXX"; then
6247 if test -n "$CCC"; then
6248 CXX=$CCC
6249 else
6250 if test -n "$ac_tool_prefix"; then
6251 for ac_prog in g++
6252 do
6253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257if test "${ac_cv_prog_CXX+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006259else
6260 if test -n "$CXX"; then
6261 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006270 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006272 break 2
6273 fi
6274done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006275done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006276IFS=$as_save_IFS
6277
6278fi
6279fi
6280CXX=$ac_cv_prog_CXX
6281if test -n "$CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006282 { echo "$as_me:$LINENO: result: $CXX" >&5
6283echo "${ECHO_T}$CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006284else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006285 { echo "$as_me:$LINENO: result: no" >&5
6286echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006287fi
6288
6289
6290 test -n "$CXX" && break
6291 done
6292fi
6293if test -z "$CXX"; then
6294 ac_ct_CXX=$CXX
6295 for ac_prog in g++
6296do
6297 # Extract the first word of "$ac_prog", so it can be a program name with args.
6298set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006303else
6304 if test -n "$ac_ct_CXX"; then
6305 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006314 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006316 break 2
6317 fi
6318done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006319done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006320IFS=$as_save_IFS
6321
6322fi
6323fi
6324ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6325if test -n "$ac_ct_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006326 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6327echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006328else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006329 { echo "$as_me:$LINENO: result: no" >&5
6330echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006331fi
6332
6333
6334 test -n "$ac_ct_CXX" && break
6335done
6336
6337 if test "x$ac_ct_CXX" = x; then
6338 CXX="g++"
6339 else
6340 case $cross_compiling:$ac_tool_warned in
6341yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006342{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6343whose name does not start with the host triplet. If you think this
6344configuration is useful to you, please write to autoconf@gnu.org." >&5
6345echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6346whose name does not start with the host triplet. If you think this
6347configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006348ac_tool_warned=yes ;;
6349esac
6350 CXX=$ac_ct_CXX
6351 fi
6352fi
6353
6354 fi
6355fi
6356# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006357echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6358ac_compiler=`set X $ac_compile; echo $2`
6359{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006360case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006366 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }
6369{ (ac_try="$ac_compiler -v >&5"
6370case "(($ac_try" in
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6373esac
6374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375 (eval "$ac_compiler -v >&5") 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }
6379{ (ac_try="$ac_compiler -V >&5"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compiler -V >&5") 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006389
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006390{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6391echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6392if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006394else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006395 cat >conftest.$ac_ext <<_ACEOF
6396/* confdefs.h. */
6397_ACEOF
6398cat confdefs.h >>conftest.$ac_ext
6399cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006400/* end confdefs.h. */
6401
6402int
6403main ()
6404{
6405#ifndef __GNUC__
6406 choke me
6407#endif
6408
6409 ;
6410 return 0;
6411}
6412_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006413rm -f conftest.$ac_objext
6414if { (ac_try="$ac_compile"
6415case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
6419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6428 { (case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431esac
6432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_try") 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_try") 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006447 ac_compiler_gnu=yes
6448else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006449 echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006453fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006454
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6457
6458fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006459{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6460echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6461GXX=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006462ac_test_CXXFLAGS=${CXXFLAGS+set}
6463ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006464{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6465echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6466if test "${ac_cv_prog_cxx_g+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006468else
6469 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6470 ac_cxx_werror_flag=yes
6471 ac_cv_prog_cxx_g=no
6472 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006473 cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h. */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006478/* end confdefs.h. */
6479
6480int
6481main ()
6482{
6483
6484 ;
6485 return 0;
6486}
6487_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006488rm -f conftest.$ac_objext
6489if { (ac_try="$ac_compile"
6490case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493esac
6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6503 { (case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_try") 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest.$ac_objext'
6513 { (case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516esac
6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_try") 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006522 ac_cv_prog_cxx_g=yes
6523else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006524 echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 CXXFLAGS=""
6528 cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h. */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006533/* end confdefs.h. */
6534
6535int
6536main ()
6537{
6538
6539 ;
6540 return 0;
6541}
6542_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006543rm -f conftest.$ac_objext
6544if { (ac_try="$ac_compile"
6545case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548esac
6549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_compile") 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6558 { (case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561esac
6562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_try") 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest.$ac_objext'
6568 { (case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571esac
6572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_try") 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 :
Edwin Törökc27310c2010-01-26 08:50:50 +00006578else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006579 echo "$as_me: failed program was:" >&5
6580sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006583 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006584 cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006589/* end confdefs.h. */
6590
6591int
6592main ()
6593{
6594
6595 ;
6596 return 0;
6597}
6598_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006599rm -f conftest.$ac_objext
6600if { (ac_try="$ac_compile"
6601case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604esac
6605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6614 { (case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617esac
6618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_try") 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; } &&
6623 { ac_try='test -s conftest.$ac_objext'
6624 { (case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627esac
6628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_try") 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006633 ac_cv_prog_cxx_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006634else
6635 echo "$as_me: failed program was:" >&5
6636sed 's/^/| /' conftest.$ac_ext >&5
6637
6638
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006639fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006640
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006643
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006646
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6649fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006650{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6651echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006652if test "$ac_test_CXXFLAGS" = set; then
6653 CXXFLAGS=$ac_save_CXXFLAGS
6654elif test $ac_cv_prog_cxx_g = yes; then
6655 if test "$GXX" = yes; then
6656 CXXFLAGS="-g -O2"
6657 else
6658 CXXFLAGS="-g"
6659 fi
6660else
6661 if test "$GXX" = yes; then
6662 CXXFLAGS="-O2"
6663 else
6664 CXXFLAGS=
6665 fi
6666fi
6667ac_ext=c
6668ac_cpp='$CPP $CPPFLAGS'
6669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6671ac_compiler_gnu=$ac_cv_c_compiler_gnu
6672
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006673
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006674{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6675echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6676if test "${lt_cv_path_NM+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006678else
6679 if test -n "$NM"; then
6680 # Let the user override the test.
6681 lt_cv_path_NM="$NM"
6682else
6683 lt_nm_to_check="${ac_tool_prefix}nm"
6684 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6685 lt_nm_to_check="$lt_nm_to_check nm"
6686 fi
6687 for lt_tmp_nm in $lt_nm_to_check; do
6688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6690 IFS="$lt_save_ifs"
6691 test -z "$ac_dir" && ac_dir=.
6692 tmp_nm="$ac_dir/$lt_tmp_nm"
6693 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6694 # Check to see if the nm accepts a BSD-compat flag.
6695 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6696 # nm: unknown option "B" ignored
6697 # Tru64's nm complains that /dev/null is an invalid object file
6698 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6699 */dev/null* | *'Invalid file or object type'*)
6700 lt_cv_path_NM="$tmp_nm -B"
6701 break
6702 ;;
6703 *)
6704 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6705 */dev/null*)
6706 lt_cv_path_NM="$tmp_nm -p"
6707 break
6708 ;;
6709 *)
6710 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6711 continue # so that we can try to find one that supports BSD flags
6712 ;;
6713 esac
6714 ;;
6715 esac
6716 fi
6717 done
6718 IFS="$lt_save_ifs"
6719 done
6720 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6721fi
6722fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006723{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6724echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006725NM="$lt_cv_path_NM"
6726
6727
6728
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006729{ echo "$as_me:$LINENO: checking for GNU make" >&5
6730echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6731if test "${llvm_cv_gnu_make_command+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006733else
6734 llvm_cv_gnu_make_command=''
6735 for a in "$MAKE" make gmake gnumake ; do
6736 if test -z "$a" ; then continue ; fi ;
6737 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6738 then
6739 llvm_cv_gnu_make_command=$a ;
6740 break;
6741 fi
6742 done
6743fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006744{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6745echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006746 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6747 ifGNUmake='' ;
6748 else
6749 ifGNUmake='#' ;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006750 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6751echo "${ECHO_T}\"Not found\"" >&6; };
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006752 fi
6753
6754
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006755{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6756echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006757LN_S=$as_ln_s
6758if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006759 { echo "$as_me:$LINENO: result: yes" >&5
6760echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006761else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006762 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6763echo "${ECHO_T}no, using $LN_S" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006764fi
6765
6766# Extract the first word of "cmp", so it can be a program name with args.
6767set dummy cmp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770if test "${ac_cv_path_CMP+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006772else
6773 case $CMP in
6774 [\\/]* | ?:[\\/]*)
6775 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6776 ;;
6777 *)
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006785 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006787 break 2
6788 fi
6789done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006790done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006791IFS=$as_save_IFS
6792
6793 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6794 ;;
6795esac
6796fi
6797CMP=$ac_cv_path_CMP
6798if test -n "$CMP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006799 { echo "$as_me:$LINENO: result: $CMP" >&5
6800echo "${ECHO_T}$CMP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006801else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006802 { echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006804fi
6805
6806
6807# Extract the first word of "cp", so it can be a program name with args.
6808set dummy cp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811if test "${ac_cv_path_CP+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006813else
6814 case $CP in
6815 [\\/]* | ?:[\\/]*)
6816 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6817 ;;
6818 *)
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006826 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006828 break 2
6829 fi
6830done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006831done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006832IFS=$as_save_IFS
6833
6834 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6835 ;;
6836esac
6837fi
6838CP=$ac_cv_path_CP
6839if test -n "$CP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006840 { echo "$as_me:$LINENO: result: $CP" >&5
6841echo "${ECHO_T}$CP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006842else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006843 { echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006845fi
6846
6847
6848# Extract the first word of "date", so it can be a program name with args.
6849set dummy date; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852if test "${ac_cv_path_DATE+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006854else
6855 case $DATE in
6856 [\\/]* | ?:[\\/]*)
6857 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6858 ;;
6859 *)
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006867 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006869 break 2
6870 fi
6871done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006872done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006873IFS=$as_save_IFS
6874
6875 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6876 ;;
6877esac
6878fi
6879DATE=$ac_cv_path_DATE
6880if test -n "$DATE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006881 { echo "$as_me:$LINENO: result: $DATE" >&5
6882echo "${ECHO_T}$DATE" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006883else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006884 { echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006886fi
6887
6888
6889# Extract the first word of "find", so it can be a program name with args.
6890set dummy find; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893if test "${ac_cv_path_FIND+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006895else
6896 case $FIND in
6897 [\\/]* | ?:[\\/]*)
6898 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6899 ;;
6900 *)
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006908 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006910 break 2
6911 fi
6912done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006913done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006914IFS=$as_save_IFS
6915
6916 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6917 ;;
6918esac
6919fi
6920FIND=$ac_cv_path_FIND
6921if test -n "$FIND"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006922 { echo "$as_me:$LINENO: result: $FIND" >&5
6923echo "${ECHO_T}$FIND" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006924else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006925 { echo "$as_me:$LINENO: result: no" >&5
6926echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006927fi
6928
6929
6930# Extract the first word of "grep", so it can be a program name with args.
6931set dummy grep; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934if test "${ac_cv_path_GREP+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006936else
6937 case $GREP in
6938 [\\/]* | ?:[\\/]*)
6939 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6940 ;;
6941 *)
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006949 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006951 break 2
6952 fi
6953done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006954done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006955IFS=$as_save_IFS
6956
6957 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6958 ;;
6959esac
6960fi
6961GREP=$ac_cv_path_GREP
6962if test -n "$GREP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006963 { echo "$as_me:$LINENO: result: $GREP" >&5
6964echo "${ECHO_T}$GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006965else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006966 { echo "$as_me:$LINENO: result: no" >&5
6967echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006968fi
6969
6970
6971# Extract the first word of "mkdir", so it can be a program name with args.
6972set dummy mkdir; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975if test "${ac_cv_path_MKDIR+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006977else
6978 case $MKDIR in
6979 [\\/]* | ?:[\\/]*)
6980 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6981 ;;
6982 *)
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006990 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006992 break 2
6993 fi
6994done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006995done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006996IFS=$as_save_IFS
6997
6998 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6999 ;;
7000esac
7001fi
7002MKDIR=$ac_cv_path_MKDIR
7003if test -n "$MKDIR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007004 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7005echo "${ECHO_T}$MKDIR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007006else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007007 { echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007009fi
7010
7011
7012# Extract the first word of "mv", so it can be a program name with args.
7013set dummy mv; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016if test "${ac_cv_path_MV+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007018else
7019 case $MV in
7020 [\\/]* | ?:[\\/]*)
7021 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7022 ;;
7023 *)
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007031 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007033 break 2
7034 fi
7035done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007036done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007037IFS=$as_save_IFS
7038
7039 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7040 ;;
7041esac
7042fi
7043MV=$ac_cv_path_MV
7044if test -n "$MV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007045 { echo "$as_me:$LINENO: result: $MV" >&5
7046echo "${ECHO_T}$MV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007047else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007048 { echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007050fi
7051
7052
7053if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7055set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058if test "${ac_cv_prog_RANLIB+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007060else
7061 if test -n "$RANLIB"; then
7062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007073 break 2
7074 fi
7075done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007076done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007077IFS=$as_save_IFS
7078
7079fi
7080fi
7081RANLIB=$ac_cv_prog_RANLIB
7082if test -n "$RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007083 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7084echo "${ECHO_T}$RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007085else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007086 { echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007088fi
7089
7090
7091fi
7092if test -z "$ac_cv_prog_RANLIB"; then
7093 ac_ct_RANLIB=$RANLIB
7094 # Extract the first word of "ranlib", so it can be a program name with args.
7095set dummy ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007100else
7101 if test -n "$ac_ct_RANLIB"; then
7102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007111 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007113 break 2
7114 fi
7115done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007116done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007117IFS=$as_save_IFS
7118
7119fi
7120fi
7121ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7122if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007123 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7124echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007125else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007126 { echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007128fi
7129
7130 if test "x$ac_ct_RANLIB" = x; then
7131 RANLIB=":"
7132 else
7133 case $cross_compiling:$ac_tool_warned in
7134yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007135{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7136whose name does not start with the host triplet. If you think this
7137configuration is useful to you, please write to autoconf@gnu.org." >&5
7138echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7139whose name does not start with the host triplet. If you think this
7140configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007141ac_tool_warned=yes ;;
7142esac
7143 RANLIB=$ac_ct_RANLIB
7144 fi
7145else
7146 RANLIB="$ac_cv_prog_RANLIB"
7147fi
7148
Edwin Törökc27310c2010-01-26 08:50:50 +00007149if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7151set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154if test "${ac_cv_prog_AR+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007156else
7157 if test -n "$AR"; then
7158 ac_cv_prog_AR="$AR" # Let the user override the test.
7159else
7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Edwin Törökc27310c2010-01-26 08:50:50 +00007167 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007169 break 2
7170 fi
7171done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007172done
Edwin Törökc27310c2010-01-26 08:50:50 +00007173IFS=$as_save_IFS
7174
7175fi
7176fi
7177AR=$ac_cv_prog_AR
7178if test -n "$AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007179 { echo "$as_me:$LINENO: result: $AR" >&5
7180echo "${ECHO_T}$AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007181else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007182 { echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007184fi
7185
7186
7187fi
7188if test -z "$ac_cv_prog_AR"; then
7189 ac_ct_AR=$AR
7190 # Extract the first word of "ar", so it can be a program name with args.
7191set dummy ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007196else
7197 if test -n "$ac_ct_AR"; then
7198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7199else
7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Edwin Törökc27310c2010-01-26 08:50:50 +00007207 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007209 break 2
7210 fi
7211done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007212done
Edwin Törökc27310c2010-01-26 08:50:50 +00007213IFS=$as_save_IFS
7214
7215fi
7216fi
7217ac_ct_AR=$ac_cv_prog_ac_ct_AR
7218if test -n "$ac_ct_AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007219 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7220echo "${ECHO_T}$ac_ct_AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007221else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007222 { echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007224fi
7225
7226 if test "x$ac_ct_AR" = x; then
7227 AR="false"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007231{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7232whose name does not start with the host triplet. If you think this
7233configuration is useful to you, please write to autoconf@gnu.org." >&5
7234echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7235whose name does not start with the host triplet. If you think this
7236configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Edwin Törökc27310c2010-01-26 08:50:50 +00007237ac_tool_warned=yes ;;
7238esac
7239 AR=$ac_ct_AR
7240 fi
7241else
7242 AR="$ac_cv_prog_AR"
7243fi
7244
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007245# Extract the first word of "rm", so it can be a program name with args.
7246set dummy rm; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249if test "${ac_cv_path_RM+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007251else
7252 case $RM in
7253 [\\/]* | ?:[\\/]*)
7254 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7255 ;;
7256 *)
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007264 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007266 break 2
7267 fi
7268done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007269done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007270IFS=$as_save_IFS
7271
7272 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7273 ;;
7274esac
7275fi
7276RM=$ac_cv_path_RM
7277if test -n "$RM"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007278 { echo "$as_me:$LINENO: result: $RM" >&5
7279echo "${ECHO_T}$RM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007280else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007281 { echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007283fi
7284
7285
7286# Extract the first word of "sed", so it can be a program name with args.
7287set dummy sed; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290if test "${ac_cv_path_SED+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007292else
7293 case $SED in
7294 [\\/]* | ?:[\\/]*)
7295 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7296 ;;
7297 *)
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007305 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007307 break 2
7308 fi
7309done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007310done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007311IFS=$as_save_IFS
7312
7313 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7314 ;;
7315esac
7316fi
7317SED=$ac_cv_path_SED
7318if test -n "$SED"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007319 { echo "$as_me:$LINENO: result: $SED" >&5
7320echo "${ECHO_T}$SED" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007321else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007322 { echo "$as_me:$LINENO: result: no" >&5
7323echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007324fi
7325
7326
7327# Extract the first word of "tar", so it can be a program name with args.
7328set dummy tar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7331if test "${ac_cv_path_TAR+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007333else
7334 case $TAR in
7335 [\\/]* | ?:[\\/]*)
7336 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7337 ;;
7338 *)
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007346 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007348 break 2
7349 fi
7350done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007351done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007352IFS=$as_save_IFS
7353
7354 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7355 ;;
7356esac
7357fi
7358TAR=$ac_cv_path_TAR
7359if test -n "$TAR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007360 { echo "$as_me:$LINENO: result: $TAR" >&5
7361echo "${ECHO_T}$TAR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007362else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007363 { echo "$as_me:$LINENO: result: no" >&5
7364echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007365fi
7366
7367
7368# Extract the first word of "pwd", so it can be a program name with args.
7369set dummy pwd; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372if test "${ac_cv_path_BINPWD+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007374else
7375 case $BINPWD in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7378 ;;
7379 *)
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007387 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007389 break 2
7390 fi
7391done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007392done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007393IFS=$as_save_IFS
7394
7395 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7396 ;;
7397esac
7398fi
7399BINPWD=$ac_cv_path_BINPWD
7400if test -n "$BINPWD"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007401 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7402echo "${ECHO_T}$BINPWD" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007403else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007404 { echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007406fi
7407
7408
7409
7410# Extract the first word of "Graphviz", so it can be a program name with args.
7411set dummy Graphviz; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007416else
7417 case $GRAPHVIZ in
7418 [\\/]* | ?:[\\/]*)
7419 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7420 ;;
7421 *)
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007429 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007431 break 2
7432 fi
7433done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007434done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007435IFS=$as_save_IFS
7436
7437 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7438 ;;
7439esac
7440fi
7441GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7442if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007443 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7444echo "${ECHO_T}$GRAPHVIZ" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007445else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007446 { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007448fi
7449
7450
7451if test "$GRAPHVIZ" != "echo Graphviz" ; then
7452
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007453cat >>confdefs.h <<\_ACEOF
7454#define HAVE_GRAPHVIZ 1
7455_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007456
7457 if test "$llvm_cv_os_type" = "MingW" ; then
7458 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7459 fi
7460
7461cat >>confdefs.h <<_ACEOF
7462#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7463_ACEOF
7464
7465fi
7466# Extract the first word of "dot", so it can be a program name with args.
7467set dummy dot; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470if test "${ac_cv_path_DOT+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007472else
7473 case $DOT in
7474 [\\/]* | ?:[\\/]*)
7475 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7476 ;;
7477 *)
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007485 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007487 break 2
7488 fi
7489done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007490done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007491IFS=$as_save_IFS
7492
7493 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7494 ;;
7495esac
7496fi
7497DOT=$ac_cv_path_DOT
7498if test -n "$DOT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007499 { echo "$as_me:$LINENO: result: $DOT" >&5
7500echo "${ECHO_T}$DOT" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007501else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007502 { echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007504fi
7505
7506
7507if test "$DOT" != "echo dot" ; then
7508
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007509cat >>confdefs.h <<\_ACEOF
7510#define HAVE_DOT 1
7511_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007512
7513 if test "$llvm_cv_os_type" = "MingW" ; then
7514 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7515 fi
7516
7517cat >>confdefs.h <<_ACEOF
7518#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7519_ACEOF
7520
7521fi
David Greenedb740ef2009-07-09 17:16:26 +00007522# Extract the first word of "fdp", so it can be a program name with args.
7523set dummy fdp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526if test "${ac_cv_path_FDP+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007528else
7529 case $FDP in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007541 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007543 break 2
7544 fi
7545done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007546done
David Greenedb740ef2009-07-09 17:16:26 +00007547IFS=$as_save_IFS
7548
7549 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7550 ;;
7551esac
7552fi
7553FDP=$ac_cv_path_FDP
7554if test -n "$FDP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007555 { echo "$as_me:$LINENO: result: $FDP" >&5
7556echo "${ECHO_T}$FDP" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007557else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007558 { echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007560fi
7561
7562
7563if test "$FDP" != "echo fdp" ; then
7564
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007565cat >>confdefs.h <<\_ACEOF
7566#define HAVE_FDP 1
7567_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007568
7569 if test "$llvm_cv_os_type" = "MingW" ; then
7570 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7571 fi
7572
7573cat >>confdefs.h <<_ACEOF
7574#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7575_ACEOF
7576
7577fi
7578# Extract the first word of "neato", so it can be a program name with args.
7579set dummy neato; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582if test "${ac_cv_path_NEATO+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007584else
7585 case $NEATO in
7586 [\\/]* | ?:[\\/]*)
7587 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7588 ;;
7589 *)
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007597 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007599 break 2
7600 fi
7601done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007602done
David Greenedb740ef2009-07-09 17:16:26 +00007603IFS=$as_save_IFS
7604
7605 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7606 ;;
7607esac
7608fi
7609NEATO=$ac_cv_path_NEATO
7610if test -n "$NEATO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007611 { echo "$as_me:$LINENO: result: $NEATO" >&5
7612echo "${ECHO_T}$NEATO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007613else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007614 { echo "$as_me:$LINENO: result: no" >&5
7615echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007616fi
7617
7618
7619if test "$NEATO" != "echo neato" ; then
7620
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007621cat >>confdefs.h <<\_ACEOF
7622#define HAVE_NEATO 1
7623_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007624
7625 if test "$llvm_cv_os_type" = "MingW" ; then
7626 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7627 fi
7628
7629cat >>confdefs.h <<_ACEOF
7630#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7631_ACEOF
7632
7633fi
7634# Extract the first word of "twopi", so it can be a program name with args.
7635set dummy twopi; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638if test "${ac_cv_path_TWOPI+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007640else
7641 case $TWOPI in
7642 [\\/]* | ?:[\\/]*)
7643 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7644 ;;
7645 *)
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007653 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007655 break 2
7656 fi
7657done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007658done
David Greenedb740ef2009-07-09 17:16:26 +00007659IFS=$as_save_IFS
7660
7661 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7662 ;;
7663esac
7664fi
7665TWOPI=$ac_cv_path_TWOPI
7666if test -n "$TWOPI"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007667 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7668echo "${ECHO_T}$TWOPI" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007669else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007670 { echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007672fi
7673
7674
7675if test "$TWOPI" != "echo twopi" ; then
7676
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007677cat >>confdefs.h <<\_ACEOF
7678#define HAVE_TWOPI 1
7679_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007680
7681 if test "$llvm_cv_os_type" = "MingW" ; then
7682 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7683 fi
7684
7685cat >>confdefs.h <<_ACEOF
7686#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7687_ACEOF
7688
7689fi
7690# Extract the first word of "circo", so it can be a program name with args.
7691set dummy circo; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694if test "${ac_cv_path_CIRCO+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007696else
7697 case $CIRCO in
7698 [\\/]* | ?:[\\/]*)
7699 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7700 ;;
7701 *)
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703for as_dir in $PATH
7704do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007709 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007711 break 2
7712 fi
7713done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007714done
David Greenedb740ef2009-07-09 17:16:26 +00007715IFS=$as_save_IFS
7716
7717 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7718 ;;
7719esac
7720fi
7721CIRCO=$ac_cv_path_CIRCO
7722if test -n "$CIRCO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007723 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7724echo "${ECHO_T}$CIRCO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007725else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007726 { echo "$as_me:$LINENO: result: no" >&5
7727echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007728fi
7729
7730
7731if test "$CIRCO" != "echo circo" ; then
7732
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007733cat >>confdefs.h <<\_ACEOF
7734#define HAVE_CIRCO 1
7735_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007736
7737 if test "$llvm_cv_os_type" = "MingW" ; then
7738 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7739 fi
7740
7741cat >>confdefs.h <<_ACEOF
7742#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7743_ACEOF
7744
7745fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007746for ac_prog in gv gsview32
7747do
7748 # Extract the first word of "$ac_prog", so it can be a program name with args.
7749set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-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_GV+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007754else
7755 case $GV in
7756 [\\/]* | ?:[\\/]*)
7757 ac_cv_path_GV="$GV" # 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 Yasskinb6450492010-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007767 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007769 break 2
7770 fi
7771done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007772done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007773IFS=$as_save_IFS
7774
7775 ;;
7776esac
7777fi
7778GV=$ac_cv_path_GV
7779if test -n "$GV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007780 { echo "$as_me:$LINENO: result: $GV" >&5
7781echo "${ECHO_T}$GV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007782else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007783 { echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007785fi
7786
7787
7788 test -n "$GV" && break
7789done
7790test -n "$GV" || GV="echo gv"
7791
7792if test "$GV" != "echo gv" ; then
7793
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007794cat >>confdefs.h <<\_ACEOF
7795#define HAVE_GV 1
7796_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007797
7798 if test "$llvm_cv_os_type" = "MingW" ; then
7799 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7800 fi
7801
7802cat >>confdefs.h <<_ACEOF
7803#define LLVM_PATH_GV "$GV${EXEEXT}"
7804_ACEOF
7805
7806fi
7807# Extract the first word of "dotty", so it can be a program name with args.
7808set dummy dotty; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7811if test "${ac_cv_path_DOTTY+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007813else
7814 case $DOTTY in
7815 [\\/]* | ?:[\\/]*)
7816 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7817 ;;
7818 *)
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007826 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007828 break 2
7829 fi
7830done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007831done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007832IFS=$as_save_IFS
7833
7834 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7835 ;;
7836esac
7837fi
7838DOTTY=$ac_cv_path_DOTTY
7839if test -n "$DOTTY"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007840 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7841echo "${ECHO_T}$DOTTY" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007842else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007843 { echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007845fi
7846
7847
7848if test "$DOTTY" != "echo dotty" ; then
7849
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007850cat >>confdefs.h <<\_ACEOF
7851#define HAVE_DOTTY 1
7852_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007853
7854 if test "$llvm_cv_os_type" = "MingW" ; then
7855 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7856 fi
7857
7858cat >>confdefs.h <<_ACEOF
7859#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7860_ACEOF
7861
7862fi
7863
7864
7865# Extract the first word of "perl", so it can be a program name with args.
7866set dummy perl; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869if test "${ac_cv_path_PERL+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007871else
7872 case $PERL in
7873 [\\/]* | ?:[\\/]*)
7874 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7875 ;;
7876 *)
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007884 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007886 break 2
7887 fi
7888done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007889done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007890IFS=$as_save_IFS
7891
7892 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7893 ;;
7894esac
7895fi
7896PERL=$ac_cv_path_PERL
7897if test -n "$PERL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007898 { echo "$as_me:$LINENO: result: $PERL" >&5
7899echo "${ECHO_T}$PERL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007900else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007901 { echo "$as_me:$LINENO: result: no" >&5
7902echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007903fi
7904
7905
7906if test "$PERL" != "none"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007907 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7908echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007909 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007910 { echo "$as_me:$LINENO: result: yes" >&5
7911echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007912 else
7913 PERL=none
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007914 { echo "$as_me:$LINENO: result: not found" >&5
7915echo "${ECHO_T}not found" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007916 fi
7917fi
7918
7919
7920if test x"$PERL" = xnone; then
7921 HAVE_PERL=0
7922
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007923 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7924echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7925 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007926else
7927 HAVE_PERL=1
7928
7929fi
7930
7931# Find a good install program. We prefer a C program (faster),
7932# so one script is as good as another. But avoid the broken or
7933# incompatible versions:
7934# SysV /etc/install, /usr/sbin/install
7935# SunOS /usr/etc/install
7936# IRIX /sbin/install
7937# AIX /bin/install
7938# AmigaOS /C/install, which installs bootblocks on floppy discs
7939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7940# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7942# OS/2's system install, which has a completely different semantic
7943# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007944{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7945echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007946if test -z "$INSTALL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007947if test "${ac_cv_path_install+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007949else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007955 # Account for people who put trailing slashes in PATH elements.
7956case $as_dir/ in
7957 ./ | .// | /cC/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007960 /usr/ucb/* ) ;;
7961 *)
7962 # OSF1 and SCO ODT 3.0 have their own names for install.
7963 # Don't use installbsd from OSF since it installs stuff as root
7964 # by default.
7965 for ac_prog in ginstall scoinst install; do
7966 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007968 if test $ac_prog = install &&
7969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7970 # AIX install. It has an incompatible calling convention.
7971 :
7972 elif test $ac_prog = install &&
7973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7974 # program-specific install script used by HP pwplus--don't use.
7975 :
7976 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7978 break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007979 fi
7980 fi
7981 done
7982 done
7983 ;;
7984esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007985done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007986IFS=$as_save_IFS
7987
7988
7989fi
7990 if test "${ac_cv_path_install+set}" = set; then
7991 INSTALL=$ac_cv_path_install
7992 else
7993 # As a last resort, use the slow shell script. Don't cache a
7994 # value for INSTALL within a source directory, because that will
7995 # break other packages using the cache if that directory is
7996 # removed, or if the value is a relative name.
7997 INSTALL=$ac_install_sh
7998 fi
7999fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008000{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8001echo "${ECHO_T}$INSTALL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008002
8003# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8004# It thinks the first close brace ends the variable substitution.
8005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8006
8007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8008
8009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8010
Eric Christopher2b1d4a52010-07-22 21:13:48 +00008011case "$INSTALL" in
8012 [\\/$]* | ?:[\\/]* ) ;;
8013 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8014esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008015
8016# Extract the first word of "bzip2", so it can be a program name with args.
8017set dummy bzip2; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8020if test "${ac_cv_path_BZIP2+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008022else
8023 case $BZIP2 in
8024 [\\/]* | ?:[\\/]*)
8025 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8026 ;;
8027 *)
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008035 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008037 break 2
8038 fi
8039done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008040done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008041IFS=$as_save_IFS
8042
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008043 ;;
8044esac
8045fi
8046BZIP2=$ac_cv_path_BZIP2
8047if test -n "$BZIP2"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008048 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8049echo "${ECHO_T}$BZIP2" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008050else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008051 { echo "$as_me:$LINENO: result: no" >&5
8052echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008053fi
8054
8055
mike-mbc167782010-05-06 23:45:43 +00008056# Extract the first word of "cat", so it can be a program name with args.
8057set dummy cat; ac_word=$2
8058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8060if test "${ac_cv_path_CAT+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063 case $CAT in
8064 [\\/]* | ?:[\\/]*)
8065 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8066 ;;
8067 *)
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
8079done
8080done
8081IFS=$as_save_IFS
8082
8083 ;;
8084esac
8085fi
8086CAT=$ac_cv_path_CAT
8087if test -n "$CAT"; then
8088 { echo "$as_me:$LINENO: result: $CAT" >&5
8089echo "${ECHO_T}$CAT" >&6; }
8090else
8091 { echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6; }
8093fi
8094
8095
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008096# Extract the first word of "doxygen", so it can be a program name with args.
8097set dummy doxygen; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8100if test "${ac_cv_path_DOXYGEN+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008102else
8103 case $DOXYGEN in
8104 [\\/]* | ?:[\\/]*)
8105 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8106 ;;
8107 *)
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008115 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008117 break 2
8118 fi
8119done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008120done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008121IFS=$as_save_IFS
8122
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008123 ;;
8124esac
8125fi
8126DOXYGEN=$ac_cv_path_DOXYGEN
8127if test -n "$DOXYGEN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008128 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8129echo "${ECHO_T}$DOXYGEN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008130else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008131 { echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008133fi
8134
8135
8136# Extract the first word of "groff", so it can be a program name with args.
8137set dummy groff; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8140if test "${ac_cv_path_GROFF+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008142else
8143 case $GROFF in
8144 [\\/]* | ?:[\\/]*)
8145 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8146 ;;
8147 *)
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149for as_dir in $PATH
8150do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008155 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008157 break 2
8158 fi
8159done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008160done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008161IFS=$as_save_IFS
8162
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008163 ;;
8164esac
8165fi
8166GROFF=$ac_cv_path_GROFF
8167if test -n "$GROFF"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008168 { echo "$as_me:$LINENO: result: $GROFF" >&5
8169echo "${ECHO_T}$GROFF" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008170else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008171 { echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008173fi
8174
8175
8176# Extract the first word of "gzip", so it can be a program name with args.
8177set dummy gzip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8180if test "${ac_cv_path_GZIP+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008182else
8183 case $GZIP in
8184 [\\/]* | ?:[\\/]*)
8185 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8186 ;;
8187 *)
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008195 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008197 break 2
8198 fi
8199done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008200done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008201IFS=$as_save_IFS
8202
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008203 ;;
8204esac
8205fi
8206GZIP=$ac_cv_path_GZIP
8207if test -n "$GZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008208 { echo "$as_me:$LINENO: result: $GZIP" >&5
8209echo "${ECHO_T}$GZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008210else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008211 { echo "$as_me:$LINENO: result: no" >&5
8212echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008213fi
8214
8215
8216# Extract the first word of "pod2html", so it can be a program name with args.
8217set dummy pod2html; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8220if test "${ac_cv_path_POD2HTML+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008222else
8223 case $POD2HTML in
8224 [\\/]* | ?:[\\/]*)
8225 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8226 ;;
8227 *)
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008235 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008237 break 2
8238 fi
8239done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008240done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008241IFS=$as_save_IFS
8242
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008243 ;;
8244esac
8245fi
8246POD2HTML=$ac_cv_path_POD2HTML
8247if test -n "$POD2HTML"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008248 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8249echo "${ECHO_T}$POD2HTML" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008250else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008251 { echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008253fi
8254
8255
8256# Extract the first word of "pod2man", so it can be a program name with args.
8257set dummy pod2man; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8260if test "${ac_cv_path_POD2MAN+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008262else
8263 case $POD2MAN in
8264 [\\/]* | ?:[\\/]*)
8265 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8266 ;;
8267 *)
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269for as_dir in $PATH
8270do
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008275 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008277 break 2
8278 fi
8279done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008280done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008281IFS=$as_save_IFS
8282
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008283 ;;
8284esac
8285fi
8286POD2MAN=$ac_cv_path_POD2MAN
8287if test -n "$POD2MAN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008288 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8289echo "${ECHO_T}$POD2MAN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008290else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008291 { echo "$as_me:$LINENO: result: no" >&5
8292echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008293fi
8294
8295
mike-mbc167782010-05-06 23:45:43 +00008296# Extract the first word of "pdfroff", so it can be a program name with args.
8297set dummy pdfroff; ac_word=$2
8298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8300if test "${ac_cv_path_PDFROFF+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 case $PDFROFF in
8304 [\\/]* | ?:[\\/]*)
8305 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8306 ;;
8307 *)
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8318 fi
8319done
8320done
8321IFS=$as_save_IFS
8322
8323 ;;
8324esac
8325fi
8326PDFROFF=$ac_cv_path_PDFROFF
8327if test -n "$PDFROFF"; then
8328 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8329echo "${ECHO_T}$PDFROFF" >&6; }
8330else
8331 { echo "$as_me:$LINENO: result: no" >&5
8332echo "${ECHO_T}no" >&6; }
8333fi
8334
8335
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008336# Extract the first word of "runtest", so it can be a program name with args.
8337set dummy runtest; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8340if test "${ac_cv_path_RUNTEST+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008342else
8343 case $RUNTEST in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8346 ;;
8347 *)
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349for as_dir in $PATH
8350do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008355 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008357 break 2
8358 fi
8359done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008360done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008361IFS=$as_save_IFS
8362
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008363 ;;
8364esac
8365fi
8366RUNTEST=$ac_cv_path_RUNTEST
8367if test -n "$RUNTEST"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008368 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8369echo "${ECHO_T}$RUNTEST" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008370else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008371 { echo "$as_me:$LINENO: result: no" >&5
8372echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008373fi
8374
8375
8376
8377no_itcl=true
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008378{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8379echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008380
8381# Check whether --with-tclinclude was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008382if test "${with_tclinclude+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008383 withval=$with_tclinclude; with_tclinclude=${withval}
8384else
8385 with_tclinclude=''
8386fi
8387
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008388if test "${ac_cv_path_tclsh+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008390else
8391
8392if test x"${with_tclinclude}" != x ; then
8393 if test -f ${with_tclinclude}/tclsh ; then
8394 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8395 elif test -f ${with_tclinclude}/src/tclsh ; then
8396 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8397 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008398 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8399echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8400 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008401 fi
8402fi
Edwin Törökc27310c2010-01-26 08:50:50 +00008403fi
8404
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008405
8406if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008407 { echo "$as_me:$LINENO: result: none" >&5
8408echo "${ECHO_T}none" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008409 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
8410do
8411 # Extract the first word of "$ac_prog", so it can be a program name with args.
8412set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8415if test "${ac_cv_path_TCLSH+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008417else
8418 case $TCLSH in
8419 [\\/]* | ?:[\\/]*)
8420 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8421 ;;
8422 *)
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008430 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008432 break 2
8433 fi
8434done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008435done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008436IFS=$as_save_IFS
8437
8438 ;;
8439esac
8440fi
8441TCLSH=$ac_cv_path_TCLSH
8442if test -n "$TCLSH"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008443 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8444echo "${ECHO_T}$TCLSH" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008445else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008446 { echo "$as_me:$LINENO: result: no" >&5
8447echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008448fi
8449
8450
8451 test -n "$TCLSH" && break
8452done
8453
8454 if test x"${TCLSH}" = x ; then
8455 ac_cv_path_tclsh='';
8456 else
8457 ac_cv_path_tclsh="${TCLSH}";
8458 fi
8459else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008460 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8461echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008462 TCLSH="${ac_cv_path_tclsh}"
8463
8464fi
8465
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008466# Extract the first word of "zip", so it can be a program name with args.
8467set dummy zip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470if test "${ac_cv_path_ZIP+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008472else
8473 case $ZIP in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_ZIP="$ZIP" # 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=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008483 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
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008485 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008487 break 2
8488 fi
8489done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008490done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008491IFS=$as_save_IFS
8492
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008493 ;;
8494esac
8495fi
8496ZIP=$ac_cv_path_ZIP
8497if test -n "$ZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008498 { echo "$as_me:$LINENO: result: $ZIP" >&5
8499echo "${ECHO_T}$ZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008500else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008501 { echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008503fi
8504
8505
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008506for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008507do
8508 # Extract the first word of "$ac_prog", so it can be a program name with args.
8509set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8512if test "${ac_cv_path_OCAMLC+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008514else
8515 case $OCAMLC in
8516 [\\/]* | ?:[\\/]*)
8517 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8518 ;;
8519 *)
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521for as_dir in $PATH
8522do
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008527 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008529 break 2
8530 fi
8531done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008532done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008533IFS=$as_save_IFS
8534
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008535 ;;
8536esac
8537fi
8538OCAMLC=$ac_cv_path_OCAMLC
8539if test -n "$OCAMLC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008540 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8541echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008542else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008543 { echo "$as_me:$LINENO: result: no" >&5
8544echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008545fi
8546
8547
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008548 test -n "$OCAMLC" && break
8549done
8550
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008551for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008552do
8553 # Extract the first word of "$ac_prog", so it can be a program name with args.
8554set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8557if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008559else
8560 case $OCAMLOPT in
8561 [\\/]* | ?:[\\/]*)
8562 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8563 ;;
8564 *)
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566for as_dir in $PATH
8567do
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008572 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008574 break 2
8575 fi
8576done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008577done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008578IFS=$as_save_IFS
8579
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008580 ;;
8581esac
8582fi
8583OCAMLOPT=$ac_cv_path_OCAMLOPT
8584if test -n "$OCAMLOPT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008585 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8586echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008587else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008588 { echo "$as_me:$LINENO: result: no" >&5
8589echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008590fi
8591
8592
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008593 test -n "$OCAMLOPT" && break
8594done
8595
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008596for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008597do
8598 # Extract the first word of "$ac_prog", so it can be a program name with args.
8599set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8602if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008604else
8605 case $OCAMLDEP in
8606 [\\/]* | ?:[\\/]*)
8607 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8608 ;;
8609 *)
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611for as_dir in $PATH
8612do
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008617 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008619 break 2
8620 fi
8621done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008622done
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008623IFS=$as_save_IFS
8624
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008625 ;;
8626esac
8627fi
8628OCAMLDEP=$ac_cv_path_OCAMLDEP
8629if test -n "$OCAMLDEP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008630 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8631echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008632else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008633 { echo "$as_me:$LINENO: result: no" >&5
8634echo "${ECHO_T}no" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008635fi
8636
8637
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008638 test -n "$OCAMLDEP" && break
8639done
8640
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008641for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008642do
8643 # Extract the first word of "$ac_prog", so it can be a program name with args.
8644set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8647if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008649else
8650 case $OCAMLDOC in
8651 [\\/]* | ?:[\\/]*)
8652 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8653 ;;
8654 *)
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008662 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008664 break 2
8665 fi
8666done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008667done
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008668IFS=$as_save_IFS
8669
8670 ;;
8671esac
8672fi
8673OCAMLDOC=$ac_cv_path_OCAMLDOC
8674if test -n "$OCAMLDOC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008675 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8676echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008677else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008678 { echo "$as_me:$LINENO: result: no" >&5
8679echo "${ECHO_T}no" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008680fi
8681
8682
8683 test -n "$OCAMLDOC" && break
8684done
8685
Edwin Török20176752008-10-22 09:56:27 +00008686for ac_prog in gas as
8687do
8688 # Extract the first word of "$ac_prog", so it can be a program name with args.
8689set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8692if test "${ac_cv_path_GAS+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Török20176752008-10-22 09:56:27 +00008694else
8695 case $GAS in
8696 [\\/]* | ?:[\\/]*)
8697 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8698 ;;
8699 *)
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Edwin Török20176752008-10-22 09:56:27 +00008707 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Török20176752008-10-22 09:56:27 +00008709 break 2
8710 fi
8711done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008712done
Edwin Török20176752008-10-22 09:56:27 +00008713IFS=$as_save_IFS
8714
8715 ;;
8716esac
8717fi
8718GAS=$ac_cv_path_GAS
8719if test -n "$GAS"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008720 { echo "$as_me:$LINENO: result: $GAS" >&5
8721echo "${ECHO_T}$GAS" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008722else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008723 { echo "$as_me:$LINENO: result: no" >&5
8724echo "${ECHO_T}no" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008725fi
8726
8727
8728 test -n "$GAS" && break
8729done
8730
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008731
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008732{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8733echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8734if test "${llvm_cv_link_use_r+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008736else
8737 ac_ext=c
8738ac_cpp='$CPP $CPPFLAGS'
8739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8741ac_compiler_gnu=$ac_cv_c_compiler_gnu
8742
8743 oldcflags="$CFLAGS"
8744 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008745 cat >conftest.$ac_ext <<_ACEOF
8746/* confdefs.h. */
8747_ACEOF
8748cat confdefs.h >>conftest.$ac_ext
8749cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008750/* end confdefs.h. */
8751
8752int
8753main ()
8754{
Dan Gohmana8924c12010-04-25 00:12:20 +00008755
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008756 ;
8757 return 0;
8758}
8759_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008760rm -f conftest.$ac_objext conftest$ac_exeext
8761if { (ac_try="$ac_link"
8762case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765esac
8766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_link") 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8775 { (case "(($ac_try" in
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8778esac
8779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 (eval "$ac_try") 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; } &&
8784 { ac_try='test -s conftest$ac_exeext'
8785 { (case "(($ac_try" in
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8788esac
8789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_try") 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008794 llvm_cv_link_use_r=yes
8795else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008796 echo "$as_me: failed program was:" >&5
8797sed 's/^/| /' conftest.$ac_ext >&5
8798
8799 llvm_cv_link_use_r=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008800fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008801
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008802rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008803 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008804 CFLAGS="$oldcflags"
8805 ac_ext=c
8806ac_cpp='$CPP $CPPFLAGS'
8807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8809ac_compiler_gnu=$ac_cv_c_compiler_gnu
8810
8811
8812fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008813{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8814echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008815if test "$llvm_cv_link_use_r" = yes ; then
8816
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008817cat >>confdefs.h <<\_ACEOF
8818#define HAVE_LINK_R 1
8819_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008820
8821 fi
8822
8823
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008824{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8825echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8826if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky6eab6652009-03-05 08:20:44 +00008828else
8829 ac_ext=c
8830ac_cpp='$CPP $CPPFLAGS'
8831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8833ac_compiler_gnu=$ac_cv_c_compiler_gnu
8834
8835 oldcflags="$CFLAGS"
8836 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008837 cat >conftest.$ac_ext <<_ACEOF
8838/* confdefs.h. */
8839_ACEOF
8840cat confdefs.h >>conftest.$ac_ext
8841cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008842/* end confdefs.h. */
8843
8844int
8845main ()
8846{
Dan Gohmana8924c12010-04-25 00:12:20 +00008847
Nick Lewycky6eab6652009-03-05 08:20:44 +00008848 ;
8849 return 0;
8850}
8851_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008852rm -f conftest.$ac_objext conftest$ac_exeext
8853if { (ac_try="$ac_link"
8854case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8857esac
8858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_link") 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870esac
8871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try='test -s conftest$ac_exeext'
8877 { (case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880esac
8881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_try") 2>&5
8883 ac_status=$?
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008886 llvm_cv_link_use_export_dynamic=yes
8887else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008888 echo "$as_me: failed program was:" >&5
8889sed 's/^/| /' conftest.$ac_ext >&5
8890
8891 llvm_cv_link_use_export_dynamic=no
Nick Lewycky6eab6652009-03-05 08:20:44 +00008892fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008893
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008894rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008895 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky6eab6652009-03-05 08:20:44 +00008896 CFLAGS="$oldcflags"
8897 ac_ext=c
8898ac_cpp='$CPP $CPPFLAGS'
8899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901ac_compiler_gnu=$ac_cv_c_compiler_gnu
8902
8903
8904fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008905{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8906echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky6eab6652009-03-05 08:20:44 +00008907if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8908
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008909cat >>confdefs.h <<\_ACEOF
8910#define HAVE_LINK_EXPORT_DYNAMIC 1
8911_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008912
8913 fi
8914
8915
Dan Gohman27933ab2010-06-01 14:56:56 +00008916{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8917echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8918if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohmanc61e47b2010-04-16 22:59:06 +00008919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else
8921 ac_ext=c
8922ac_cpp='$CPP $CPPFLAGS'
8923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926
8927 oldcflags="$CFLAGS"
8928
8929 # The following code is from the autoconf manual,
8930 # "11.13: Limitations of Usual Tools".
8931 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8932 # Use mktemp if possible; otherwise fall back on mkdir,
8933 # with $RANDOM to make collisions less likely.
8934 : ${TMPDIR=/tmp}
8935 {
8936 tmp=`
8937 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8938 ` &&
8939 test -n "$tmp" && test -d "$tmp"
8940 } || {
8941 tmp=$TMPDIR/foo$$-$RANDOM
8942 (umask 077 && mkdir "$tmp")
8943 } || exit $?
8944
Dan Gohman27933ab2010-06-01 14:56:56 +00008945 echo "{" > "$tmp/export.map"
8946 echo " global: main;" >> "$tmp/export.map"
8947 echo " local: *;" >> "$tmp/export.map"
8948 echo "};" >> "$tmp/export.map"
Dan Gohmanc61e47b2010-04-16 22:59:06 +00008949
Dan Gohman27933ab2010-06-01 14:56:56 +00008950 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohmanc61e47b2010-04-16 22:59:06 +00008951 cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h. */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h. */
8957
8958int
8959main ()
8960{
Dan Gohmana8924c12010-04-25 00:12:20 +00008961
Dan Gohmanc61e47b2010-04-16 22:59:06 +00008962 ;
8963 return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext conftest$ac_exeext
8967if { (ac_try="$ac_link"
8968case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971esac
8972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_link") 2>conftest.er1
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8981 { (case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8984esac
8985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_try") 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994esac
8995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996 (eval "$ac_try") 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
Dan Gohman27933ab2010-06-01 14:56:56 +00009000 llvm_cv_link_use_version_script=yes
Dan Gohmanc61e47b2010-04-16 22:59:06 +00009001else
9002 echo "$as_me: failed program was:" >&5
9003sed 's/^/| /' conftest.$ac_ext >&5
9004
Dan Gohman91684472010-06-01 16:22:27 +00009005 llvm_cv_link_use_version_script=no
Dan Gohmanc61e47b2010-04-16 22:59:06 +00009006fi
9007
9008rm -f core conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
Dan Gohman27933ab2010-06-01 14:56:56 +00009010 rm "$tmp/export.map"
Dan Gohmanc61e47b2010-04-16 22:59:06 +00009011 rmdir "$tmp"
9012 CFLAGS="$oldcflags"
9013 ac_ext=c
9014ac_cpp='$CPP $CPPFLAGS'
9015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9017ac_compiler_gnu=$ac_cv_c_compiler_gnu
9018
9019
9020fi
Dan Gohman27933ab2010-06-01 14:56:56 +00009021{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9022echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9023if test "$llvm_cv_link_use_version_script" = yes ; then
9024 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohmanc61e47b2010-04-16 22:59:06 +00009025
9026 fi
9027
9028
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009029
9030
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009031{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9032echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9033if test "${ac_cv_c_const+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009035else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009036 cat >conftest.$ac_ext <<_ACEOF
9037/* confdefs.h. */
9038_ACEOF
9039cat confdefs.h >>conftest.$ac_ext
9040cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009041/* end confdefs.h. */
9042
9043int
9044main ()
9045{
9046/* FIXME: Include the comments suggested by Paul. */
9047#ifndef __cplusplus
9048 /* Ultrix mips cc rejects this. */
9049 typedef int charset[2];
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009050 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009051 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009052 char const *const *ccp;
9053 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009054 /* NEC SVR4.0.2 mips cc rejects this. */
9055 struct point {int x, y;};
9056 static struct point const zero = {0,0};
9057 /* AIX XL C 1.02.0.0 rejects this.
9058 It does not let you subtract one const X* pointer from another in
9059 an arm of an if-expression whose if-part is not a constant
9060 expression */
9061 const char *g = "string";
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009062 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009063 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009064 ++ccp;
9065 p = (char**) ccp;
9066 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009067 { /* SCO 3.2v4 cc rejects this. */
9068 char *t;
9069 char const *s = 0 ? (char *) 0 : (char const *) 0;
9070
9071 *t++ = 0;
9072 if (s) return 0;
9073 }
9074 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9075 int x[] = {25, 17};
9076 const int *foo = &x[0];
9077 ++foo;
9078 }
9079 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9080 typedef const int *iptr;
9081 iptr p = 0;
9082 ++p;
9083 }
9084 { /* AIX XL C 1.02.0.0 rejects this saying
9085 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9086 struct s { int j; const int *ap[3]; };
9087 struct s *b; b->j = 5;
9088 }
9089 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9090 const int foo = 10;
9091 if (!foo) return 0;
9092 }
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009093 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009094#endif
9095
9096 ;
9097 return 0;
9098}
9099_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009100rm -f conftest.$ac_objext
9101if { (ac_try="$ac_compile"
9102case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9105esac
9106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9107 (eval "$ac_compile") 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9115 { (case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118esac
9119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_try") 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest.$ac_objext'
9125 { (case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9128esac
9129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_try") 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009134 ac_cv_c_const=yes
9135else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009136 echo "$as_me: failed program was:" >&5
9137sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 ac_cv_c_const=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009140fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009141
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009144{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9145echo "${ECHO_T}$ac_cv_c_const" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009146if test $ac_cv_c_const = no; then
9147
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009148cat >>confdefs.h <<\_ACEOF
9149#define const
9150_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009151
9152fi
9153
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009154
9155
9156
9157
9158
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009159ac_header_dirent=no
9160for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009161 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9162{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9163echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009166else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009167 cat >conftest.$ac_ext <<_ACEOF
9168/* confdefs.h. */
9169_ACEOF
9170cat confdefs.h >>conftest.$ac_ext
9171cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009172/* end confdefs.h. */
9173#include <sys/types.h>
9174#include <$ac_hdr>
9175
9176int
9177main ()
9178{
9179if ((DIR *) 0)
9180return 0;
9181 ;
9182 return 0;
9183}
9184_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009185rm -f conftest.$ac_objext
9186if { (ac_try="$ac_compile"
9187case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190esac
9191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_compile") 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9200 { (case "(($ac_try" in
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9203esac
9204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205 (eval "$ac_try") 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213esac
9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009219 eval "$as_ac_Header=yes"
9220else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009221 echo "$as_me: failed program was:" >&5
9222sed 's/^/| /' conftest.$ac_ext >&5
9223
9224 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009225fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009226
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009229ac_res=`eval echo '${'$as_ac_Header'}'`
9230 { echo "$as_me:$LINENO: result: $ac_res" >&5
9231echo "${ECHO_T}$ac_res" >&6; }
9232if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009233 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009234#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009235_ACEOF
9236
9237ac_header_dirent=$ac_hdr; break
9238fi
9239
9240done
9241# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9242if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009243 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9244echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9245if test "${ac_cv_search_opendir+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009247else
9248 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009249cat >conftest.$ac_ext <<_ACEOF
9250/* confdefs.h. */
9251_ACEOF
9252cat confdefs.h >>conftest.$ac_ext
9253cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009254/* end confdefs.h. */
9255
9256/* Override any GCC internal prototype to avoid an error.
9257 Use char because int might match the return type of a GCC
9258 builtin and then its argument prototype would still apply. */
9259#ifdef __cplusplus
9260extern "C"
9261#endif
9262char opendir ();
9263int
9264main ()
9265{
9266return opendir ();
9267 ;
9268 return 0;
9269}
9270_ACEOF
9271for ac_lib in '' dir; do
9272 if test -z "$ac_lib"; then
9273 ac_res="none required"
9274 else
9275 ac_res=-l$ac_lib
9276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9277 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009278 rm -f conftest.$ac_objext conftest$ac_exeext
9279if { (ac_try="$ac_link"
9280case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9283esac
9284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_link") 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9293 { (case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296esac
9297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_try") 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try='test -s conftest$ac_exeext'
9303 { (case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306esac
9307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_try") 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009312 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009313else
9314 echo "$as_me: failed program was:" >&5
9315sed 's/^/| /' conftest.$ac_ext >&5
9316
9317
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009318fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009319
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009320rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009321 conftest$ac_exeext
9322 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009323 break
9324fi
9325done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009326if test "${ac_cv_search_opendir+set}" = set; then
9327 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009328else
9329 ac_cv_search_opendir=no
9330fi
9331rm conftest.$ac_ext
9332LIBS=$ac_func_search_save_LIBS
9333fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009334{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9335echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009336ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009337if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9339
9340fi
9341
9342else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009343 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9344echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9345if test "${ac_cv_search_opendir+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009347else
9348 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009349cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009354/* end confdefs.h. */
9355
9356/* Override any GCC internal prototype to avoid an error.
9357 Use char because int might match the return type of a GCC
9358 builtin and then its argument prototype would still apply. */
9359#ifdef __cplusplus
9360extern "C"
9361#endif
9362char opendir ();
9363int
9364main ()
9365{
9366return opendir ();
9367 ;
9368 return 0;
9369}
9370_ACEOF
9371for ac_lib in '' x; do
9372 if test -z "$ac_lib"; then
9373 ac_res="none required"
9374 else
9375 ac_res=-l$ac_lib
9376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9377 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009378 rm -f conftest.$ac_objext conftest$ac_exeext
9379if { (ac_try="$ac_link"
9380case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383esac
9384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_link") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9393 { (case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396esac
9397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_try") 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest$ac_exeext'
9403 { (case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406esac
9407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_try") 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009412 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009413else
9414 echo "$as_me: failed program was:" >&5
9415sed 's/^/| /' conftest.$ac_ext >&5
9416
9417
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009418fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009419
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009420rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009421 conftest$ac_exeext
9422 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009423 break
9424fi
9425done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009426if test "${ac_cv_search_opendir+set}" = set; then
9427 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009428else
9429 ac_cv_search_opendir=no
9430fi
9431rm conftest.$ac_ext
9432LIBS=$ac_func_search_save_LIBS
9433fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009434{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9435echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009436ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009437if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9439
9440fi
9441
9442fi
9443
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009444
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009445for ac_header in dlfcn.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009446do
9447as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453fi
9454ac_res=`eval echo '${'$as_ac_Header'}'`
9455 { echo "$as_me:$LINENO: result: $ac_res" >&5
9456echo "${ECHO_T}$ac_res" >&6; }
9457else
9458 # Is the header compilable?
9459{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9460echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9461cat >conftest.$ac_ext <<_ACEOF
9462/* confdefs.h. */
9463_ACEOF
9464cat confdefs.h >>conftest.$ac_ext
9465cat >>conftest.$ac_ext <<_ACEOF
9466/* end confdefs.h. */
9467$ac_includes_default
9468#include <$ac_header>
9469_ACEOF
9470rm -f conftest.$ac_objext
9471if { (ac_try="$ac_compile"
9472case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9475esac
9476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_compile") 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9485 { (case "(($ac_try" in
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9488esac
9489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_try") 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498esac
9499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_try") 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_header_compiler=yes
9505else
9506 echo "$as_me: failed program was:" >&5
9507sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 ac_header_compiler=no
9510fi
9511
9512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9514echo "${ECHO_T}$ac_header_compiler" >&6; }
9515
9516# Is the header present?
9517{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9519cat >conftest.$ac_ext <<_ACEOF
9520/* confdefs.h. */
9521_ACEOF
9522cat confdefs.h >>conftest.$ac_ext
9523cat >>conftest.$ac_ext <<_ACEOF
9524/* end confdefs.h. */
9525#include <$ac_header>
9526_ACEOF
9527if { (ac_try="$ac_cpp conftest.$ac_ext"
9528case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531esac
9532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } >/dev/null; then
9540 if test -s conftest.err; then
9541 ac_cpp_err=$ac_c_preproc_warn_flag
9542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9543 else
9544 ac_cpp_err=
9545 fi
9546else
9547 ac_cpp_err=yes
9548fi
9549if test -z "$ac_cpp_err"; then
9550 ac_header_preproc=yes
9551else
9552 echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 ac_header_preproc=no
9556fi
9557
9558rm -f conftest.err conftest.$ac_ext
9559{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9560echo "${ECHO_T}$ac_header_preproc" >&6; }
9561
9562# So? What about this header?
9563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9564 yes:no: )
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9569 ac_header_preproc=yes
9570 ;;
9571 no:yes:* )
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9584 ( cat <<\_ASBOX
9585## ----------------------------------- ##
9586## Report this to llvmbugs@cs.uiuc.edu ##
9587## ----------------------------------- ##
9588_ASBOX
9589 ) | sed "s/^/$as_me: WARNING: /" >&2
9590 ;;
9591esac
9592{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596else
9597 eval "$as_ac_Header=\$ac_header_preproc"
9598fi
9599ac_res=`eval echo '${'$as_ac_Header'}'`
9600 { echo "$as_me:$LINENO: result: $ac_res" >&5
9601echo "${ECHO_T}$ac_res" >&6; }
9602
9603fi
9604if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009605 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009607_ACEOF
9608
9609fi
9610
9611done
9612
9613# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009614if test "${enable_ltdl_install+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009615 enableval=$enable_ltdl_install;
9616fi
9617
9618
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009619
9620
9621if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009622 INSTALL_LTDL_TRUE=
9623 INSTALL_LTDL_FALSE='#'
9624else
9625 INSTALL_LTDL_TRUE='#'
9626 INSTALL_LTDL_FALSE=
9627fi
9628
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009629
9630
9631if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009632 CONVENIENCE_LTDL_TRUE=
9633 CONVENIENCE_LTDL_FALSE='#'
9634else
9635 CONVENIENCE_LTDL_TRUE='#'
9636 CONVENIENCE_LTDL_FALSE=
9637fi
9638
9639
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009640{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9641echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009642library_names_spec=
9643libname_spec='lib$name'
9644soname_spec=
9645shrext_cmds=".so"
9646postinstall_cmds=
9647postuninstall_cmds=
9648finish_cmds=
9649finish_eval=
9650shlibpath_var=
9651shlibpath_overrides_runpath=unknown
9652version_type=none
9653dynamic_linker="$host_os ld.so"
9654sys_lib_dlsearch_path_spec="/lib /usr/lib"
9655if test "$GCC" = yes; then
9656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9658 # if the path contains ";" then we assume it to be the separator
9659 # otherwise default to the standard path separator (i.e. ":") - it is
9660 # assumed that no part of a normal pathname contains ";" but that should
9661 # okay in the real world where ";" in dirpaths is itself problematic.
9662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9663 else
9664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9665 fi
9666else
9667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9668fi
9669need_lib_prefix=unknown
9670hardcode_into_libs=no
9671
9672# when you set need_version to no, make sure it does not cause -set_version
9673# flags to be left without arguments
9674need_version=unknown
9675
9676case $host_os in
9677aix3*)
9678 version_type=linux
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9680 shlibpath_var=LIBPATH
9681
9682 # AIX 3 has no versioning support, so we append a major version to the name.
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 ;;
9685
9686aix4* | aix5*)
9687 version_type=linux
9688 need_lib_prefix=no
9689 need_version=no
9690 hardcode_into_libs=yes
9691 if test "$host_cpu" = ia64; then
9692 # AIX 5 supports IA64
9693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 else
9696 # With GCC up to 2.95.x, collect2 would create an import file
9697 # for dependence libraries. The import file would start with
9698 # the line `#! .'. This would cause the generated library to
9699 # depend on `.', always an invalid library. This was fixed in
9700 # development snapshots of GCC prior to 3.0.
9701 case $host_os in
9702 aix4 | aix4.[01] | aix4.[01].*)
9703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9704 echo ' yes '
9705 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9706 :
9707 else
9708 can_build_shared=no
9709 fi
9710 ;;
9711 esac
9712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9713 # soname into executable. Probably we can add versioning support to
9714 # collect2, so additional links can be useful in future.
9715 if test "$aix_use_runtimelinking" = yes; then
9716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9717 # instead of lib<name>.a to let people know that these are not
9718 # typical AIX shared libraries.
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 else
9721 # We preserve .a as extension for shared libraries through AIX4.2
9722 # and later when we are not doing run time linking.
9723 library_names_spec='${libname}${release}.a $libname.a'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 fi
9726 shlibpath_var=LIBPATH
9727 fi
9728 ;;
9729
9730amigaos*)
9731 library_names_spec='$libname.ixlibrary $libname.a'
9732 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9733 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'
9734 ;;
9735
9736beos*)
9737 library_names_spec='${libname}${shared_ext}'
9738 dynamic_linker="$host_os ld.so"
9739 shlibpath_var=LIBRARY_PATH
9740 ;;
9741
9742bsdi[45]*)
9743 version_type=linux
9744 need_version=no
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9751 # the default ld.so.conf also contains /usr/contrib/lib and
9752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9753 # libtool to hard-code these into programs
9754 ;;
9755
9756cygwin* | mingw* | pw32*)
9757 version_type=windows
9758 shrext_cmds=".dll"
9759 need_version=no
9760 need_lib_prefix=no
9761
9762 case $GCC,$host_os in
9763 yes,cygwin* | yes,mingw* | yes,pw32*)
9764 library_names_spec='$libname.dll.a'
9765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9766 postinstall_cmds='base_file=`basename \${file}`~
9767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9768 dldir=$destdir/`dirname \$dlpath`~
9769 test -d \$dldir || mkdir -p \$dldir~
9770 $install_prog $dir/$dlname \$dldir/$dlname~
9771 chmod a+x \$dldir/$dlname'
9772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9773 dlpath=$dir/\$dldll~
9774 $rm \$dlpath'
9775 shlibpath_overrides_runpath=yes
9776
9777 case $host_os in
9778 cygwin*)
9779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9781 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9782 ;;
9783 mingw*)
9784 # MinGW DLLs use traditional 'lib' prefix
9785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9787 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9788 # It is most probably a Windows format PATH printed by
9789 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9790 # path with ; separators, and with drive letters. We can handle the
9791 # drive letters (cygwin fileutils understands them), so leave them,
9792 # especially as we might pass files found there to a mingw objdump,
9793 # which wouldn't understand a cygwinified path. Ahh.
9794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9795 else
9796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9797 fi
9798 ;;
9799 pw32*)
9800 # pw32 DLLs use 'pw' prefix rather than 'lib'
9801 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9802 ;;
9803 esac
9804 ;;
9805
9806 *)
9807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9808 ;;
9809 esac
9810 dynamic_linker='Win32 ld.exe'
9811 # FIXME: first we should search . and the directory the executable is in
9812 shlibpath_var=PATH
9813 ;;
9814
9815darwin* | rhapsody*)
9816 dynamic_linker="$host_os dyld"
9817 version_type=darwin
9818 need_lib_prefix=no
9819 need_version=no
9820 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9821 soname_spec='${libname}${release}${major}$shared_ext'
9822 shlibpath_overrides_runpath=yes
9823 shlibpath_var=DYLD_LIBRARY_PATH
9824 shrext_cmds='.dylib'
9825 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9826 if test "$GCC" = yes; then
9827 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"`
9828 else
9829 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9830 fi
9831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9832 ;;
9833
9834dgux*)
9835 version_type=linux
9836 need_lib_prefix=no
9837 need_version=no
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 ;;
9842
9843freebsd1*)
9844 dynamic_linker=no
9845 ;;
9846
9847kfreebsd*-gnu)
9848 version_type=linux
9849 need_lib_prefix=no
9850 need_version=no
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 shlibpath_overrides_runpath=no
9855 hardcode_into_libs=yes
9856 dynamic_linker='GNU ld.so'
9857 ;;
9858
9859freebsd* | dragonfly*)
9860 # DragonFly does not have aout. When/if they implement a new
9861 # versioning mechanism, adjust this.
9862 if test -x /usr/bin/objformat; then
9863 objformat=`/usr/bin/objformat`
9864 else
9865 case $host_os in
9866 freebsd[123]*) objformat=aout ;;
9867 *) objformat=elf ;;
9868 esac
9869 fi
9870 version_type=freebsd-$objformat
9871 case $version_type in
9872 freebsd-elf*)
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9874 need_version=no
9875 need_lib_prefix=no
9876 ;;
9877 freebsd-*)
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9879 need_version=yes
9880 ;;
9881 esac
9882 shlibpath_var=LD_LIBRARY_PATH
9883 case $host_os in
9884 freebsd2*)
9885 shlibpath_overrides_runpath=yes
9886 ;;
9887 freebsd3.[01]* | freebsdelf3.[01]*)
9888 shlibpath_overrides_runpath=yes
9889 hardcode_into_libs=yes
9890 ;;
9891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9893 shlibpath_overrides_runpath=no
9894 hardcode_into_libs=yes
9895 ;;
9896 freebsd*) # from 4.6 on
9897 shlibpath_overrides_runpath=yes
9898 hardcode_into_libs=yes
9899 ;;
9900 esac
9901 ;;
9902
9903gnu*)
9904 version_type=linux
9905 need_lib_prefix=no
9906 need_version=no
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9908 soname_spec='${libname}${release}${shared_ext}$major'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 hardcode_into_libs=yes
9911 ;;
9912
9913hpux9* | hpux10* | hpux11*)
9914 # Give a soname corresponding to the major version so that dld.sl refuses to
9915 # link against other versions.
9916 version_type=sunos
9917 need_lib_prefix=no
9918 need_version=no
9919 case $host_cpu in
9920 ia64*)
9921 shrext_cmds='.so'
9922 hardcode_into_libs=yes
9923 dynamic_linker="$host_os dld.so"
9924 shlibpath_var=LD_LIBRARY_PATH
9925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 if test "X$HPUX_IA64_MODE" = X32; then
9929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9930 else
9931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9932 fi
9933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9934 ;;
9935 hppa*64*)
9936 shrext_cmds='.sl'
9937 hardcode_into_libs=yes
9938 dynamic_linker="$host_os dld.sl"
9939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9945 ;;
9946 *)
9947 shrext_cmds='.sl'
9948 dynamic_linker="$host_os dld.sl"
9949 shlibpath_var=SHLIB_PATH
9950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 ;;
9954 esac
9955 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9956 postinstall_cmds='chmod 555 $lib'
9957 ;;
9958
9959interix3*)
9960 version_type=linux
9961 need_lib_prefix=no
9962 need_version=no
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=no
9968 hardcode_into_libs=yes
9969 ;;
9970
9971irix5* | irix6* | nonstopux*)
9972 case $host_os in
9973 nonstopux*) version_type=nonstopux ;;
9974 *)
9975 if test "$lt_cv_prog_gnu_ld" = yes; then
9976 version_type=linux
9977 else
9978 version_type=irix
9979 fi ;;
9980 esac
9981 need_lib_prefix=no
9982 need_version=no
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9985 case $host_os in
9986 irix5* | nonstopux*)
9987 libsuff= shlibsuff=
9988 ;;
9989 *)
9990 case $LD in # libtool.m4 will add one of these switches to LD
9991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9992 libsuff= shlibsuff= libmagic=32-bit;;
9993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9994 libsuff=32 shlibsuff=N32 libmagic=N32;;
9995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9997 *) libsuff= shlibsuff= libmagic=never-match;;
9998 esac
9999 ;;
10000 esac
10001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10002 shlibpath_overrides_runpath=no
10003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10005 hardcode_into_libs=yes
10006 ;;
10007
10008# No shared lib support for Linux oldld, aout, or coff.
10009linux*oldld* | linux*aout* | linux*coff*)
10010 dynamic_linker=no
10011 ;;
10012
10013# This must be Linux ELF.
10014linux*)
10015 version_type=linux
10016 need_lib_prefix=no
10017 need_version=no
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=no
10023 # This implies no fast_install, which is unacceptable.
10024 # Some rework will be needed to allow for fast_install
10025 # before this can be enabled.
10026 hardcode_into_libs=yes
10027
10028 # Append ld.so.conf contents to the search path
10029 if test -f /etc/ld.so.conf; then
10030 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' ' '`
10031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10032 fi
10033
10034 # We used to test for /lib/ld.so.1 and disable shared libraries on
10035 # powerpc, because MkLinux only supported shared libraries with the
10036 # GNU dynamic linker. Since this was broken with cross compilers,
10037 # most powerpc-linux boxes support dynamic linking these days and
10038 # people can always --disable-shared, the test was removed, and we
10039 # assume the GNU/Linux dynamic linker is in use.
10040 dynamic_linker='GNU/Linux ld.so'
10041 ;;
10042
10043knetbsd*-gnu)
10044 version_type=linux
10045 need_lib_prefix=no
10046 need_version=no
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 shlibpath_var=LD_LIBRARY_PATH
10050 shlibpath_overrides_runpath=no
10051 hardcode_into_libs=yes
10052 dynamic_linker='GNU ld.so'
10053 ;;
10054
10055netbsd*)
10056 version_type=sunos
10057 need_lib_prefix=no
10058 need_version=no
10059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10062 dynamic_linker='NetBSD (a.out) ld.so'
10063 else
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10065 soname_spec='${libname}${release}${shared_ext}$major'
10066 dynamic_linker='NetBSD ld.elf_so'
10067 fi
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10071 ;;
10072
10073newsos6)
10074 version_type=linux
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=yes
10078 ;;
10079
10080nto-qnx*)
10081 version_type=linux
10082 need_lib_prefix=no
10083 need_version=no
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 shlibpath_overrides_runpath=yes
10088 ;;
10089
10090openbsd*)
10091 version_type=sunos
10092 sys_lib_dlsearch_path_spec="/usr/lib"
10093 need_lib_prefix=no
10094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10095 case $host_os in
10096 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10097 *) need_version=no ;;
10098 esac
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10103 case $host_os in
10104 openbsd2.[89] | openbsd2.[89].*)
10105 shlibpath_overrides_runpath=no
10106 ;;
10107 *)
10108 shlibpath_overrides_runpath=yes
10109 ;;
10110 esac
10111 else
10112 shlibpath_overrides_runpath=yes
10113 fi
10114 ;;
10115
10116os2*)
10117 libname_spec='$name'
10118 shrext_cmds=".dll"
10119 need_lib_prefix=no
10120 library_names_spec='$libname${shared_ext} $libname.a'
10121 dynamic_linker='OS/2 ld.exe'
10122 shlibpath_var=LIBPATH
10123 ;;
10124
10125osf3* | osf4* | osf5*)
10126 version_type=osf
10127 need_lib_prefix=no
10128 need_version=no
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10134 ;;
10135
10136solaris*)
10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=yes
10144 hardcode_into_libs=yes
10145 # ldd complains unless libraries are executable
10146 postinstall_cmds='chmod +x $lib'
10147 ;;
10148
10149sunos4*)
10150 version_type=sunos
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10153 shlibpath_var=LD_LIBRARY_PATH
10154 shlibpath_overrides_runpath=yes
10155 if test "$with_gnu_ld" = yes; then
10156 need_lib_prefix=no
10157 fi
10158 need_version=yes
10159 ;;
10160
10161sysv4 | sysv4.3*)
10162 version_type=linux
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 case $host_vendor in
10167 sni)
10168 shlibpath_overrides_runpath=no
10169 need_lib_prefix=no
10170 export_dynamic_flag_spec='${wl}-Blargedynsym'
10171 runpath_var=LD_RUN_PATH
10172 ;;
10173 siemens)
10174 need_lib_prefix=no
10175 ;;
10176 motorola)
10177 need_lib_prefix=no
10178 need_version=no
10179 shlibpath_overrides_runpath=no
10180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10181 ;;
10182 esac
10183 ;;
10184
10185sysv4*MP*)
10186 if test -d /usr/nec ;then
10187 version_type=linux
10188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10189 soname_spec='$libname${shared_ext}.$major'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 fi
10192 ;;
10193
10194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10195 version_type=freebsd-elf
10196 need_lib_prefix=no
10197 need_version=no
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 hardcode_into_libs=yes
10202 if test "$with_gnu_ld" = yes; then
10203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10204 shlibpath_overrides_runpath=no
10205 else
10206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10207 shlibpath_overrides_runpath=yes
10208 case $host_os in
10209 sco3.2v5*)
10210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10211 ;;
10212 esac
10213 fi
10214 sys_lib_dlsearch_path_spec='/usr/lib'
10215 ;;
10216
10217uts4*)
10218 version_type=linux
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 ;;
10223
10224*)
10225 dynamic_linker=no
10226 ;;
10227esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010228{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10229echo "${ECHO_T}$dynamic_linker" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010230test "$dynamic_linker" = no && can_build_shared=no
10231
10232variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10233if test "$GCC" = yes; then
10234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10235fi
10236
10237
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010238{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10239echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10240if test "${libltdl_cv_shlibext+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010242else
10243
10244module=yes
10245eval libltdl_cv_shlibext=$shrext_cmds
10246
10247fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010248{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10249echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010250if test -n "$libltdl_cv_shlibext"; then
10251
10252cat >>confdefs.h <<_ACEOF
10253#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10254_ACEOF
10255
10256fi
10257
10258
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010259{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10260echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10261if test "${libltdl_cv_shlibpath_var+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010263else
10264 libltdl_cv_shlibpath_var="$shlibpath_var"
10265fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010266{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10267echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010268if test -n "$libltdl_cv_shlibpath_var"; then
10269
10270cat >>confdefs.h <<_ACEOF
10271#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10272_ACEOF
10273
10274fi
10275
10276
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010277{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10278echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10279if test "${libltdl_cv_sys_search_path+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010281else
10282 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10283fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010284{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10285echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010286if test -n "$libltdl_cv_sys_search_path"; then
10287 sys_search_path=
10288 for dir in $libltdl_cv_sys_search_path; do
10289 if test -z "$sys_search_path"; then
10290 sys_search_path="$dir"
10291 else
10292 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10293 fi
10294 done
10295
10296cat >>confdefs.h <<_ACEOF
10297#define LTDL_SYSSEARCHPATH "$sys_search_path"
10298_ACEOF
10299
10300fi
10301
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010302{ echo "$as_me:$LINENO: checking for objdir" >&5
10303echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10304if test "${libltdl_cv_objdir+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010306else
10307 libltdl_cv_objdir="$objdir"
10308 if test -n "$objdir"; then
10309 :
10310 else
10311 rm -f .libs 2>/dev/null
10312 mkdir .libs 2>/dev/null
10313 if test -d .libs; then
10314 libltdl_cv_objdir=.libs
10315 else
10316 # MS-DOS does not allow filenames that begin with a dot.
10317 libltdl_cv_objdir=_libs
10318 fi
10319 rmdir .libs 2>/dev/null
10320 fi
10321
10322fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010323{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10324echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010325
10326cat >>confdefs.h <<_ACEOF
10327#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10328_ACEOF
10329
10330
10331
10332
10333
10334
10335# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010336{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10337echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10338if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010340else
10341
10342# These are sane defaults that work on at least a few old systems.
10343# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10344
10345# Character class describing NM global symbol codes.
10346symcode='[BCDEGRST]'
10347
10348# Regexp to match symbols that can be accessed directly from C.
10349sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10350
10351# Transform an extracted symbol line into a proper C declaration
10352lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10353
10354# Transform an extracted symbol line into symbol name and symbol address
10355lt_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'"
10356
10357# Define system-specific variables.
10358case $host_os in
10359aix*)
10360 symcode='[BCDT]'
10361 ;;
10362cygwin* | mingw* | pw32*)
10363 symcode='[ABCDGISTW]'
10364 ;;
10365hpux*) # Its linker distinguishes data from code symbols
10366 if test "$host_cpu" = ia64; then
10367 symcode='[ABCDEGRST]'
10368 fi
10369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10370 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'"
10371 ;;
10372linux*)
10373 if test "$host_cpu" = ia64; then
10374 symcode='[ABCDGIRSTW]'
10375 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10376 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'"
10377 fi
10378 ;;
10379irix* | nonstopux*)
10380 symcode='[BCDEGRST]'
10381 ;;
10382osf*)
10383 symcode='[BCDEGQRST]'
10384 ;;
10385solaris*)
10386 symcode='[BDRT]'
10387 ;;
10388sco3.2v5*)
10389 symcode='[DT]'
10390 ;;
10391sysv4.2uw2*)
10392 symcode='[DT]'
10393 ;;
10394sysv5* | sco5v6* | unixware* | OpenUNIX*)
10395 symcode='[ABDT]'
10396 ;;
10397sysv4)
10398 symcode='[DFNSTU]'
10399 ;;
10400esac
10401
10402# Handle CRLF in mingw tool chain
10403opt_cr=
10404case $build_os in
10405mingw*)
10406 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10407 ;;
10408esac
10409
10410# If we're using GNU nm, then use its standard symbol codes.
10411case `$NM -V 2>&1` in
10412*GNU* | *'with BFD'*)
10413 symcode='[ABCDGIRSTW]' ;;
10414esac
10415
10416# Try without a prefix undercore, then with it.
10417for ac_symprfx in "" "_"; do
10418
10419 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10420 symxfrm="\\1 $ac_symprfx\\2 \\2"
10421
10422 # Write the raw and C identifiers.
10423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10424
10425 # Check to see that the pipe works correctly.
10426 pipe_works=no
10427
10428 rm -f conftest*
10429 cat > conftest.$ac_ext <<EOF
10430#ifdef __cplusplus
10431extern "C" {
10432#endif
10433char nm_test_var;
10434void nm_test_func(){}
10435#ifdef __cplusplus
10436}
10437#endif
10438int main(){nm_test_var='a';nm_test_func();return(0);}
10439EOF
10440
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010442 (eval $ac_compile) 2>&5
10443 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010446 # Now try to grab the symbols.
10447 nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010448 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010449 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10450 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && test -s "$nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010453 # Try sorting and uniquifying the output.
10454 if sort "$nlist" | uniq > "$nlist"T; then
10455 mv -f "$nlist"T "$nlist"
10456 else
10457 rm -f "$nlist"T
10458 fi
10459
10460 # Make sure that we snagged all the symbols we need.
10461 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10462 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10463 cat <<EOF > conftest.$ac_ext
10464#ifdef __cplusplus
10465extern "C" {
10466#endif
10467
10468EOF
10469 # Now generate the symbol file.
10470 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10471
10472 cat <<EOF >> conftest.$ac_ext
10473#if defined (__STDC__) && __STDC__
10474# define lt_ptr_t void *
10475#else
10476# define lt_ptr_t char *
10477# define const
10478#endif
10479
10480/* The mapping between symbol names and symbols. */
10481const struct {
10482 const char *name;
10483 lt_ptr_t address;
10484}
10485lt_preloaded_symbols[] =
10486{
10487EOF
10488 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10489 cat <<\EOF >> conftest.$ac_ext
10490 {0, (lt_ptr_t) 0}
10491};
10492
10493#ifdef __cplusplus
10494}
10495#endif
10496EOF
10497 # Now try linking the two files.
10498 mv conftest.$ac_objext conftstm.$ac_objext
10499 lt_save_LIBS="$LIBS"
10500 lt_save_CFLAGS="$CFLAGS"
10501 LIBS="conftstm.$ac_objext"
10502 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010504 (eval $ac_link) 2>&5
10505 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010508 pipe_works=yes
10509 fi
10510 LIBS="$lt_save_LIBS"
10511 CFLAGS="$lt_save_CFLAGS"
10512 else
10513 echo "cannot find nm_test_func in $nlist" >&5
10514 fi
10515 else
10516 echo "cannot find nm_test_var in $nlist" >&5
10517 fi
10518 else
10519 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10520 fi
10521 else
10522 echo "$progname: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 fi
10525 rm -f conftest* conftst*
10526
10527 # Do not use the global_symbol_pipe unless it works.
10528 if test "$pipe_works" = yes; then
10529 break
10530 else
10531 lt_cv_sys_global_symbol_pipe=
10532 fi
10533done
10534
10535fi
10536
10537if test -z "$lt_cv_sys_global_symbol_pipe"; then
10538 lt_cv_sys_global_symbol_to_cdecl=
10539fi
10540if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010541 { echo "$as_me:$LINENO: result: failed" >&5
10542echo "${ECHO_T}failed" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010543else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010544 { echo "$as_me:$LINENO: result: ok" >&5
10545echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010546fi
10547
10548
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010549{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10550echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10551if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010553else
10554 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10555 libltdl_cv_preloaded_symbols=yes
10556 else
10557 libltdl_cv_preloaded_symbols=no
10558 fi
10559
10560fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010561{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10562echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010563if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10564
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010565cat >>confdefs.h <<\_ACEOF
10566#define HAVE_PRELOADED_SYMBOLS 1
10567_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010568
10569fi
10570
10571LIBADD_DL=
10572
10573ac_ext=c
10574ac_cpp='$CPP $CPPFLAGS'
10575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577ac_compiler_gnu=$ac_cv_c_compiler_gnu
10578
10579
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010580{ echo "$as_me:$LINENO: checking for shl_load" >&5
10581echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10582if test "${ac_cv_func_shl_load+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584else
10585 cat >conftest.$ac_ext <<_ACEOF
10586/* confdefs.h. */
10587_ACEOF
10588cat confdefs.h >>conftest.$ac_ext
10589cat >>conftest.$ac_ext <<_ACEOF
10590/* end confdefs.h. */
10591/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10593#define shl_load innocuous_shl_load
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010594
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010595/* System header to define __stub macros and hopefully few prototypes,
10596 which can conflict with char shl_load (); below.
10597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10598 <limits.h> exists even on freestanding compilers. */
10599
10600#ifdef __STDC__
10601# include <limits.h>
10602#else
10603# include <assert.h>
10604#endif
10605
10606#undef shl_load
10607
10608/* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
10611#ifdef __cplusplus
10612extern "C"
10613#endif
10614char shl_load ();
10615/* The GNU C library defines this for functions which it implements
10616 to always fail with ENOSYS. Some functions are actually named
10617 something starting with __ and the normal name is an alias. */
10618#if defined __stub_shl_load || defined __stub___shl_load
10619choke me
10620#endif
10621
10622int
10623main ()
10624{
10625return shl_load ();
10626 ;
10627 return 0;
10628}
10629_ACEOF
10630rm -f conftest.$ac_objext conftest$ac_exeext
10631if { (ac_try="$ac_link"
10632case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635esac
10636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10645 { (case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648esac
10649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_try") 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; } &&
10654 { ac_try='test -s conftest$ac_exeext'
10655 { (case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658esac
10659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_try") 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_func_shl_load=yes
10665else
10666 echo "$as_me: failed program was:" >&5
10667sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 ac_cv_func_shl_load=no
10670fi
10671
10672rm -f core conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10674fi
10675{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10676echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10677if test $ac_cv_func_shl_load = yes; then
10678
10679cat >>confdefs.h <<\_ACEOF
10680#define HAVE_SHL_LOAD 1
10681_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010682
10683else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010684 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10685echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10686if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010688else
10689 ac_check_lib_save_LIBS=$LIBS
10690LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010691cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010696/* end confdefs.h. */
10697
10698/* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10701#ifdef __cplusplus
10702extern "C"
10703#endif
10704char shl_load ();
10705int
10706main ()
10707{
10708return shl_load ();
10709 ;
10710 return 0;
10711}
10712_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010713rm -f conftest.$ac_objext conftest$ac_exeext
10714if { (ac_try="$ac_link"
10715case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718esac
10719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_link") 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731esac
10732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest$ac_exeext'
10738 { (case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10741esac
10742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_try") 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010747 ac_cv_lib_dld_shl_load=yes
10748else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010749 echo "$as_me: failed program was:" >&5
10750sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 ac_cv_lib_dld_shl_load=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010753fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010754
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010755rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010756 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010757LIBS=$ac_check_lib_save_LIBS
10758fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010759{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10760echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10761if test $ac_cv_lib_dld_shl_load = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010762
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010763cat >>confdefs.h <<\_ACEOF
10764#define HAVE_SHL_LOAD 1
10765_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010766
10767 LIBADD_DL="$LIBADD_DL -ldld"
10768else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010769 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10770echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10771if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010773else
10774 ac_check_lib_save_LIBS=$LIBS
10775LIBS="-ldl $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010776cat >conftest.$ac_ext <<_ACEOF
10777/* confdefs.h. */
10778_ACEOF
10779cat confdefs.h >>conftest.$ac_ext
10780cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010781/* end confdefs.h. */
10782
10783/* Override any GCC internal prototype to avoid an error.
10784 Use char because int might match the return type of a GCC
10785 builtin and then its argument prototype would still apply. */
10786#ifdef __cplusplus
10787extern "C"
10788#endif
10789char dlopen ();
10790int
10791main ()
10792{
10793return dlopen ();
10794 ;
10795 return 0;
10796}
10797_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010798rm -f conftest.$ac_objext conftest$ac_exeext
10799if { (ac_try="$ac_link"
10800case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10803esac
10804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_link") 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10813 { (case "(($ac_try" in
10814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10816esac
10817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_try") 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; } &&
10822 { ac_try='test -s conftest$ac_exeext'
10823 { (case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10826esac
10827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828 (eval "$ac_try") 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010832 ac_cv_lib_dl_dlopen=yes
10833else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010834 echo "$as_me: failed program was:" >&5
10835sed 's/^/| /' conftest.$ac_ext >&5
10836
10837 ac_cv_lib_dl_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010838fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010839
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010840rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010841 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010842LIBS=$ac_check_lib_save_LIBS
10843fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010844{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10845echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10846if test $ac_cv_lib_dl_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010847
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010848cat >>confdefs.h <<\_ACEOF
10849#define HAVE_LIBDL 1
10850_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010851
10852 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10853else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010854 cat >conftest.$ac_ext <<_ACEOF
10855/* confdefs.h. */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010859/* end confdefs.h. */
10860#if HAVE_DLFCN_H
10861# include <dlfcn.h>
10862#endif
10863
10864int
10865main ()
10866{
10867dlopen(0, 0);
10868 ;
10869 return 0;
10870}
10871_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010872rm -f conftest.$ac_objext conftest$ac_exeext
10873if { (ac_try="$ac_link"
10874case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890esac
10891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900esac
10901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010906
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010907cat >>confdefs.h <<\_ACEOF
10908#define HAVE_LIBDL 1
10909_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010910 libltdl_cv_func_dlopen="yes"
10911else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010912 echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10916echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10917if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010919else
10920 ac_check_lib_save_LIBS=$LIBS
10921LIBS="-lsvld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010922cat >conftest.$ac_ext <<_ACEOF
10923/* confdefs.h. */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010927/* end confdefs.h. */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char dlopen ();
10936int
10937main ()
10938{
10939return dlopen ();
10940 ;
10941 return 0;
10942}
10943_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010944rm -f conftest.$ac_objext conftest$ac_exeext
10945if { (ac_try="$ac_link"
10946case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949esac
10950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_link") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10959 { (case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962esac
10963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_try") 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest$ac_exeext'
10969 { (case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10972esac
10973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_try") 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010978 ac_cv_lib_svld_dlopen=yes
10979else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010980 echo "$as_me: failed program was:" >&5
10981sed 's/^/| /' conftest.$ac_ext >&5
10982
10983 ac_cv_lib_svld_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010984fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010985
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010986rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010987 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010988LIBS=$ac_check_lib_save_LIBS
10989fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010990{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10991echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10992if test $ac_cv_lib_svld_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010993
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010994cat >>confdefs.h <<\_ACEOF
10995#define HAVE_LIBDL 1
10996_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010997
10998 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10999else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011000 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11001echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11002if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011004else
11005 ac_check_lib_save_LIBS=$LIBS
11006LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011007cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h. */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011012/* end confdefs.h. */
11013
11014/* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017#ifdef __cplusplus
11018extern "C"
11019#endif
11020char dld_link ();
11021int
11022main ()
11023{
11024return dld_link ();
11025 ;
11026 return 0;
11027}
11028_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011029rm -f conftest.$ac_objext conftest$ac_exeext
11030if { (ac_try="$ac_link"
11031case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034esac
11035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_link") 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047esac
11048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest$ac_exeext'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057esac
11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011063 ac_cv_lib_dld_dld_link=yes
11064else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011065 echo "$as_me: failed program was:" >&5
11066sed 's/^/| /' conftest.$ac_ext >&5
11067
11068 ac_cv_lib_dld_dld_link=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011069fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011070
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011071rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011072 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011073LIBS=$ac_check_lib_save_LIBS
11074fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011075{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11076echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11077if test $ac_cv_lib_dld_dld_link = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011078
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011079cat >>confdefs.h <<\_ACEOF
11080#define HAVE_DLD 1
11081_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011082
11083 LIBADD_DL="$LIBADD_DL -ldld"
11084else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011085 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11086echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11087if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089else
11090 cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11098#define _dyld_func_lookup innocuous__dyld_func_lookup
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011099
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011100/* System header to define __stub macros and hopefully few prototypes,
11101 which can conflict with char _dyld_func_lookup (); below.
11102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11103 <limits.h> exists even on freestanding compilers. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011104
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011105#ifdef __STDC__
11106# include <limits.h>
11107#else
11108# include <assert.h>
11109#endif
11110
11111#undef _dyld_func_lookup
11112
11113/* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11116#ifdef __cplusplus
11117extern "C"
11118#endif
11119char _dyld_func_lookup ();
11120/* The GNU C library defines this for functions which it implements
11121 to always fail with ENOSYS. Some functions are actually named
11122 something starting with __ and the normal name is an alias. */
11123#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11124choke me
11125#endif
11126
11127int
11128main ()
11129{
11130return _dyld_func_lookup ();
11131 ;
11132 return 0;
11133}
11134_ACEOF
11135rm -f conftest.$ac_objext conftest$ac_exeext
11136if { (ac_try="$ac_link"
11137case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140esac
11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest$ac_exeext'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163esac
11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_cv_func__dyld_func_lookup=yes
11170else
11171 echo "$as_me: failed program was:" >&5
11172sed 's/^/| /' conftest.$ac_ext >&5
11173
11174 ac_cv_func__dyld_func_lookup=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011175fi
11176
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011177rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011178 conftest$ac_exeext conftest.$ac_ext
11179fi
11180{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11181echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11182if test $ac_cv_func__dyld_func_lookup = yes; then
11183
11184cat >>confdefs.h <<\_ACEOF
11185#define HAVE_DYLD 1
11186_ACEOF
11187
11188fi
11189
11190
11191fi
11192
11193
11194fi
11195
11196
11197fi
11198
11199rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011201
11202fi
11203
11204
11205fi
11206
11207
11208fi
11209
11210
11211if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11212then
11213 lt_save_LIBS="$LIBS"
11214 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011215
11216for ac_func in dlerror
11217do
11218as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11219{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11220echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11221if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223else
11224 cat >conftest.$ac_ext <<_ACEOF
11225/* confdefs.h. */
11226_ACEOF
11227cat confdefs.h >>conftest.$ac_ext
11228cat >>conftest.$ac_ext <<_ACEOF
11229/* end confdefs.h. */
11230/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11232#define $ac_func innocuous_$ac_func
11233
11234/* System header to define __stub macros and hopefully few prototypes,
11235 which can conflict with char $ac_func (); below.
11236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11237 <limits.h> exists even on freestanding compilers. */
11238
11239#ifdef __STDC__
11240# include <limits.h>
11241#else
11242# include <assert.h>
11243#endif
11244
11245#undef $ac_func
11246
11247/* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250#ifdef __cplusplus
11251extern "C"
11252#endif
11253char $ac_func ();
11254/* The GNU C library defines this for functions which it implements
11255 to always fail with ENOSYS. Some functions are actually named
11256 something starting with __ and the normal name is an alias. */
11257#if defined __stub_$ac_func || defined __stub___$ac_func
11258choke me
11259#endif
11260
11261int
11262main ()
11263{
11264return $ac_func ();
11265 ;
11266 return 0;
11267}
11268_ACEOF
11269rm -f conftest.$ac_objext conftest$ac_exeext
11270if { (ac_try="$ac_link"
11271case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274esac
11275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_link") 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11284 { (case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287esac
11288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_try") 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; } &&
11293 { ac_try='test -s conftest$ac_exeext'
11294 { (case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297esac
11298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_try") 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 eval "$as_ac_var=yes"
11304else
11305 echo "$as_me: failed program was:" >&5
11306sed 's/^/| /' conftest.$ac_ext >&5
11307
11308 eval "$as_ac_var=no"
11309fi
11310
11311rm -f core conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11313fi
11314ac_res=`eval echo '${'$as_ac_var'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316echo "${ECHO_T}$ac_res" >&6; }
11317if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011318 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011320_ACEOF
11321
11322fi
11323done
11324
11325 LIBS="$lt_save_LIBS"
11326fi
11327ac_ext=c
11328ac_cpp='$CPP $CPPFLAGS'
11329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11331ac_compiler_gnu=$ac_cv_c_compiler_gnu
11332
11333
11334
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011335{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11336echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11337if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011339else
11340 ac_cv_sys_symbol_underscore=no
11341 cat > conftest.$ac_ext <<EOF
11342void nm_test_func(){}
11343int main(){nm_test_func;return 0;}
11344EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011346 (eval $ac_compile) 2>&5
11347 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011350 # Now try to grab the symbols.
11351 ac_nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011352 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011353 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11354 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } && test -s "$ac_nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011357 # See whether the symbols have a leading underscore.
11358 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11359 ac_cv_sys_symbol_underscore=yes
11360 else
11361 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11362 :
11363 else
11364 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11365 fi
11366 fi
11367 else
11368 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11369 fi
11370 else
11371 echo "configure: failed program was:" >&5
11372 cat conftest.c >&5
11373 fi
11374 rm -rf conftest*
11375
11376fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011377{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11378echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011379
11380
11381if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11382 if test x"$libltdl_cv_func_dlopen" = xyes ||
11383 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011384 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11385echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11386if test "${libltdl_cv_need_uscore+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011388else
11389 libltdl_cv_need_uscore=unknown
11390 save_LIBS="$LIBS"
11391 LIBS="$LIBS $LIBADD_DL"
11392 if test "$cross_compiling" = yes; then :
11393 libltdl_cv_need_uscore=cross
11394else
11395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11396 lt_status=$lt_dlunknown
11397 cat > conftest.$ac_ext <<EOF
Dan Gohman59b64f42010-08-04 16:25:01 +000011398#line 11398 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011399#include "confdefs.h"
11400
11401#if HAVE_DLFCN_H
11402#include <dlfcn.h>
11403#endif
11404
11405#include <stdio.h>
11406
11407#ifdef RTLD_GLOBAL
11408# define LT_DLGLOBAL RTLD_GLOBAL
11409#else
11410# ifdef DL_GLOBAL
11411# define LT_DLGLOBAL DL_GLOBAL
11412# else
11413# define LT_DLGLOBAL 0
11414# endif
11415#endif
11416
11417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11418 find out it does not work in some platform. */
11419#ifndef LT_DLLAZY_OR_NOW
11420# ifdef RTLD_LAZY
11421# define LT_DLLAZY_OR_NOW RTLD_LAZY
11422# else
11423# ifdef DL_LAZY
11424# define LT_DLLAZY_OR_NOW DL_LAZY
11425# else
11426# ifdef RTLD_NOW
11427# define LT_DLLAZY_OR_NOW RTLD_NOW
11428# else
11429# ifdef DL_NOW
11430# define LT_DLLAZY_OR_NOW DL_NOW
11431# else
11432# define LT_DLLAZY_OR_NOW 0
11433# endif
11434# endif
11435# endif
11436# endif
11437#endif
11438
11439#ifdef __cplusplus
11440extern "C" void exit (int);
11441#endif
11442
11443void fnord() { int i=42;}
11444int main ()
11445{
11446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11447 int status = $lt_dlunknown;
11448
11449 if (self)
11450 {
11451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11453 /* dlclose (self); */
11454 }
11455 else
11456 puts (dlerror ());
11457
11458 exit (status);
11459}
11460EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011462 (eval $ac_link) 2>&5
11463 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011466 (./conftest; exit; ) >&5 2>/dev/null
11467 lt_status=$?
11468 case x$lt_status in
11469 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11470 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11471 x$lt_dlunknown|x*) ;;
11472 esac
11473 else :
11474 # compilation failed
11475
11476 fi
11477fi
11478rm -fr conftest*
11479
11480 LIBS="$save_LIBS"
11481
11482fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011483{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11484echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011485 fi
11486fi
11487
11488if test x"$libltdl_cv_need_uscore" = xyes; then
11489
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011490cat >>confdefs.h <<\_ACEOF
11491#define NEED_USCORE 1
11492_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011493
11494fi
11495
11496
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011497{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11498echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11499if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011501else
11502 # PORTME does your system automatically load deplibs for dlopen?
11503 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11504 # For now, we just catch OSes we know something about -- in the
11505 # future, we'll try test this programmatically.
11506 libltdl_cv_sys_dlopen_deplibs=unknown
11507 case "$host_os" in
11508 aix3*|aix4.1.*|aix4.2.*)
11509 # Unknown whether this is true for these versions of AIX, but
11510 # we want this `case' here to explicitly catch those versions.
11511 libltdl_cv_sys_dlopen_deplibs=unknown
11512 ;;
11513 aix[45]*)
11514 libltdl_cv_sys_dlopen_deplibs=yes
11515 ;;
11516 darwin*)
11517 # Assuming the user has installed a libdl from somewhere, this is true
11518 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11519 libltdl_cv_sys_dlopen_deplibs=yes
11520 ;;
11521 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11522 # GNU and its variants, using gnu ld.so (Glibc)
11523 libltdl_cv_sys_dlopen_deplibs=yes
11524 ;;
11525 hpux10*|hpux11*)
11526 libltdl_cv_sys_dlopen_deplibs=yes
11527 ;;
11528 interix*)
11529 libltdl_cv_sys_dlopen_deplibs=yes
11530 ;;
11531 irix[12345]*|irix6.[01]*)
11532 # Catch all versions of IRIX before 6.2, and indicate that we don't
11533 # know how it worked for any of those versions.
11534 libltdl_cv_sys_dlopen_deplibs=unknown
11535 ;;
11536 irix*)
11537 # The case above catches anything before 6.2, and it's known that
11538 # at 6.2 and later dlopen does load deplibs.
11539 libltdl_cv_sys_dlopen_deplibs=yes
11540 ;;
11541 netbsd*)
11542 libltdl_cv_sys_dlopen_deplibs=yes
11543 ;;
11544 openbsd*)
11545 libltdl_cv_sys_dlopen_deplibs=yes
11546 ;;
11547 osf[1234]*)
11548 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11549 # it did *not* use an RPATH in a shared library to find objects the
11550 # library depends on, so we explictly say `no'.
11551 libltdl_cv_sys_dlopen_deplibs=no
11552 ;;
11553 osf5.0|osf5.0a|osf5.1)
11554 # dlopen *does* load deplibs and with the right loader patch applied
11555 # it even uses RPATH in a shared library to search for shared objects
11556 # that the library depends on, but there's no easy way to know if that
11557 # patch is installed. Since this is the case, all we can really
11558 # say is unknown -- it depends on the patch being installed. If
11559 # it is, this changes to `yes'. Without it, it would be `no'.
11560 libltdl_cv_sys_dlopen_deplibs=unknown
11561 ;;
11562 osf*)
11563 # the two cases above should catch all versions of osf <= 5.1. Read
11564 # the comments above for what we know about them.
11565 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11566 # is used to find them so we can finally say `yes'.
11567 libltdl_cv_sys_dlopen_deplibs=yes
11568 ;;
11569 solaris*)
11570 libltdl_cv_sys_dlopen_deplibs=yes
11571 ;;
11572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11573 libltdl_cv_sys_dlopen_deplibs=yes
11574 ;;
11575 esac
11576
11577fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011578{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11579echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011580if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11581
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011582cat >>confdefs.h <<\_ACEOF
11583#define LTDL_DLOPEN_DEPLIBS 1
11584_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011585
11586fi
11587
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011588
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011589for ac_header in argz.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011590do
11591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597fi
11598ac_res=`eval echo '${'$as_ac_Header'}'`
11599 { echo "$as_me:$LINENO: result: $ac_res" >&5
11600echo "${ECHO_T}$ac_res" >&6; }
11601else
11602 # Is the header compilable?
11603{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11605cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
11611$ac_includes_default
11612#include <$ac_header>
11613_ACEOF
11614rm -f conftest.$ac_objext
11615if { (ac_try="$ac_compile"
11616case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619esac
11620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_compile") 2>conftest.er1
11622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629 { (case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11632esac
11633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_try") 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest.$ac_objext'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_header_compiler=yes
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653 ac_header_compiler=no
11654fi
11655
11656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11658echo "${ECHO_T}$ac_header_compiler" >&6; }
11659
11660# Is the header present?
11661{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11663cat >conftest.$ac_ext <<_ACEOF
11664/* confdefs.h. */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */
11669#include <$ac_header>
11670_ACEOF
11671if { (ac_try="$ac_cpp conftest.$ac_ext"
11672case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675esac
11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } >/dev/null; then
11684 if test -s conftest.err; then
11685 ac_cpp_err=$ac_c_preproc_warn_flag
11686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11687 else
11688 ac_cpp_err=
11689 fi
11690else
11691 ac_cpp_err=yes
11692fi
11693if test -z "$ac_cpp_err"; then
11694 ac_header_preproc=yes
11695else
11696 echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 ac_header_preproc=no
11700fi
11701
11702rm -f conftest.err conftest.$ac_ext
11703{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11704echo "${ECHO_T}$ac_header_preproc" >&6; }
11705
11706# So? What about this header?
11707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11708 yes:no: )
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11713 ac_header_preproc=yes
11714 ;;
11715 no:yes:* )
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11728 ( cat <<\_ASBOX
11729## ----------------------------------- ##
11730## Report this to llvmbugs@cs.uiuc.edu ##
11731## ----------------------------------- ##
11732_ASBOX
11733 ) | sed "s/^/$as_me: WARNING: /" >&2
11734 ;;
11735esac
11736{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740else
11741 eval "$as_ac_Header=\$ac_header_preproc"
11742fi
11743ac_res=`eval echo '${'$as_ac_Header'}'`
11744 { echo "$as_me:$LINENO: result: $ac_res" >&5
11745echo "${ECHO_T}$ac_res" >&6; }
11746
11747fi
11748if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011749 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011751_ACEOF
11752
11753fi
11754
11755done
11756
11757
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011758{ echo "$as_me:$LINENO: checking for error_t" >&5
11759echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11760if test "${ac_cv_type_error_t+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762else
11763 cat >conftest.$ac_ext <<_ACEOF
11764/* confdefs.h. */
11765_ACEOF
11766cat confdefs.h >>conftest.$ac_ext
11767cat >>conftest.$ac_ext <<_ACEOF
11768/* end confdefs.h. */
11769#if HAVE_ARGZ_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011770# include <argz.h>
11771#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011772
11773typedef error_t ac__type_new_;
11774int
11775main ()
11776{
11777if ((ac__type_new_ *) 0)
11778 return 0;
11779if (sizeof (ac__type_new_))
11780 return 0;
11781 ;
11782 return 0;
11783}
11784_ACEOF
11785rm -f conftest.$ac_objext
11786if { (ac_try="$ac_compile"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_compile") 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813esac
11814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_cv_type_error_t=yes
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_cv_type_error_t=no
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828fi
11829{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11830echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11831if test $ac_cv_type_error_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011832
11833cat >>confdefs.h <<_ACEOF
11834#define HAVE_ERROR_T 1
11835_ACEOF
11836
11837
11838else
11839
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011840cat >>confdefs.h <<\_ACEOF
11841#define error_t int
11842_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011843
11844fi
11845
11846
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011847
11848
11849
11850
11851
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011852for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011853do
11854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11855{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859else
11860 cat >conftest.$ac_ext <<_ACEOF
11861/* confdefs.h. */
11862_ACEOF
11863cat confdefs.h >>conftest.$ac_ext
11864cat >>conftest.$ac_ext <<_ACEOF
11865/* end confdefs.h. */
11866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11868#define $ac_func innocuous_$ac_func
11869
11870/* System header to define __stub macros and hopefully few prototypes,
11871 which can conflict with char $ac_func (); below.
11872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11873 <limits.h> exists even on freestanding compilers. */
11874
11875#ifdef __STDC__
11876# include <limits.h>
11877#else
11878# include <assert.h>
11879#endif
11880
11881#undef $ac_func
11882
11883/* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11886#ifdef __cplusplus
11887extern "C"
11888#endif
11889char $ac_func ();
11890/* The GNU C library defines this for functions which it implements
11891 to always fail with ENOSYS. Some functions are actually named
11892 something starting with __ and the normal name is an alias. */
11893#if defined __stub_$ac_func || defined __stub___$ac_func
11894choke me
11895#endif
11896
11897int
11898main ()
11899{
11900return $ac_func ();
11901 ;
11902 return 0;
11903}
11904_ACEOF
11905rm -f conftest.$ac_objext conftest$ac_exeext
11906if { (ac_try="$ac_link"
11907case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910esac
11911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_link") 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11920 { (case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923esac
11924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_try") 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest$ac_exeext'
11930 { (case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11933esac
11934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_try") 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 eval "$as_ac_var=yes"
11940else
11941 echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
11944 eval "$as_ac_var=no"
11945fi
11946
11947rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949fi
11950ac_res=`eval echo '${'$as_ac_var'}'`
11951 { echo "$as_me:$LINENO: result: $ac_res" >&5
11952echo "${ECHO_T}$ac_res" >&6; }
11953if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011954 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011956_ACEOF
11957
11958fi
11959done
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011980
11981
11982
11983
11984
11985
11986
11987
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011988for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11989 stdio.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011990do
11991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997fi
11998ac_res=`eval echo '${'$as_ac_Header'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000echo "${ECHO_T}$ac_res" >&6; }
12001else
12002 # Is the header compilable?
12003{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12005cat >conftest.$ac_ext <<_ACEOF
12006/* confdefs.h. */
12007_ACEOF
12008cat confdefs.h >>conftest.$ac_ext
12009cat >>conftest.$ac_ext <<_ACEOF
12010/* end confdefs.h. */
12011$ac_includes_default
12012#include <$ac_header>
12013_ACEOF
12014rm -f conftest.$ac_objext
12015if { (ac_try="$ac_compile"
12016case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019esac
12020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_compile") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029 { (case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032esac
12033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_try") 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest.$ac_objext'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042esac
12043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_header_compiler=yes
12049else
12050 echo "$as_me: failed program was:" >&5
12051sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 ac_header_compiler=no
12054fi
12055
12056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12058echo "${ECHO_T}$ac_header_compiler" >&6; }
12059
12060# Is the header present?
12061{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12062echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12063cat >conftest.$ac_ext <<_ACEOF
12064/* confdefs.h. */
12065_ACEOF
12066cat confdefs.h >>conftest.$ac_ext
12067cat >>conftest.$ac_ext <<_ACEOF
12068/* end confdefs.h. */
12069#include <$ac_header>
12070_ACEOF
12071if { (ac_try="$ac_cpp conftest.$ac_ext"
12072case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075esac
12076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } >/dev/null; then
12084 if test -s conftest.err; then
12085 ac_cpp_err=$ac_c_preproc_warn_flag
12086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12087 else
12088 ac_cpp_err=
12089 fi
12090else
12091 ac_cpp_err=yes
12092fi
12093if test -z "$ac_cpp_err"; then
12094 ac_header_preproc=yes
12095else
12096 echo "$as_me: failed program was:" >&5
12097sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 ac_header_preproc=no
12100fi
12101
12102rm -f conftest.err conftest.$ac_ext
12103{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12104echo "${ECHO_T}$ac_header_preproc" >&6; }
12105
12106# So? What about this header?
12107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12108 yes:no: )
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12110echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12112echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12113 ac_header_preproc=yes
12114 ;;
12115 no:yes:* )
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12119echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12121echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12123echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12127echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12128 ( cat <<\_ASBOX
12129## ----------------------------------- ##
12130## Report this to llvmbugs@cs.uiuc.edu ##
12131## ----------------------------------- ##
12132_ASBOX
12133 ) | sed "s/^/$as_me: WARNING: /" >&2
12134 ;;
12135esac
12136{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140else
12141 eval "$as_ac_Header=\$ac_header_preproc"
12142fi
12143ac_res=`eval echo '${'$as_ac_Header'}'`
12144 { echo "$as_me:$LINENO: result: $ac_res" >&5
12145echo "${ECHO_T}$ac_res" >&6; }
12146
12147fi
12148if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012149 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012151_ACEOF
12152
12153fi
12154
12155done
12156
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012157
12158
12159
12160
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012161for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012162do
12163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169fi
12170ac_res=`eval echo '${'$as_ac_Header'}'`
12171 { echo "$as_me:$LINENO: result: $ac_res" >&5
12172echo "${ECHO_T}$ac_res" >&6; }
12173else
12174 # Is the header compilable?
12175{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12177cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h. */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h. */
12183$ac_includes_default
12184#include <$ac_header>
12185_ACEOF
12186rm -f conftest.$ac_objext
12187if { (ac_try="$ac_compile"
12188case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_compile") 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204esac
12205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_try") 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (case "(($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_try") 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_header_compiler=yes
12221else
12222 echo "$as_me: failed program was:" >&5
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
12225 ac_header_compiler=no
12226fi
12227
12228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230echo "${ECHO_T}$ac_header_compiler" >&6; }
12231
12232# Is the header present?
12233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12235cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241#include <$ac_header>
12242_ACEOF
12243if { (ac_try="$ac_cpp conftest.$ac_ext"
12244case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247esac
12248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } >/dev/null; then
12256 if test -s conftest.err; then
12257 ac_cpp_err=$ac_c_preproc_warn_flag
12258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12259 else
12260 ac_cpp_err=
12261 fi
12262else
12263 ac_cpp_err=yes
12264fi
12265if test -z "$ac_cpp_err"; then
12266 ac_header_preproc=yes
12267else
12268 echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 ac_header_preproc=no
12272fi
12273
12274rm -f conftest.err conftest.$ac_ext
12275{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276echo "${ECHO_T}$ac_header_preproc" >&6; }
12277
12278# So? What about this header?
12279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280 yes:no: )
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285 ac_header_preproc=yes
12286 ;;
12287 no:yes:* )
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12300 ( cat <<\_ASBOX
12301## ----------------------------------- ##
12302## Report this to llvmbugs@cs.uiuc.edu ##
12303## ----------------------------------- ##
12304_ASBOX
12305 ) | sed "s/^/$as_me: WARNING: /" >&2
12306 ;;
12307esac
12308{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312else
12313 eval "$as_ac_Header=\$ac_header_preproc"
12314fi
12315ac_res=`eval echo '${'$as_ac_Header'}'`
12316 { echo "$as_me:$LINENO: result: $ac_res" >&5
12317echo "${ECHO_T}$ac_res" >&6; }
12318
12319fi
12320if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012321 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012323_ACEOF
12324
12325fi
12326
12327done
12328
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012329
12330
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012331for ac_header in string.h strings.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012332do
12333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339fi
12340ac_res=`eval echo '${'$as_ac_Header'}'`
12341 { echo "$as_me:$LINENO: result: $ac_res" >&5
12342echo "${ECHO_T}$ac_res" >&6; }
12343else
12344 # Is the header compilable?
12345{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12347cat >conftest.$ac_ext <<_ACEOF
12348/* confdefs.h. */
12349_ACEOF
12350cat confdefs.h >>conftest.$ac_ext
12351cat >>conftest.$ac_ext <<_ACEOF
12352/* end confdefs.h. */
12353$ac_includes_default
12354#include <$ac_header>
12355_ACEOF
12356rm -f conftest.$ac_objext
12357if { (ac_try="$ac_compile"
12358case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361esac
12362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_compile") 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12371 { (case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374esac
12375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_try") 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest.$ac_objext'
12381 { (case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384esac
12385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_try") 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_header_compiler=yes
12391else
12392 echo "$as_me: failed program was:" >&5
12393sed 's/^/| /' conftest.$ac_ext >&5
12394
12395 ac_header_compiler=no
12396fi
12397
12398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12400echo "${ECHO_T}$ac_header_compiler" >&6; }
12401
12402# Is the header present?
12403{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12405cat >conftest.$ac_ext <<_ACEOF
12406/* confdefs.h. */
12407_ACEOF
12408cat confdefs.h >>conftest.$ac_ext
12409cat >>conftest.$ac_ext <<_ACEOF
12410/* end confdefs.h. */
12411#include <$ac_header>
12412_ACEOF
12413if { (ac_try="$ac_cpp conftest.$ac_ext"
12414case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417esac
12418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } >/dev/null; then
12426 if test -s conftest.err; then
12427 ac_cpp_err=$ac_c_preproc_warn_flag
12428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12429 else
12430 ac_cpp_err=
12431 fi
12432else
12433 ac_cpp_err=yes
12434fi
12435if test -z "$ac_cpp_err"; then
12436 ac_header_preproc=yes
12437else
12438 echo "$as_me: failed program was:" >&5
12439sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 ac_header_preproc=no
12442fi
12443
12444rm -f conftest.err conftest.$ac_ext
12445{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12446echo "${ECHO_T}$ac_header_preproc" >&6; }
12447
12448# So? What about this header?
12449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12450 yes:no: )
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12455 ac_header_preproc=yes
12456 ;;
12457 no:yes:* )
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12470 ( cat <<\_ASBOX
12471## ----------------------------------- ##
12472## Report this to llvmbugs@cs.uiuc.edu ##
12473## ----------------------------------- ##
12474_ASBOX
12475 ) | sed "s/^/$as_me: WARNING: /" >&2
12476 ;;
12477esac
12478{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483 eval "$as_ac_Header=\$ac_header_preproc"
12484fi
12485ac_res=`eval echo '${'$as_ac_Header'}'`
12486 { echo "$as_me:$LINENO: result: $ac_res" >&5
12487echo "${ECHO_T}$ac_res" >&6; }
12488
12489fi
12490if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012491 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012493_ACEOF
12494 break
12495fi
12496
12497done
12498
12499
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012500
12501
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012502for ac_func in strchr index
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012503do
12504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12505{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12507if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509else
12510 cat >conftest.$ac_ext <<_ACEOF
12511/* confdefs.h. */
12512_ACEOF
12513cat confdefs.h >>conftest.$ac_ext
12514cat >>conftest.$ac_ext <<_ACEOF
12515/* end confdefs.h. */
12516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12518#define $ac_func innocuous_$ac_func
12519
12520/* System header to define __stub macros and hopefully few prototypes,
12521 which can conflict with char $ac_func (); below.
12522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12523 <limits.h> exists even on freestanding compilers. */
12524
12525#ifdef __STDC__
12526# include <limits.h>
12527#else
12528# include <assert.h>
12529#endif
12530
12531#undef $ac_func
12532
12533/* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
12536#ifdef __cplusplus
12537extern "C"
12538#endif
12539char $ac_func ();
12540/* The GNU C library defines this for functions which it implements
12541 to always fail with ENOSYS. Some functions are actually named
12542 something starting with __ and the normal name is an alias. */
12543#if defined __stub_$ac_func || defined __stub___$ac_func
12544choke me
12545#endif
12546
12547int
12548main ()
12549{
12550return $ac_func ();
12551 ;
12552 return 0;
12553}
12554_ACEOF
12555rm -f conftest.$ac_objext conftest$ac_exeext
12556if { (ac_try="$ac_link"
12557case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560esac
12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_link") 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573esac
12574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583esac
12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 eval "$as_ac_var=yes"
12590else
12591 echo "$as_me: failed program was:" >&5
12592sed 's/^/| /' conftest.$ac_ext >&5
12593
12594 eval "$as_ac_var=no"
12595fi
12596
12597rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599fi
12600ac_res=`eval echo '${'$as_ac_var'}'`
12601 { echo "$as_me:$LINENO: result: $ac_res" >&5
12602echo "${ECHO_T}$ac_res" >&6; }
12603if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012604 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012606_ACEOF
12607 break
12608fi
12609done
12610
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012611
12612
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012613for ac_func in strrchr rindex
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012614do
12615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12616{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620else
12621 cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h. */
12627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12629#define $ac_func innocuous_$ac_func
12630
12631/* System header to define __stub macros and hopefully few prototypes,
12632 which can conflict with char $ac_func (); below.
12633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12634 <limits.h> exists even on freestanding compilers. */
12635
12636#ifdef __STDC__
12637# include <limits.h>
12638#else
12639# include <assert.h>
12640#endif
12641
12642#undef $ac_func
12643
12644/* Override any GCC internal prototype to avoid an error.
12645 Use char because int might match the return type of a GCC
12646 builtin and then its argument prototype would still apply. */
12647#ifdef __cplusplus
12648extern "C"
12649#endif
12650char $ac_func ();
12651/* The GNU C library defines this for functions which it implements
12652 to always fail with ENOSYS. Some functions are actually named
12653 something starting with __ and the normal name is an alias. */
12654#if defined __stub_$ac_func || defined __stub___$ac_func
12655choke me
12656#endif
12657
12658int
12659main ()
12660{
12661return $ac_func ();
12662 ;
12663 return 0;
12664}
12665_ACEOF
12666rm -f conftest.$ac_objext conftest$ac_exeext
12667if { (ac_try="$ac_link"
12668case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12671esac
12672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673 (eval "$ac_link") 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; } &&
12690 { ac_try='test -s conftest$ac_exeext'
12691 { (case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12694esac
12695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_try") 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 eval "$as_ac_var=yes"
12701else
12702 echo "$as_me: failed program was:" >&5
12703sed 's/^/| /' conftest.$ac_ext >&5
12704
12705 eval "$as_ac_var=no"
12706fi
12707
12708rm -f core conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12710fi
12711ac_res=`eval echo '${'$as_ac_var'}'`
12712 { echo "$as_me:$LINENO: result: $ac_res" >&5
12713echo "${ECHO_T}$ac_res" >&6; }
12714if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012715 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012717_ACEOF
12718 break
12719fi
12720done
12721
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012722
12723
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012724for ac_func in memcpy bcopy
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012725do
12726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12727{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12729if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732 cat >conftest.$ac_ext <<_ACEOF
12733/* confdefs.h. */
12734_ACEOF
12735cat confdefs.h >>conftest.$ac_ext
12736cat >>conftest.$ac_ext <<_ACEOF
12737/* end confdefs.h. */
12738/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12740#define $ac_func innocuous_$ac_func
12741
12742/* System header to define __stub macros and hopefully few prototypes,
12743 which can conflict with char $ac_func (); below.
12744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12745 <limits.h> exists even on freestanding compilers. */
12746
12747#ifdef __STDC__
12748# include <limits.h>
12749#else
12750# include <assert.h>
12751#endif
12752
12753#undef $ac_func
12754
12755/* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12758#ifdef __cplusplus
12759extern "C"
12760#endif
12761char $ac_func ();
12762/* The GNU C library defines this for functions which it implements
12763 to always fail with ENOSYS. Some functions are actually named
12764 something starting with __ and the normal name is an alias. */
12765#if defined __stub_$ac_func || defined __stub___$ac_func
12766choke me
12767#endif
12768
12769int
12770main ()
12771{
12772return $ac_func ();
12773 ;
12774 return 0;
12775}
12776_ACEOF
12777rm -f conftest.$ac_objext conftest$ac_exeext
12778if { (ac_try="$ac_link"
12779case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782esac
12783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_link") 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805esac
12806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_try") 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 eval "$as_ac_var=yes"
12812else
12813 echo "$as_me: failed program was:" >&5
12814sed 's/^/| /' conftest.$ac_ext >&5
12815
12816 eval "$as_ac_var=no"
12817fi
12818
12819rm -f core conftest.err conftest.$ac_objext \
12820 conftest$ac_exeext conftest.$ac_ext
12821fi
12822ac_res=`eval echo '${'$as_ac_var'}'`
12823 { echo "$as_me:$LINENO: result: $ac_res" >&5
12824echo "${ECHO_T}$ac_res" >&6; }
12825if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012826 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012828_ACEOF
12829 break
12830fi
12831done
12832
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012833
12834
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012835for ac_func in memmove strcmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012836do
12837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12838{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12840if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842else
12843 cat >conftest.$ac_ext <<_ACEOF
12844/* confdefs.h. */
12845_ACEOF
12846cat confdefs.h >>conftest.$ac_ext
12847cat >>conftest.$ac_ext <<_ACEOF
12848/* end confdefs.h. */
12849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12851#define $ac_func innocuous_$ac_func
12852
12853/* System header to define __stub macros and hopefully few prototypes,
12854 which can conflict with char $ac_func (); below.
12855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12856 <limits.h> exists even on freestanding compilers. */
12857
12858#ifdef __STDC__
12859# include <limits.h>
12860#else
12861# include <assert.h>
12862#endif
12863
12864#undef $ac_func
12865
12866/* Override any GCC internal prototype to avoid an error.
12867 Use char because int might match the return type of a GCC
12868 builtin and then its argument prototype would still apply. */
12869#ifdef __cplusplus
12870extern "C"
12871#endif
12872char $ac_func ();
12873/* The GNU C library defines this for functions which it implements
12874 to always fail with ENOSYS. Some functions are actually named
12875 something starting with __ and the normal name is an alias. */
12876#if defined __stub_$ac_func || defined __stub___$ac_func
12877choke me
12878#endif
12879
12880int
12881main ()
12882{
12883return $ac_func ();
12884 ;
12885 return 0;
12886}
12887_ACEOF
12888rm -f conftest.$ac_objext conftest$ac_exeext
12889if { (ac_try="$ac_link"
12890case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893esac
12894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_link") 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12903 { (case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906esac
12907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_try") 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; } &&
12912 { ac_try='test -s conftest$ac_exeext'
12913 { (case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916esac
12917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_try") 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 eval "$as_ac_var=yes"
12923else
12924 echo "$as_me: failed program was:" >&5
12925sed 's/^/| /' conftest.$ac_ext >&5
12926
12927 eval "$as_ac_var=no"
12928fi
12929
12930rm -f core conftest.err conftest.$ac_objext \
12931 conftest$ac_exeext conftest.$ac_ext
12932fi
12933ac_res=`eval echo '${'$as_ac_var'}'`
12934 { echo "$as_me:$LINENO: result: $ac_res" >&5
12935echo "${ECHO_T}$ac_res" >&6; }
12936if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012937 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012939_ACEOF
12940
12941fi
12942done
12943
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012944
12945
12946
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012947for ac_func in closedir opendir readdir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012948do
12949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12950{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12952if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954else
12955 cat >conftest.$ac_ext <<_ACEOF
12956/* confdefs.h. */
12957_ACEOF
12958cat confdefs.h >>conftest.$ac_ext
12959cat >>conftest.$ac_ext <<_ACEOF
12960/* end confdefs.h. */
12961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12963#define $ac_func innocuous_$ac_func
12964
12965/* System header to define __stub macros and hopefully few prototypes,
12966 which can conflict with char $ac_func (); below.
12967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12968 <limits.h> exists even on freestanding compilers. */
12969
12970#ifdef __STDC__
12971# include <limits.h>
12972#else
12973# include <assert.h>
12974#endif
12975
12976#undef $ac_func
12977
12978/* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12981#ifdef __cplusplus
12982extern "C"
12983#endif
12984char $ac_func ();
12985/* The GNU C library defines this for functions which it implements
12986 to always fail with ENOSYS. Some functions are actually named
12987 something starting with __ and the normal name is an alias. */
12988#if defined __stub_$ac_func || defined __stub___$ac_func
12989choke me
12990#endif
12991
12992int
12993main ()
12994{
12995return $ac_func ();
12996 ;
12997 return 0;
12998}
12999_ACEOF
13000rm -f conftest.$ac_objext conftest$ac_exeext
13001if { (ac_try="$ac_link"
13002case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005esac
13006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_link") 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018esac
13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; } &&
13024 { ac_try='test -s conftest$ac_exeext'
13025 { (case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_try") 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13034 eval "$as_ac_var=yes"
13035else
13036 echo "$as_me: failed program was:" >&5
13037sed 's/^/| /' conftest.$ac_ext >&5
13038
13039 eval "$as_ac_var=no"
13040fi
13041
13042rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044fi
13045ac_res=`eval echo '${'$as_ac_var'}'`
13046 { echo "$as_me:$LINENO: result: $ac_res" >&5
13047echo "${ECHO_T}$ac_res" >&6; }
13048if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013049 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013051_ACEOF
13052
13053fi
13054done
13055
13056
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000013057
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013058if test "$WITH_LLVMGCCDIR" = "default" ; then
13059 LLVMGCC="llvm-gcc${EXEEXT}"
13060 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000013061 LLVMGCCCOMMAND="$LLVMGCC"
13062 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000013063 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13064
13065 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13066
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013067 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13068set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13071if test "${ac_cv_path_LLVMGCC+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013073else
13074 case $LLVMGCC in
13075 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13077 ;;
13078 *)
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080for as_dir in $PATH
13081do
13082 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013084 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013086 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013088 break 2
13089 fi
13090done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013091done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013092IFS=$as_save_IFS
13093
13094 ;;
13095esac
13096fi
13097LLVMGCC=$ac_cv_path_LLVMGCC
13098if test -n "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013099 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13100echo "${ECHO_T}$LLVMGCC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013101else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013102 { echo "$as_me:$LINENO: result: no" >&5
13103echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013104fi
13105
13106
13107 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13108set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13111if test "${ac_cv_path_LLVMGXX+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013113else
13114 case $LLVMGXX in
13115 [\\/]* | ?:[\\/]*)
13116 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13117 ;;
13118 *)
13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120for as_dir in $PATH
13121do
13122 IFS=$as_save_IFS
13123 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013124 for ac_exec_ext in '' $ac_executable_extensions; do
13125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013126 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013128 break 2
13129 fi
13130done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013131done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013132IFS=$as_save_IFS
13133
13134 ;;
13135esac
13136fi
13137LLVMGXX=$ac_cv_path_LLVMGXX
13138if test -n "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013139 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13140echo "${ECHO_T}$LLVMGXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013141else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013142 { echo "$as_me:$LINENO: result: no" >&5
13143echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013144fi
13145
13146
13147else
Devang Pateld84ba7b2007-12-04 22:54:47 +000013148 if test -z "$LLVMGCC"; then
13149 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000013150 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000013151 fi
13152 if test -z "$LLVMGXX"; then
13153 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000013154 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000013155 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000013156
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013157 LLVMGCC=$LLVMGCC
13158
13159 LLVMGXX=$LLVMGXX
13160
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000013161 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13162
13163 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13164
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013165fi
13166
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000013167
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000013168# Check whether --with-llvmcc was given.
13169if test "${with_llvmcc+set}" = set; then
13170 withval=$with_llvmcc;
13171else
13172 with_llvmcc=check
13173fi
13174
13175{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13176echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13177if test "$with_llvmcc" != "check"; then
13178 if (test "$with_llvmcc" != "llvm-gcc" &&
13179 test "$with_llvmcc" != "clang" &&
13180 test "$with_llvmcc" != "none"); then
13181 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13182echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13183 { (exit 1); exit 1; }; }
13184 fi
13185 WITH_LLVMCC="$with_llvmcc"
13186elif test -n "$LLVMGCC"; then
13187 WITH_LLVMCC=llvm-gcc
13188elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13189 WITH_LLVMCC=clang
13190else
13191 WITH_LLVMCC=none
13192fi
13193{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13194echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13195LLVMCC_OPTION=$WITH_LLVMCC
13196
13197
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013198{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13199echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013200
13201ICC=no
13202IXX=no
13203case $CC in
13204 icc*|icpc*)
13205 ICC=yes
13206 IXX=yes
13207 ;;
13208 *)
13209 ;;
13210esac
13211
13212if test "$GCC" != "yes" && test "$ICC" != "yes"
13213then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013214 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13215echo "$as_me: error: gcc|icc required but not found" >&2;}
13216 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013217fi
13218
13219if test "$GXX" != "yes" && test "$IXX" != "yes"
13220then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013221 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13222echo "$as_me: error: g++|icc required but not found" >&2;}
13223 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013224fi
13225
13226if test "$GCC" = "yes"
13227then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013228 cat >conftest.$ac_ext <<_ACEOF
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013229#if !defined(__GNUC__) || __GNUC__ < 3
13230#error Unsupported GCC version
13231#endif
13232
13233_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013234rm -f conftest.$ac_objext
13235if { (ac_try="$ac_compile"
13236case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239esac
13240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252esac
13253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest.$ac_objext'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262esac
13263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 :
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013269else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013270 echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13274echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13275 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013276fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013277
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013279fi
13280
13281if test -z "$llvm_cv_gnu_make_command"
13282then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013283 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13284echo "$as_me: error: GNU Make required but not found" >&2;}
13285 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013286fi
13287
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013288{ echo "$as_me:$LINENO: result: ok" >&5
13289echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013290
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013291{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13292echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000013293NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13294
13295NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13296
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013297{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13298echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000013299
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000013300
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013301
13302{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13303echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13304if test "${ac_cv_lib_m_sin+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013306else
13307 ac_check_lib_save_LIBS=$LIBS
13308LIBS="-lm $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013309cat >conftest.$ac_ext <<_ACEOF
13310/* confdefs.h. */
13311_ACEOF
13312cat confdefs.h >>conftest.$ac_ext
13313cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013314/* end confdefs.h. */
13315
13316/* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13319#ifdef __cplusplus
13320extern "C"
13321#endif
13322char sin ();
13323int
13324main ()
13325{
13326return sin ();
13327 ;
13328 return 0;
13329}
13330_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013331rm -f conftest.$ac_objext conftest$ac_exeext
13332if { (ac_try="$ac_link"
13333case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336esac
13337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_link") 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
13345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13346 { (case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349esac
13350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_try") 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest$ac_exeext'
13356 { (case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359esac
13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_try") 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013365 ac_cv_lib_m_sin=yes
13366else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 ac_cv_lib_m_sin=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013371fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013372
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013373rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013374 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013375LIBS=$ac_check_lib_save_LIBS
13376fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013377{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13378echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13379if test $ac_cv_lib_m_sin = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013380 cat >>confdefs.h <<_ACEOF
13381#define HAVE_LIBM 1
13382_ACEOF
13383
13384 LIBS="-lm $LIBS"
13385
13386fi
13387
13388if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013389
13390{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13391echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13392if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013394else
13395 ac_check_lib_save_LIBS=$LIBS
13396LIBS="-limagehlp $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013397cat >conftest.$ac_ext <<_ACEOF
13398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013402/* end confdefs.h. */
13403
13404
13405int
13406main ()
13407{
13408return main ();
13409 ;
13410 return 0;
13411}
13412_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013413rm -f conftest.$ac_objext conftest$ac_exeext
13414if { (ac_try="$ac_link"
13415case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431esac
13432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest$ac_exeext'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441esac
13442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013447 ac_cv_lib_imagehlp_main=yes
13448else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013449 echo "$as_me: failed program was:" >&5
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
13452 ac_cv_lib_imagehlp_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013453fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013454
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013455rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013456 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013457LIBS=$ac_check_lib_save_LIBS
13458fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013459{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13460echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13461if test $ac_cv_lib_imagehlp_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013462 cat >>confdefs.h <<_ACEOF
13463#define HAVE_LIBIMAGEHLP 1
13464_ACEOF
13465
13466 LIBS="-limagehlp $LIBS"
13467
13468fi
13469
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013470
13471{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13472echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13473if test "${ac_cv_lib_psapi_main+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013475else
13476 ac_check_lib_save_LIBS=$LIBS
13477LIBS="-lpsapi $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013478cat >conftest.$ac_ext <<_ACEOF
13479/* confdefs.h. */
13480_ACEOF
13481cat confdefs.h >>conftest.$ac_ext
13482cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013483/* end confdefs.h. */
13484
13485
13486int
13487main ()
13488{
13489return main ();
13490 ;
13491 return 0;
13492}
13493_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013494rm -f conftest.$ac_objext conftest$ac_exeext
13495if { (ac_try="$ac_link"
13496case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13499esac
13500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_link") 2>conftest.er1
13502 ac_status=$?
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } &&
13508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13509 { (case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13512esac
13513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_try") 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest$ac_exeext'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522esac
13523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013528 ac_cv_lib_psapi_main=yes
13529else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013530 echo "$as_me: failed program was:" >&5
13531sed 's/^/| /' conftest.$ac_ext >&5
13532
13533 ac_cv_lib_psapi_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013534fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013535
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013536rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013537 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013538LIBS=$ac_check_lib_save_LIBS
13539fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013540{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13541echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13542if test $ac_cv_lib_psapi_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013543 cat >>confdefs.h <<_ACEOF
13544#define HAVE_LIBPSAPI 1
13545_ACEOF
13546
13547 LIBS="-lpsapi $LIBS"
13548
13549fi
13550
13551fi
13552
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013553{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13554echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13555if test "${ac_cv_search_dlopen+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013557else
13558 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013559cat >conftest.$ac_ext <<_ACEOF
13560/* confdefs.h. */
13561_ACEOF
13562cat confdefs.h >>conftest.$ac_ext
13563cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013564/* end confdefs.h. */
13565
13566/* Override any GCC internal prototype to avoid an error.
13567 Use char because int might match the return type of a GCC
13568 builtin and then its argument prototype would still apply. */
13569#ifdef __cplusplus
13570extern "C"
13571#endif
13572char dlopen ();
13573int
13574main ()
13575{
13576return dlopen ();
13577 ;
13578 return 0;
13579}
13580_ACEOF
13581for ac_lib in '' dl; do
13582 if test -z "$ac_lib"; then
13583 ac_res="none required"
13584 else
13585 ac_res=-l$ac_lib
13586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13587 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013588 rm -f conftest.$ac_objext conftest$ac_exeext
13589if { (ac_try="$ac_link"
13590case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13593esac
13594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595 (eval "$ac_link") 2>conftest.er1
13596 ac_status=$?
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13603 { (case "(($ac_try" in
13604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605 *) ac_try_echo=$ac_try;;
13606esac
13607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608 (eval "$ac_try") 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } &&
13612 { ac_try='test -s conftest$ac_exeext'
13613 { (case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13616esac
13617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_try") 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013622 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013623else
13624 echo "$as_me: failed program was:" >&5
13625sed 's/^/| /' conftest.$ac_ext >&5
13626
13627
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013628fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013629
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013630rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013631 conftest$ac_exeext
13632 if test "${ac_cv_search_dlopen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013633 break
13634fi
13635done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013636if test "${ac_cv_search_dlopen+set}" = set; then
13637 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013638else
13639 ac_cv_search_dlopen=no
13640fi
13641rm conftest.$ac_ext
13642LIBS=$ac_func_search_save_LIBS
13643fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013644{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13645echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013646ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013647if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13649
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013650cat >>confdefs.h <<\_ACEOF
13651#define HAVE_DLOPEN 1
13652_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013653
13654else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013655 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13656echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013657fi
13658
13659
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013660if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013661 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13662echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13663if test "${ac_cv_search_ffi_call+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky0235b622009-02-04 06:27:44 +000013665else
Nick Lewycky6c58a402009-04-13 04:26:27 +000013666 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013667cat >conftest.$ac_ext <<_ACEOF
13668/* confdefs.h. */
13669_ACEOF
13670cat confdefs.h >>conftest.$ac_ext
13671cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000013672/* end confdefs.h. */
13673
13674/* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13677#ifdef __cplusplus
13678extern "C"
13679#endif
13680char ffi_call ();
13681int
13682main ()
13683{
13684return ffi_call ();
13685 ;
13686 return 0;
13687}
13688_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013689for ac_lib in '' ffi; do
13690 if test -z "$ac_lib"; then
13691 ac_res="none required"
13692 else
13693 ac_res=-l$ac_lib
13694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13695 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013696 rm -f conftest.$ac_objext conftest$ac_exeext
13697if { (ac_try="$ac_link"
13698case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701esac
13702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_link") 2>conftest.er1
13704 ac_status=$?
13705 grep -v '^ *+' conftest.er1 >conftest.err
13706 rm -f conftest.er1
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13711 { (case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714esac
13715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_try") 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest$ac_exeext'
13721 { (case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724esac
13725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_try") 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013730 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
13735
Nick Lewycky0235b622009-02-04 06:27:44 +000013736fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013737
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013738rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013739 conftest$ac_exeext
13740 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013741 break
Nick Lewycky0235b622009-02-04 06:27:44 +000013742fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000013743done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013744if test "${ac_cv_search_ffi_call+set}" = set; then
13745 :
Nick Lewycky6c58a402009-04-13 04:26:27 +000013746else
13747 ac_cv_search_ffi_call=no
13748fi
13749rm conftest.$ac_ext
13750LIBS=$ac_func_search_save_LIBS
13751fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013752{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13753echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky6c58a402009-04-13 04:26:27 +000013754ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013755if test "$ac_res" != no; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13757
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013758cat >>confdefs.h <<\_ACEOF
13759#define HAVE_FFI_CALL 1
13760_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013761
Nick Lewycky0235b622009-02-04 06:27:44 +000013762else
Jeffrey Yasskin260af332010-02-09 23:03:44 +000013763 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13764echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13765 { (exit 1); exit 1; }; }
Nick Lewycky0235b622009-02-04 06:27:44 +000013766fi
13767
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013768fi
Nick Lewycky0235b622009-02-04 06:27:44 +000013769
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013770{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13771echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13772if test "${ac_cv_search_mallinfo+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013774else
13775 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013776cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013781/* end confdefs.h. */
13782
13783/* Override any GCC internal prototype to avoid an error.
13784 Use char because int might match the return type of a GCC
13785 builtin and then its argument prototype would still apply. */
13786#ifdef __cplusplus
13787extern "C"
13788#endif
13789char mallinfo ();
13790int
13791main ()
13792{
13793return mallinfo ();
13794 ;
13795 return 0;
13796}
13797_ACEOF
13798for ac_lib in '' malloc; do
13799 if test -z "$ac_lib"; then
13800 ac_res="none required"
13801 else
13802 ac_res=-l$ac_lib
13803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13804 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013805 rm -f conftest.$ac_objext conftest$ac_exeext
13806if { (ac_try="$ac_link"
13807case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810esac
13811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_link") 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823esac
13824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833esac
13834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013839 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013840else
13841 echo "$as_me: failed program was:" >&5
13842sed 's/^/| /' conftest.$ac_ext >&5
13843
13844
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013845fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013846
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013847rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013848 conftest$ac_exeext
13849 if test "${ac_cv_search_mallinfo+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013850 break
13851fi
13852done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013853if test "${ac_cv_search_mallinfo+set}" = set; then
13854 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013855else
13856 ac_cv_search_mallinfo=no
13857fi
13858rm conftest.$ac_ext
13859LIBS=$ac_func_search_save_LIBS
13860fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013861{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13862echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013863ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013864if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13866
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013867cat >>confdefs.h <<\_ACEOF
13868#define HAVE_MALLINFO 1
13869_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013870
13871fi
13872
13873
13874if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013875
13876{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13877echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13878if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013880else
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013881 ac_check_lib_save_LIBS=$LIBS
13882LIBS="-lpthread $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013883cat >conftest.$ac_ext <<_ACEOF
13884/* confdefs.h. */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013888/* end confdefs.h. */
13889
13890/* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13893#ifdef __cplusplus
13894extern "C"
13895#endif
13896char pthread_mutex_init ();
13897int
13898main ()
13899{
13900return pthread_mutex_init ();
13901 ;
13902 return 0;
13903}
13904_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013905rm -f conftest.$ac_objext conftest$ac_exeext
13906if { (ac_try="$ac_link"
13907case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910esac
13911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_link") 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13920 { (case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13923esac
13924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_try") 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest$ac_exeext'
13930 { (case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13933esac
13934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_try") 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013939 ac_cv_lib_pthread_pthread_mutex_init=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013940else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013941 echo "$as_me: failed program was:" >&5
13942sed 's/^/| /' conftest.$ac_ext >&5
13943
13944 ac_cv_lib_pthread_pthread_mutex_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013945fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013946
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013947rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013948 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013949LIBS=$ac_check_lib_save_LIBS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013950fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013951{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13952echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13953if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013954 cat >>confdefs.h <<_ACEOF
13955#define HAVE_LIBPTHREAD 1
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +000013956_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013957
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013958 LIBS="-lpthread $LIBS"
13959
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013960fi
13961
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013962 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13963echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13964if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013966else
13967 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013968cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013973/* end confdefs.h. */
13974
13975/* Override any GCC internal prototype to avoid an error.
13976 Use char because int might match the return type of a GCC
13977 builtin and then its argument prototype would still apply. */
13978#ifdef __cplusplus
13979extern "C"
13980#endif
13981char pthread_mutex_lock ();
13982int
13983main ()
13984{
13985return pthread_mutex_lock ();
13986 ;
13987 return 0;
13988}
13989_ACEOF
13990for ac_lib in '' pthread; do
13991 if test -z "$ac_lib"; then
13992 ac_res="none required"
13993 else
13994 ac_res=-l$ac_lib
13995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13996 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013997 rm -f conftest.$ac_objext conftest$ac_exeext
13998if { (ac_try="$ac_link"
13999case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002esac
14003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_link") 2>conftest.er1
14005 ac_status=$?
14006 grep -v '^ *+' conftest.er1 >conftest.err
14007 rm -f conftest.er1
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } &&
14011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14012 { (case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015esac
14016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_try") 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest$ac_exeext'
14022 { (case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14025esac
14026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_try") 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014031 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014032else
14033 echo "$as_me: failed program was:" >&5
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
14036
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014037fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014038
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014039rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014040 conftest$ac_exeext
14041 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014042 break
14043fi
14044done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014045if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14046 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014047else
14048 ac_cv_search_pthread_mutex_lock=no
14049fi
14050rm conftest.$ac_ext
14051LIBS=$ac_func_search_save_LIBS
14052fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014053{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14054echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014055ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014056if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14058
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014059cat >>confdefs.h <<\_ACEOF
14060#define HAVE_PTHREAD_MUTEX_LOCK 1
14061_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014062
14063fi
14064
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014065 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14066echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14067if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson23c36602009-06-16 18:20:20 +000014069else
14070 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014071cat >conftest.$ac_ext <<_ACEOF
14072/* confdefs.h. */
14073_ACEOF
14074cat confdefs.h >>conftest.$ac_ext
14075cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000014076/* end confdefs.h. */
14077
14078/* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14081#ifdef __cplusplus
14082extern "C"
14083#endif
14084char pthread_rwlock_init ();
14085int
14086main ()
14087{
14088return pthread_rwlock_init ();
14089 ;
14090 return 0;
14091}
14092_ACEOF
14093for ac_lib in '' pthread; do
14094 if test -z "$ac_lib"; then
14095 ac_res="none required"
14096 else
14097 ac_res=-l$ac_lib
14098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14099 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014100 rm -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
Owen Anderson23c36602009-06-16 18:20:20 +000014134 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014135else
14136 echo "$as_me: failed program was:" >&5
14137sed 's/^/| /' conftest.$ac_ext >&5
14138
14139
Owen Anderson23c36602009-06-16 18:20:20 +000014140fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014141
Owen Anderson23c36602009-06-16 18:20:20 +000014142rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014143 conftest$ac_exeext
14144 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Anderson23c36602009-06-16 18:20:20 +000014145 break
14146fi
14147done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014148if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14149 :
Owen Anderson23c36602009-06-16 18:20:20 +000014150else
14151 ac_cv_search_pthread_rwlock_init=no
14152fi
14153rm conftest.$ac_ext
14154LIBS=$ac_func_search_save_LIBS
14155fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014156{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14157echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Anderson23c36602009-06-16 18:20:20 +000014158ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014159if test "$ac_res" != no; then
Owen Anderson23c36602009-06-16 18:20:20 +000014160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14161
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014162cat >>confdefs.h <<\_ACEOF
14163#define HAVE_PTHREAD_RWLOCK_INIT 1
14164_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000014165
14166fi
14167
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014168 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14169echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14170if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersoncc135af2009-06-25 23:10:26 +000014172else
14173 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014174cat >conftest.$ac_ext <<_ACEOF
14175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000014179/* end confdefs.h. */
14180
14181/* Override any GCC internal prototype to avoid an error.
14182 Use char because int might match the return type of a GCC
14183 builtin and then its argument prototype would still apply. */
14184#ifdef __cplusplus
14185extern "C"
14186#endif
14187char pthread_getspecific ();
14188int
14189main ()
14190{
14191return pthread_getspecific ();
14192 ;
14193 return 0;
14194}
14195_ACEOF
14196for ac_lib in '' pthread; do
14197 if test -z "$ac_lib"; then
14198 ac_res="none required"
14199 else
14200 ac_res=-l$ac_lib
14201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14202 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014203 rm -f conftest.$ac_objext conftest$ac_exeext
14204if { (ac_try="$ac_link"
14205case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208esac
14209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_link") 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221esac
14222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest$ac_exeext'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231esac
14232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
Owen Andersoncc135af2009-06-25 23:10:26 +000014237 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014238else
14239 echo "$as_me: failed program was:" >&5
14240sed 's/^/| /' conftest.$ac_ext >&5
14241
14242
Owen Andersoncc135af2009-06-25 23:10:26 +000014243fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014244
Owen Andersoncc135af2009-06-25 23:10:26 +000014245rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014246 conftest$ac_exeext
14247 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Andersoncc135af2009-06-25 23:10:26 +000014248 break
14249fi
14250done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014251if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14252 :
Owen Andersoncc135af2009-06-25 23:10:26 +000014253else
14254 ac_cv_search_pthread_getspecific=no
14255fi
14256rm conftest.$ac_ext
14257LIBS=$ac_func_search_save_LIBS
14258fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014259{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14260echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Andersoncc135af2009-06-25 23:10:26 +000014261ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014262if test "$ac_res" != no; then
Owen Andersoncc135af2009-06-25 23:10:26 +000014263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14264
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014265cat >>confdefs.h <<\_ACEOF
14266#define HAVE_PTHREAD_GETSPECIFIC 1
14267_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000014268
14269fi
14270
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014271fi
14272
14273
14274# Check whether --with-udis86 was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014275if test "${with_udis86+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014276 withval=$with_udis86;
14277 USE_UDIS86=1
14278
14279 case "$withval" in
14280 /usr/lib|yes) ;;
14281 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14282 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014283
14284{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14285echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14286if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014288else
14289 ac_check_lib_save_LIBS=$LIBS
14290LIBS="-ludis86 $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014291cat >conftest.$ac_ext <<_ACEOF
14292/* confdefs.h. */
14293_ACEOF
14294cat confdefs.h >>conftest.$ac_ext
14295cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014296/* end confdefs.h. */
14297
14298/* Override any GCC internal prototype to avoid an error.
14299 Use char because int might match the return type of a GCC
14300 builtin and then its argument prototype would still apply. */
14301#ifdef __cplusplus
14302extern "C"
14303#endif
14304char ud_init ();
14305int
14306main ()
14307{
14308return ud_init ();
14309 ;
14310 return 0;
14311}
14312_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014313rm -f conftest.$ac_objext conftest$ac_exeext
14314if { (ac_try="$ac_link"
14315case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14318esac
14319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_link") 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14328 { (case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14331esac
14332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_try") 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest$ac_exeext'
14338 { (case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341esac
14342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_try") 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014347 ac_cv_lib_udis86_ud_init=yes
14348else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014349 echo "$as_me: failed program was:" >&5
14350sed 's/^/| /' conftest.$ac_ext >&5
14351
14352 ac_cv_lib_udis86_ud_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014353fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014354
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014355rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014356 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014357LIBS=$ac_check_lib_save_LIBS
14358fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014359{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14360echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14361if test $ac_cv_lib_udis86_ud_init = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014362 cat >>confdefs.h <<_ACEOF
14363#define HAVE_LIBUDIS86 1
14364_ACEOF
14365
14366 LIBS="-ludis86 $LIBS"
14367
14368else
14369
14370 echo "Error! You need to have libudis86 around."
14371 exit -1
14372
14373fi
14374
14375
14376else
14377 USE_UDIS86=0
14378
14379fi
14380
14381
14382cat >>confdefs.h <<_ACEOF
14383#define USE_UDIS86 $USE_UDIS86
14384_ACEOF
14385
14386
14387
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014388# Check whether --with-oprofile was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014389if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014390 withval=$with_oprofile;
14391 USE_OPROFILE=1
14392
14393 case "$withval" in
14394 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014395 no) llvm_cv_oppath=
14396 USE_OPROFILE=0
14397 ;;
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014398 *) llvm_cv_oppath="${withval}/lib/oprofile"
14399 CPPFLAGS="-I${withval}/include";;
14400 esac
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014401 if test -n "$llvm_cv_oppath" ; then
14402 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014403 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14404echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14405if test "${ac_cv_search_bfd_init+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014407else
14408 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014409cat >conftest.$ac_ext <<_ACEOF
14410/* confdefs.h. */
14411_ACEOF
14412cat confdefs.h >>conftest.$ac_ext
14413cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014414/* end confdefs.h. */
14415
14416/* Override any GCC internal prototype to avoid an error.
14417 Use char because int might match the return type of a GCC
14418 builtin and then its argument prototype would still apply. */
14419#ifdef __cplusplus
14420extern "C"
14421#endif
14422char bfd_init ();
14423int
14424main ()
14425{
14426return bfd_init ();
14427 ;
14428 return 0;
14429}
14430_ACEOF
14431for ac_lib in '' bfd; do
14432 if test -z "$ac_lib"; then
14433 ac_res="none required"
14434 else
14435 ac_res=-l$ac_lib
14436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14437 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014438 rm -f conftest.$ac_objext conftest$ac_exeext
14439if { (ac_try="$ac_link"
14440case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443esac
14444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_link") 2>conftest.er1
14446 ac_status=$?
14447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } &&
14452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14453 { (case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456esac
14457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_try") 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; } &&
14462 { ac_try='test -s conftest$ac_exeext'
14463 { (case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14466esac
14467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_try") 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014472 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014473else
14474 echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014478fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014479
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014480rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014481 conftest$ac_exeext
14482 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014483 break
14484fi
14485done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014486if test "${ac_cv_search_bfd_init+set}" = set; then
14487 :
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014488else
14489 ac_cv_search_bfd_init=no
14490fi
14491rm conftest.$ac_ext
14492LIBS=$ac_func_search_save_LIBS
14493fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014494{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14495echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014496ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014497if test "$ac_res" != no; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14499
14500fi
14501
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014502 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14503echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14504if test "${ac_cv_search_op_open_agent+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014506else
14507 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014508cat >conftest.$ac_ext <<_ACEOF
14509/* confdefs.h. */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014513/* end confdefs.h. */
14514
14515/* Override any GCC internal prototype to avoid an error.
14516 Use char because int might match the return type of a GCC
14517 builtin and then its argument prototype would still apply. */
14518#ifdef __cplusplus
14519extern "C"
14520#endif
14521char op_open_agent ();
14522int
14523main ()
14524{
14525return op_open_agent ();
14526 ;
14527 return 0;
14528}
14529_ACEOF
14530for ac_lib in '' opagent; do
14531 if test -z "$ac_lib"; then
14532 ac_res="none required"
14533 else
14534 ac_res=-l$ac_lib
14535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14536 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014537 rm -f conftest.$ac_objext conftest$ac_exeext
14538if { (ac_try="$ac_link"
14539case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14542esac
14543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_link") 2>conftest.er1
14545 ac_status=$?
14546 grep -v '^ *+' conftest.er1 >conftest.err
14547 rm -f conftest.er1
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } &&
14551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14552 { (case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555esac
14556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_try") 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try='test -s conftest$ac_exeext'
14562 { (case "(($ac_try" in
14563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14565esac
14566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_try") 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014571 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014572else
14573 echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
14576
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014577fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014578
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014579rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014580 conftest$ac_exeext
14581 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014582 break
14583fi
14584done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014585if test "${ac_cv_search_op_open_agent+set}" = set; then
14586 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014587else
14588 ac_cv_search_op_open_agent=no
14589fi
14590rm conftest.$ac_ext
14591LIBS=$ac_func_search_save_LIBS
14592fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014593{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14594echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014595ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014596if test "$ac_res" != no; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14598
14599else
14600
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014601 echo "Error! You need to have libopagent around."
14602 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014603
14604fi
14605
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014606 if test "${ac_cv_header_opagent_h+set}" = set; then
14607 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14608echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14609if test "${ac_cv_header_opagent_h+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14611fi
14612{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14613echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14614else
14615 # Is the header compilable?
14616{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14617echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14618cat >conftest.$ac_ext <<_ACEOF
14619/* confdefs.h. */
14620_ACEOF
14621cat confdefs.h >>conftest.$ac_ext
14622cat >>conftest.$ac_ext <<_ACEOF
14623/* end confdefs.h. */
14624$ac_includes_default
14625#include <opagent.h>
14626_ACEOF
14627rm -f conftest.$ac_objext
14628if { (ac_try="$ac_compile"
14629case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632esac
14633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_compile") 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
14641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14642 { (case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14645esac
14646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_try") 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14655esac
14656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_try") 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661 ac_header_compiler=yes
14662else
14663 echo "$as_me: failed program was:" >&5
14664sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014665
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014666 ac_header_compiler=no
14667fi
14668
14669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14671echo "${ECHO_T}$ac_header_compiler" >&6; }
14672
14673# Is the header present?
14674{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14675echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14676cat >conftest.$ac_ext <<_ACEOF
14677/* confdefs.h. */
14678_ACEOF
14679cat confdefs.h >>conftest.$ac_ext
14680cat >>conftest.$ac_ext <<_ACEOF
14681/* end confdefs.h. */
14682#include <opagent.h>
14683_ACEOF
14684if { (ac_try="$ac_cpp conftest.$ac_ext"
14685case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688esac
14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } >/dev/null; then
14697 if test -s conftest.err; then
14698 ac_cpp_err=$ac_c_preproc_warn_flag
14699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14700 else
14701 ac_cpp_err=
14702 fi
14703else
14704 ac_cpp_err=yes
14705fi
14706if test -z "$ac_cpp_err"; then
14707 ac_header_preproc=yes
14708else
14709 echo "$as_me: failed program was:" >&5
14710sed 's/^/| /' conftest.$ac_ext >&5
14711
14712 ac_header_preproc=no
14713fi
14714
14715rm -f conftest.err conftest.$ac_ext
14716{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14717echo "${ECHO_T}$ac_header_preproc" >&6; }
14718
14719# So? What about this header?
14720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14721 yes:no: )
14722 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14723echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14725echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14726 ac_header_preproc=yes
14727 ;;
14728 no:yes:* )
14729 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14730echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14732echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14734echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14736echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14738echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14740echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14741 ( cat <<\_ASBOX
14742## ----------------------------------- ##
14743## Report this to llvmbugs@cs.uiuc.edu ##
14744## ----------------------------------- ##
14745_ASBOX
14746 ) | sed "s/^/$as_me: WARNING: /" >&2
14747 ;;
14748esac
14749{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14750echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14751if test "${ac_cv_header_opagent_h+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14753else
14754 ac_cv_header_opagent_h=$ac_header_preproc
14755fi
14756{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14757echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14758
14759fi
14760if test $ac_cv_header_opagent_h = yes; then
14761 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014762else
14763
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014764 echo "Error! You need to have opagent.h around."
14765 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014766
14767fi
14768
14769
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014770 fi
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014771
14772else
14773
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014774 USE_OPROFILE=0
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014775
14776
14777fi
14778
14779
14780cat >>confdefs.h <<_ACEOF
14781#define USE_OPROFILE $USE_OPROFILE
14782_ACEOF
14783
14784
14785
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014786
14787
14788
14789
14790
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014791ac_header_dirent=no
14792for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014793 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14794{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14795echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014798else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014799 cat >conftest.$ac_ext <<_ACEOF
14800/* confdefs.h. */
14801_ACEOF
14802cat confdefs.h >>conftest.$ac_ext
14803cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014804/* end confdefs.h. */
14805#include <sys/types.h>
14806#include <$ac_hdr>
14807
14808int
14809main ()
14810{
14811if ((DIR *) 0)
14812return 0;
14813 ;
14814 return 0;
14815}
14816_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014817rm -f conftest.$ac_objext
14818if { (ac_try="$ac_compile"
14819case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14822esac
14823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_compile") 2>conftest.er1
14825 ac_status=$?
14826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
14831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14832 { (case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835esac
14836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_try") 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; } &&
14841 { ac_try='test -s conftest.$ac_objext'
14842 { (case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14845esac
14846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_try") 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014851 eval "$as_ac_Header=yes"
14852else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014853 echo "$as_me: failed program was:" >&5
14854sed 's/^/| /' conftest.$ac_ext >&5
14855
14856 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014857fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014858
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014861ac_res=`eval echo '${'$as_ac_Header'}'`
14862 { echo "$as_me:$LINENO: result: $ac_res" >&5
14863echo "${ECHO_T}$ac_res" >&6; }
14864if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014865 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014866#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014867_ACEOF
14868
14869ac_header_dirent=$ac_hdr; break
14870fi
14871
14872done
14873# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14874if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014875 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14876echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14877if test "${ac_cv_search_opendir+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014879else
14880 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014881cat >conftest.$ac_ext <<_ACEOF
14882/* confdefs.h. */
14883_ACEOF
14884cat confdefs.h >>conftest.$ac_ext
14885cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014886/* end confdefs.h. */
14887
14888/* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14891#ifdef __cplusplus
14892extern "C"
14893#endif
14894char opendir ();
14895int
14896main ()
14897{
14898return opendir ();
14899 ;
14900 return 0;
14901}
14902_ACEOF
14903for ac_lib in '' dir; do
14904 if test -z "$ac_lib"; then
14905 ac_res="none required"
14906 else
14907 ac_res=-l$ac_lib
14908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14909 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014910 rm -f conftest.$ac_objext conftest$ac_exeext
14911if { (ac_try="$ac_link"
14912case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915esac
14916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_link") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14925 { (case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14928esac
14929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_try") 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest$ac_exeext'
14935 { (case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938esac
14939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_try") 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014944 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014945else
14946 echo "$as_me: failed program was:" >&5
14947sed 's/^/| /' conftest.$ac_ext >&5
14948
14949
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014950fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014951
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014952rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014953 conftest$ac_exeext
14954 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014955 break
14956fi
14957done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014958if test "${ac_cv_search_opendir+set}" = set; then
14959 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014960else
14961 ac_cv_search_opendir=no
14962fi
14963rm conftest.$ac_ext
14964LIBS=$ac_func_search_save_LIBS
14965fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014966{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14967echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014968ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014969if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14971
14972fi
14973
14974else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014975 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14976echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14977if test "${ac_cv_search_opendir+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014979else
14980 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014981cat >conftest.$ac_ext <<_ACEOF
14982/* confdefs.h. */
14983_ACEOF
14984cat confdefs.h >>conftest.$ac_ext
14985cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014986/* end confdefs.h. */
14987
14988/* Override any GCC internal prototype to avoid an error.
14989 Use char because int might match the return type of a GCC
14990 builtin and then its argument prototype would still apply. */
14991#ifdef __cplusplus
14992extern "C"
14993#endif
14994char opendir ();
14995int
14996main ()
14997{
14998return opendir ();
14999 ;
15000 return 0;
15001}
15002_ACEOF
15003for ac_lib in '' x; do
15004 if test -z "$ac_lib"; then
15005 ac_res="none required"
15006 else
15007 ac_res=-l$ac_lib
15008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15009 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015010 rm -f conftest.$ac_objext conftest$ac_exeext
15011if { (ac_try="$ac_link"
15012case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015esac
15016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_link") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025 { (case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028esac
15029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_try") 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038esac
15039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015044 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015045else
15046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015050fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015051
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015052rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015053 conftest$ac_exeext
15054 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015055 break
15056fi
15057done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015058if test "${ac_cv_search_opendir+set}" = set; then
15059 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015060else
15061 ac_cv_search_opendir=no
15062fi
15063rm conftest.$ac_ext
15064LIBS=$ac_func_search_save_LIBS
15065fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015066{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15067echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015068ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015069if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15071
15072fi
15073
15074fi
15075
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015076{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15077echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15078if test "${ac_cv_header_mmap_anon+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015080else
15081 ac_ext=c
15082ac_cpp='$CPP $CPPFLAGS'
15083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15085ac_compiler_gnu=$ac_cv_c_compiler_gnu
15086
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015087 cat >conftest.$ac_ext <<_ACEOF
15088/* confdefs.h. */
15089_ACEOF
15090cat confdefs.h >>conftest.$ac_ext
15091cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015092/* end confdefs.h. */
15093#include <sys/mman.h>
15094#include <unistd.h>
15095#include <fcntl.h>
15096int
15097main ()
15098{
15099mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15100 ;
15101 return 0;
15102}
15103_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015104rm -f conftest.$ac_objext
15105if { (ac_try="$ac_compile"
15106case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109esac
15110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_compile") 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
15118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15119 { (case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122esac
15123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_try") 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; } &&
15128 { ac_try='test -s conftest.$ac_objext'
15129 { (case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132esac
15133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_try") 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015138 ac_cv_header_mmap_anon=yes
15139else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015140 echo "$as_me: failed program was:" >&5
15141sed 's/^/| /' conftest.$ac_ext >&5
15142
15143 ac_cv_header_mmap_anon=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015144fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015145
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 ac_ext=c
15148ac_cpp='$CPP $CPPFLAGS'
15149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15151ac_compiler_gnu=$ac_cv_c_compiler_gnu
15152
15153
15154fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015155{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15156echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015157if test "$ac_cv_header_mmap_anon" = yes; then
15158
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015159cat >>confdefs.h <<\_ACEOF
15160#define HAVE_MMAP_ANONYMOUS 1
15161_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015162
15163fi
15164
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015165{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15166echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15167if test "${ac_cv_header_stat_broken+set}" = set; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015169else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015170 cat >conftest.$ac_ext <<_ACEOF
15171/* confdefs.h. */
15172_ACEOF
15173cat confdefs.h >>conftest.$ac_ext
15174cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015175/* end confdefs.h. */
15176#include <sys/types.h>
15177#include <sys/stat.h>
15178
15179#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015180# if S_ISBLK (S_IFDIR)
15181You lose.
15182# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015183#endif
15184
15185#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015186# if S_ISBLK (S_IFCHR)
15187You lose.
15188# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015189#endif
15190
15191#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015192# if S_ISLNK (S_IFREG)
15193You lose.
15194# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015195#endif
15196
15197#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015198# if S_ISSOCK (S_IFREG)
15199You lose.
15200# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015201#endif
15202
15203_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15205 $EGREP "You lose" >/dev/null 2>&1; then
Edwin Törökc27310c2010-01-26 08:50:50 +000015206 ac_cv_header_stat_broken=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015207else
15208 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000015209fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015210rm -f conftest*
15211
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015212fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015213{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15214echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015215if test $ac_cv_header_stat_broken = yes; then
15216
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015217cat >>confdefs.h <<\_ACEOF
15218#define STAT_MACROS_BROKEN 1
15219_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015220
15221fi
15222
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015223{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15224echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15225if test "${ac_cv_header_stdc+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015227else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015228 cat >conftest.$ac_ext <<_ACEOF
15229/* confdefs.h. */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015233/* end confdefs.h. */
15234#include <stdlib.h>
15235#include <stdarg.h>
15236#include <string.h>
15237#include <float.h>
15238
15239int
15240main ()
15241{
15242
15243 ;
15244 return 0;
15245}
15246_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015247rm -f conftest.$ac_objext
15248if { (ac_try="$ac_compile"
15249case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15252esac
15253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_compile") 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest.$ac_objext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275esac
15276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015281 ac_cv_header_stdc=yes
15282else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015287fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015288
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290
15291if test $ac_cv_header_stdc = yes; then
15292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015293 cat >conftest.$ac_ext <<_ACEOF
15294/* confdefs.h. */
15295_ACEOF
15296cat confdefs.h >>conftest.$ac_ext
15297cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015298/* end confdefs.h. */
15299#include <string.h>
15300
15301_ACEOF
15302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015303 $EGREP "memchr" >/dev/null 2>&1; then
15304 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015305else
15306 ac_cv_header_stdc=no
15307fi
15308rm -f conftest*
15309
15310fi
15311
15312if test $ac_cv_header_stdc = yes; then
15313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015314 cat >conftest.$ac_ext <<_ACEOF
15315/* confdefs.h. */
15316_ACEOF
15317cat confdefs.h >>conftest.$ac_ext
15318cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015319/* end confdefs.h. */
15320#include <stdlib.h>
15321
15322_ACEOF
15323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015324 $EGREP "free" >/dev/null 2>&1; then
15325 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015326else
15327 ac_cv_header_stdc=no
15328fi
15329rm -f conftest*
15330
15331fi
15332
15333if test $ac_cv_header_stdc = yes; then
15334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015335 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015336 :
15337else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015338 cat >conftest.$ac_ext <<_ACEOF
15339/* confdefs.h. */
15340_ACEOF
15341cat confdefs.h >>conftest.$ac_ext
15342cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015343/* end confdefs.h. */
15344#include <ctype.h>
15345#include <stdlib.h>
15346#if ((' ' & 0x0FF) == 0x020)
15347# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15348# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15349#else
15350# define ISLOWER(c) \
15351 (('a' <= (c) && (c) <= 'i') \
15352 || ('j' <= (c) && (c) <= 'r') \
15353 || ('s' <= (c) && (c) <= 'z'))
15354# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15355#endif
15356
15357#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15358int
15359main ()
15360{
15361 int i;
15362 for (i = 0; i < 256; i++)
15363 if (XOR (islower (i), ISLOWER (i))
15364 || toupper (i) != TOUPPER (i))
15365 return 2;
15366 return 0;
15367}
15368_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015369rm -f conftest$ac_exeext
15370if { (ac_try="$ac_link"
15371case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374esac
15375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_link") 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15380 { (case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383esac
15384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_try") 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015390else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015391 echo "$as_me: program exited with status $ac_status" >&5
15392echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395( exit $ac_status )
15396ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015397fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015399fi
15400
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015401
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015402fi
15403fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015404{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15405echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015406if test $ac_cv_header_stdc = yes; then
15407
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015408cat >>confdefs.h <<\_ACEOF
15409#define STDC_HEADERS 1
15410_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015411
15412fi
15413
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015414{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15415echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15416if test "${ac_cv_header_sys_wait_h+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015418else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015419 cat >conftest.$ac_ext <<_ACEOF
15420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015424/* end confdefs.h. */
15425#include <sys/types.h>
15426#include <sys/wait.h>
15427#ifndef WEXITSTATUS
15428# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15429#endif
15430#ifndef WIFEXITED
15431# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15432#endif
15433
15434int
15435main ()
15436{
15437 int s;
15438 wait (&s);
15439 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15440 ;
15441 return 0;
15442}
15443_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015444rm -f conftest.$ac_objext
15445if { (ac_try="$ac_compile"
15446case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15449esac
15450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_compile") 2>conftest.er1
15452 ac_status=$?
15453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459 { (case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462esac
15463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_try") 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest.$ac_objext'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15472esac
15473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015478 ac_cv_header_sys_wait_h=yes
15479else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015480 echo "$as_me: failed program was:" >&5
15481sed 's/^/| /' conftest.$ac_ext >&5
15482
15483 ac_cv_header_sys_wait_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015484fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015485
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015488{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15489echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015490if test $ac_cv_header_sys_wait_h = yes; then
15491
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015492cat >>confdefs.h <<\_ACEOF
15493#define HAVE_SYS_WAIT_H 1
15494_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015495
15496fi
15497
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015498{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15499echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15500if test "${ac_cv_header_time+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015502else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015503 cat >conftest.$ac_ext <<_ACEOF
15504/* confdefs.h. */
15505_ACEOF
15506cat confdefs.h >>conftest.$ac_ext
15507cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015508/* end confdefs.h. */
15509#include <sys/types.h>
15510#include <sys/time.h>
15511#include <time.h>
15512
15513int
15514main ()
15515{
15516if ((struct tm *) 0)
15517return 0;
15518 ;
15519 return 0;
15520}
15521_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015522rm -f conftest.$ac_objext
15523if { (ac_try="$ac_compile"
15524case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527esac
15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_compile") 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
15536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15537 { (case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15540esac
15541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_try") 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550esac
15551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_try") 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015556 ac_cv_header_time=yes
15557else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015558 echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561 ac_cv_header_time=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015562fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015563
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015566{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15567echo "${ECHO_T}$ac_cv_header_time" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015568if test $ac_cv_header_time = yes; then
15569
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015570cat >>confdefs.h <<\_ACEOF
15571#define TIME_WITH_SYS_TIME 1
15572_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015573
15574fi
15575
15576
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015577
15578
15579
15580
15581
15582
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015583for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015584do
15585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15591fi
15592ac_res=`eval echo '${'$as_ac_Header'}'`
15593 { echo "$as_me:$LINENO: result: $ac_res" >&5
15594echo "${ECHO_T}$ac_res" >&6; }
15595else
15596 # Is the header compilable?
15597{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15599cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h. */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h. */
15605$ac_includes_default
15606#include <$ac_header>
15607_ACEOF
15608rm -f conftest.$ac_objext
15609if { (ac_try="$ac_compile"
15610case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15613esac
15614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_compile") 2>conftest.er1
15616 ac_status=$?
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15623 { (case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15626esac
15627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_try") 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
15633 { (case "(($ac_try" in
15634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635 *) ac_try_echo=$ac_try;;
15636esac
15637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15638 (eval "$ac_try") 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 ac_header_compiler=yes
15643else
15644 echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647 ac_header_compiler=no
15648fi
15649
15650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15652echo "${ECHO_T}$ac_header_compiler" >&6; }
15653
15654# Is the header present?
15655{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15657cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663#include <$ac_header>
15664_ACEOF
15665if { (ac_try="$ac_cpp conftest.$ac_ext"
15666case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669esac
15670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } >/dev/null; then
15678 if test -s conftest.err; then
15679 ac_cpp_err=$ac_c_preproc_warn_flag
15680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15681 else
15682 ac_cpp_err=
15683 fi
15684else
15685 ac_cpp_err=yes
15686fi
15687if test -z "$ac_cpp_err"; then
15688 ac_header_preproc=yes
15689else
15690 echo "$as_me: failed program was:" >&5
15691sed 's/^/| /' conftest.$ac_ext >&5
15692
15693 ac_header_preproc=no
15694fi
15695
15696rm -f conftest.err conftest.$ac_ext
15697{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15698echo "${ECHO_T}$ac_header_preproc" >&6; }
15699
15700# So? What about this header?
15701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15702 yes:no: )
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15707 ac_header_preproc=yes
15708 ;;
15709 no:yes:* )
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15717echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15722 ( cat <<\_ASBOX
15723## ----------------------------------- ##
15724## Report this to llvmbugs@cs.uiuc.edu ##
15725## ----------------------------------- ##
15726_ASBOX
15727 ) | sed "s/^/$as_me: WARNING: /" >&2
15728 ;;
15729esac
15730{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15734else
15735 eval "$as_ac_Header=\$ac_header_preproc"
15736fi
15737ac_res=`eval echo '${'$as_ac_Header'}'`
15738 { echo "$as_me:$LINENO: result: $ac_res" >&5
15739echo "${ECHO_T}$ac_res" >&6; }
15740
15741fi
15742if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015743 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015745_ACEOF
15746
15747fi
15748
15749done
15750
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015751
15752
15753
15754
15755
15756
Douglas Gregor6230bee2009-05-18 17:21:34 +000015757for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015758do
15759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765fi
15766ac_res=`eval echo '${'$as_ac_Header'}'`
15767 { echo "$as_me:$LINENO: result: $ac_res" >&5
15768echo "${ECHO_T}$ac_res" >&6; }
15769else
15770 # Is the header compilable?
15771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15773cat >conftest.$ac_ext <<_ACEOF
15774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
15779$ac_includes_default
15780#include <$ac_header>
15781_ACEOF
15782rm -f conftest.$ac_objext
15783if { (ac_try="$ac_compile"
15784case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15787esac
15788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_compile") 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15797 { (case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15800esac
15801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_try") 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; } &&
15806 { ac_try='test -s conftest.$ac_objext'
15807 { (case "(($ac_try" in
15808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15810esac
15811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_try") 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_header_compiler=yes
15817else
15818 echo "$as_me: failed program was:" >&5
15819sed 's/^/| /' conftest.$ac_ext >&5
15820
15821 ac_header_compiler=no
15822fi
15823
15824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15826echo "${ECHO_T}$ac_header_compiler" >&6; }
15827
15828# Is the header present?
15829{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15831cat >conftest.$ac_ext <<_ACEOF
15832/* confdefs.h. */
15833_ACEOF
15834cat confdefs.h >>conftest.$ac_ext
15835cat >>conftest.$ac_ext <<_ACEOF
15836/* end confdefs.h. */
15837#include <$ac_header>
15838_ACEOF
15839if { (ac_try="$ac_cpp conftest.$ac_ext"
15840case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } >/dev/null; then
15852 if test -s conftest.err; then
15853 ac_cpp_err=$ac_c_preproc_warn_flag
15854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15855 else
15856 ac_cpp_err=
15857 fi
15858else
15859 ac_cpp_err=yes
15860fi
15861if test -z "$ac_cpp_err"; then
15862 ac_header_preproc=yes
15863else
15864 echo "$as_me: failed program was:" >&5
15865sed 's/^/| /' conftest.$ac_ext >&5
15866
15867 ac_header_preproc=no
15868fi
15869
15870rm -f conftest.err conftest.$ac_ext
15871{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15872echo "${ECHO_T}$ac_header_preproc" >&6; }
15873
15874# So? What about this header?
15875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15876 yes:no: )
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15881 ac_header_preproc=yes
15882 ;;
15883 no:yes:* )
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15891echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15896 ( cat <<\_ASBOX
15897## ----------------------------------- ##
15898## Report this to llvmbugs@cs.uiuc.edu ##
15899## ----------------------------------- ##
15900_ASBOX
15901 ) | sed "s/^/$as_me: WARNING: /" >&2
15902 ;;
15903esac
15904{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908else
15909 eval "$as_ac_Header=\$ac_header_preproc"
15910fi
15911ac_res=`eval echo '${'$as_ac_Header'}'`
15912 { echo "$as_me:$LINENO: result: $ac_res" >&5
15913echo "${ECHO_T}$ac_res" >&6; }
15914
15915fi
15916if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015917 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015919_ACEOF
15920
15921fi
15922
15923done
15924
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015925
15926
Douglas Gregor6230bee2009-05-18 17:21:34 +000015927for ac_header in utime.h windows.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015928do
15929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15935fi
15936ac_res=`eval echo '${'$as_ac_Header'}'`
15937 { echo "$as_me:$LINENO: result: $ac_res" >&5
15938echo "${ECHO_T}$ac_res" >&6; }
15939else
15940 # Is the header compilable?
15941{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15943cat >conftest.$ac_ext <<_ACEOF
15944/* confdefs.h. */
15945_ACEOF
15946cat confdefs.h >>conftest.$ac_ext
15947cat >>conftest.$ac_ext <<_ACEOF
15948/* end confdefs.h. */
15949$ac_includes_default
15950#include <$ac_header>
15951_ACEOF
15952rm -f conftest.$ac_objext
15953if { (ac_try="$ac_compile"
15954case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15957esac
15958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_compile") 2>conftest.er1
15960 ac_status=$?
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
15966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15967 { (case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970esac
15971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_try") 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; } &&
15976 { ac_try='test -s conftest.$ac_objext'
15977 { (case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15980esac
15981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_try") 2>&5
15983 ac_status=$?
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15986 ac_header_compiler=yes
15987else
15988 echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 ac_header_compiler=no
15992fi
15993
15994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15996echo "${ECHO_T}$ac_header_compiler" >&6; }
15997
15998# Is the header present?
15999{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16001cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007#include <$ac_header>
16008_ACEOF
16009if { (ac_try="$ac_cpp conftest.$ac_ext"
16010case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16013esac
16014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16016 ac_status=$?
16017 grep -v '^ *+' conftest.er1 >conftest.err
16018 rm -f conftest.er1
16019 cat conftest.err >&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } >/dev/null; then
16022 if test -s conftest.err; then
16023 ac_cpp_err=$ac_c_preproc_warn_flag
16024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16025 else
16026 ac_cpp_err=
16027 fi
16028else
16029 ac_cpp_err=yes
16030fi
16031if test -z "$ac_cpp_err"; then
16032 ac_header_preproc=yes
16033else
16034 echo "$as_me: failed program was:" >&5
16035sed 's/^/| /' conftest.$ac_ext >&5
16036
16037 ac_header_preproc=no
16038fi
16039
16040rm -f conftest.err conftest.$ac_ext
16041{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16042echo "${ECHO_T}$ac_header_preproc" >&6; }
16043
16044# So? What about this header?
16045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16046 yes:no: )
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16051 ac_header_preproc=yes
16052 ;;
16053 no:yes:* )
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16057echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16061echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16066 ( cat <<\_ASBOX
16067## ----------------------------------- ##
16068## Report this to llvmbugs@cs.uiuc.edu ##
16069## ----------------------------------- ##
16070_ASBOX
16071 ) | sed "s/^/$as_me: WARNING: /" >&2
16072 ;;
16073esac
16074{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078else
16079 eval "$as_ac_Header=\$ac_header_preproc"
16080fi
16081ac_res=`eval echo '${'$as_ac_Header'}'`
16082 { echo "$as_me:$LINENO: result: $ac_res" >&5
16083echo "${ECHO_T}$ac_res" >&6; }
16084
16085fi
16086if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000016087 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000016089_ACEOF
16090
16091fi
16092
16093done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016094
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016095
16096
16097
16098
Reid Spencer096a8142007-08-17 05:45:26 +000016099for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016100do
16101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107fi
16108ac_res=`eval echo '${'$as_ac_Header'}'`
16109 { echo "$as_me:$LINENO: result: $ac_res" >&5
16110echo "${ECHO_T}$ac_res" >&6; }
16111else
16112 # Is the header compilable?
16113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16115cat >conftest.$ac_ext <<_ACEOF
16116/* confdefs.h. */
16117_ACEOF
16118cat confdefs.h >>conftest.$ac_ext
16119cat >>conftest.$ac_ext <<_ACEOF
16120/* end confdefs.h. */
16121$ac_includes_default
16122#include <$ac_header>
16123_ACEOF
16124rm -f conftest.$ac_objext
16125if { (ac_try="$ac_compile"
16126case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129esac
16130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_compile") 2>conftest.er1
16132 ac_status=$?
16133 grep -v '^ *+' conftest.er1 >conftest.err
16134 rm -f conftest.er1
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } &&
16138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16139 { (case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16142esac
16143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_try") 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (case "(($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_try") 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_header_compiler=yes
16159else
16160 echo "$as_me: failed program was:" >&5
16161sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 ac_header_compiler=no
16164fi
16165
16166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16168echo "${ECHO_T}$ac_header_compiler" >&6; }
16169
16170# Is the header present?
16171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16173cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179#include <$ac_header>
16180_ACEOF
16181if { (ac_try="$ac_cpp conftest.$ac_ext"
16182case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185esac
16186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } >/dev/null; then
16194 if test -s conftest.err; then
16195 ac_cpp_err=$ac_c_preproc_warn_flag
16196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16197 else
16198 ac_cpp_err=
16199 fi
16200else
16201 ac_cpp_err=yes
16202fi
16203if test -z "$ac_cpp_err"; then
16204 ac_header_preproc=yes
16205else
16206 echo "$as_me: failed program was:" >&5
16207sed 's/^/| /' conftest.$ac_ext >&5
16208
16209 ac_header_preproc=no
16210fi
16211
16212rm -f conftest.err conftest.$ac_ext
16213{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16214echo "${ECHO_T}$ac_header_preproc" >&6; }
16215
16216# So? What about this header?
16217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16218 yes:no: )
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16223 ac_header_preproc=yes
16224 ;;
16225 no:yes:* )
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16238 ( cat <<\_ASBOX
16239## ----------------------------------- ##
16240## Report this to llvmbugs@cs.uiuc.edu ##
16241## ----------------------------------- ##
16242_ASBOX
16243 ) | sed "s/^/$as_me: WARNING: /" >&2
16244 ;;
16245esac
16246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16250else
16251 eval "$as_ac_Header=\$ac_header_preproc"
16252fi
16253ac_res=`eval echo '${'$as_ac_Header'}'`
16254 { echo "$as_me:$LINENO: result: $ac_res" >&5
16255echo "${ECHO_T}$ac_res" >&6; }
16256
16257fi
16258if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016259 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016261_ACEOF
16262
16263fi
16264
16265done
16266
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016267
16268
16269
16270
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000016271for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016272do
16273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279fi
16280ac_res=`eval echo '${'$as_ac_Header'}'`
16281 { echo "$as_me:$LINENO: result: $ac_res" >&5
16282echo "${ECHO_T}$ac_res" >&6; }
16283else
16284 # Is the header compilable?
16285{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16287cat >conftest.$ac_ext <<_ACEOF
16288/* confdefs.h. */
16289_ACEOF
16290cat confdefs.h >>conftest.$ac_ext
16291cat >>conftest.$ac_ext <<_ACEOF
16292/* end confdefs.h. */
16293$ac_includes_default
16294#include <$ac_header>
16295_ACEOF
16296rm -f conftest.$ac_objext
16297if { (ac_try="$ac_compile"
16298case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16301esac
16302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_compile") 2>conftest.er1
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
16310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16311 { (case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16314esac
16315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_try") 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16324esac
16325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326 (eval "$ac_try") 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_header_compiler=yes
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 ac_header_compiler=no
16336fi
16337
16338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16340echo "${ECHO_T}$ac_header_compiler" >&6; }
16341
16342# Is the header present?
16343{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16345cat >conftest.$ac_ext <<_ACEOF
16346/* confdefs.h. */
16347_ACEOF
16348cat confdefs.h >>conftest.$ac_ext
16349cat >>conftest.$ac_ext <<_ACEOF
16350/* end confdefs.h. */
16351#include <$ac_header>
16352_ACEOF
16353if { (ac_try="$ac_cpp conftest.$ac_ext"
16354case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357esac
16358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16360 ac_status=$?
16361 grep -v '^ *+' conftest.er1 >conftest.err
16362 rm -f conftest.er1
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } >/dev/null; then
16366 if test -s conftest.err; then
16367 ac_cpp_err=$ac_c_preproc_warn_flag
16368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16369 else
16370 ac_cpp_err=
16371 fi
16372else
16373 ac_cpp_err=yes
16374fi
16375if test -z "$ac_cpp_err"; then
16376 ac_header_preproc=yes
16377else
16378 echo "$as_me: failed program was:" >&5
16379sed 's/^/| /' conftest.$ac_ext >&5
16380
16381 ac_header_preproc=no
16382fi
16383
16384rm -f conftest.err conftest.$ac_ext
16385{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16386echo "${ECHO_T}$ac_header_preproc" >&6; }
16387
16388# So? What about this header?
16389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16390 yes:no: )
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16392echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16394echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16395 ac_header_preproc=yes
16396 ;;
16397 no:yes:* )
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16399echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16401echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16403echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16405echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16409echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16410 ( cat <<\_ASBOX
16411## ----------------------------------- ##
16412## Report this to llvmbugs@cs.uiuc.edu ##
16413## ----------------------------------- ##
16414_ASBOX
16415 ) | sed "s/^/$as_me: WARNING: /" >&2
16416 ;;
16417esac
16418{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422else
16423 eval "$as_ac_Header=\$ac_header_preproc"
16424fi
16425ac_res=`eval echo '${'$as_ac_Header'}'`
16426 { echo "$as_me:$LINENO: result: $ac_res" >&5
16427echo "${ECHO_T}$ac_res" >&6; }
16428
16429fi
16430if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016431 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016433_ACEOF
16434
16435fi
16436
16437done
16438
Jeffrey Yasskin8cf48c22010-03-15 04:57:55 +000016439
16440for ac_header in valgrind/valgrind.h
16441do
16442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16448fi
16449ac_res=`eval echo '${'$as_ac_Header'}'`
16450 { echo "$as_me:$LINENO: result: $ac_res" >&5
16451echo "${ECHO_T}$ac_res" >&6; }
16452else
16453 # Is the header compilable?
16454{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16456cat >conftest.$ac_ext <<_ACEOF
16457/* confdefs.h. */
16458_ACEOF
16459cat confdefs.h >>conftest.$ac_ext
16460cat >>conftest.$ac_ext <<_ACEOF
16461/* end confdefs.h. */
16462$ac_includes_default
16463#include <$ac_header>
16464_ACEOF
16465rm -f conftest.$ac_objext
16466if { (ac_try="$ac_compile"
16467case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16470esac
16471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472 (eval "$ac_compile") 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16480 { (case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16483esac
16484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_try") 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; } &&
16489 { ac_try='test -s conftest.$ac_objext'
16490 { (case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16493esac
16494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_try") 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_header_compiler=yes
16500else
16501 echo "$as_me: failed program was:" >&5
16502sed 's/^/| /' conftest.$ac_ext >&5
16503
16504 ac_header_compiler=no
16505fi
16506
16507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16509echo "${ECHO_T}$ac_header_compiler" >&6; }
16510
16511# Is the header present?
16512{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16514cat >conftest.$ac_ext <<_ACEOF
16515/* confdefs.h. */
16516_ACEOF
16517cat confdefs.h >>conftest.$ac_ext
16518cat >>conftest.$ac_ext <<_ACEOF
16519/* end confdefs.h. */
16520#include <$ac_header>
16521_ACEOF
16522if { (ac_try="$ac_cpp conftest.$ac_ext"
16523case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526esac
16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } >/dev/null; then
16535 if test -s conftest.err; then
16536 ac_cpp_err=$ac_c_preproc_warn_flag
16537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16538 else
16539 ac_cpp_err=
16540 fi
16541else
16542 ac_cpp_err=yes
16543fi
16544if test -z "$ac_cpp_err"; then
16545 ac_header_preproc=yes
16546else
16547 echo "$as_me: failed program was:" >&5
16548sed 's/^/| /' conftest.$ac_ext >&5
16549
16550 ac_header_preproc=no
16551fi
16552
16553rm -f conftest.err conftest.$ac_ext
16554{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16555echo "${ECHO_T}$ac_header_preproc" >&6; }
16556
16557# So? What about this header?
16558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16559 yes:no: )
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16561echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16563echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16564 ac_header_preproc=yes
16565 ;;
16566 no:yes:* )
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16568echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16570echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16572echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16574echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16578echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16579 ( cat <<\_ASBOX
16580## ----------------------------------- ##
16581## Report this to llvmbugs@cs.uiuc.edu ##
16582## ----------------------------------- ##
16583_ASBOX
16584 ) | sed "s/^/$as_me: WARNING: /" >&2
16585 ;;
16586esac
16587{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16591else
16592 eval "$as_ac_Header=\$ac_header_preproc"
16593fi
16594ac_res=`eval echo '${'$as_ac_Header'}'`
16595 { echo "$as_me:$LINENO: result: $ac_res" >&5
16596echo "${ECHO_T}$ac_res" >&6; }
16597
16598fi
16599if test `eval echo '${'$as_ac_Header'}'` = yes; then
16600 cat >>confdefs.h <<_ACEOF
16601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16602_ACEOF
16603
16604fi
16605
16606done
16607
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016608if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016609
16610for ac_header in pthread.h
16611do
16612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
16618fi
16619ac_res=`eval echo '${'$as_ac_Header'}'`
16620 { echo "$as_me:$LINENO: result: $ac_res" >&5
16621echo "${ECHO_T}$ac_res" >&6; }
16622else
16623 # Is the header compilable?
16624{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16626cat >conftest.$ac_ext <<_ACEOF
16627/* confdefs.h. */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
16631/* end confdefs.h. */
16632$ac_includes_default
16633#include <$ac_header>
16634_ACEOF
16635rm -f conftest.$ac_objext
16636if { (ac_try="$ac_compile"
16637case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640esac
16641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_compile") 2>conftest.er1
16643 ac_status=$?
16644 grep -v '^ *+' conftest.er1 >conftest.err
16645 rm -f conftest.er1
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16650 { (case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653esac
16654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_try") 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; } &&
16659 { ac_try='test -s conftest.$ac_objext'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16663esac
16664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 ac_header_compiler=yes
16670else
16671 echo "$as_me: failed program was:" >&5
16672sed 's/^/| /' conftest.$ac_ext >&5
16673
16674 ac_header_compiler=no
16675fi
16676
16677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16679echo "${ECHO_T}$ac_header_compiler" >&6; }
16680
16681# Is the header present?
16682{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16683echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16684cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h. */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
16689/* end confdefs.h. */
16690#include <$ac_header>
16691_ACEOF
16692if { (ac_try="$ac_cpp conftest.$ac_ext"
16693case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } >/dev/null; then
16705 if test -s conftest.err; then
16706 ac_cpp_err=$ac_c_preproc_warn_flag
16707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16708 else
16709 ac_cpp_err=
16710 fi
16711else
16712 ac_cpp_err=yes
16713fi
16714if test -z "$ac_cpp_err"; then
16715 ac_header_preproc=yes
16716else
16717 echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
16720 ac_header_preproc=no
16721fi
16722
16723rm -f conftest.err conftest.$ac_ext
16724{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16725echo "${ECHO_T}$ac_header_preproc" >&6; }
16726
16727# So? What about this header?
16728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16729 yes:no: )
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16734 ac_header_preproc=yes
16735 ;;
16736 no:yes:* )
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16749 ( cat <<\_ASBOX
16750## ----------------------------------- ##
16751## Report this to llvmbugs@cs.uiuc.edu ##
16752## ----------------------------------- ##
16753_ASBOX
16754 ) | sed "s/^/$as_me: WARNING: /" >&2
16755 ;;
16756esac
16757{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761else
16762 eval "$as_ac_Header=\$ac_header_preproc"
16763fi
16764ac_res=`eval echo '${'$as_ac_Header'}'`
16765 { echo "$as_me:$LINENO: result: $ac_res" >&5
16766echo "${ECHO_T}$ac_res" >&6; }
16767
16768fi
16769if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000016770 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000016772_ACEOF
16773 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016774
16775else
16776 HAVE_PTHREAD=0
16777
16778fi
16779
Reid Spencer096a8142007-08-17 05:45:26 +000016780done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016781
16782else
16783 HAVE_PTHREAD=0
16784
16785fi
16786
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016787if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016788
16789
16790for ac_header in ffi.h ffi/ffi.h
16791do
16792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16798fi
16799ac_res=`eval echo '${'$as_ac_Header'}'`
16800 { echo "$as_me:$LINENO: result: $ac_res" >&5
16801echo "${ECHO_T}$ac_res" >&6; }
16802else
16803 # Is the header compilable?
16804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16806cat >conftest.$ac_ext <<_ACEOF
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812$ac_includes_default
16813#include <$ac_header>
16814_ACEOF
16815rm -f conftest.$ac_objext
16816if { (ac_try="$ac_compile"
16817case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820esac
16821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_compile") 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833esac
16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest.$ac_objext'
16840 { (case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843esac
16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_try") 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_header_compiler=yes
16850else
16851 echo "$as_me: failed program was:" >&5
16852sed 's/^/| /' conftest.$ac_ext >&5
16853
16854 ac_header_compiler=no
16855fi
16856
16857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16858{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16859echo "${ECHO_T}$ac_header_compiler" >&6; }
16860
16861# Is the header present?
16862{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16864cat >conftest.$ac_ext <<_ACEOF
16865/* confdefs.h. */
16866_ACEOF
16867cat confdefs.h >>conftest.$ac_ext
16868cat >>conftest.$ac_ext <<_ACEOF
16869/* end confdefs.h. */
16870#include <$ac_header>
16871_ACEOF
16872if { (ac_try="$ac_cpp conftest.$ac_ext"
16873case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16876esac
16877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16879 ac_status=$?
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } >/dev/null; then
16885 if test -s conftest.err; then
16886 ac_cpp_err=$ac_c_preproc_warn_flag
16887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16888 else
16889 ac_cpp_err=
16890 fi
16891else
16892 ac_cpp_err=yes
16893fi
16894if test -z "$ac_cpp_err"; then
16895 ac_header_preproc=yes
16896else
16897 echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
16900 ac_header_preproc=no
16901fi
16902
16903rm -f conftest.err conftest.$ac_ext
16904{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16905echo "${ECHO_T}$ac_header_preproc" >&6; }
16906
16907# So? What about this header?
16908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16909 yes:no: )
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16914 ac_header_preproc=yes
16915 ;;
16916 no:yes:* )
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16929 ( cat <<\_ASBOX
16930## ----------------------------------- ##
16931## Report this to llvmbugs@cs.uiuc.edu ##
16932## ----------------------------------- ##
16933_ASBOX
16934 ) | sed "s/^/$as_me: WARNING: /" >&2
16935 ;;
16936esac
16937{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16941else
16942 eval "$as_ac_Header=\$ac_header_preproc"
16943fi
16944ac_res=`eval echo '${'$as_ac_Header'}'`
16945 { echo "$as_me:$LINENO: result: $ac_res" >&5
16946echo "${ECHO_T}$ac_res" >&6; }
16947
16948fi
16949if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky0235b622009-02-04 06:27:44 +000016950 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky0235b622009-02-04 06:27:44 +000016952_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000016953
16954fi
16955
16956done
16957
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016958fi
Nick Lewycky0235b622009-02-04 06:27:44 +000016959
Nick Lewycky5d713ec2009-01-20 00:52:24 +000016960
Eric Christopher189486d2010-06-22 21:01:04 +000016961for ac_header in CrashReporterClient.h
16962do
16963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16969fi
16970ac_res=`eval echo '${'$as_ac_Header'}'`
16971 { echo "$as_me:$LINENO: result: $ac_res" >&5
16972echo "${ECHO_T}$ac_res" >&6; }
16973else
16974 # Is the header compilable?
16975{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16977cat >conftest.$ac_ext <<_ACEOF
16978/* confdefs.h. */
16979_ACEOF
16980cat confdefs.h >>conftest.$ac_ext
16981cat >>conftest.$ac_ext <<_ACEOF
16982/* end confdefs.h. */
16983$ac_includes_default
16984#include <$ac_header>
16985_ACEOF
16986rm -f conftest.$ac_objext
16987if { (ac_try="$ac_compile"
16988case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16991esac
16992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_compile") 2>conftest.er1
16994 ac_status=$?
16995 grep -v '^ *+' conftest.er1 >conftest.err
16996 rm -f conftest.er1
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
17000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004esac
17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest.$ac_objext'
17011 { (case "(($ac_try" in
17012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17014esac
17015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016 (eval "$ac_try") 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; }; then
17020 ac_header_compiler=yes
17021else
17022 echo "$as_me: failed program was:" >&5
17023sed 's/^/| /' conftest.$ac_ext >&5
17024
17025 ac_header_compiler=no
17026fi
17027
17028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17029{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17030echo "${ECHO_T}$ac_header_compiler" >&6; }
17031
17032# Is the header present?
17033{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17034echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17035cat >conftest.$ac_ext <<_ACEOF
17036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
17040/* end confdefs.h. */
17041#include <$ac_header>
17042_ACEOF
17043if { (ac_try="$ac_cpp conftest.$ac_ext"
17044case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047esac
17048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } >/dev/null; then
17056 if test -s conftest.err; then
17057 ac_cpp_err=$ac_c_preproc_warn_flag
17058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17059 else
17060 ac_cpp_err=
17061 fi
17062else
17063 ac_cpp_err=yes
17064fi
17065if test -z "$ac_cpp_err"; then
17066 ac_header_preproc=yes
17067else
17068 echo "$as_me: failed program was:" >&5
17069sed 's/^/| /' conftest.$ac_ext >&5
17070
17071 ac_header_preproc=no
17072fi
17073
17074rm -f conftest.err conftest.$ac_ext
17075{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17076echo "${ECHO_T}$ac_header_preproc" >&6; }
17077
17078# So? What about this header?
17079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17080 yes:no: )
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17085 ac_header_preproc=yes
17086 ;;
17087 no:yes:* )
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17100 ( cat <<\_ASBOX
17101## ----------------------------------- ##
17102## Report this to llvmbugs@cs.uiuc.edu ##
17103## ----------------------------------- ##
17104_ASBOX
17105 ) | sed "s/^/$as_me: WARNING: /" >&2
17106 ;;
17107esac
17108{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112else
17113 eval "$as_ac_Header=\$ac_header_preproc"
17114fi
17115ac_res=`eval echo '${'$as_ac_Header'}'`
17116 { echo "$as_me:$LINENO: result: $ac_res" >&5
17117echo "${ECHO_T}$ac_res" >&6; }
17118
17119fi
17120if test `eval echo '${'$as_ac_Header'}'` = yes; then
17121 cat >>confdefs.h <<_ACEOF
17122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17123_ACEOF
17124
17125fi
17126
17127done
17128
17129
17130
Owen Anderson053d1082010-07-19 19:24:55 +000017131for ac_header in mach-o/getsect.h
17132do
17133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17139fi
17140ac_res=`eval echo '${'$as_ac_Header'}'`
17141 { echo "$as_me:$LINENO: result: $ac_res" >&5
17142echo "${ECHO_T}$ac_res" >&6; }
17143else
17144 # Is the header compilable?
17145{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17147cat >conftest.$ac_ext <<_ACEOF
17148/* confdefs.h. */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h. */
17153$ac_includes_default
17154#include <$ac_header>
17155_ACEOF
17156rm -f conftest.$ac_objext
17157if { (ac_try="$ac_compile"
17158case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161esac
17162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_compile") 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174esac
17175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } &&
17180 { ac_try='test -s conftest.$ac_objext'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184esac
17185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_header_compiler=yes
17191else
17192 echo "$as_me: failed program was:" >&5
17193sed 's/^/| /' conftest.$ac_ext >&5
17194
17195 ac_header_compiler=no
17196fi
17197
17198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17200echo "${ECHO_T}$ac_header_compiler" >&6; }
17201
17202# Is the header present?
17203{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17204echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17205cat >conftest.$ac_ext <<_ACEOF
17206/* confdefs.h. */
17207_ACEOF
17208cat confdefs.h >>conftest.$ac_ext
17209cat >>conftest.$ac_ext <<_ACEOF
17210/* end confdefs.h. */
17211#include <$ac_header>
17212_ACEOF
17213if { (ac_try="$ac_cpp conftest.$ac_ext"
17214case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17217esac
17218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } >/dev/null; then
17226 if test -s conftest.err; then
17227 ac_cpp_err=$ac_c_preproc_warn_flag
17228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17229 else
17230 ac_cpp_err=
17231 fi
17232else
17233 ac_cpp_err=yes
17234fi
17235if test -z "$ac_cpp_err"; then
17236 ac_header_preproc=yes
17237else
17238 echo "$as_me: failed program was:" >&5
17239sed 's/^/| /' conftest.$ac_ext >&5
17240
17241 ac_header_preproc=no
17242fi
17243
17244rm -f conftest.err conftest.$ac_ext
17245{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17246echo "${ECHO_T}$ac_header_preproc" >&6; }
17247
17248# So? What about this header?
17249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17250 yes:no: )
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17255 ac_header_preproc=yes
17256 ;;
17257 no:yes:* )
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17270 ( cat <<\_ASBOX
17271## ----------------------------------- ##
17272## Report this to llvmbugs@cs.uiuc.edu ##
17273## ----------------------------------- ##
17274_ASBOX
17275 ) | sed "s/^/$as_me: WARNING: /" >&2
17276 ;;
17277esac
17278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282else
17283 eval "$as_ac_Header=\$ac_header_preproc"
17284fi
17285ac_res=`eval echo '${'$as_ac_Header'}'`
17286 { echo "$as_me:$LINENO: result: $ac_res" >&5
17287echo "${ECHO_T}$ac_res" >&6; }
17288
17289fi
17290if test `eval echo '${'$as_ac_Header'}'` = yes; then
17291 cat >>confdefs.h <<_ACEOF
17292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17293_ACEOF
17294
17295fi
17296
17297done
17298
17299
17300
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017301
Edwin Törökc27310c2010-01-26 08:50:50 +000017302
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017303 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17304echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17305if test "${ac_cv_huge_val_sanity+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017307else
17308
17309 ac_ext=cpp
17310ac_cpp='$CXXCPP $CPPFLAGS'
17311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17314
Eric Christopherd0750262010-03-02 05:06:54 +000017315 ac_save_CXXFLAGS=$CXXFLAGS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017316 CXXFLAGS=-pedantic
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017317 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017318 ac_cv_huge_val_sanity=yes
17319else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017320 cat >conftest.$ac_ext <<_ACEOF
17321/* confdefs.h. */
17322_ACEOF
17323cat confdefs.h >>conftest.$ac_ext
17324cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017325/* end confdefs.h. */
17326#include <math.h>
17327int
17328main ()
17329{
17330double x = HUGE_VAL; return x != x;
17331 ;
17332 return 0;
17333}
17334_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017335rm -f conftest$ac_exeext
17336if { (ac_try="$ac_link"
17337case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17340esac
17341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342 (eval "$ac_link") 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17346 { (case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349esac
17350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_try") 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017355 ac_cv_huge_val_sanity=yes
17356else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017357 echo "$as_me: program exited with status $ac_status" >&5
17358echo "$as_me: failed program was:" >&5
17359sed 's/^/| /' conftest.$ac_ext >&5
17360
17361( exit $ac_status )
17362ac_cv_huge_val_sanity=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017363fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017365fi
17366
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017367
Eric Christopherd0750262010-03-02 05:06:54 +000017368 CXXFLAGS=$ac_save_CXXFLAGS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017369 ac_ext=c
17370ac_cpp='$CPP $CPPFLAGS'
17371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17373ac_compiler_gnu=$ac_cv_c_compiler_gnu
17374
17375
17376fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017377{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17378echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017379 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17380
17381
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017382{ echo "$as_me:$LINENO: checking for pid_t" >&5
17383echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17384if test "${ac_cv_type_pid_t+set}" = set; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17386else
17387 cat >conftest.$ac_ext <<_ACEOF
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
17393$ac_includes_default
17394typedef pid_t ac__type_new_;
17395int
17396main ()
17397{
17398if ((ac__type_new_ *) 0)
17399 return 0;
17400if (sizeof (ac__type_new_))
17401 return 0;
17402 ;
17403 return 0;
17404}
17405_ACEOF
17406rm -f conftest.$ac_objext
17407if { (ac_try="$ac_compile"
17408case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411esac
17412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_compile") 2>conftest.er1
17414 ac_status=$?
17415 grep -v '^ *+' conftest.er1 >conftest.err
17416 rm -f conftest.er1
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
17420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17421 { (case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424esac
17425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_try") 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try='test -s conftest.$ac_objext'
17431 { (case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17434esac
17435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_try") 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 ac_cv_type_pid_t=yes
17441else
17442 echo "$as_me: failed program was:" >&5
17443sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017444
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017445 ac_cv_type_pid_t=no
17446fi
17447
17448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449fi
17450{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17451echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17452if test $ac_cv_type_pid_t = yes; then
17453 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017454else
17455
17456cat >>confdefs.h <<_ACEOF
17457#define pid_t int
17458_ACEOF
17459
17460fi
17461
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017462{ echo "$as_me:$LINENO: checking for size_t" >&5
17463echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17464if test "${ac_cv_type_size_t+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466else
17467 cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
17473$ac_includes_default
17474typedef size_t ac__type_new_;
17475int
17476main ()
17477{
17478if ((ac__type_new_ *) 0)
17479 return 0;
17480if (sizeof (ac__type_new_))
17481 return 0;
17482 ;
17483 return 0;
17484}
17485_ACEOF
17486rm -f conftest.$ac_objext
17487if { (ac_try="$ac_compile"
17488case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17491esac
17492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493 (eval "$ac_compile") 2>conftest.er1
17494 ac_status=$?
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17501 { (case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504esac
17505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_try") 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try='test -s conftest.$ac_objext'
17511 { (case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17514esac
17515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_try") 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_cv_type_size_t=yes
17521else
17522 echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017524
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017525 ac_cv_type_size_t=no
17526fi
17527
17528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17529fi
17530{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17531echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17532if test $ac_cv_type_size_t = yes; then
17533 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017534else
17535
17536cat >>confdefs.h <<_ACEOF
17537#define size_t unsigned int
17538_ACEOF
17539
17540fi
17541
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017542
17543cat >>confdefs.h <<_ACEOF
Edwin Törökc27310c2010-01-26 08:50:50 +000017544#define RETSIGTYPE void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017545_ACEOF
17546
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017547{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17548echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17549if test "${ac_cv_struct_tm+set}" = set; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017551else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017552 cat >conftest.$ac_ext <<_ACEOF
17553/* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017557/* end confdefs.h. */
17558#include <sys/types.h>
17559#include <time.h>
17560
17561int
17562main ()
17563{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017564struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017565 ;
17566 return 0;
17567}
17568_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017569rm -f conftest.$ac_objext
17570if { (ac_try="$ac_compile"
17571case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17574esac
17575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_compile") 2>conftest.er1
17577 ac_status=$?
17578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587esac
17588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest.$ac_objext'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597esac
17598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017603 ac_cv_struct_tm=time.h
17604else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017605 echo "$as_me: failed program was:" >&5
17606sed 's/^/| /' conftest.$ac_ext >&5
17607
17608 ac_cv_struct_tm=sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017609fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017610
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17612fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017613{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17614echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017615if test $ac_cv_struct_tm = sys/time.h; then
17616
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017617cat >>confdefs.h <<\_ACEOF
17618#define TM_IN_SYS_TIME 1
17619_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017620
17621fi
17622
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017623{ echo "$as_me:$LINENO: checking for int64_t" >&5
17624echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17625if test "${ac_cv_type_int64_t+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627else
17628 cat >conftest.$ac_ext <<_ACEOF
17629/* confdefs.h. */
17630_ACEOF
17631cat confdefs.h >>conftest.$ac_ext
17632cat >>conftest.$ac_ext <<_ACEOF
17633/* end confdefs.h. */
17634$ac_includes_default
17635typedef int64_t ac__type_new_;
17636int
17637main ()
17638{
17639if ((ac__type_new_ *) 0)
17640 return 0;
17641if (sizeof (ac__type_new_))
17642 return 0;
17643 ;
17644 return 0;
17645}
17646_ACEOF
17647rm -f conftest.$ac_objext
17648if { (ac_try="$ac_compile"
17649case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652esac
17653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_compile") 2>conftest.er1
17655 ac_status=$?
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17662 { (case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17665esac
17666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_try") 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest.$ac_objext'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17675esac
17676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_cv_type_int64_t=yes
17682else
17683 echo "$as_me: failed program was:" >&5
17684sed 's/^/| /' conftest.$ac_ext >&5
17685
17686 ac_cv_type_int64_t=no
17687fi
17688
17689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17690fi
17691{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17692echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17693if test $ac_cv_type_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017694
17695cat >>confdefs.h <<_ACEOF
17696#define HAVE_INT64_T 1
17697_ACEOF
17698
17699
17700else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017701 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17702echo "$as_me: error: Type int64_t required but not found" >&2;}
17703 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017704fi
17705
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017706{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17707echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17708if test "${ac_cv_type_uint64_t+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17710else
17711 cat >conftest.$ac_ext <<_ACEOF
17712/* confdefs.h. */
17713_ACEOF
17714cat confdefs.h >>conftest.$ac_ext
17715cat >>conftest.$ac_ext <<_ACEOF
17716/* end confdefs.h. */
17717$ac_includes_default
17718typedef uint64_t ac__type_new_;
17719int
17720main ()
17721{
17722if ((ac__type_new_ *) 0)
17723 return 0;
17724if (sizeof (ac__type_new_))
17725 return 0;
17726 ;
17727 return 0;
17728}
17729_ACEOF
17730rm -f conftest.$ac_objext
17731if { (ac_try="$ac_compile"
17732case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735esac
17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_compile") 2>conftest.er1
17738 ac_status=$?
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17745 { (case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748esac
17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_try") 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } &&
17754 { ac_try='test -s conftest.$ac_objext'
17755 { (case "(($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_try") 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_type_uint64_t=yes
17765else
17766 echo "$as_me: failed program was:" >&5
17767sed 's/^/| /' conftest.$ac_ext >&5
17768
17769 ac_cv_type_uint64_t=no
17770fi
17771
17772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773fi
17774{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17775echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17776if test $ac_cv_type_uint64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017777
17778cat >>confdefs.h <<_ACEOF
17779#define HAVE_UINT64_T 1
17780_ACEOF
17781
17782
17783else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017784 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17785echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17786if test "${ac_cv_type_u_int64_t+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17788else
17789 cat >conftest.$ac_ext <<_ACEOF
17790/* confdefs.h. */
17791_ACEOF
17792cat confdefs.h >>conftest.$ac_ext
17793cat >>conftest.$ac_ext <<_ACEOF
17794/* end confdefs.h. */
17795$ac_includes_default
17796typedef u_int64_t ac__type_new_;
17797int
17798main ()
17799{
17800if ((ac__type_new_ *) 0)
17801 return 0;
17802if (sizeof (ac__type_new_))
17803 return 0;
17804 ;
17805 return 0;
17806}
17807_ACEOF
17808rm -f conftest.$ac_objext
17809if { (ac_try="$ac_compile"
17810case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813esac
17814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_compile") 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17823 { (case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17826esac
17827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_try") 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836esac
17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_try") 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_type_u_int64_t=yes
17843else
17844 echo "$as_me: failed program was:" >&5
17845sed 's/^/| /' conftest.$ac_ext >&5
17846
17847 ac_cv_type_u_int64_t=no
17848fi
17849
17850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851fi
17852{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17853echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17854if test $ac_cv_type_u_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017855
17856cat >>confdefs.h <<_ACEOF
17857#define HAVE_U_INT64_T 1
17858_ACEOF
17859
17860
17861else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017862 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17863echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17864 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017865fi
17866
17867fi
17868
17869
17870
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017871
17872
17873
17874
17875
17876
17877
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017878for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017879do
17880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17885else
17886 cat >conftest.$ac_ext <<_ACEOF
17887/* confdefs.h. */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h. */
17892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17894#define $ac_func innocuous_$ac_func
17895
17896/* System header to define __stub macros and hopefully few prototypes,
17897 which can conflict with char $ac_func (); below.
17898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17899 <limits.h> exists even on freestanding compilers. */
17900
17901#ifdef __STDC__
17902# include <limits.h>
17903#else
17904# include <assert.h>
17905#endif
17906
17907#undef $ac_func
17908
17909/* Override any GCC internal prototype to avoid an error.
17910 Use char because int might match the return type of a GCC
17911 builtin and then its argument prototype would still apply. */
17912#ifdef __cplusplus
17913extern "C"
17914#endif
17915char $ac_func ();
17916/* The GNU C library defines this for functions which it implements
17917 to always fail with ENOSYS. Some functions are actually named
17918 something starting with __ and the normal name is an alias. */
17919#if defined __stub_$ac_func || defined __stub___$ac_func
17920choke me
17921#endif
17922
17923int
17924main ()
17925{
17926return $ac_func ();
17927 ;
17928 return 0;
17929}
17930_ACEOF
17931rm -f conftest.$ac_objext conftest$ac_exeext
17932if { (ac_try="$ac_link"
17933case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936esac
17937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17946 { (case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949esac
17950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_try") 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest$ac_exeext'
17956 { (case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17959esac
17960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_try") 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 eval "$as_ac_var=yes"
17966else
17967 echo "$as_me: failed program was:" >&5
17968sed 's/^/| /' conftest.$ac_ext >&5
17969
17970 eval "$as_ac_var=no"
17971fi
17972
17973rm -f core conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
17975fi
17976ac_res=`eval echo '${'$as_ac_var'}'`
17977 { echo "$as_me:$LINENO: result: $ac_res" >&5
17978echo "${ECHO_T}$ac_res" >&6; }
17979if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017980 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017982_ACEOF
17983
17984fi
17985done
17986
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017987
17988
17989
17990
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017991for ac_func in powf fmodf strtof round
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017992do
17993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17994{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17996if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17998else
17999 cat >conftest.$ac_ext <<_ACEOF
18000/* confdefs.h. */
18001_ACEOF
18002cat confdefs.h >>conftest.$ac_ext
18003cat >>conftest.$ac_ext <<_ACEOF
18004/* end confdefs.h. */
18005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18007#define $ac_func innocuous_$ac_func
18008
18009/* System header to define __stub macros and hopefully few prototypes,
18010 which can conflict with char $ac_func (); below.
18011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18012 <limits.h> exists even on freestanding compilers. */
18013
18014#ifdef __STDC__
18015# include <limits.h>
18016#else
18017# include <assert.h>
18018#endif
18019
18020#undef $ac_func
18021
18022/* Override any GCC internal prototype to avoid an error.
18023 Use char because int might match the return type of a GCC
18024 builtin and then its argument prototype would still apply. */
18025#ifdef __cplusplus
18026extern "C"
18027#endif
18028char $ac_func ();
18029/* The GNU C library defines this for functions which it implements
18030 to always fail with ENOSYS. Some functions are actually named
18031 something starting with __ and the normal name is an alias. */
18032#if defined __stub_$ac_func || defined __stub___$ac_func
18033choke me
18034#endif
18035
18036int
18037main ()
18038{
18039return $ac_func ();
18040 ;
18041 return 0;
18042}
18043_ACEOF
18044rm -f conftest.$ac_objext conftest$ac_exeext
18045if { (ac_try="$ac_link"
18046case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049esac
18050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_link") 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18059 { (case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18062esac
18063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_try") 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest$ac_exeext'
18069 { (case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18072esac
18073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_try") 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 eval "$as_ac_var=yes"
18079else
18080 echo "$as_me: failed program was:" >&5
18081sed 's/^/| /' conftest.$ac_ext >&5
18082
18083 eval "$as_ac_var=no"
18084fi
18085
18086rm -f core conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18088fi
18089ac_res=`eval echo '${'$as_ac_var'}'`
18090 { echo "$as_me:$LINENO: result: $ac_res" >&5
18091echo "${ECHO_T}$ac_res" >&6; }
18092if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018093 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018095_ACEOF
18096
18097fi
18098done
18099
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018100
18101
18102
18103
18104
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018105for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018106do
18107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18108{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18110if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18112else
18113 cat >conftest.$ac_ext <<_ACEOF
18114/* confdefs.h. */
18115_ACEOF
18116cat confdefs.h >>conftest.$ac_ext
18117cat >>conftest.$ac_ext <<_ACEOF
18118/* end confdefs.h. */
18119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18121#define $ac_func innocuous_$ac_func
18122
18123/* System header to define __stub macros and hopefully few prototypes,
18124 which can conflict with char $ac_func (); below.
18125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18126 <limits.h> exists even on freestanding compilers. */
18127
18128#ifdef __STDC__
18129# include <limits.h>
18130#else
18131# include <assert.h>
18132#endif
18133
18134#undef $ac_func
18135
18136/* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18139#ifdef __cplusplus
18140extern "C"
18141#endif
18142char $ac_func ();
18143/* The GNU C library defines this for functions which it implements
18144 to always fail with ENOSYS. Some functions are actually named
18145 something starting with __ and the normal name is an alias. */
18146#if defined __stub_$ac_func || defined __stub___$ac_func
18147choke me
18148#endif
18149
18150int
18151main ()
18152{
18153return $ac_func ();
18154 ;
18155 return 0;
18156}
18157_ACEOF
18158rm -f conftest.$ac_objext conftest$ac_exeext
18159if { (ac_try="$ac_link"
18160case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18163esac
18164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_link") 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18173 { (case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18176esac
18177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_try") 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest$ac_exeext'
18183 { (case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18186esac
18187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 eval "$as_ac_var=yes"
18193else
18194 echo "$as_me: failed program was:" >&5
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 eval "$as_ac_var=no"
18198fi
18199
18200rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18202fi
18203ac_res=`eval echo '${'$as_ac_var'}'`
18204 { echo "$as_me:$LINENO: result: $ac_res" >&5
18205echo "${ECHO_T}$ac_res" >&6; }
18206if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018207 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018209_ACEOF
18210
18211fi
18212done
18213
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018214
18215
18216
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018217for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018218do
18219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18220{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225 cat >conftest.$ac_ext <<_ACEOF
18226/* confdefs.h. */
18227_ACEOF
18228cat confdefs.h >>conftest.$ac_ext
18229cat >>conftest.$ac_ext <<_ACEOF
18230/* end confdefs.h. */
18231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18233#define $ac_func innocuous_$ac_func
18234
18235/* System header to define __stub macros and hopefully few prototypes,
18236 which can conflict with char $ac_func (); below.
18237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18238 <limits.h> exists even on freestanding compilers. */
18239
18240#ifdef __STDC__
18241# include <limits.h>
18242#else
18243# include <assert.h>
18244#endif
18245
18246#undef $ac_func
18247
18248/* Override any GCC internal prototype to avoid an error.
18249 Use char because int might match the return type of a GCC
18250 builtin and then its argument prototype would still apply. */
18251#ifdef __cplusplus
18252extern "C"
18253#endif
18254char $ac_func ();
18255/* The GNU C library defines this for functions which it implements
18256 to always fail with ENOSYS. Some functions are actually named
18257 something starting with __ and the normal name is an alias. */
18258#if defined __stub_$ac_func || defined __stub___$ac_func
18259choke me
18260#endif
18261
18262int
18263main ()
18264{
18265return $ac_func ();
18266 ;
18267 return 0;
18268}
18269_ACEOF
18270rm -f conftest.$ac_objext conftest$ac_exeext
18271if { (ac_try="$ac_link"
18272case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275esac
18276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_link") 2>conftest.er1
18278 ac_status=$?
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288esac
18289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest$ac_exeext'
18295 { (case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18298esac
18299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_try") 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 eval "$as_ac_var=yes"
18305else
18306 echo "$as_me: failed program was:" >&5
18307sed 's/^/| /' conftest.$ac_ext >&5
18308
18309 eval "$as_ac_var=no"
18310fi
18311
18312rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18314fi
18315ac_res=`eval echo '${'$as_ac_var'}'`
18316 { echo "$as_me:$LINENO: result: $ac_res" >&5
18317echo "${ECHO_T}$ac_res" >&6; }
18318if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018319 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018321_ACEOF
18322
18323fi
18324done
18325
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018326
18327
18328
18329
18330
Eric Christopher5ce88cb2010-04-16 05:14:21 +000018331
18332for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018333do
18334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18335{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18337if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339else
18340 cat >conftest.$ac_ext <<_ACEOF
18341/* confdefs.h. */
18342_ACEOF
18343cat confdefs.h >>conftest.$ac_ext
18344cat >>conftest.$ac_ext <<_ACEOF
18345/* end confdefs.h. */
18346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18348#define $ac_func innocuous_$ac_func
18349
18350/* System header to define __stub macros and hopefully few prototypes,
18351 which can conflict with char $ac_func (); below.
18352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18353 <limits.h> exists even on freestanding compilers. */
18354
18355#ifdef __STDC__
18356# include <limits.h>
18357#else
18358# include <assert.h>
18359#endif
18360
18361#undef $ac_func
18362
18363/* Override any GCC internal prototype to avoid an error.
18364 Use char because int might match the return type of a GCC
18365 builtin and then its argument prototype would still apply. */
18366#ifdef __cplusplus
18367extern "C"
18368#endif
18369char $ac_func ();
18370/* The GNU C library defines this for functions which it implements
18371 to always fail with ENOSYS. Some functions are actually named
18372 something starting with __ and the normal name is an alias. */
18373#if defined __stub_$ac_func || defined __stub___$ac_func
18374choke me
18375#endif
18376
18377int
18378main ()
18379{
18380return $ac_func ();
18381 ;
18382 return 0;
18383}
18384_ACEOF
18385rm -f conftest.$ac_objext conftest$ac_exeext
18386if { (ac_try="$ac_link"
18387case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390esac
18391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_link") 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18400 { (case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18403esac
18404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_try") 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest$ac_exeext'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413esac
18414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 eval "$as_ac_var=yes"
18420else
18421 echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424 eval "$as_ac_var=no"
18425fi
18426
18427rm -f core conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18429fi
18430ac_res=`eval echo '${'$as_ac_var'}'`
18431 { echo "$as_me:$LINENO: result: $ac_res" >&5
18432echo "${ECHO_T}$ac_res" >&6; }
18433if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000018434 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000018436_ACEOF
18437
18438fi
18439done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018440
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018441
18442
18443
18444
Jeffrey Yasskin41a338b2009-09-25 21:07:20 +000018445for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018446do
18447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18448{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18450if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452else
18453 cat >conftest.$ac_ext <<_ACEOF
18454/* confdefs.h. */
18455_ACEOF
18456cat confdefs.h >>conftest.$ac_ext
18457cat >>conftest.$ac_ext <<_ACEOF
18458/* end confdefs.h. */
18459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18461#define $ac_func innocuous_$ac_func
18462
18463/* System header to define __stub macros and hopefully few prototypes,
18464 which can conflict with char $ac_func (); below.
18465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18466 <limits.h> exists even on freestanding compilers. */
18467
18468#ifdef __STDC__
18469# include <limits.h>
18470#else
18471# include <assert.h>
18472#endif
18473
18474#undef $ac_func
18475
18476/* Override any GCC internal prototype to avoid an error.
18477 Use char because int might match the return type of a GCC
18478 builtin and then its argument prototype would still apply. */
18479#ifdef __cplusplus
18480extern "C"
18481#endif
18482char $ac_func ();
18483/* The GNU C library defines this for functions which it implements
18484 to always fail with ENOSYS. Some functions are actually named
18485 something starting with __ and the normal name is an alias. */
18486#if defined __stub_$ac_func || defined __stub___$ac_func
18487choke me
18488#endif
18489
18490int
18491main ()
18492{
18493return $ac_func ();
18494 ;
18495 return 0;
18496}
18497_ACEOF
18498rm -f conftest.$ac_objext conftest$ac_exeext
18499if { (ac_try="$ac_link"
18500case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18503esac
18504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_link") 2>conftest.er1
18506 ac_status=$?
18507 grep -v '^ *+' conftest.er1 >conftest.err
18508 rm -f conftest.er1
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516esac
18517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest$ac_exeext'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526esac
18527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 eval "$as_ac_var=yes"
18533else
18534 echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537 eval "$as_ac_var=no"
18538fi
18539
18540rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18542fi
18543ac_res=`eval echo '${'$as_ac_var'}'`
18544 { echo "$as_me:$LINENO: result: $ac_res" >&5
18545echo "${ECHO_T}$ac_res" >&6; }
18546if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018547 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018549_ACEOF
18550
18551fi
18552done
18553
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018554
18555
18556
18557
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018558for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018559do
18560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18561{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18563if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18565else
18566 cat >conftest.$ac_ext <<_ACEOF
18567/* confdefs.h. */
18568_ACEOF
18569cat confdefs.h >>conftest.$ac_ext
18570cat >>conftest.$ac_ext <<_ACEOF
18571/* end confdefs.h. */
18572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18574#define $ac_func innocuous_$ac_func
18575
18576/* System header to define __stub macros and hopefully few prototypes,
18577 which can conflict with char $ac_func (); below.
18578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18579 <limits.h> exists even on freestanding compilers. */
18580
18581#ifdef __STDC__
18582# include <limits.h>
18583#else
18584# include <assert.h>
18585#endif
18586
18587#undef $ac_func
18588
18589/* Override any GCC internal prototype to avoid an error.
18590 Use char because int might match the return type of a GCC
18591 builtin and then its argument prototype would still apply. */
18592#ifdef __cplusplus
18593extern "C"
18594#endif
18595char $ac_func ();
18596/* The GNU C library defines this for functions which it implements
18597 to always fail with ENOSYS. Some functions are actually named
18598 something starting with __ and the normal name is an alias. */
18599#if defined __stub_$ac_func || defined __stub___$ac_func
18600choke me
18601#endif
18602
18603int
18604main ()
18605{
18606return $ac_func ();
18607 ;
18608 return 0;
18609}
18610_ACEOF
18611rm -f conftest.$ac_objext conftest$ac_exeext
18612if { (ac_try="$ac_link"
18613case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18616esac
18617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_link") 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18626 { (case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18629esac
18630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_try") 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest$ac_exeext'
18636 { (case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18639esac
18640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_try") 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 eval "$as_ac_var=yes"
18646else
18647 echo "$as_me: failed program was:" >&5
18648sed 's/^/| /' conftest.$ac_ext >&5
18649
18650 eval "$as_ac_var=no"
18651fi
18652
18653rm -f core conftest.err conftest.$ac_objext \
18654 conftest$ac_exeext conftest.$ac_ext
18655fi
18656ac_res=`eval echo '${'$as_ac_var'}'`
18657 { echo "$as_me:$LINENO: result: $ac_res" >&5
18658echo "${ECHO_T}$ac_res" >&6; }
18659if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018660 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018662_ACEOF
18663
18664fi
18665done
18666
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018667
18668
18669
18670
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018671for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018672do
18673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678else
18679 cat >conftest.$ac_ext <<_ACEOF
18680/* confdefs.h. */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h. */
18685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18687#define $ac_func innocuous_$ac_func
18688
18689/* System header to define __stub macros and hopefully few prototypes,
18690 which can conflict with char $ac_func (); below.
18691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692 <limits.h> exists even on freestanding compilers. */
18693
18694#ifdef __STDC__
18695# include <limits.h>
18696#else
18697# include <assert.h>
18698#endif
18699
18700#undef $ac_func
18701
18702/* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18705#ifdef __cplusplus
18706extern "C"
18707#endif
18708char $ac_func ();
18709/* The GNU C library defines this for functions which it implements
18710 to always fail with ENOSYS. Some functions are actually named
18711 something starting with __ and the normal name is an alias. */
18712#if defined __stub_$ac_func || defined __stub___$ac_func
18713choke me
18714#endif
18715
18716int
18717main ()
18718{
18719return $ac_func ();
18720 ;
18721 return 0;
18722}
18723_ACEOF
18724rm -f conftest.$ac_objext conftest$ac_exeext
18725if { (ac_try="$ac_link"
18726case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18739 { (case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } &&
18748 { ac_try='test -s conftest$ac_exeext'
18749 { (case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18752esac
18753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_try") 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 eval "$as_ac_var=yes"
18759else
18760 echo "$as_me: failed program was:" >&5
18761sed 's/^/| /' conftest.$ac_ext >&5
18762
18763 eval "$as_ac_var=no"
18764fi
18765
18766rm -f core conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18768fi
18769ac_res=`eval echo '${'$as_ac_var'}'`
18770 { echo "$as_me:$LINENO: result: $ac_res" >&5
18771echo "${ECHO_T}$ac_res" >&6; }
18772if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018773 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018775_ACEOF
18776
18777fi
18778done
18779
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018780{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18781echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18782if test "${llvm_cv_c_printf_a+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018784else
18785 ac_ext=c
18786ac_cpp='$CPP $CPPFLAGS'
18787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18789ac_compiler_gnu=$ac_cv_c_compiler_gnu
18790
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018791 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018792 llvmac_cv_c_printf_a=no
18793else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018794 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018795
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018796 /* confdefs.h. */
18797_ACEOF
18798cat confdefs.h >>conftest.$ac_ext
18799cat >>conftest.$ac_ext <<_ACEOF
18800/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000018801
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018802#include <stdio.h>
18803#include <stdlib.h>
18804
18805int
18806main ()
18807{
18808
18809volatile double A, B;
18810char Buffer[100];
18811A = 1;
18812A /= 10.0;
18813sprintf(Buffer, "%a", A);
18814B = atof(Buffer);
18815if (A != B)
18816 return (1);
18817if (A != 0x1.999999999999ap-4)
18818 return (1);
18819return (0);
18820 ;
18821 return 0;
18822}
18823_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018824rm -f conftest$ac_exeext
18825if { (ac_try="$ac_link"
18826case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829esac
18830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_link") 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838esac
18839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018844 llvm_cv_c_printf_a=yes
18845else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018846 echo "$as_me: program exited with status $ac_status" >&5
18847echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
18850( exit $ac_status )
18851llvmac_cv_c_printf_a=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018852fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018854fi
18855
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018856
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018857 ac_ext=c
18858ac_cpp='$CPP $CPPFLAGS'
18859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18861ac_compiler_gnu=$ac_cv_c_compiler_gnu
18862
18863fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018864{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18865echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018866 if test "$llvm_cv_c_printf_a" = "yes"; then
18867
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018868cat >>confdefs.h <<\_ACEOF
18869#define HAVE_PRINTF_A 1
18870_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018871
18872 fi
18873
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018874
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018875{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18876echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18877if test "${ac_cv_func_rand48+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018879else
18880 ac_ext=cpp
18881ac_cpp='$CXXCPP $CPPFLAGS'
18882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18885
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018886 cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018891/* end confdefs.h. */
18892#include <stdlib.h>
18893int
18894main ()
18895{
18896srand48(0);lrand48();drand48();
18897 ;
18898 return 0;
18899}
18900_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018901rm -f conftest.$ac_objext
18902if { (ac_try="$ac_compile"
18903case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18906esac
18907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_compile") 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18916 { (case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919esac
18920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_try") 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest.$ac_objext'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929esac
18930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018935 ac_cv_func_rand48=yes
18936else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018937 echo "$as_me: failed program was:" >&5
18938sed 's/^/| /' conftest.$ac_ext >&5
18939
18940 ac_cv_func_rand48=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018941fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018942
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18944 ac_ext=c
18945ac_cpp='$CPP $CPPFLAGS'
18946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18948ac_compiler_gnu=$ac_cv_c_compiler_gnu
18949
18950fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018951{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18952echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018953
18954if test "$ac_cv_func_rand48" = "yes" ; then
18955
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018956cat >>confdefs.h <<\_ACEOF
18957#define HAVE_RAND48 1
18958_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018959
18960fi
18961
18962
Edwin Törökc27310c2010-01-26 08:50:50 +000018963
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018964{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18965echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18966if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018968else
18969 ac_ext=cpp
18970ac_cpp='$CXXCPP $CPPFLAGS'
18971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18974
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018975 cat >conftest.$ac_ext <<_ACEOF
18976/* confdefs.h. */
18977_ACEOF
18978cat confdefs.h >>conftest.$ac_ext
18979cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018980/* end confdefs.h. */
18981#include <math.h>
18982int
18983main ()
18984{
18985float f; isnan(f);
18986 ;
18987 return 0;
18988}
18989_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018990rm -f conftest.$ac_objext
18991if { (ac_try="$ac_compile"
18992case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995esac
18996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_compile") 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
19004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try='test -s conftest.$ac_objext'
19015 { (case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018esac
19019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_try") 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019024 ac_cv_func_isnan_in_math_h=yes
19025else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019026 echo "$as_me: failed program was:" >&5
19027sed 's/^/| /' conftest.$ac_ext >&5
19028
19029 ac_cv_func_isnan_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019030fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019031
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033 ac_ext=c
19034ac_cpp='$CPP $CPPFLAGS'
19035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19037ac_compiler_gnu=$ac_cv_c_compiler_gnu
19038
19039fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019040{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19041echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019042
19043
19044if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19045
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019046cat >>confdefs.h <<\_ACEOF
19047#define HAVE_ISNAN_IN_MATH_H 1
19048_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019049
19050fi
19051
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019052{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19053echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19054if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019056else
19057 ac_ext=cpp
19058ac_cpp='$CXXCPP $CPPFLAGS'
19059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19062
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019063 cat >conftest.$ac_ext <<_ACEOF
19064/* confdefs.h. */
19065_ACEOF
19066cat confdefs.h >>conftest.$ac_ext
19067cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019068/* end confdefs.h. */
19069#include <cmath>
19070int
19071main ()
19072{
19073float f; isnan(f);
19074 ;
19075 return 0;
19076}
19077_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019078rm -f conftest.$ac_objext
19079if { (ac_try="$ac_compile"
19080case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083esac
19084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_compile") 2>conftest.er1
19086 ac_status=$?
19087 grep -v '^ *+' conftest.er1 >conftest.err
19088 rm -f conftest.er1
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
19092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19093 { (case "(($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_try") 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; } &&
19102 { ac_try='test -s conftest.$ac_objext'
19103 { (case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19106esac
19107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_try") 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019112 ac_cv_func_isnan_in_cmath=yes
19113else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019114 echo "$as_me: failed program was:" >&5
19115sed 's/^/| /' conftest.$ac_ext >&5
19116
19117 ac_cv_func_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019118fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019119
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19121 ac_ext=c
19122ac_cpp='$CPP $CPPFLAGS'
19123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19125ac_compiler_gnu=$ac_cv_c_compiler_gnu
19126
19127fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019128{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19129echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019130
19131if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19132
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019133cat >>confdefs.h <<\_ACEOF
19134#define HAVE_ISNAN_IN_CMATH 1
19135_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019136
19137fi
19138
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019139{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19140echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19141if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019143else
19144 ac_ext=cpp
19145ac_cpp='$CXXCPP $CPPFLAGS'
19146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19149
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019150 cat >conftest.$ac_ext <<_ACEOF
19151/* confdefs.h. */
19152_ACEOF
19153cat confdefs.h >>conftest.$ac_ext
19154cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019155/* end confdefs.h. */
19156#include <cmath>
19157int
19158main ()
19159{
19160float f; std::isnan(f);
19161 ;
19162 return 0;
19163}
19164_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019165rm -f conftest.$ac_objext
19166if { (ac_try="$ac_compile"
19167case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170esac
19171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_compile") 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19180 { (case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19183esac
19184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185 (eval "$ac_try") 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest.$ac_objext'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193esac
19194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019199 ac_cv_func_std_isnan_in_cmath=yes
19200else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019201 echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ac_cv_func_std_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019205fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019206
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19208 ac_ext=c
19209ac_cpp='$CPP $CPPFLAGS'
19210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19212ac_compiler_gnu=$ac_cv_c_compiler_gnu
19213
19214fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019215{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19216echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019217
19218if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19219
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019220cat >>confdefs.h <<\_ACEOF
19221#define HAVE_STD_ISNAN_IN_CMATH 1
19222_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019223
19224fi
19225
19226
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019227{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19228echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19229if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019231else
19232 ac_ext=cpp
19233ac_cpp='$CXXCPP $CPPFLAGS'
19234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19237
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019238 cat >conftest.$ac_ext <<_ACEOF
19239/* confdefs.h. */
19240_ACEOF
19241cat confdefs.h >>conftest.$ac_ext
19242cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019243/* end confdefs.h. */
19244#include <math.h>
19245int
19246main ()
19247{
19248float f; isinf(f);
19249 ;
19250 return 0;
19251}
19252_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019253rm -f conftest.$ac_objext
19254if { (ac_try="$ac_compile"
19255case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258esac
19259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_compile") 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19268 { (case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19271esac
19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_try") 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest.$ac_objext'
19278 { (case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281esac
19282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_try") 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019287 ac_cv_func_isinf_in_math_h=yes
19288else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019289 echo "$as_me: failed program was:" >&5
19290sed 's/^/| /' conftest.$ac_ext >&5
19291
19292 ac_cv_func_isinf_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019293fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019294
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 ac_ext=c
19297ac_cpp='$CPP $CPPFLAGS'
19298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300ac_compiler_gnu=$ac_cv_c_compiler_gnu
19301
19302fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019303{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19304echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019305
19306if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19307
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019308cat >>confdefs.h <<\_ACEOF
19309#define HAVE_ISINF_IN_MATH_H 1
19310_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019311
19312fi
19313
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019314{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19315echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19316if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019318else
19319 ac_ext=cpp
19320ac_cpp='$CXXCPP $CPPFLAGS'
19321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19324
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019325 cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h. */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019330/* end confdefs.h. */
19331#include <cmath>
19332int
19333main ()
19334{
19335float f; isinf(f);
19336 ;
19337 return 0;
19338}
19339_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019340rm -f conftest.$ac_objext
19341if { (ac_try="$ac_compile"
19342case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19345esac
19346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_compile") 2>conftest.er1
19348 ac_status=$?
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19355 { (case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19358esac
19359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_try") 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19368esac
19369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_try") 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019374 ac_cv_func_isinf_in_cmath=yes
19375else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019376 echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 ac_cv_func_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019380fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019381
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383 ac_ext=c
19384ac_cpp='$CPP $CPPFLAGS'
19385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19387ac_compiler_gnu=$ac_cv_c_compiler_gnu
19388
19389fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019390{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19391echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019392
19393if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19394
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019395cat >>confdefs.h <<\_ACEOF
19396#define HAVE_ISINF_IN_CMATH 1
19397_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019398
19399fi
19400
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019401{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19402echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19403if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019405else
19406 ac_ext=cpp
19407ac_cpp='$CXXCPP $CPPFLAGS'
19408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19411
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019412 cat >conftest.$ac_ext <<_ACEOF
19413/* confdefs.h. */
19414_ACEOF
19415cat confdefs.h >>conftest.$ac_ext
19416cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019417/* end confdefs.h. */
19418#include <cmath>
19419int
19420main ()
19421{
19422float f; std::isinf(f)}
19423 ;
19424 return 0;
19425}
19426_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019427rm -f conftest.$ac_objext
19428if { (ac_try="$ac_compile"
19429case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432esac
19433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_compile") 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445esac
19446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest.$ac_objext'
19452 { (case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455esac
19456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_try") 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019461 ac_cv_func_std_isinf_in_cmath=yes
19462else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019463 echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466 ac_cv_func_std_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019467fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019468
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19470 ac_ext=c
19471ac_cpp='$CPP $CPPFLAGS'
19472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19474ac_compiler_gnu=$ac_cv_c_compiler_gnu
19475
19476fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019477{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19478echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019479
19480if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19481
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019482cat >>confdefs.h <<\_ACEOF
19483#define HAVE_STD_ISINF_IN_CMATH 1
19484_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019485
19486fi
19487
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019488{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19489echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19490if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019492else
19493 ac_ext=cpp
19494ac_cpp='$CXXCPP $CPPFLAGS'
19495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19498
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019499 cat >conftest.$ac_ext <<_ACEOF
19500/* confdefs.h. */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019504/* end confdefs.h. */
19505#include <ieeefp.h>
19506int
19507main ()
19508{
19509float f; finite(f);
19510 ;
19511 return 0;
19512}
19513_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019514rm -f conftest.$ac_objext
19515if { (ac_try="$ac_compile"
19516case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519esac
19520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_compile") 2>conftest.er1
19522 ac_status=$?
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } &&
19528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532esac
19533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542esac
19543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_try") 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019548 ac_cv_func_finite_in_ieeefp_h=yes
19549else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019550 echo "$as_me: failed program was:" >&5
19551sed 's/^/| /' conftest.$ac_ext >&5
19552
19553 ac_cv_func_finite_in_ieeefp_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019554fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019555
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19557 ac_ext=c
19558ac_cpp='$CPP $CPPFLAGS'
19559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19561ac_compiler_gnu=$ac_cv_c_compiler_gnu
19562
19563fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019564{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19565echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019566
19567if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19568
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019569cat >>confdefs.h <<\_ACEOF
19570#define HAVE_FINITE_IN_IEEEFP_H 1
19571_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019572
19573fi
19574
19575
19576
19577if test "$llvm_cv_platform_type" = "Unix" ; then
19578
19579
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019580for ac_header in stdlib.h unistd.h
19581do
19582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19588fi
19589ac_res=`eval echo '${'$as_ac_Header'}'`
19590 { echo "$as_me:$LINENO: result: $ac_res" >&5
19591echo "${ECHO_T}$ac_res" >&6; }
19592else
19593 # Is the header compilable?
19594{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19596cat >conftest.$ac_ext <<_ACEOF
19597/* confdefs.h. */
19598_ACEOF
19599cat confdefs.h >>conftest.$ac_ext
19600cat >>conftest.$ac_ext <<_ACEOF
19601/* end confdefs.h. */
19602$ac_includes_default
19603#include <$ac_header>
19604_ACEOF
19605rm -f conftest.$ac_objext
19606if { (ac_try="$ac_compile"
19607case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610esac
19611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_compile") 2>conftest.er1
19613 ac_status=$?
19614 grep -v '^ *+' conftest.er1 >conftest.err
19615 rm -f conftest.er1
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } &&
19619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19620 { (case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19623esac
19624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625 (eval "$ac_try") 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633esac
19634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 ac_header_compiler=yes
19640else
19641 echo "$as_me: failed program was:" >&5
19642sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019643
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019644 ac_header_compiler=no
19645fi
19646
19647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19648{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19649echo "${ECHO_T}$ac_header_compiler" >&6; }
19650
19651# Is the header present?
19652{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19654cat >conftest.$ac_ext <<_ACEOF
19655/* confdefs.h. */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
19659/* end confdefs.h. */
19660#include <$ac_header>
19661_ACEOF
19662if { (ac_try="$ac_cpp conftest.$ac_ext"
19663case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19666esac
19667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19669 ac_status=$?
19670 grep -v '^ *+' conftest.er1 >conftest.err
19671 rm -f conftest.er1
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } >/dev/null; then
19675 if test -s conftest.err; then
19676 ac_cpp_err=$ac_c_preproc_warn_flag
19677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19678 else
19679 ac_cpp_err=
19680 fi
19681else
19682 ac_cpp_err=yes
19683fi
19684if test -z "$ac_cpp_err"; then
19685 ac_header_preproc=yes
19686else
19687 echo "$as_me: failed program was:" >&5
19688sed 's/^/| /' conftest.$ac_ext >&5
19689
19690 ac_header_preproc=no
19691fi
19692
19693rm -f conftest.err conftest.$ac_ext
19694{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19695echo "${ECHO_T}$ac_header_preproc" >&6; }
19696
19697# So? What about this header?
19698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19699 yes:no: )
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19704 ac_header_preproc=yes
19705 ;;
19706 no:yes:* )
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19719 ( cat <<\_ASBOX
19720## ----------------------------------- ##
19721## Report this to llvmbugs@cs.uiuc.edu ##
19722## ----------------------------------- ##
19723_ASBOX
19724 ) | sed "s/^/$as_me: WARNING: /" >&2
19725 ;;
19726esac
19727{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19731else
19732 eval "$as_ac_Header=\$ac_header_preproc"
19733fi
19734ac_res=`eval echo '${'$as_ac_Header'}'`
19735 { echo "$as_me:$LINENO: result: $ac_res" >&5
19736echo "${ECHO_T}$ac_res" >&6; }
19737
19738fi
19739if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019740 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019742_ACEOF
19743
19744fi
19745
19746done
19747
19748
19749for ac_func in getpagesize
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019750do
19751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19752{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19754if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756else
19757 cat >conftest.$ac_ext <<_ACEOF
19758/* confdefs.h. */
19759_ACEOF
19760cat confdefs.h >>conftest.$ac_ext
19761cat >>conftest.$ac_ext <<_ACEOF
19762/* end confdefs.h. */
19763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19765#define $ac_func innocuous_$ac_func
19766
19767/* System header to define __stub macros and hopefully few prototypes,
19768 which can conflict with char $ac_func (); below.
19769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19770 <limits.h> exists even on freestanding compilers. */
19771
19772#ifdef __STDC__
19773# include <limits.h>
19774#else
19775# include <assert.h>
19776#endif
19777
19778#undef $ac_func
19779
19780/* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783#ifdef __cplusplus
19784extern "C"
19785#endif
19786char $ac_func ();
19787/* The GNU C library defines this for functions which it implements
19788 to always fail with ENOSYS. Some functions are actually named
19789 something starting with __ and the normal name is an alias. */
19790#if defined __stub_$ac_func || defined __stub___$ac_func
19791choke me
19792#endif
19793
19794int
19795main ()
19796{
19797return $ac_func ();
19798 ;
19799 return 0;
19800}
19801_ACEOF
19802rm -f conftest.$ac_objext conftest$ac_exeext
19803if { (ac_try="$ac_link"
19804case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807esac
19808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } &&
19816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19820esac
19821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest$ac_exeext'
19827 { (case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830esac
19831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_try") 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 eval "$as_ac_var=yes"
19837else
19838 echo "$as_me: failed program was:" >&5
19839sed 's/^/| /' conftest.$ac_ext >&5
19840
19841 eval "$as_ac_var=no"
19842fi
19843
19844rm -f core conftest.err conftest.$ac_objext \
19845 conftest$ac_exeext conftest.$ac_ext
19846fi
19847ac_res=`eval echo '${'$as_ac_var'}'`
19848 { echo "$as_me:$LINENO: result: $ac_res" >&5
19849echo "${ECHO_T}$ac_res" >&6; }
19850if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019851 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019853_ACEOF
19854
19855fi
19856done
19857
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019858{ echo "$as_me:$LINENO: checking for working mmap" >&5
19859echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19860if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019862else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019863 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019864 ac_cv_func_mmap_fixed_mapped=no
19865else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019866 cat >conftest.$ac_ext <<_ACEOF
19867/* confdefs.h. */
19868_ACEOF
19869cat confdefs.h >>conftest.$ac_ext
19870cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019871/* end confdefs.h. */
19872$ac_includes_default
19873/* malloc might have been renamed as rpl_malloc. */
19874#undef malloc
19875
19876/* Thanks to Mike Haertel and Jim Avera for this test.
19877 Here is a matrix of mmap possibilities:
19878 mmap private not fixed
19879 mmap private fixed at somewhere currently unmapped
19880 mmap private fixed at somewhere already mapped
19881 mmap shared not fixed
19882 mmap shared fixed at somewhere currently unmapped
19883 mmap shared fixed at somewhere already mapped
19884 For private mappings, we should verify that changes cannot be read()
19885 back from the file, nor mmap's back from the file at a different
19886 address. (There have been systems where private was not correctly
19887 implemented like the infamous i386 svr4.0, and systems where the
19888 VM page cache was not coherent with the file system buffer cache
19889 like early versions of FreeBSD and possibly contemporary NetBSD.)
19890 For shared mappings, we should conversely verify that changes get
19891 propagated back to all the places they're supposed to be.
19892
19893 Grep wants private fixed already mapped.
19894 The main things grep needs to know about mmap are:
19895 * does it exist and is it safe to write into the mmap'd area
19896 * how to use it (BSD variants) */
19897
19898#include <fcntl.h>
19899#include <sys/mman.h>
19900
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019901#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019902char *malloc ();
19903#endif
19904
19905/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019906#if !HAVE_GETPAGESIZE
19907/* Assume that all systems that can run configure have sys/param.h. */
19908# if !HAVE_SYS_PARAM_H
19909# define HAVE_SYS_PARAM_H 1
19910# endif
19911
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019912# ifdef _SC_PAGESIZE
19913# define getpagesize() sysconf(_SC_PAGESIZE)
19914# else /* no _SC_PAGESIZE */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019915# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019916# include <sys/param.h>
19917# ifdef EXEC_PAGESIZE
19918# define getpagesize() EXEC_PAGESIZE
19919# else /* no EXEC_PAGESIZE */
19920# ifdef NBPG
19921# define getpagesize() NBPG * CLSIZE
19922# ifndef CLSIZE
19923# define CLSIZE 1
19924# endif /* no CLSIZE */
19925# else /* no NBPG */
19926# ifdef NBPC
19927# define getpagesize() NBPC
19928# else /* no NBPC */
19929# ifdef PAGESIZE
19930# define getpagesize() PAGESIZE
19931# endif /* PAGESIZE */
19932# endif /* no NBPC */
19933# endif /* no NBPG */
19934# endif /* no EXEC_PAGESIZE */
19935# else /* no HAVE_SYS_PARAM_H */
19936# define getpagesize() 8192 /* punt totally */
19937# endif /* no HAVE_SYS_PARAM_H */
19938# endif /* no _SC_PAGESIZE */
19939
19940#endif /* no HAVE_GETPAGESIZE */
19941
19942int
19943main ()
19944{
19945 char *data, *data2, *data3;
19946 int i, pagesize;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019947 int fd;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019948
19949 pagesize = getpagesize ();
19950
19951 /* First, make a file with some known garbage in it. */
19952 data = (char *) malloc (pagesize);
19953 if (!data)
19954 return 1;
19955 for (i = 0; i < pagesize; ++i)
19956 *(data + i) = rand ();
19957 umask (0);
19958 fd = creat ("conftest.mmap", 0600);
19959 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019960 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019961 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019962 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019963 close (fd);
19964
19965 /* Next, try to mmap the file at a fixed address which already has
19966 something else allocated at it. If we can, also make sure that
19967 we see the same garbage. */
19968 fd = open ("conftest.mmap", O_RDWR);
19969 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019970 return 1;
19971 data2 = (char *) malloc (2 * pagesize);
19972 if (!data2)
19973 return 1;
19974 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019975 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19976 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019977 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019978 for (i = 0; i < pagesize; ++i)
19979 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019980 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019981
19982 /* Finally, make sure that changes to the mapped area do not
19983 percolate back to the file as seen by read(). (This is a bug on
19984 some variants of i386 svr4.0.) */
19985 for (i = 0; i < pagesize; ++i)
19986 *(data2 + i) = *(data2 + i) + 1;
19987 data3 = (char *) malloc (pagesize);
19988 if (!data3)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019989 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019990 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019991 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019992 for (i = 0; i < pagesize; ++i)
19993 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019994 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019995 close (fd);
19996 return 0;
19997}
19998_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019999rm -f conftest$ac_exeext
20000if { (ac_try="$ac_link"
20001case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004esac
20005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20010 { (case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013esac
20014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_try") 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020019 ac_cv_func_mmap_fixed_mapped=yes
20020else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020021 echo "$as_me: program exited with status $ac_status" >&5
20022echo "$as_me: failed program was:" >&5
20023sed 's/^/| /' conftest.$ac_ext >&5
20024
20025( exit $ac_status )
20026ac_cv_func_mmap_fixed_mapped=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020027fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020029fi
20030
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020031
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020032fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020033{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20034echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020035if test $ac_cv_func_mmap_fixed_mapped = yes; then
20036
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020037cat >>confdefs.h <<\_ACEOF
20038#define HAVE_MMAP 1
20039_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020040
20041fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020042rm -f conftest.mmap
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020043
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020044 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20045echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20046if test "${ac_cv_func_mmap_file+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020048else
20049 ac_ext=c
20050ac_cpp='$CPP $CPPFLAGS'
20051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053ac_compiler_gnu=$ac_cv_c_compiler_gnu
20054
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020055 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020056 ac_cv_func_mmap_file=no
20057else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020058 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020059
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020060 /* confdefs.h. */
20061_ACEOF
20062cat confdefs.h >>conftest.$ac_ext
20063cat >>conftest.$ac_ext <<_ACEOF
20064/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000020065
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020066#include <sys/types.h>
20067#include <sys/mman.h>
20068#include <fcntl.h>
20069
20070int
20071main ()
20072{
20073
20074 int fd;
20075 fd = creat ("foo",0777);
20076 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20077 unlink ("foo");
20078 return (fd != (int) MAP_FAILED);
20079 ;
20080 return 0;
20081}
20082_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020083rm -f conftest$ac_exeext
20084if { (ac_try="$ac_link"
20085case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088esac
20089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_link") 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20094 { (case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20097esac
20098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_try") 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020103 ac_cv_func_mmap_file=yes
20104else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020105 echo "$as_me: program exited with status $ac_status" >&5
20106echo "$as_me: failed program was:" >&5
20107sed 's/^/| /' conftest.$ac_ext >&5
20108
20109( exit $ac_status )
20110ac_cv_func_mmap_file=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020111fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020113fi
20114
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020115
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020116 ac_ext=c
20117ac_cpp='$CPP $CPPFLAGS'
20118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20120ac_compiler_gnu=$ac_cv_c_compiler_gnu
20121
20122
20123fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020124{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20125echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020126if test "$ac_cv_func_mmap_file" = yes; then
20127
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020128cat >>confdefs.h <<\_ACEOF
20129#define HAVE_MMAP_FILE
20130_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020131
20132 MMAP_FILE=yes
20133
20134fi
20135
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020136 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20137echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20138if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020140else
20141 if test "$llvm_cv_os_type" = "Interix" ; then
20142 ac_cv_need_dev_zero_for_mmap=yes
20143 else
20144 ac_cv_need_dev_zero_for_mmap=no
20145 fi
20146
20147fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020148{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20149echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020150if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20151
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020152cat >>confdefs.h <<\_ACEOF
20153#define NEED_DEV_ZERO_FOR_MMAP 1
20154_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020155
20156fi
20157
20158 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20159 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020160 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20161echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020162 fi
20163 if test "$ac_cv_func_mmap_file" = "no"
20164 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020165 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20166echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020167 fi
20168fi
20169
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020170{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20171echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopher2fd8cef2010-07-28 20:26:43 +000020172ac_ext=cpp
20173ac_cpp='$CXXCPP $CPPFLAGS'
20174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20177
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020178cat >conftest.$ac_ext <<_ACEOF
20179/* confdefs.h. */
20180_ACEOF
20181cat confdefs.h >>conftest.$ac_ext
20182cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000020183/* end confdefs.h. */
20184int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000020185 volatile unsigned long val = 1;
20186 __sync_synchronize();
20187 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000020188 __sync_add_and_fetch(&val, 1);
20189 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000020190 return 0;
20191 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000020192
20193_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020194rm -f conftest.$ac_objext conftest$ac_exeext
20195if { (ac_try="$ac_link"
20196case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20199esac
20200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_link") 2>conftest.er1
20202 ac_status=$?
20203 grep -v '^ *+' conftest.er1 >conftest.err
20204 rm -f conftest.er1
20205 cat conftest.err >&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } &&
20208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20209 { (case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20212esac
20213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_try") 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; } &&
20218 { ac_try='test -s conftest$ac_exeext'
20219 { (case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20222esac
20223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_try") 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
Eric Christopher2fd8cef2010-07-28 20:26:43 +000020228 ac_ext=c
20229ac_cpp='$CPP $CPPFLAGS'
20230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20232ac_compiler_gnu=$ac_cv_c_compiler_gnu
20233
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020234 { echo "$as_me:$LINENO: result: yes" >&5
20235echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000020236
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020237cat >>confdefs.h <<\_ACEOF
20238#define LLVM_MULTITHREADED 1
20239_ACEOF
Owen Anderson96237ec2009-05-19 22:18:56 +000020240
Owen Andersonff0f88e2009-05-18 23:58:51 +000020241else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020242 echo "$as_me: failed program was:" >&5
20243sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000020244
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020245 { echo "$as_me:$LINENO: result: no" >&5
20246echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000020247
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020248cat >>confdefs.h <<\_ACEOF
20249#define LLVM_MULTITHREADED 0
20250_ACEOF
20251
20252 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20253echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000020254fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020255
Owen Andersonff0f88e2009-05-18 23:58:51 +000020256rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020257 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000020258
Owen Anderson053d1082010-07-19 19:24:55 +000020259{ echo "$as_me:$LINENO: checking for getsect()" >&5
20260echo $ECHO_N "checking for getsect()... $ECHO_C" >&6; }
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#include <mach-o/getsect.h>
20268 int main() {
20269 unsigned long p;
Owen Andersond0783342010-07-19 19:42:01 +000020270 return (int)getsect("__DATA","__pass_info", &p);
Owen Anderson053d1082010-07-19 19:24:55 +000020271 }
20272
20273_ACEOF
20274rm -f conftest.$ac_objext
20275if { (ac_try="$ac_compile"
20276case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279esac
20280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
20288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20289 { (case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292esac
20293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_try") 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest.$ac_objext'
20299 { (case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20302esac
20303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_try") 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 { echo "$as_me:$LINENO: result: yes" >&5
20309echo "${ECHO_T}yes" >&6; }
20310
20311cat >>confdefs.h <<\_ACEOF
20312#define HAVE_GETSECT 1
20313_ACEOF
20314
20315else
20316 echo "$as_me: failed program was:" >&5
20317sed 's/^/| /' conftest.$ac_ext >&5
20318
20319 { echo "$as_me:$LINENO: result: no" >&5
20320echo "${ECHO_T}no" >&6; }
20321
20322cat >>confdefs.h <<\_ACEOF
20323#define HAVE_GETSECT 1
20324_ACEOF
20325
20326
20327fi
20328
20329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330
Owen Andersonff0f88e2009-05-18 23:58:51 +000020331
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020332
Nick Lewycky5c2dc212009-09-29 06:18:23 +000020333if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020334 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20335echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20336if test "${llvm_cv_linux_mixed+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky5c2dc212009-09-29 06:18:23 +000020338else
20339 ac_ext=c
20340ac_cpp='$CPP $CPPFLAGS'
20341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20343ac_compiler_gnu=$ac_cv_c_compiler_gnu
20344
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020345 cat >conftest.$ac_ext <<_ACEOF
20346/* confdefs.h. */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky5c2dc212009-09-29 06:18:23 +000020350/* end confdefs.h. */
20351#ifndef __x86_64__
20352 error: Not x86-64 even if uname says so!
20353 #endif
20354
20355int
20356main ()
20357{
20358
20359 ;
20360 return 0;
20361}
20362_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020363rm -f conftest.$ac_objext
20364if { (ac_try="$ac_compile"
20365case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368esac
20369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_compile") 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } &&
20377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20378 { (case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381esac
20382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_try") 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try='test -s conftest.$ac_objext'
20388 { (case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20391esac
20392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_try") 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
Nick Lewycky5c2dc212009-09-29 06:18:23 +000020397 llvm_cv_linux_mixed=no
20398else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020399 echo "$as_me: failed program was:" >&5
20400sed 's/^/| /' conftest.$ac_ext >&5
20401
20402 llvm_cv_linux_mixed=yes
Nick Lewycky5c2dc212009-09-29 06:18:23 +000020403fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020404
Nick Lewycky5c2dc212009-09-29 06:18:23 +000020405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406 ac_ext=c
20407ac_cpp='$CPP $CPPFLAGS'
20408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410ac_compiler_gnu=$ac_cv_c_compiler_gnu
20411
20412
20413fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020414{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20415echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky5c2dc212009-09-29 06:18:23 +000020416
20417 if test "$llvm_cv_linux_mixed" = "yes"; then
20418 llvm_cv_target_arch="x86"
20419 ARCH="x86"
20420 fi
20421fi
20422
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020423
Reid Spencer59c09b32007-07-30 20:13:24 +000020424for ac_func in __dso_handle
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020425do
20426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20427{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20429if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20431else
20432 cat >conftest.$ac_ext <<_ACEOF
20433/* confdefs.h. */
20434_ACEOF
20435cat confdefs.h >>conftest.$ac_ext
20436cat >>conftest.$ac_ext <<_ACEOF
20437/* end confdefs.h. */
20438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20440#define $ac_func innocuous_$ac_func
20441
20442/* System header to define __stub macros and hopefully few prototypes,
20443 which can conflict with char $ac_func (); below.
20444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20445 <limits.h> exists even on freestanding compilers. */
20446
20447#ifdef __STDC__
20448# include <limits.h>
20449#else
20450# include <assert.h>
20451#endif
20452
20453#undef $ac_func
20454
20455/* Override any GCC internal prototype to avoid an error.
20456 Use char because int might match the return type of a GCC
20457 builtin and then its argument prototype would still apply. */
20458#ifdef __cplusplus
20459extern "C"
20460#endif
20461char $ac_func ();
20462/* The GNU C library defines this for functions which it implements
20463 to always fail with ENOSYS. Some functions are actually named
20464 something starting with __ and the normal name is an alias. */
20465#if defined __stub_$ac_func || defined __stub___$ac_func
20466choke me
20467#endif
20468
20469int
20470main ()
20471{
20472return $ac_func ();
20473 ;
20474 return 0;
20475}
20476_ACEOF
20477rm -f conftest.$ac_objext conftest$ac_exeext
20478if { (ac_try="$ac_link"
20479case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482esac
20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20485 ac_status=$?
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495esac
20496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest$ac_exeext'
20502 { (case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505esac
20506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_try") 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 eval "$as_ac_var=yes"
20512else
20513 echo "$as_me: failed program was:" >&5
20514sed 's/^/| /' conftest.$ac_ext >&5
20515
20516 eval "$as_ac_var=no"
20517fi
20518
20519rm -f core conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
20521fi
20522ac_res=`eval echo '${'$as_ac_var'}'`
20523 { echo "$as_me:$LINENO: result: $ac_res" >&5
20524echo "${ECHO_T}$ac_res" >&6; }
20525if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer59c09b32007-07-30 20:13:24 +000020526 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer59c09b32007-07-30 20:13:24 +000020528_ACEOF
20529
20530fi
20531done
20532
20533
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020534{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20535echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20536if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020538else
20539 llvm_cv_llvmgcc_sanity="no"
20540if test -x "$LLVMGCC" ; then
20541 cp /dev/null conftest.c
20542 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20543 grep 'target datalayout =' > /dev/null 2>&1
20544 if test $? -eq 0 ; then
20545 llvm_cv_llvmgcc_sanity="yes"
20546 fi
20547 rm conftest.c
20548fi
20549fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020550{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20551echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020552
20553if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020554 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20555echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020556 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20557 LLVMCC1=$llvmcc1path
20558
20559 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20560 LLVMCC1PLUS=$llvmcc1pluspath
20561
20562 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20563 LLVMGCCDIR=$llvmgccdir
20564
Tanya Lattner9894c2c2008-10-07 22:21:03 +000020565 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020566 LLVMGCC_LANGS=$llvmgcclangs
20567
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020568 { echo "$as_me:$LINENO: result: ok" >&5
20569echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020570fi
20571
20572SHLIBEXT=$libltdl_cv_shlibext
20573
20574
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +000020575SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20576
20577
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020578# Translate the various configuration directories and other basic
20579# information into substitutions that will end up in Makefile.config.in
20580# that these configured values can be used by the makefiles
20581if test "${prefix}" = "NONE" ; then
20582 prefix="/usr/local"
20583fi
20584eval LLVM_PREFIX="${prefix}";
20585eval LLVM_BINDIR="${prefix}/bin";
20586eval LLVM_LIBDIR="${prefix}/lib";
20587eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb98a6232010-03-02 05:17:21 +000020588eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020589eval LLVM_ETCDIR="${prefix}/etc/llvm";
20590eval LLVM_INCLUDEDIR="${prefix}/include";
20591eval LLVM_INFODIR="${prefix}/info";
20592eval LLVM_MANDIR="${prefix}/man";
20593LLVM_CONFIGTIME=`date`
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605# Place the various directores into the config.h file as #defines so that we
20606# can know about the installation paths within LLVM.
20607
20608cat >>confdefs.h <<_ACEOF
20609#define LLVM_PREFIX "$LLVM_PREFIX"
20610_ACEOF
20611
20612
20613cat >>confdefs.h <<_ACEOF
20614#define LLVM_BINDIR "$LLVM_BINDIR"
20615_ACEOF
20616
20617
20618cat >>confdefs.h <<_ACEOF
20619#define LLVM_LIBDIR "$LLVM_LIBDIR"
20620_ACEOF
20621
20622
20623cat >>confdefs.h <<_ACEOF
20624#define LLVM_DATADIR "$LLVM_DATADIR"
20625_ACEOF
20626
20627
20628cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000020629#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020630_ACEOF
20631
20632
20633cat >>confdefs.h <<_ACEOF
20634#define LLVM_ETCDIR "$LLVM_ETCDIR"
20635_ACEOF
20636
20637
20638cat >>confdefs.h <<_ACEOF
20639#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20640_ACEOF
20641
20642
20643cat >>confdefs.h <<_ACEOF
20644#define LLVM_INFODIR "$LLVM_INFODIR"
20645_ACEOF
20646
20647
20648cat >>confdefs.h <<_ACEOF
20649#define LLVM_MANDIR "$LLVM_MANDIR"
20650_ACEOF
20651
20652
20653cat >>confdefs.h <<_ACEOF
20654#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20655_ACEOF
20656
20657
Eric Christopher8b274472007-12-01 00:34:39 +000020658cat >>confdefs.h <<_ACEOF
20659#define LLVM_HOSTTRIPLE "$host"
20660_ACEOF
20661
20662
Gordon Henriksen016ec472007-10-02 09:50:32 +000020663# Determine which bindings to build.
20664if test "$BINDINGS_TO_BUILD" = auto ; then
20665 BINDINGS_TO_BUILD=""
20666 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20667 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20668 fi
20669fi
20670BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20671
20672
20673# This isn't really configurey, but it avoids having to repeat the list in
20674# other files.
20675ALL_BINDINGS=ocaml
20676
20677
Gordon Henriksen058a4c62007-10-02 16:42:22 +000020678# Do any work necessary to ensure that bindings have what they need.
20679binding_prereqs_failed=0
20680for a_binding in $BINDINGS_TO_BUILD ; do
20681 case "$a_binding" in
20682 ocaml)
20683 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020684 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20685echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksen058a4c62007-10-02 16:42:22 +000020686 binding_prereqs_failed=1
20687 fi
20688 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020689 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20690echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksen058a4c62007-10-02 16:42:22 +000020691 binding_prereqs_failed=1
20692 fi
20693 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020694 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20695echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksen058a4c62007-10-02 16:42:22 +000020696 fi
20697 if test "x$with_ocaml_libdir" != xauto ; then
20698 OCAML_LIBDIR=$with_ocaml_libdir
20699
20700 else
20701 ocaml_stdlib="`"$OCAMLC" -where`"
20702 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20703 then
20704 # ocaml stdlib is beneath our prefix; use stdlib
20705 OCAML_LIBDIR=$ocaml_stdlib
20706
20707 else
20708 # ocaml stdlib is outside our prefix; use libdir/ocaml
20709 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20710
20711 fi
20712 fi
20713 ;;
20714 esac
20715done
20716if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020717 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20718echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20719 { (exit 1); exit 1; }; }
Gordon Henriksen058a4c62007-10-02 16:42:22 +000020720fi
20721
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020722{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20723echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20724if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020726else
20727 ac_ext=cpp
20728ac_cpp='$CXXCPP $CPPFLAGS'
20729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20732
20733 oldcxxflags="$CXXFLAGS"
20734 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020735 cat >conftest.$ac_ext <<_ACEOF
20736/* confdefs.h. */
20737_ACEOF
20738cat confdefs.h >>conftest.$ac_ext
20739cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020740/* end confdefs.h. */
20741
20742int
20743main ()
20744{
20745
20746 ;
20747 return 0;
20748}
20749_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020750rm -f conftest.$ac_objext
20751if { (ac_try="$ac_compile"
20752case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755esac
20756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_compile") 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } &&
20764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20765 { (case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20768esac
20769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_try") 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
20775 { (case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778esac
20779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_try") 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020784 llvm_cv_cxx_visibility_inlines_hidden=yes
20785else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020786 echo "$as_me: failed program was:" >&5
20787sed 's/^/| /' conftest.$ac_ext >&5
20788
20789 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020790fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020791
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20793 CXXFLAGS="$oldcxxflags"
20794 ac_ext=c
20795ac_cpp='$CPP $CPPFLAGS'
20796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20798ac_compiler_gnu=$ac_cv_c_compiler_gnu
20799
20800
20801fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020802{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20803echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000020804if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20805 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20806
20807else
20808 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20809
20810fi
20811
Gordon Henriksen058a4c62007-10-02 16:42:22 +000020812
Nick Lewycky6eab6652009-03-05 08:20:44 +000020813if test "$llvm_cv_link_use_r" = "yes" ; then
20814 RPATH="-Wl,-R"
20815else
20816 RPATH="-Wl,-rpath"
20817fi
20818
20819
20820if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20821 RDYNAMIC="-Wl,-export-dynamic"
20822else
20823 RDYNAMIC=""
20824fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000020825
20826
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020827
20828ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20829
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000020830ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20831
20832ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20833
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000020834ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20835
Daniel Dunbar0e18f262009-11-25 04:37:28 +000020836ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20837
Chandler Carruth1ec7df12009-10-26 01:35:46 +000020838ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020839
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020840
20841ac_config_files="$ac_config_files Makefile.config"
20842
20843
20844ac_config_files="$ac_config_files llvm.spec"
20845
20846
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000020847ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20848
20849
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020850ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20851
20852
20853ac_config_commands="$ac_config_commands setup"
20854
20855ac_config_commands="$ac_config_commands Makefile"
20856
20857
20858ac_config_commands="$ac_config_commands Makefile.common"
20859
20860
20861ac_config_commands="$ac_config_commands examples/Makefile"
20862
20863
20864ac_config_commands="$ac_config_commands lib/Makefile"
20865
20866
20867ac_config_commands="$ac_config_commands runtime/Makefile"
20868
20869
20870ac_config_commands="$ac_config_commands test/Makefile"
20871
20872
20873ac_config_commands="$ac_config_commands test/Makefile.tests"
20874
20875
Bill Wendling9b9833f2009-01-04 23:12:30 +000020876ac_config_commands="$ac_config_commands unittests/Makefile"
20877
20878
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020879ac_config_commands="$ac_config_commands tools/Makefile"
20880
20881
20882ac_config_commands="$ac_config_commands utils/Makefile"
20883
20884
20885ac_config_commands="$ac_config_commands projects/Makefile"
20886
20887
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000020888ac_config_commands="$ac_config_commands bindings/Makefile"
20889
20890
20891ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20892
20893
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020894
20895cat >confcache <<\_ACEOF
20896# This file is a shell script that caches the results of configure
20897# tests run on this system so they can be shared between configure
20898# scripts and configure runs, see configure's option --config-cache.
20899# It is not useful on other systems. If it contains results you don't
20900# want to keep, you may remove or edit it.
20901#
20902# config.status only pays attention to the cache file if you give it
20903# the --recheck option to rerun configure.
20904#
20905# `ac_cv_env_foo' variables (set or unset) will be overridden when
20906# loading this file, other *unset* `ac_cv_foo' will be assigned the
20907# following values.
20908
20909_ACEOF
20910
20911# The following way of writing the cache mishandles newlines in values,
20912# but we know of no workaround that is simple, portable, and efficient.
20913# So, we kill variables containing newlines.
20914# Ultrix sh set writes to stderr and can't be redirected directly,
20915# and sets the high bit in the cache file unless we assign to the vars.
20916(
20917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20918 eval ac_val=\$$ac_var
20919 case $ac_val in #(
20920 *${as_nl}*)
20921 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020922 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20923echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020924 esac
20925 case $ac_var in #(
20926 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020927 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020928 esac ;;
20929 esac
20930 done
20931
20932 (set) 2>&1 |
20933 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20934 *${as_nl}ac_space=\ *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020935 # `set' does not quote correctly, so add quotes (double-quote
20936 # substitution turns \\\\ into \\, and sed turns \\ into \).
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020937 sed -n \
20938 "s/'/'\\\\''/g;
20939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20940 ;; #(
20941 *)
20942 # `set' quotes correctly as required by POSIX, so do not add quotes.
20943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20944 ;;
20945 esac |
20946 sort
20947) |
20948 sed '
20949 /^ac_cv_env_/b end
20950 t clear
20951 :clear
20952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20953 t end
20954 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20955 :end' >>confcache
20956if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20957 if test -w "$cache_file"; then
20958 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020959 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20960echo "$as_me: updating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020961 cat confcache >$cache_file
20962 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020963 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20964echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020965 fi
20966fi
20967rm -f confcache
20968
20969test "x$prefix" = xNONE && prefix=$ac_default_prefix
20970# Let make expand exec_prefix.
20971test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20972
20973DEFS=-DHAVE_CONFIG_H
20974
20975ac_libobjs=
20976ac_ltlibobjs=
20977for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20978 # 1. Remove the extension, and $U if already installed.
20979 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020980 ac_i=`echo "$ac_i" | sed "$ac_script"`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020981 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20982 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020983 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20984 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020985done
20986LIBOBJS=$ac_libobjs
20987
20988LTLIBOBJS=$ac_ltlibobjs
20989
20990
20991if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020992 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20993Usually this means the macro was only invoked conditionally." >&5
20994echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20995Usually this means the macro was only invoked conditionally." >&2;}
20996 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020997fi
20998if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020999 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21000Usually this means the macro was only invoked conditionally." >&5
21001echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21002Usually this means the macro was only invoked conditionally." >&2;}
21003 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021004fi
21005
21006: ${CONFIG_STATUS=./config.status}
21007ac_clean_files_save=$ac_clean_files
21008ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021009{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21010echo "$as_me: creating $CONFIG_STATUS" >&6;}
21011cat >$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021012#! $SHELL
21013# Generated by $as_me.
21014# Run this file to recreate the current configuration.
21015# Compiler output produced by configure, useful for debugging
21016# configure, is in config.log if it exists.
21017
21018debug=false
21019ac_cs_recheck=false
21020ac_cs_silent=false
21021SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021022_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021023
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021024cat >>$CONFIG_STATUS <<\_ACEOF
21025## --------------------- ##
21026## M4sh Initialization. ##
21027## --------------------- ##
21028
21029# Be Bourne compatible
21030if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021031 emulate sh
21032 NULLCMD=:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021033 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021034 # is contrary to our usage. Disable this feature.
21035 alias -g '${1+"$@"}'='"$@"'
21036 setopt NO_GLOB_SUBST
21037else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021038 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021039fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021040BIN_SH=xpg4; export BIN_SH # for Tru64
21041DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021042
21043
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021044# PATH needs CR
21045# Avoid depending upon Character Ranges.
21046as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21048as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21049as_cr_digits='0123456789'
21050as_cr_alnum=$as_cr_Letters$as_cr_digits
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021051
21052# The user is always right.
21053if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021054 echo "#! /bin/sh" >conf$$.sh
21055 echo "exit 0" >>conf$$.sh
21056 chmod +x conf$$.sh
21057 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21058 PATH_SEPARATOR=';'
21059 else
21060 PATH_SEPARATOR=:
21061 fi
21062 rm -f conf$$.sh
21063fi
21064
21065# Support unset when possible.
21066if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21067 as_unset=unset
21068else
21069 as_unset=false
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021070fi
21071
21072
21073# IFS
21074# We need space, tab and new line, in precisely that order. Quoting is
21075# there to prevent editors from complaining about space-tab.
21076# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21077# splitting by setting IFS to empty value.)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021078as_nl='
21079'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021080IFS=" "" $as_nl"
21081
21082# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021083case $0 in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021084 *[\\/]* ) as_myself=$0 ;;
21085 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21086for as_dir in $PATH
21087do
21088 IFS=$as_save_IFS
21089 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021090 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21091done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021092IFS=$as_save_IFS
21093
21094 ;;
21095esac
21096# We did not find ourselves, most probably we were run as `sh COMMAND'
21097# in which case we are not to be found in the path.
21098if test "x$as_myself" = x; then
21099 as_myself=$0
21100fi
21101if test ! -f "$as_myself"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021102 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21103 { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021104fi
21105
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021106# Work around bugs in pre-3.0 UWIN ksh.
21107for as_var in ENV MAIL MAILPATH
21108do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021109done
21110PS1='$ '
21111PS2='> '
21112PS4='+ '
21113
21114# NLS nuisances.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021115for as_var in \
21116 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21117 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21118 LC_TELEPHONE LC_TIME
21119do
21120 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21121 eval $as_var=C; export $as_var
21122 else
21123 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Edwin Törökc27310c2010-01-26 08:50:50 +000021124 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021125done
Edwin Törökc27310c2010-01-26 08:50:50 +000021126
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021127# Required to use basename.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021128if expr a : '\(a\)' >/dev/null 2>&1 &&
21129 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21130 as_expr=expr
21131else
21132 as_expr=false
21133fi
21134
21135if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21136 as_basename=basename
21137else
21138 as_basename=false
21139fi
21140
21141
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021142# Name of the executable.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021143as_me=`$as_basename -- "$0" ||
21144$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21145 X"$0" : 'X\(//\)$' \| \
21146 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021147echo X/"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021148 sed '/^.*\/\([^/][^/]*\)\/*$/{
21149 s//\1/
21150 q
21151 }
21152 /^X\/\(\/\/\)$/{
21153 s//\1/
21154 q
21155 }
21156 /^X\/\(\/\).*/{
21157 s//\1/
21158 q
21159 }
21160 s/.*/./; q'`
21161
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021162# CDPATH.
21163$as_unset CDPATH
21164
21165
21166
21167 as_lineno_1=$LINENO
21168 as_lineno_2=$LINENO
21169 test "x$as_lineno_1" != "x$as_lineno_2" &&
21170 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21171
21172 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21173 # uniformly replaced by the line number. The first 'sed' inserts a
21174 # line-number line after each line using $LINENO; the second 'sed'
21175 # does the real work. The second script uses 'N' to pair each
21176 # line-number line with the line containing $LINENO, and appends
21177 # trailing '-' during substitution so that $LINENO is not a special
21178 # case at line end.
21179 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21180 # scripts with optimization help from Paolo Bonzini. Blame Lee
21181 # E. McMahon (1931-1989) for sed's syntax. :-)
21182 sed -n '
21183 p
21184 /[$]LINENO/=
21185 ' <$as_myself |
21186 sed '
21187 s/[$]LINENO.*/&-/
21188 t lineno
21189 b
21190 :lineno
21191 N
21192 :loop
21193 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21194 t loop
21195 s/-\n.*//
21196 ' >$as_me.lineno &&
21197 chmod +x "$as_me.lineno" ||
21198 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21199 { (exit 1); exit 1; }; }
21200
21201 # Don't try to exec as it changes $[0], causing all sort of problems
21202 # (the dirname of $[0] is not the place where we might find the
21203 # original and so on. Autoconf is especially sensitive to this).
21204 . "./$as_me.lineno"
21205 # Exit status is that of the last command.
21206 exit
21207}
21208
21209
21210if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21211 as_dirname=dirname
21212else
21213 as_dirname=false
21214fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021215
21216ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021217case `echo -n x` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021218-n*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021219 case `echo 'x\c'` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021220 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021221 *) ECHO_C='\c';;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021222 esac;;
21223*)
21224 ECHO_N='-n';;
21225esac
21226
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021227if expr a : '\(a\)' >/dev/null 2>&1 &&
21228 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21229 as_expr=expr
21230else
21231 as_expr=false
21232fi
21233
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021234rm -f conf$$ conf$$.exe conf$$.file
21235if test -d conf$$.dir; then
21236 rm -f conf$$.dir/conf$$.file
21237else
21238 rm -f conf$$.dir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021239 mkdir conf$$.dir
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021240fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021241echo >conf$$.file
21242if ln -s conf$$.file conf$$ 2>/dev/null; then
21243 as_ln_s='ln -s'
21244 # ... but there are two gotchas:
21245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21247 # In both cases, we have to default to `cp -p'.
21248 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021249 as_ln_s='cp -p'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021250elif ln conf$$.file conf$$ 2>/dev/null; then
21251 as_ln_s=ln
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021252else
21253 as_ln_s='cp -p'
21254fi
21255rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21256rmdir conf$$.dir 2>/dev/null
21257
21258if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021259 as_mkdir_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021260else
21261 test -d ./-p && rmdir ./-p
21262 as_mkdir_p=false
21263fi
21264
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021265# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21266# systems may use methods other than mode bits to determine executability.
21267cat >conf$$.file <<_ASEOF
21268#! /bin/sh
21269exit 0
21270_ASEOF
21271chmod +x conf$$.file
21272if test -x conf$$.file >/dev/null 2>&1; then
21273 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021274else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021275 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021276fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021277rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021278
21279# Sed expression to map a string onto a valid CPP name.
21280as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21281
21282# Sed expression to map a string onto a valid variable name.
21283as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21284
21285
21286exec 6>&1
21287
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021288# Save the log message, to keep $[0] and so on meaningful, and to
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021289# report actual input values of CONFIG_FILES etc. instead of their
21290# values after options handling.
21291ac_log="
Tanya Lattnerb072da72010-03-19 21:22:13 +000021292This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021293generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021294
21295 CONFIG_FILES = $CONFIG_FILES
21296 CONFIG_HEADERS = $CONFIG_HEADERS
21297 CONFIG_LINKS = $CONFIG_LINKS
21298 CONFIG_COMMANDS = $CONFIG_COMMANDS
21299 $ $0 $@
21300
21301on `(hostname || uname -n) 2>/dev/null | sed 1q`
21302"
21303
21304_ACEOF
21305
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021306cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021307# Files that config.status was made for.
21308config_files="$ac_config_files"
21309config_headers="$ac_config_headers"
21310config_commands="$ac_config_commands"
21311
21312_ACEOF
21313
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021314cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021315ac_cs_usage="\
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021316\`$as_me' instantiates files from templates according to the
21317current configuration.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021318
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021319Usage: $0 [OPTIONS] [FILE]...
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021320
21321 -h, --help print this help, then exit
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021322 -V, --version print version number, then exit
21323 -q, --quiet do not print progress messages
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021324 -d, --debug don't remove temporary files
21325 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021326 --file=FILE[:TEMPLATE]
21327 instantiate the configuration file FILE
21328 --header=FILE[:TEMPLATE]
21329 instantiate the configuration header FILE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021330
21331Configuration files:
21332$config_files
21333
21334Configuration headers:
21335$config_headers
21336
21337Configuration commands:
21338$config_commands
21339
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021340Report bugs to <bug-autoconf@gnu.org>."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021341
21342_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021343cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021344ac_cs_version="\\
Tanya Lattnerb072da72010-03-19 21:22:13 +000021345llvm config.status 2.8svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021346configured by $0, generated by GNU Autoconf 2.60,
21347 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021348
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021349Copyright (C) 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021350This config.status script is free software; the Free Software Foundation
21351gives unlimited permission to copy, distribute and modify it."
21352
21353ac_pwd='$ac_pwd'
21354srcdir='$srcdir'
21355INSTALL='$INSTALL'
21356_ACEOF
21357
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021358cat >>$CONFIG_STATUS <<\_ACEOF
21359# If no file are specified by the user, then we need to provide default
21360# value. By we need to know if files were specified by the user.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021361ac_need_defaults=:
21362while test $# != 0
21363do
21364 case $1 in
21365 --*=*)
21366 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21367 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21368 ac_shift=:
21369 ;;
21370 *)
21371 ac_option=$1
21372 ac_optarg=$2
21373 ac_shift=shift
21374 ;;
21375 esac
21376
21377 case $ac_option in
21378 # Handling of the options.
21379 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21380 ac_cs_recheck=: ;;
21381 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021382 echo "$ac_cs_version"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021383 --debug | --debu | --deb | --de | --d | -d )
21384 debug=: ;;
21385 --file | --fil | --fi | --f )
21386 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021387 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021388 ac_need_defaults=false;;
21389 --header | --heade | --head | --hea )
21390 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021391 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021392 ac_need_defaults=false;;
21393 --he | --h)
21394 # Conflict between --help and --header
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021395 { echo "$as_me: error: ambiguous option: $1
21396Try \`$0 --help' for more information." >&2
21397 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021398 --help | --hel | -h )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021399 echo "$ac_cs_usage"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21401 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21402 ac_cs_silent=: ;;
21403
21404 # This is an error.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021405 -*) { echo "$as_me: error: unrecognized option: $1
21406Try \`$0 --help' for more information." >&2
21407 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021408
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021409 *) ac_config_targets="$ac_config_targets $1"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021410 ac_need_defaults=false ;;
21411
21412 esac
21413 shift
21414done
21415
21416ac_configure_extra_args=
21417
21418if $ac_cs_silent; then
21419 exec 6>/dev/null
21420 ac_configure_extra_args="$ac_configure_extra_args --silent"
21421fi
21422
21423_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021424cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021425if \$ac_cs_recheck; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021426 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21427 CONFIG_SHELL=$SHELL
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021428 export CONFIG_SHELL
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021429 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021430fi
21431
21432_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021433cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021434exec 5>>config.log
21435{
21436 echo
21437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21438## Running $as_me. ##
21439_ASBOX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021440 echo "$ac_log"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021441} >&5
21442
21443_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021444cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021445#
21446# INIT-COMMANDS
21447#
21448llvm_src="${srcdir}"
21449
21450_ACEOF
21451
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021452cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021453
21454# Handling of arguments.
21455for ac_config_target in $ac_config_targets
21456do
21457 case $ac_config_target in
21458 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000021459 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21460 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000021461 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar0e18f262009-11-25 04:37:28 +000021462 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth1ec7df12009-10-26 01:35:46 +000021463 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021464 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21465 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000021466 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021467 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21468 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21469 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21470 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21471 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21472 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21473 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21474 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21475 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000021476 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021477 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21478 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21479 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021480 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21481 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021482
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021483 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21484echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21485 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021486 esac
21487done
21488
21489
21490# If the user did not use the arguments to specify the items to instantiate,
21491# then the envvar interface is used. Set only those that are not.
21492# We use the long form for the default assignment because of an extremely
21493# bizarre bug on SunOS 4.1.3.
21494if $ac_need_defaults; then
21495 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21496 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21497 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21498fi
21499
21500# Have a temporary directory for convenience. Make it in the build tree
21501# simply because there is no reason against having it here, and in addition,
21502# creating and moving files from /tmp can sometimes cause problems.
21503# Hook for its removal unless debugging.
21504# Note that there is a small window in which the directory will not be cleaned:
21505# after its creation but before its name has been assigned to `$tmp'.
21506$debug ||
21507{
21508 tmp=
21509 trap 'exit_status=$?
21510 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21511' 0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021512 trap '{ (exit 1); exit 1; }' 1 2 13 15
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021513}
21514# Create a (secure) tmp directory for tmp files.
21515
21516{
21517 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21518 test -n "$tmp" && test -d "$tmp"
21519} ||
21520{
21521 tmp=./conf$$-$RANDOM
21522 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021523} ||
21524{
21525 echo "$me: cannot create a temporary directory in ." >&2
21526 { (exit 1); exit 1; }
21527}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021528
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021529#
21530# Set up the sed scripts for CONFIG_FILES section.
21531#
21532
21533# No need to generate the scripts if there are no CONFIG_FILES.
21534# This happens for instance when ./config.status config.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021535if test -n "$CONFIG_FILES"; then
21536
21537_ACEOF
21538
21539
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021540
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021541ac_delim='%!_!# '
21542for ac_last_try in false false false false false :; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021543 cat >conf$$subs.sed <<_ACEOF
21544SHELL!$SHELL$ac_delim
21545PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21546PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21547PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21548PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21549PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21550PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21551exec_prefix!$exec_prefix$ac_delim
21552prefix!$prefix$ac_delim
21553program_transform_name!$program_transform_name$ac_delim
21554bindir!$bindir$ac_delim
21555sbindir!$sbindir$ac_delim
21556libexecdir!$libexecdir$ac_delim
21557datarootdir!$datarootdir$ac_delim
21558datadir!$datadir$ac_delim
21559sysconfdir!$sysconfdir$ac_delim
21560sharedstatedir!$sharedstatedir$ac_delim
21561localstatedir!$localstatedir$ac_delim
21562includedir!$includedir$ac_delim
21563oldincludedir!$oldincludedir$ac_delim
21564docdir!$docdir$ac_delim
21565infodir!$infodir$ac_delim
21566htmldir!$htmldir$ac_delim
21567dvidir!$dvidir$ac_delim
21568pdfdir!$pdfdir$ac_delim
21569psdir!$psdir$ac_delim
21570libdir!$libdir$ac_delim
21571localedir!$localedir$ac_delim
21572mandir!$mandir$ac_delim
21573DEFS!$DEFS$ac_delim
21574ECHO_C!$ECHO_C$ac_delim
21575ECHO_N!$ECHO_N$ac_delim
21576ECHO_T!$ECHO_T$ac_delim
21577LIBS!$LIBS$ac_delim
21578build_alias!$build_alias$ac_delim
21579host_alias!$host_alias$ac_delim
21580target_alias!$target_alias$ac_delim
21581LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21582subdirs!$subdirs$ac_delim
21583build!$build$ac_delim
21584build_cpu!$build_cpu$ac_delim
21585build_vendor!$build_vendor$ac_delim
21586build_os!$build_os$ac_delim
21587host!$host$ac_delim
21588host_cpu!$host_cpu$ac_delim
21589host_vendor!$host_vendor$ac_delim
21590host_os!$host_os$ac_delim
21591target!$target$ac_delim
21592target_cpu!$target_cpu$ac_delim
21593target_vendor!$target_vendor$ac_delim
21594target_os!$target_os$ac_delim
21595OS!$OS$ac_delim
21596HOST_OS!$HOST_OS$ac_delim
21597TARGET_OS!$TARGET_OS$ac_delim
21598LINKALL!$LINKALL$ac_delim
21599NOLINKALL!$NOLINKALL$ac_delim
21600LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21601LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21602ARCH!$ARCH$ac_delim
21603ENDIAN!$ENDIAN$ac_delim
21604CC!$CC$ac_delim
21605CFLAGS!$CFLAGS$ac_delim
21606LDFLAGS!$LDFLAGS$ac_delim
21607CPPFLAGS!$CPPFLAGS$ac_delim
21608ac_ct_CC!$ac_ct_CC$ac_delim
21609EXEEXT!$EXEEXT$ac_delim
21610OBJEXT!$OBJEXT$ac_delim
21611CPP!$CPP$ac_delim
21612GREP!$GREP$ac_delim
21613EGREP!$EGREP$ac_delim
21614LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21615BUILD_CC!$BUILD_CC$ac_delim
21616BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21617BUILD_CXX!$BUILD_CXX$ac_delim
21618CVSBUILD!$CVSBUILD$ac_delim
21619ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21620ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21621DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21622ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21623EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21624DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21625DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21626JIT!$JIT$ac_delim
21627TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21628ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21629ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21630ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +000021631ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbar64732b72010-05-10 20:11:56 +000021632ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021633TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21634LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21635LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21636LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21637LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21638ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000021639CLANGPATH!$CLANGPATH$ac_delim
21640CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021641_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021642
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021643 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021644 break
21645 elif $ac_last_try; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021646 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21647echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21648 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021649 else
21650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21651 fi
21652done
21653
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021654ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21655if test -n "$ac_eof"; then
21656 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21657 ac_eof=`expr $ac_eof + 1`
21658fi
21659
21660cat >>$CONFIG_STATUS <<_ACEOF
21661cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21662/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021663_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021664sed '
21665s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21666s/^/s,@/; s/!/@,|#_!!_#|/
21667:n
21668t n
21669s/'"$ac_delim"'$/,g/; t
21670s/$/\\/; p
21671N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21672' >>$CONFIG_STATUS <conf$$subs.sed
21673rm -f conf$$subs.sed
21674cat >>$CONFIG_STATUS <<_ACEOF
21675CEOF$ac_eof
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021676_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021677
21678
21679ac_delim='%!_!# '
21680for ac_last_try in false false false false false :; do
21681 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar64732b72010-05-10 20:11:56 +000021682ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +000021683OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000021684EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21685BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21686ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021687ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21688CXX!$CXX$ac_delim
21689CXXFLAGS!$CXXFLAGS$ac_delim
21690ac_ct_CXX!$ac_ct_CXX$ac_delim
21691NM!$NM$ac_delim
21692ifGNUmake!$ifGNUmake$ac_delim
21693LN_S!$LN_S$ac_delim
21694CMP!$CMP$ac_delim
21695CP!$CP$ac_delim
21696DATE!$DATE$ac_delim
21697FIND!$FIND$ac_delim
21698MKDIR!$MKDIR$ac_delim
21699MV!$MV$ac_delim
21700RANLIB!$RANLIB$ac_delim
21701AR!$AR$ac_delim
21702RM!$RM$ac_delim
21703SED!$SED$ac_delim
21704TAR!$TAR$ac_delim
21705BINPWD!$BINPWD$ac_delim
21706GRAPHVIZ!$GRAPHVIZ$ac_delim
21707DOT!$DOT$ac_delim
21708FDP!$FDP$ac_delim
21709NEATO!$NEATO$ac_delim
21710TWOPI!$TWOPI$ac_delim
21711CIRCO!$CIRCO$ac_delim
21712GV!$GV$ac_delim
21713DOTTY!$DOTTY$ac_delim
21714PERL!$PERL$ac_delim
21715HAVE_PERL!$HAVE_PERL$ac_delim
21716INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21717INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21718INSTALL_DATA!$INSTALL_DATA$ac_delim
21719BZIP2!$BZIP2$ac_delim
mike-mbc167782010-05-06 23:45:43 +000021720CAT!$CAT$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021721DOXYGEN!$DOXYGEN$ac_delim
21722GROFF!$GROFF$ac_delim
21723GZIP!$GZIP$ac_delim
21724POD2HTML!$POD2HTML$ac_delim
21725POD2MAN!$POD2MAN$ac_delim
mike-mbc167782010-05-06 23:45:43 +000021726PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021727RUNTEST!$RUNTEST$ac_delim
21728TCLSH!$TCLSH$ac_delim
21729ZIP!$ZIP$ac_delim
21730OCAMLC!$OCAMLC$ac_delim
21731OCAMLOPT!$OCAMLOPT$ac_delim
21732OCAMLDEP!$OCAMLDEP$ac_delim
21733OCAMLDOC!$OCAMLDOC$ac_delim
21734GAS!$GAS$ac_delim
Dan Gohman27933ab2010-06-01 14:56:56 +000021735HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021736INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21737INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21738CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21739CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21740LIBADD_DL!$LIBADD_DL$ac_delim
21741LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21742LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21743LLVMGCC!$LLVMGCC$ac_delim
21744LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000021745LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021746NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21747NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21748USE_UDIS86!$USE_UDIS86$ac_delim
21749USE_OPROFILE!$USE_OPROFILE$ac_delim
21750HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21751HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21752MMAP_FILE!$MMAP_FILE$ac_delim
21753LLVMCC1!$LLVMCC1$ac_delim
21754LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21755LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021756LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21757SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskin9b39a932010-02-25 06:34:33 +000021758SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021759LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21760LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21761LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21762LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21763LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21764LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21765LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21766LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21767LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21768LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21769BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21770ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21771OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21772ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21773RPATH!$RPATH$ac_delim
21774RDYNAMIC!$RDYNAMIC$ac_delim
21775LIBOBJS!$LIBOBJS$ac_delim
21776LTLIBOBJS!$LTLIBOBJS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021777_ACEOF
21778
Daniel Dunbar64732b72010-05-10 20:11:56 +000021779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021780 break
21781 elif $ac_last_try; then
21782 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21783echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21784 { (exit 1); exit 1; }; }
21785 else
21786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21787 fi
21788done
21789
21790ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21791if test -n "$ac_eof"; then
21792 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21793 ac_eof=`expr $ac_eof + 1`
21794fi
21795
21796cat >>$CONFIG_STATUS <<_ACEOF
21797cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21799_ACEOF
21800sed '
21801s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21802s/^/s,@/; s/!/@,|#_!!_#|/
21803:n
21804t n
21805s/'"$ac_delim"'$/,g/; t
21806s/$/\\/; p
21807N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21808' >>$CONFIG_STATUS <conf$$subs.sed
21809rm -f conf$$subs.sed
21810cat >>$CONFIG_STATUS <<_ACEOF
21811:end
21812s/|#_!!_#|//g
21813CEOF$ac_eof
21814_ACEOF
21815
21816
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021817# VPATH may cause trouble with some makes, so we remove $(srcdir),
21818# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21819# trailing colons and then remove the whole line if VPATH becomes empty
21820# (actually we leave an empty line to preserve line numbers).
21821if test "x$srcdir" = x.; then
21822 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21823s/:*\$(srcdir):*/:/
21824s/:*\${srcdir}:*/:/
21825s/:*@srcdir@:*/:/
21826s/^\([^=]*=[ ]*\):*/\1/
21827s/:*$//
21828s/^[^=]*=[ ]*$//
21829}'
21830fi
21831
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021832cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021833fi # test -n "$CONFIG_FILES"
21834
21835
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021836for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021837do
21838 case $ac_tag in
21839 :[FHLC]) ac_mode=$ac_tag; continue;;
21840 esac
21841 case $ac_mode$ac_tag in
21842 :[FHL]*:*);;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021843 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21844echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21845 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021846 :[FH]-) ac_tag=-:-;;
21847 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21848 esac
21849 ac_save_IFS=$IFS
21850 IFS=:
21851 set x $ac_tag
21852 IFS=$ac_save_IFS
21853 shift
21854 ac_file=$1
21855 shift
21856
21857 case $ac_mode in
21858 :L) ac_source=$1;;
21859 :[FH])
21860 ac_file_inputs=
21861 for ac_f
21862 do
21863 case $ac_f in
21864 -) ac_f="$tmp/stdin";;
21865 *) # Look for the file first in the build tree, then in the source tree
21866 # (if the path is not absolute). The absolute path cannot be DOS-style,
21867 # because $ac_f cannot contain `:'.
21868 test -f "$ac_f" ||
21869 case $ac_f in
21870 [\\/$]*) false;;
21871 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21872 esac ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021873 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21874echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21875 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021876 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021877 ac_file_inputs="$ac_file_inputs $ac_f"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021878 done
21879
21880 # Let's still pretend it is `configure' which instantiates (i.e., don't
21881 # use $as_me), people would be surprised to read:
21882 # /* config.h. Generated by config.status. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021883 configure_input="Generated from "`IFS=:
21884 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021885 if test x"$ac_file" != x-; then
21886 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021887 { echo "$as_me:$LINENO: creating $ac_file" >&5
21888echo "$as_me: creating $ac_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021889 fi
21890
21891 case $ac_tag in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021892 *:-:* | *:-) cat >"$tmp/stdin";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021893 esac
21894 ;;
21895 esac
21896
21897 ac_dir=`$as_dirname -- "$ac_file" ||
21898$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899 X"$ac_file" : 'X\(//\)[^/]' \| \
21900 X"$ac_file" : 'X\(//\)$' \| \
21901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021902echo X"$ac_file" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21904 s//\1/
21905 q
21906 }
21907 /^X\(\/\/\)[^/].*/{
21908 s//\1/
21909 q
21910 }
21911 /^X\(\/\/\)$/{
21912 s//\1/
21913 q
21914 }
21915 /^X\(\/\).*/{
21916 s//\1/
21917 q
21918 }
21919 s/.*/./; q'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021920 { as_dir="$ac_dir"
21921 case $as_dir in #(
21922 -*) as_dir=./$as_dir;;
21923 esac
21924 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21925 as_dirs=
21926 while :; do
21927 case $as_dir in #(
21928 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21929 *) as_qdir=$as_dir;;
21930 esac
21931 as_dirs="'$as_qdir' $as_dirs"
21932 as_dir=`$as_dirname -- "$as_dir" ||
21933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21934 X"$as_dir" : 'X\(//\)[^/]' \| \
21935 X"$as_dir" : 'X\(//\)$' \| \
21936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21937echo X"$as_dir" |
21938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21939 s//\1/
21940 q
21941 }
21942 /^X\(\/\/\)[^/].*/{
21943 s//\1/
21944 q
21945 }
21946 /^X\(\/\/\)$/{
21947 s//\1/
21948 q
21949 }
21950 /^X\(\/\).*/{
21951 s//\1/
21952 q
21953 }
21954 s/.*/./; q'`
21955 test -d "$as_dir" && break
21956 done
21957 test -z "$as_dirs" || eval "mkdir $as_dirs"
21958 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21959echo "$as_me: error: cannot create directory $as_dir" >&2;}
21960 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021961 ac_builddir=.
21962
21963case "$ac_dir" in
21964.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21965*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021966 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021967 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021968 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021969 case $ac_top_builddir_sub in
21970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21972 esac ;;
21973esac
21974ac_abs_top_builddir=$ac_pwd
21975ac_abs_builddir=$ac_pwd$ac_dir_suffix
21976# for backward compatibility:
21977ac_top_builddir=$ac_top_build_prefix
21978
21979case $srcdir in
21980 .) # We are building in place.
21981 ac_srcdir=.
21982 ac_top_srcdir=$ac_top_builddir_sub
21983 ac_abs_top_srcdir=$ac_pwd ;;
21984 [\\/]* | ?:[\\/]* ) # Absolute name.
21985 ac_srcdir=$srcdir$ac_dir_suffix;
21986 ac_top_srcdir=$srcdir
21987 ac_abs_top_srcdir=$srcdir ;;
21988 *) # Relative name.
21989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21990 ac_top_srcdir=$ac_top_build_prefix$srcdir
21991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21992esac
21993ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21994
21995
21996 case $ac_mode in
21997 :F)
21998 #
21999 # CONFIG_FILE
22000 #
22001
22002 case $INSTALL in
22003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22004 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22005 esac
22006_ACEOF
22007
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022008cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022009# If the template does not know about datarootdir, expand it.
22010# FIXME: This hack should be removed a few years after 2.60.
22011ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022012
22013case `sed -n '/datarootdir/ {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022014 p
22015 q
22016}
22017/@datadir@/p
22018/@docdir@/p
22019/@infodir@/p
22020/@localedir@/p
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022021/@mandir@/p
22022' $ac_file_inputs` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022023*datarootdir*) ac_datarootdir_seen=yes;;
22024*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022025 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22026echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022027_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022028cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022029 ac_datarootdir_hack='
22030 s&@datadir@&$datadir&g
22031 s&@docdir@&$docdir&g
22032 s&@infodir@&$infodir&g
22033 s&@localedir@&$localedir&g
22034 s&@mandir@&$mandir&g
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022035 s&\\\${datarootdir}&$datarootdir&g' ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022036esac
22037_ACEOF
22038
22039# Neutralize VPATH when `$srcdir' = `.'.
22040# Shell code in configure.ac might set extrasub.
22041# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022042cat >>$CONFIG_STATUS <<_ACEOF
22043 sed "$ac_vpsub
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022044$extrasub
22045_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022046cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022047:t
22048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022049s&@configure_input@&$configure_input&;t t
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022050s&@top_builddir@&$ac_top_builddir_sub&;t t
22051s&@srcdir@&$ac_srcdir&;t t
22052s&@abs_srcdir@&$ac_abs_srcdir&;t t
22053s&@top_srcdir@&$ac_top_srcdir&;t t
22054s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22055s&@builddir@&$ac_builddir&;t t
22056s&@abs_builddir@&$ac_abs_builddir&;t t
22057s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22058s&@INSTALL@&$ac_INSTALL&;t t
22059$ac_datarootdir_hack
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022060" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022061
22062test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22063 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22064 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022065 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022066which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022067echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022068which seems to be undefined. Please make sure it is defined." >&2;}
22069
22070 rm -f "$tmp/stdin"
22071 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022072 -) cat "$tmp/out"; rm -f "$tmp/out";;
22073 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22074 esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022075 ;;
22076 :H)
22077 #
22078 # CONFIG_HEADER
22079 #
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022080_ACEOF
22081
22082# Transform confdefs.h into a sed script `conftest.defines', that
22083# substitutes the proper values into config.h.in to produce config.h.
22084rm -f conftest.defines conftest.tail
22085# First, append a space to every undef/define line, to ease matching.
22086echo 's/$/ /' >conftest.defines
22087# Then, protect against being on the right side of a sed subst, or in
22088# an unquoted here document, in config.status. If some macros were
22089# called several times there might be several #defines for the same
22090# symbol, which is useless. But do not sort them, since the last
22091# AC_DEFINE must be honored.
22092ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22093# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22094# NAME is the cpp macro being defined, VALUE is the value it is being given.
22095# PARAMS is the parameter list in the macro definition--in most cases, it's
22096# just an empty string.
22097ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22098ac_dB='\\)[ (].*,\\1define\\2'
22099ac_dC=' '
22100ac_dD=' ,'
22101
22102uniq confdefs.h |
22103 sed -n '
22104 t rset
22105 :rset
22106 s/^[ ]*#[ ]*define[ ][ ]*//
22107 t ok
22108 d
22109 :ok
22110 s/[\\&,]/\\&/g
22111 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22112 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22113 ' >>conftest.defines
22114
22115# Remove the space that was appended to ease matching.
22116# Then replace #undef with comments. This is necessary, for
22117# example, in the case of _POSIX_SOURCE, which is predefined and required
22118# on some systems where configure will not decide to define it.
22119# (The regexp can be short, since the line contains either #define or #undef.)
22120echo 's/ $//
22121s,^[ #]*u.*,/* & */,' >>conftest.defines
22122
22123# Break up conftest.defines:
22124ac_max_sed_lines=50
22125
22126# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22127# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22128# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22129# et cetera.
22130ac_in='$ac_file_inputs'
22131ac_out='"$tmp/out1"'
22132ac_nxt='"$tmp/out2"'
22133
22134while :
22135do
22136 # Write a here document:
22137 cat >>$CONFIG_STATUS <<_ACEOF
22138 # First, check the format of the line:
22139 cat >"\$tmp/defines.sed" <<\\CEOF
22140/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22141/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22142b
22143:def
22144_ACEOF
22145 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22146 echo 'CEOF
22147 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22148 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22149 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22150 grep . conftest.tail >/dev/null || break
22151 rm -f conftest.defines
22152 mv conftest.tail conftest.defines
22153done
22154rm -f conftest.defines conftest.tail
22155
22156echo "ac_result=$ac_in" >>$CONFIG_STATUS
22157cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022158 if test x"$ac_file" != x-; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022159 echo "/* $configure_input */" >"$tmp/config.h"
22160 cat "$ac_result" >>"$tmp/config.h"
22161 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22162 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22163echo "$as_me: $ac_file is unchanged" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022164 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022165 rm -f $ac_file
22166 mv "$tmp/config.h" $ac_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022167 fi
22168 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022169 echo "/* $configure_input */"
22170 cat "$ac_result"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022171 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022172 rm -f "$tmp/out12"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022173 ;;
22174
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022175 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22176echo "$as_me: executing $ac_file commands" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022177 ;;
22178 esac
22179
22180
22181 case $ac_file$ac_mode in
22182 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022183 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022184 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Edwin Törökab4193b2009-08-28 16:12:48 +000022185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022186 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022188 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022190 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022192 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022194 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Edwin Törökab4193b2009-08-28 16:12:48 +000022195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000022196 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022198 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022199 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022200 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022201 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022202 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022203 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000022204 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000022205 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000022206 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Edwin Törökab4193b2009-08-28 16:12:48 +000022207 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022208
22209 esac
22210done # for ac_tag
22211
22212
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022213{ (exit 0); exit 0; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022214_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022215chmod +x $CONFIG_STATUS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022216ac_clean_files=$ac_clean_files_save
22217
22218
22219# configure is writing to config.log, and then calls config.status.
22220# config.status does its own redirection, appending to config.log.
22221# Unfortunately, on DOS this fails, as config.log is still kept open
22222# by configure, so config.status won't be able to write to it; its
22223# output is simply discarded. So we exec the FD to /dev/null,
22224# effectively closing config.log, so it can be properly (re)opened and
22225# appended to by config.status. When coming back to configure, we
22226# need to make the FD available again.
22227if test "$no_create" != yes; then
22228 ac_cs_success=:
22229 ac_config_status_args=
22230 test "$silent" = yes &&
22231 ac_config_status_args="$ac_config_status_args --quiet"
22232 exec 5>/dev/null
22233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22234 exec 5>>config.log
22235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22236 # would make configure fail if this is the last instruction.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022237 $ac_cs_success || { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022238fi
22239
22240#
22241# CONFIG_SUBDIRS section.
22242#
22243if test "$no_recursion" != yes; then
22244
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022245 # Remove --cache-file and --srcdir arguments so they do not pile up.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022246 ac_sub_configure_args=
22247 ac_prev=
22248 eval "set x $ac_configure_args"
22249 shift
22250 for ac_arg
22251 do
22252 if test -n "$ac_prev"; then
22253 ac_prev=
22254 continue
22255 fi
22256 case $ac_arg in
22257 -cache-file | --cache-file | --cache-fil | --cache-fi \
22258 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22259 ac_prev=cache_file ;;
22260 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22261 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22262 | --c=*)
22263 ;;
22264 --config-cache | -C)
22265 ;;
22266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22267 ac_prev=srcdir ;;
22268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22269 ;;
22270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22271 ac_prev=prefix ;;
22272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22273 ;;
22274 *)
22275 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022276 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022277 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022278 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022279 esac
22280 done
22281
22282 # Always prepend --prefix to ensure using the same prefix
22283 # in subdir configurations.
22284 ac_arg="--prefix=$prefix"
22285 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022286 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022287 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022288 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022289
22290 ac_popdir=`pwd`
22291 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22292
22293 # Do not complain, so a configure script can configure whichever
22294 # parts of a large source tree are present.
22295 test -d "$srcdir/$ac_dir" || continue
22296
22297 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022298 echo "$as_me:$LINENO: $ac_msg" >&5
22299 echo "$ac_msg" >&6
22300 { as_dir="$ac_dir"
22301 case $as_dir in #(
22302 -*) as_dir=./$as_dir;;
22303 esac
22304 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22305 as_dirs=
22306 while :; do
22307 case $as_dir in #(
22308 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22309 *) as_qdir=$as_dir;;
22310 esac
22311 as_dirs="'$as_qdir' $as_dirs"
22312 as_dir=`$as_dirname -- "$as_dir" ||
22313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22314 X"$as_dir" : 'X\(//\)[^/]' \| \
22315 X"$as_dir" : 'X\(//\)$' \| \
22316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22317echo X"$as_dir" |
22318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22319 s//\1/
22320 q
22321 }
22322 /^X\(\/\/\)[^/].*/{
22323 s//\1/
22324 q
22325 }
22326 /^X\(\/\/\)$/{
22327 s//\1/
22328 q
22329 }
22330 /^X\(\/\).*/{
22331 s//\1/
22332 q
22333 }
22334 s/.*/./; q'`
22335 test -d "$as_dir" && break
22336 done
22337 test -z "$as_dirs" || eval "mkdir $as_dirs"
22338 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22339echo "$as_me: error: cannot create directory $as_dir" >&2;}
22340 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022341 ac_builddir=.
22342
22343case "$ac_dir" in
22344.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22345*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022347 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022348 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022349 case $ac_top_builddir_sub in
22350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22352 esac ;;
22353esac
22354ac_abs_top_builddir=$ac_pwd
22355ac_abs_builddir=$ac_pwd$ac_dir_suffix
22356# for backward compatibility:
22357ac_top_builddir=$ac_top_build_prefix
22358
22359case $srcdir in
22360 .) # We are building in place.
22361 ac_srcdir=.
22362 ac_top_srcdir=$ac_top_builddir_sub
22363 ac_abs_top_srcdir=$ac_pwd ;;
22364 [\\/]* | ?:[\\/]* ) # Absolute name.
22365 ac_srcdir=$srcdir$ac_dir_suffix;
22366 ac_top_srcdir=$srcdir
22367 ac_abs_top_srcdir=$srcdir ;;
22368 *) # Relative name.
22369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22370 ac_top_srcdir=$ac_top_build_prefix$srcdir
22371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22372esac
22373ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22374
22375
22376 cd "$ac_dir"
22377
22378 # Check for guested configure; otherwise get Cygnus style configure.
22379 if test -f "$ac_srcdir/configure.gnu"; then
22380 ac_sub_configure=$ac_srcdir/configure.gnu
22381 elif test -f "$ac_srcdir/configure"; then
22382 ac_sub_configure=$ac_srcdir/configure
22383 elif test -f "$ac_srcdir/configure.in"; then
22384 # This should be Cygnus configure.
22385 ac_sub_configure=$ac_aux_dir/configure
22386 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022387 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22388echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022389 ac_sub_configure=
22390 fi
22391
22392 # The recursion is here.
22393 if test -n "$ac_sub_configure"; then
22394 # Make the cache file name correct relative to the subdirectory.
22395 case $cache_file in
22396 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22397 *) # Relative name.
22398 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22399 esac
22400
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022401 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22402echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022403 # The eval makes quoting arguments work.
22404 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22405 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000022406 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22407echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22408 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022409 fi
22410
22411 cd "$ac_popdir"
22412 done
22413fi
22414