blob: 877231a99adbad00c9690e6cdff52c54d88f6762 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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#
Tanya Lattner916a91122009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 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
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017# Be Bourne compatible
18if 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 Lattner7e5c8aa2009-08-22 04:37:30 +0000564PACKAGE_VERSION='2.7svn'
565PACKAGE_STRING='llvm 2.7svn'
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 Yasskin42d27c72010-02-23 18:10:07 +0000692ENABLE_SHARED
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000693TARGETS_TO_BUILD
694LLVM_ENUM_TARGETS
695LLVM_ENUM_ASM_PRINTERS
696LLVM_ENUM_ASM_PARSERS
697LLVM_ENUM_DISASSEMBLERS
698ENABLE_CBE_PRINTF_A
Daniel Dunbarf80d8f32010-02-23 10:00:49 +0000699CLANGPATH
700CLANGXXPATH
701ENABLE_BUILT_CLANG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000702OPTIMIZE_OPTION
703EXTRA_OPTIONS
704BINUTILS_INCDIR
705ENABLE_LLVMC_DYNAMIC
706ENABLE_LLVMC_DYNAMIC_PLUGINS
707CXX
708CXXFLAGS
709ac_ct_CXX
710NM
711ifGNUmake
712LN_S
713CMP
714CP
715DATE
716FIND
717MKDIR
718MV
719RANLIB
720AR
721RM
722SED
723TAR
724BINPWD
725GRAPHVIZ
726DOT
727FDP
728NEATO
729TWOPI
730CIRCO
731GV
732DOTTY
733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
744RUNTEST
745TCLSH
746ZIP
747OCAMLC
748OCAMLOPT
749OCAMLDEP
750OCAMLDOC
751GAS
752INSTALL_LTDL_TRUE
753INSTALL_LTDL_FALSE
754CONVENIENCE_LTDL_TRUE
755CONVENIENCE_LTDL_FALSE
756LIBADD_DL
757LLVMGCCCOMMAND
758LLVMGXXCOMMAND
759LLVMGCC
760LLVMGXX
Daniel Dunbarf80d8f32010-02-23 10:00:49 +0000761LLVMCC_OPTION
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769LLVMCC1
770LLVMCC1PLUS
771LLVMGCCDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000772LLVMGCC_LANGS
773SHLIBEXT
Jeffrey Yasskin42d27c72010-02-23 18:10:07 +0000774SHLIBPATH_VAR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000793ac_subst_files=''
794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
801CPP
802CXX
803CXXFLAGS
Edwin Törökc27310c2010-01-26 08:50:50 +0000804CCC'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000805ac_subdirs_all='projects/sample
806projects/privbracket
807projects/llvm-stacker
808projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000809projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000810projects/llvm-reopt
811projects/llvm-gcc
812projects/llvm-java
813projects/llvm-tv
814projects/llvm-poolalloc
815projects/poolalloc
816projects/llvm-kernel'
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
843# (The list follows the same order as the GNU Coding Standards.)
844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
852includedir='${prefix}/include'
853oldincludedir='/usr/include'
854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
863
864ac_prev=
865ac_dashdash=
866for ac_option
867do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000920 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
936
937 -enable-* | --enable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000939 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001136 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001142
1143 -without-* | --without-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001199fi
1200
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001201# Be sure to have absolute directory names.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206do
1207 eval ac_val=\$$ac_var
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
1240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001248
1249
1250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001254 ac_confdir=`$as_dirname -- "$0" ||
1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259echo X"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
1284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
1310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001318\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001340 [$ac_default_prefix]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001342 [PREFIX]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383 case $ac_init_help in
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001384 short | recursive ) echo "Configuration of llvm 2.7svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001385 esac
1386 cat <<\_ACEOF
1387
1388Optional Features:
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001391 --enable-optimized Compile with optimizations enabled (default is NO)
1392 --enable-profiling Compile with profiling enabled (default is NO)
1393 --enable-assertions Compile with assertion checks enabled (default is
1394 YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001395 --enable-expensive-checks
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001396 Compile with expensive debug checks enabled (default
1397 is NO)
1398 --enable-debug-runtime Build runtime libs with debug symbols (default is
1399 NO)
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00001400 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1401 optimization is on and YES if it's off)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001402 --enable-jit Enable Just In Time Compiling (default is YES)
1403 --enable-doxygen Build doxygen documentation (default is NO)
1404 --enable-threads Use threads if available (default is YES)
1405 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001406 is YES)
Jeffrey Yasskin42d27c72010-02-23 18:10:07 +00001407 --enable-shared Link LLVM tools shared (default is NO)
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00001408 --enable-targets Build specific host targets: all or
1409 target1,target2,... Valid targets are: host, x86,
1410 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1411 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1412 and cpp (default=all)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001413 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1414 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001415 --enable-bindings Build specific language bindings:
1416 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskin260af332010-02-09 23:03:44 +00001417 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001418 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1419 Win32)
1420 --enable-llvmc-dynamic-plugins
1421 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001422 --enable-ltdl-install install libltdl
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001423
1424Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1428 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001429 --with-llvmgcc Specify location of llvm-gcc driver (default
1430 searches PATH)
1431 --with-llvmgxx Specify location of llvm-g++ driver (default
1432 searches PATH)
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00001433 --with-clang Specify location of clang compiler (default is
1434 --with-built-clang)
1435 --with-built-clang Use the compiled Clang as the LLVM compiler
1436 (default=check)
Daniel Dunbarca58fd82009-11-04 04:32:50 +00001437 --with-optimize-option Select the compiler options to use for optimized
1438 builds
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001439 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001440 --with-ocaml-libdir Specify install location for ocaml bindings (default
1441 is stdlib)
Rafael Espindola354924d2009-11-12 05:46:09 +00001442 --with-c-include-dirs Colon separated list of directories clang will
1443 search for headers
Rafael Espindola3890bf02009-11-16 19:46:55 +00001444 --with-cxx-include-root Directory with the libstdc++ headers.
1445 --with-cxx-include-arch Architecture of the libstdc++ headers.
1446 --with-cxx-include-32bit-dir
1447 32 bit multilib dir.
1448 --with-cxx-include-64bit-dir
1449 64 bit multilib directory.
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001450 --with-binutils-include Specify path to binutils/include/ containing
1451 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001452 --with-tclinclude directory where tcl headers are
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00001453 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1454 clang, or none; default=check)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001455 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001456 --with-oprofile=<prefix>
1457 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001458
1459Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001465 you have headers in a nonstandard directory <include dir>
1466 CPP C preprocessor
1467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <llvmbugs@cs.uiuc.edu>.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001481 test -d "$ac_dir" || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001482 ac_builddir=.
1483
1484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001488 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
1499
1500case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513esac
1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1524 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1528 done
1529fi
1530
1531test -n "$ac_init_help" && exit $ac_status
1532if $ac_init_version; then
1533 cat <<\_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001534llvm configure 2.7svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001535generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001536
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001537Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15382002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
1541
Tanya Lattner916a91122009-08-22 21:01:26 +00001542Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001543_ACEOF
1544 exit
1545fi
1546cat >config.log <<_ACEOF
1547This file contains any messages produced by compilers while
1548running configure, to aid debugging if configure makes a mistake.
1549
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001550It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001551generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001552
1553 $ $0 $@
1554
1555_ACEOF
1556exec 5>>config.log
1557{
1558cat <<_ASUNAME
1559## --------- ##
1560## Platform. ##
1561## --------- ##
1562
1563hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571
1572/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1576/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579
1580_ASUNAME
1581
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001587 echo "PATH: $as_dir"
1588done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001589IFS=$as_save_IFS
1590
1591} >&5
1592
1593cat >&5 <<_ACEOF
1594
1595
1596## ----------- ##
1597## Core tests. ##
1598## ----------- ##
1599
1600_ACEOF
1601
1602
1603# Keep a trace of the command line.
1604# Strip out --no-create and --no-recursion so they do not pile up.
1605# Strip out --silent because we don't want to record it for future runs.
1606# Also quote any args containing shell meta-characters.
1607# Make two passes to allow for proper duplicate-argument suppression.
1608ac_configure_args=
1609ac_configure_args0=
1610ac_configure_args1=
1611ac_must_keep_next=false
1612for ac_pass in 1 2
1613do
1614 for ac_arg
1615 do
1616 case $ac_arg in
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1620 continue ;;
1621 *\'*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001623 esac
1624 case $ac_pass in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001626 2)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001628 if test $ac_must_keep_next = true; then
1629 ac_must_keep_next=false # Got value, back to normal.
1630 else
1631 case $ac_arg in
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 esac
1639 ;;
1640 -* ) ac_must_keep_next=true ;;
1641 esac
1642 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001643 ac_configure_args="$ac_configure_args '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001644 ;;
1645 esac
1646 done
1647done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001648$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649$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 +00001650
1651# When interrupted or exit'd, cleanup temporary files, and complete
1652# config.log. We remove comments because anyway the quotes in there
1653# would cause problems or look ugly.
1654# WARNING: Use '\'' to represent an apostrophe within the trap.
1655# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1658 {
1659 echo
1660
1661 cat <<\_ASBOX
1662## ---------------- ##
1663## Cache variables. ##
1664## ---------------- ##
1665_ASBOX
1666 echo
1667 # The following way of writing the cache mishandles newlines in values,
1668(
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1671 case $ac_val in #(
1672 *${as_nl}*)
1673 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001676 esac
1677 case $ac_var in #(
1678 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001679 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001680 esac ;;
1681 esac
1682 done
1683 (set) 2>&1 |
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
1686 sed -n \
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 ;; #(
1690 *)
1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692 ;;
1693 esac |
1694 sort
1695)
1696 echo
1697
1698 cat <<\_ASBOX
1699## ----------------- ##
1700## Output variables. ##
1701## ----------------- ##
1702_ASBOX
1703 echo
1704 for ac_var in $ac_subst_vars
1705 do
1706 eval ac_val=\$$ac_var
1707 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001709 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001710 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001711 done | sort
1712 echo
1713
1714 if test -n "$ac_subst_files"; then
1715 cat <<\_ASBOX
1716## ------------------- ##
1717## File substitutions. ##
1718## ------------------- ##
1719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_files
1722 do
1723 eval ac_val=\$$ac_var
1724 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001726 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001727 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001728 done | sort
1729 echo
1730 fi
1731
1732 if test -s confdefs.h; then
1733 cat <<\_ASBOX
1734## ----------- ##
1735## confdefs.h. ##
1736## ----------- ##
1737_ASBOX
1738 echo
1739 cat confdefs.h
1740 echo
1741 fi
1742 test "$ac_signal" != 0 &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001745 } >&5
1746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748 exit $exit_status
1749' 0
1750for ac_signal in 1 2 13 15; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001752done
1753ac_signal=0
1754
1755# confdefs.h avoids OS command line length limits that DEFS can exceed.
1756rm -f -r conftest* confdefs.h
1757
1758# Predefined preprocessor variables.
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_NAME "$PACKAGE_NAME"
1762_ACEOF
1763
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001764
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767_ACEOF
1768
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001769
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_VERSION "$PACKAGE_VERSION"
1772_ACEOF
1773
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001774
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_STRING "$PACKAGE_STRING"
1777_ACEOF
1778
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001779
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782_ACEOF
1783
1784
1785# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001786# Prefer explicitly selected file to automatically selected ones.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001787if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001788 set x "$CONFIG_SITE"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001789elif test "x$prefix" != xNONE; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001791else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001794fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001795shift
1796for ac_site_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001797do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800echo "$as_me: loading site script $ac_site_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001801 sed 's/^/| /' "$ac_site_file" >&5
1802 . "$ac_site_file"
1803 fi
1804done
1805
1806if test -r "$cache_file"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811echo "$as_me: loading cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001812 case $cache_file in
1813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
1815 esac
1816 fi
1817else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819echo "$as_me: creating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001820 >$cache_file
1821fi
1822
1823# Check that the precious variables saved in the cache have kept the same
1824# value.
1825ac_cache_corrupted=false
1826for ac_var in $ac_precious_vars; do
1827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
1829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
1831 case $ac_old_set,$ac_new_set in
1832 set,)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001835 ac_cache_corrupted=: ;;
1836 ,set)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001839 ac_cache_corrupted=: ;;
1840 ,);;
1841 *)
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001850 fi;;
1851 esac
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1854 case $ac_new_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001856 *) ac_arg=$ac_var=$ac_new_val ;;
1857 esac
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001861 esac
1862 fi
1863done
1864if $ac_cache_corrupted; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001870fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001895
1896ac_ext=c
1897ac_cpp='$CPP $CPPFLAGS'
1898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
Tanya Lattner916a91122009-08-22 21:01:26 +00001904LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001905
1906
1907
1908
1909
1910
1911
1912ac_aux_dir=
1913for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001914 if test -f "$ac_dir/install-sh"; then
1915 ac_aux_dir=$ac_dir
1916 ac_install_sh="$ac_aux_dir/install-sh -c"
1917 break
1918 elif test -f "$ac_dir/install.sh"; then
1919 ac_aux_dir=$ac_dir
1920 ac_install_sh="$ac_aux_dir/install.sh -c"
1921 break
1922 elif test -f "$ac_dir/shtool"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 break
1926 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001927done
1928if test -z "$ac_aux_dir"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001929 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1931 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001932fi
1933
1934# These three variables are undocumented and unsupported,
1935# and are intended to be withdrawn in a future Autoconf release.
1936# They can cause serious problems if a builder's source tree is in a directory
1937# whose full name contains unusual characters.
1938ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1939ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1940ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1941
1942
1943
1944if test ${srcdir} != "." ; then
1945 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001946 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1947echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1948 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001949 fi
1950fi
1951
1952for i in `ls ${srcdir}/projects`
1953do
1954 if test -d ${srcdir}/projects/${i} ; then
1955 case ${i} in
1956 CVS) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001957 sample) subdirs="$subdirs projects/sample"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001958 ;;
1959 privbracket) subdirs="$subdirs projects/privbracket"
1960 ;;
1961 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1962 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00001963 # llvm-test is the old name of the test-suite, kept here for backwards
1964 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001965 llvm-test) subdirs="$subdirs projects/llvm-test"
1966 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00001967 test-suite) subdirs="$subdirs projects/test-suite"
1968 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001969 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1970;;
1971 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1972 ;;
1973 llvm-java) subdirs="$subdirs projects/llvm-java"
1974 ;;
1975 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1976 ;;
1977 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1978 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00001979 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001980 ;;
1981 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1982 ;;
1983 *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001984 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1985echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001986 ;;
1987 esac
1988 fi
1989done
1990
1991
1992# Make sure we can run config.sub.
1993$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001994 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1996 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001997
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001998{ echo "$as_me:$LINENO: checking build system type" >&5
1999echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2000if test "${ac_cv_build+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002002else
2003 ac_build_alias=$build_alias
2004test "x$ac_build_alias" = x &&
2005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006test "x$ac_build_alias" = x &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002007 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002010ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002011 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2013 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002014
2015fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002016{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017echo "${ECHO_T}$ac_cv_build" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002018case $ac_cv_build in
2019*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002020*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021echo "$as_me: error: invalid value of canonical build" >&2;}
2022 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002023esac
2024build=$ac_cv_build
2025ac_save_IFS=$IFS; IFS='-'
2026set x $ac_cv_build
2027shift
2028build_cpu=$1
2029build_vendor=$2
2030shift; shift
2031# Remember, the first character of IFS is used to create $*,
2032# except with old shells:
2033build_os=$*
2034IFS=$ac_save_IFS
2035case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2036
2037
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002038{ echo "$as_me:$LINENO: checking host system type" >&5
2039echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2040if test "${ac_cv_host+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002042else
2043 if test "x$host_alias" = x; then
2044 ac_cv_host=$ac_cv_build
2045else
2046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002047 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2049 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002050fi
2051
2052fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002053{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054echo "${ECHO_T}$ac_cv_host" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002055case $ac_cv_host in
2056*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002057*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058echo "$as_me: error: invalid value of canonical host" >&2;}
2059 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002060esac
2061host=$ac_cv_host
2062ac_save_IFS=$IFS; IFS='-'
2063set x $ac_cv_host
2064shift
2065host_cpu=$1
2066host_vendor=$2
2067shift; shift
2068# Remember, the first character of IFS is used to create $*,
2069# except with old shells:
2070host_os=$*
2071IFS=$ac_save_IFS
2072case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2073
2074
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002075{ echo "$as_me:$LINENO: checking target system type" >&5
2076echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2077if test "${ac_cv_target+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002079else
2080 if test "x$target_alias" = x; then
2081 ac_cv_target=$ac_cv_host
2082else
2083 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002084 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2085echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2086 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002087fi
2088
2089fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002090{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2091echo "${ECHO_T}$ac_cv_target" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002092case $ac_cv_target in
2093*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002094*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2095echo "$as_me: error: invalid value of canonical target" >&2;}
2096 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002097esac
2098target=$ac_cv_target
2099ac_save_IFS=$IFS; IFS='-'
2100set x $ac_cv_target
2101shift
2102target_cpu=$1
2103target_vendor=$2
2104shift; shift
2105# Remember, the first character of IFS is used to create $*,
2106# except with old shells:
2107target_os=$*
2108IFS=$ac_save_IFS
2109case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2110
2111
2112# The aliases save the names the user supplied, while $host etc.
2113# will get canonicalized.
2114test -n "$target_alias" &&
2115 test "$program_prefix$program_suffix$program_transform_name" = \
2116 NONENONEs,x,x, &&
2117 program_prefix=${target_alias}-
2118
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002119{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2120echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2121if test "${llvm_cv_os_type+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002123else
2124 case $host in
2125 *-*-aix*)
2126 llvm_cv_link_all_option="-Wl,--whole-archive"
2127 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2128 llvm_cv_os_type="AIX"
2129 llvm_cv_platform_type="Unix" ;;
2130 *-*-irix*)
2131 llvm_cv_link_all_option="-Wl,--whole-archive"
2132 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2133 llvm_cv_os_type="IRIX"
2134 llvm_cv_platform_type="Unix" ;;
2135 *-*-cygwin*)
2136 llvm_cv_link_all_option="-Wl,--whole-archive"
2137 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2138 llvm_cv_os_type="Cygwin"
2139 llvm_cv_platform_type="Unix" ;;
2140 *-*-darwin*)
2141 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002142 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002143 llvm_cv_os_type="Darwin"
2144 llvm_cv_platform_type="Unix" ;;
2145 *-*-freebsd*)
2146 llvm_cv_link_all_option="-Wl,--whole-archive"
2147 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2148 llvm_cv_os_type="FreeBSD"
2149 llvm_cv_platform_type="Unix" ;;
2150 *-*-openbsd*)
2151 llvm_cv_link_all_option="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153 llvm_cv_os_type="OpenBSD"
2154 llvm_cv_platform_type="Unix" ;;
2155 *-*-netbsd*)
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="NetBSD"
2159 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002160 *-*-dragonfly*)
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="DragonFly"
2164 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002165 *-*-hpux*)
2166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2168 llvm_cv_os_type="HP-UX"
2169 llvm_cv_platform_type="Unix" ;;
2170 *-*-interix*)
2171 llvm_cv_link_all_option="-Wl,--whole-archive"
2172 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2173 llvm_cv_os_type="Interix"
2174 llvm_cv_platform_type="Unix" ;;
2175 *-*-linux*)
2176 llvm_cv_link_all_option="-Wl,--whole-archive"
2177 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2178 llvm_cv_os_type="Linux"
2179 llvm_cv_platform_type="Unix" ;;
2180 *-*-solaris*)
2181 llvm_cv_link_all_option="-Wl,-z,allextract"
2182 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2183 llvm_cv_os_type="SunOS"
2184 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002185 *-*-auroraux*)
2186 llvm_cv_link_all_option="-Wl,-z,allextract"
2187 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2188 llvm_cv_os_type="AuroraUX"
2189 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002190 *-*-win32*)
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="Win32"
2194 llvm_cv_platform_type="Win32" ;;
2195 *-*-mingw*)
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="MingW"
2199 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002200 *-*-haiku*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="Haiku"
2204 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002205 *-unknown-eabi*)
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Freestanding"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-unknown-elf*)
2211 llvm_cv_link_all_option="-Wl,--whole-archive"
2212 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2213 llvm_cv_os_type="Freestanding"
2214 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002215 *)
2216 llvm_cv_link_all_option=""
2217 llvm_cv_no_link_all_option=""
2218 llvm_cv_os_type="Unknown"
2219 llvm_cv_platform_type="Unknown" ;;
2220esac
2221fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002222{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2223echo "${ECHO_T}$llvm_cv_os_type" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002224
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002225{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2226echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2227if test "${llvm_cv_target_os_type+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002229else
2230 case $target in
2231 *-*-aix*)
2232 llvm_cv_target_os_type="AIX" ;;
2233 *-*-irix*)
2234 llvm_cv_target_os_type="IRIX" ;;
2235 *-*-cygwin*)
2236 llvm_cv_target_os_type="Cygwin" ;;
2237 *-*-darwin*)
2238 llvm_cv_target_os_type="Darwin" ;;
2239 *-*-freebsd*)
2240 llvm_cv_target_os_type="FreeBSD" ;;
2241 *-*-openbsd*)
2242 llvm_cv_target_os_type="OpenBSD" ;;
2243 *-*-netbsd*)
2244 llvm_cv_target_os_type="NetBSD" ;;
2245 *-*-dragonfly*)
2246 llvm_cv_target_os_type="DragonFly" ;;
2247 *-*-hpux*)
2248 llvm_cv_target_os_type="HP-UX" ;;
2249 *-*-interix*)
2250 llvm_cv_target_os_type="Interix" ;;
2251 *-*-linux*)
2252 llvm_cv_target_os_type="Linux" ;;
2253 *-*-solaris*)
2254 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002255 *-*-auroraux*)
2256 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002257 *-*-win32*)
2258 llvm_cv_target_os_type="Win32" ;;
2259 *-*-mingw*)
2260 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002261 *-*-haiku*)
2262 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002263 *-unknown-eabi*)
2264 llvm_cv_target_os_type="Freestanding" ;;
2265 *)
2266 llvm_cv_target_os_type="Unknown" ;;
2267esac
2268fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002269{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2270echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002271
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002272if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002273 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2274echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2275 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002276fi
2277
2278OS=$llvm_cv_os_type
2279
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002280HOST_OS=$llvm_cv_os_type
2281
2282TARGET_OS=$llvm_cv_target_os_type
2283
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002284
2285LINKALL=$llvm_cv_link_all_option
2286
2287NOLINKALL=$llvm_cv_no_link_all_option
2288
2289
2290case $llvm_cv_platform_type in
2291 Unix)
2292
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002293cat >>confdefs.h <<\_ACEOF
2294#define LLVM_ON_UNIX 1
2295_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002296
2297 LLVM_ON_UNIX=1
2298
2299 LLVM_ON_WIN32=0
2300
2301 ;;
2302 Win32)
2303
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002304cat >>confdefs.h <<\_ACEOF
2305#define LLVM_ON_WIN32 1
2306_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002307
2308 LLVM_ON_UNIX=0
2309
2310 LLVM_ON_WIN32=1
2311
2312 ;;
2313esac
2314
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002315{ echo "$as_me:$LINENO: checking target architecture" >&5
2316echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2317if test "${llvm_cv_target_arch+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002319else
2320 case $target in
2321 i?86-*) llvm_cv_target_arch="x86" ;;
2322 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2323 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2324 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2325 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002326 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002327 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002328 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002329 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002330 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002331 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00002332 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002333 *) llvm_cv_target_arch="Unknown" ;;
2334esac
2335fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002336{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2337echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002338
2339if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002340 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2341echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002342fi
2343
Nick Lewyckyd2813d02009-09-29 05:48:51 +00002344# Determine the LLVM native architecture for the target
2345case "$llvm_cv_target_arch" in
2346 x86) LLVM_NATIVE_ARCH="X86" ;;
2347 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2348 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2349esac
2350
2351ARCH=$llvm_cv_target_arch
2352
2353
2354ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364if test "${ac_cv_prog_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002366else
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2369else
2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371for as_dir in $PATH
2372do
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 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 +00002377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002379 break 2
2380 fi
2381done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002382done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002383IFS=$as_save_IFS
2384
2385fi
2386fi
2387CC=$ac_cv_prog_CC
2388if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002389 { echo "$as_me:$LINENO: result: $CC" >&5
2390echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002391else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002392 { echo "$as_me:$LINENO: result: no" >&5
2393echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002394fi
2395
2396
2397fi
2398if test -z "$ac_cv_prog_CC"; then
2399 ac_ct_CC=$CC
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002406else
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409else
2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411for as_dir in $PATH
2412do
2413 IFS=$as_save_IFS
2414 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 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 +00002417 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002419 break 2
2420 fi
2421done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002422done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002423IFS=$as_save_IFS
2424
2425fi
2426fi
2427ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002429 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002431else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002432 { echo "$as_me:$LINENO: result: no" >&5
2433echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002434fi
2435
2436 if test "x$ac_ct_CC" = x; then
2437 CC=""
2438 else
2439 case $cross_compiling:$ac_tool_warned in
2440yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002441{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442whose name does not start with the host triplet. If you think this
2443configuration is useful to you, please write to autoconf@gnu.org." >&5
2444echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445whose name does not start with the host triplet. If you think this
2446configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002447ac_tool_warned=yes ;;
2448esac
2449 CC=$ac_ct_CC
2450 fi
2451else
2452 CC="$ac_cv_prog_CC"
2453fi
2454
2455if test -z "$CC"; then
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002463else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466else
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 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 +00002474 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002476 break 2
2477 fi
2478done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002479done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002480IFS=$as_save_IFS
2481
2482fi
2483fi
2484CC=$ac_cv_prog_CC
2485if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002486 { echo "$as_me:$LINENO: result: $CC" >&5
2487echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002488else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002489 { echo "$as_me:$LINENO: result: no" >&5
2490echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002491fi
2492
2493
2494 fi
2495fi
2496if test -z "$CC"; then
2497 # Extract the first word of "cc", so it can be a program name with args.
2498set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002503else
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2506else
2507 ac_prog_rejected=no
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 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 +00002515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516 ac_prog_rejected=yes
2517 continue
2518 fi
2519 ac_cv_prog_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002521 break 2
2522 fi
2523done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002524done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002525IFS=$as_save_IFS
2526
2527if test $ac_prog_rejected = yes; then
2528 # We found a bogon in the path, so make sure we never use it.
2529 set dummy $ac_cv_prog_CC
2530 shift
2531 if test $# != 0; then
2532 # We chose a different compiler from the bogus one.
2533 # However, it has the same basename, so the bogon will be chosen
2534 # first if we set CC to just the basename; use the full file name.
2535 shift
2536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2537 fi
2538fi
2539fi
2540fi
2541CC=$ac_cv_prog_CC
2542if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002543 { echo "$as_me:$LINENO: result: $CC" >&5
2544echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002545else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002546 { echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002548fi
2549
2550
2551fi
2552if test -z "$CC"; then
2553 if test -n "$ac_tool_prefix"; then
2554 for ac_prog in cl.exe
2555 do
2556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560if test "${ac_cv_prog_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002562else
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 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 +00002573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002575 break 2
2576 fi
2577done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002578done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002579IFS=$as_save_IFS
2580
2581fi
2582fi
2583CC=$ac_cv_prog_CC
2584if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002585 { echo "$as_me:$LINENO: result: $CC" >&5
2586echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002587else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002588 { echo "$as_me:$LINENO: result: no" >&5
2589echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002590fi
2591
2592
2593 test -n "$CC" && break
2594 done
2595fi
2596if test -z "$CC"; then
2597 ac_ct_CC=$CC
2598 for ac_prog in cl.exe
2599do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002606else
2607 if test -n "$ac_ct_CC"; then
2608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 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 +00002617 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002619 break 2
2620 fi
2621done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002622done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002623IFS=$as_save_IFS
2624
2625fi
2626fi
2627ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002629 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002631else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002632 { echo "$as_me:$LINENO: result: no" >&5
2633echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002634fi
2635
2636
2637 test -n "$ac_ct_CC" && break
2638done
2639
2640 if test "x$ac_ct_CC" = x; then
2641 CC=""
2642 else
2643 case $cross_compiling:$ac_tool_warned in
2644yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002645{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646whose name does not start with the host triplet. If you think this
2647configuration is useful to you, please write to autoconf@gnu.org." >&5
2648echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649whose name does not start with the host triplet. If you think this
2650configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002651ac_tool_warned=yes ;;
2652esac
2653 CC=$ac_ct_CC
2654 fi
2655fi
2656
2657fi
2658
2659
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002660test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661See \`config.log' for more details." >&5
2662echo "$as_me: error: no acceptable C compiler found in \$PATH
2663See \`config.log' for more details." >&2;}
2664 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002665
2666# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002667echo "$as_me:$LINENO: checking for C compiler version" >&5
2668ac_compiler=`set X $ac_compile; echo $2`
2669{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002670case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002676 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679{ (ac_try="$ac_compiler -v >&5"
2680case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683esac
2684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler -v >&5") 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
2689{ (ac_try="$ac_compiler -V >&5"
2690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler -V >&5") 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002699
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002700cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h. */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002705/* end confdefs.h. */
2706
2707int
2708main ()
2709{
2710
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002716ac_clean_files="$ac_clean_files a.out a.exe b.out"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002717# Try to create an executable without -o first, disregard a.out.
2718# It will help us diagnose broken compilers, and finding out an intuition
2719# of exeext.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002720{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2722ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2723#
2724# List of possible output files, starting from the most likely.
2725# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726# only as a last resort. b.out is created by i960 compilers.
2727ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2728#
2729# The IRIX 6 linker writes into existing files which may not be
2730# executable, retaining their permissions. Remove them first so a
2731# subsequent execution test works.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002732ac_rmfiles=
2733for ac_file in $ac_files
2734do
2735 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738 esac
2739done
2740rm -f $ac_rmfiles
2741
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002742if { (ac_try="$ac_link_default"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002748 (eval "$ac_link_default") 2>&5
2749 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754# in a Makefile. We should not override ac_cv_exeext if it was cached,
2755# so that the user can short-circuit this test for compilers unknown to
2756# Autoconf.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002757for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002758do
2759 test -f "$ac_file" || continue
2760 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002762 ;;
2763 [ab].out )
2764 # We found the default executable, but exeext='' is most
2765 # certainly right.
2766 break;;
2767 *.* )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002768 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002769 then :; else
2770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771 fi
2772 # We set ac_cv_exeext here because the later test for it is not
2773 # safe: cross compilers may not add the suffix if given an `-o'
2774 # argument, so we may need to know it at that point already.
2775 # Even if this section looks crufty: it has the advantage of
2776 # actually working.
2777 break;;
2778 * )
2779 break;;
2780 esac
2781done
2782test "$ac_cv_exeext" = no && ac_cv_exeext=
2783
2784else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002785 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002786sed 's/^/| /' conftest.$ac_ext >&5
2787
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002788{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2789See \`config.log' for more details." >&5
2790echo "$as_me: error: C compiler cannot create executables
2791See \`config.log' for more details." >&2;}
2792 { (exit 77); exit 77; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002793fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002794
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002795ac_exeext=$ac_cv_exeext
2796{ echo "$as_me:$LINENO: result: $ac_file" >&5
2797echo "${ECHO_T}$ac_file" >&6; }
2798
2799# Check that the compiler produces executables we can run. If not, either
2800# the compiler is broken, or we cross compile.
2801{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804# If not cross compiling, check that we can run a simple program.
2805if test "$cross_compiling" != yes; then
2806 if { ac_try='./$ac_file'
2807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810esac
2811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 cross_compiling=no
2817 else
2818 if test "$cross_compiling" = maybe; then
2819 cross_compiling=yes
2820 else
2821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822If you meant to cross compile, use \`--host'.
2823See \`config.log' for more details." >&5
2824echo "$as_me: error: cannot run C compiled programs.
2825If you meant to cross compile, use \`--host'.
2826See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2828 fi
2829 fi
2830fi
2831{ echo "$as_me:$LINENO: result: yes" >&5
2832echo "${ECHO_T}yes" >&6; }
2833
2834rm -f a.out a.exe conftest$ac_cv_exeext b.out
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002835ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002836# 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 we are cross compiling" >&5
2839echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841echo "${ECHO_T}$cross_compiling" >&6; }
2842
2843{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845if { (ac_try="$ac_link"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002846case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002851 (eval "$ac_link") 2>&5
2852 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857# work properly (i.e., refer to `conftest.exe'), while it won't with
2858# `rm'.
2859for ac_file in conftest.exe conftest conftest.*; do
2860 test -f "$ac_file" || continue
2861 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864 break;;
2865 * ) break;;
2866 esac
2867done
2868else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870See \`config.log' for more details." >&5
2871echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002874fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002875
2876rm -f conftest$ac_cv_exeext
2877{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878echo "${ECHO_T}$ac_cv_exeext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002879
2880rm -f conftest.$ac_ext
2881EXEEXT=$ac_cv_exeext
2882ac_exeext=$EXEEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002883{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885if test "${ac_cv_objext+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00002887else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002888 cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002893/* end confdefs.h. */
2894
2895int
2896main ()
2897{
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903rm -f conftest.o conftest.obj
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002904if { (ac_try="$ac_compile"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002910 (eval "$ac_compile") 2>&5
2911 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002914 for ac_file in conftest.o conftest.obj conftest.*; do
2915 test -f "$ac_file" || continue;
2916 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919 break;;
2920 esac
2921done
2922else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002923 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002924sed 's/^/| /' conftest.$ac_ext >&5
2925
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002926{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927See \`config.log' for more details." >&5
2928echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929See \`config.log' for more details." >&2;}
2930 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002931fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002932
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002933rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002935{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936echo "${ECHO_T}$ac_cv_objext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002937OBJEXT=$ac_cv_objext
2938ac_objext=$OBJEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002939{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002943else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002944 cat >conftest.$ac_ext <<_ACEOF
2945/* confdefs.h. */
2946_ACEOF
2947cat confdefs.h >>conftest.$ac_ext
2948cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002949/* end confdefs.h. */
2950
2951int
2952main ()
2953{
2954#ifndef __GNUC__
2955 choke me
2956#endif
2957
2958 ;
2959 return 0;
2960}
2961_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002962rm -f conftest.$ac_objext
2963if { (ac_try="$ac_compile"
2964case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2970 ac_status=$?
2971 grep -v '^ *+' conftest.er1 >conftest.err
2972 rm -f conftest.er1
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_try") 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002996 ac_compiler_gnu=yes
2997else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002998 echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003002fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003003
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005ac_cv_c_compiler_gnu=$ac_compiler_gnu
3006
3007fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003008{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3009echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3010GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003011ac_test_CFLAGS=${CFLAGS+set}
3012ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003013{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3014echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3015if test "${ac_cv_prog_cc_g+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003017else
3018 ac_save_c_werror_flag=$ac_c_werror_flag
3019 ac_c_werror_flag=yes
3020 ac_cv_prog_cc_g=no
3021 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003027/* end confdefs.h. */
3028
3029int
3030main ()
3031{
3032
3033 ;
3034 return 0;
3035}
3036_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003037rm -f conftest.$ac_objext
3038if { (ac_try="$ac_compile"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003071 ac_cv_prog_cc_g=yes
3072else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003073 echo "$as_me: failed program was:" >&5
3074sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 CFLAGS=""
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003082/* end confdefs.h. */
3083
3084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003092rm -f conftest.$ac_objext
3093if { (ac_try="$ac_compile"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_try") 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3126 :
Edwin Törökc27310c2010-01-26 08:50:50 +00003127else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003128 echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003132 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003133 cat >conftest.$ac_ext <<_ACEOF
3134/* confdefs.h. */
3135_ACEOF
3136cat confdefs.h >>conftest.$ac_ext
3137cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003138/* end confdefs.h. */
3139
3140int
3141main ()
3142{
3143
3144 ;
3145 return 0;
3146}
3147_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003148rm -f conftest.$ac_objext
3149if { (ac_try="$ac_compile"
3150case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003182 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003183else
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003188fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003189
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003192
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003195
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3198fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003199{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3200echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003201if test "$ac_test_CFLAGS" = set; then
3202 CFLAGS=$ac_save_CFLAGS
3203elif test $ac_cv_prog_cc_g = yes; then
3204 if test "$GCC" = yes; then
3205 CFLAGS="-g -O2"
3206 else
3207 CFLAGS="-g"
3208 fi
3209else
3210 if test "$GCC" = yes; then
3211 CFLAGS="-O2"
3212 else
3213 CFLAGS=
3214 fi
3215fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003216{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3217echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3218if test "${ac_cv_prog_cc_c89+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003220else
3221 ac_cv_prog_cc_c89=no
3222ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003223cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003228/* end confdefs.h. */
3229#include <stdarg.h>
3230#include <stdio.h>
3231#include <sys/types.h>
3232#include <sys/stat.h>
3233/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3234struct buf { int x; };
3235FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236static char *e (p, i)
3237 char **p;
3238 int i;
3239{
3240 return p[i];
3241}
3242static char *f (char * (*g) (char **, int), char **p, ...)
3243{
3244 char *s;
3245 va_list v;
3246 va_start (v,p);
3247 s = g (p, va_arg (v,int));
3248 va_end (v);
3249 return s;
3250}
3251
3252/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3253 function prototypes and stuff, but not '\xHH' hex character constants.
3254 These don't provoke an error unfortunately, instead are silently treated
3255 as 'x'. The following induces an error, until -std is added to get
3256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3257 array size at least. It's necessary to write '\x00'==0 to get something
3258 that's true only with -std. */
3259int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260
3261/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262 inside strings and character constants. */
3263#define FOO(x) 'x'
3264int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265
3266int test (int i, double x);
3267struct s1 {int (*f) (int a);};
3268struct s2 {int (*f) (double a);};
3269int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3270int argc;
3271char **argv;
3272int
3273main ()
3274{
3275return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282do
3283 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003284 rm -f conftest.$ac_objext
3285if { (ac_try="$ac_compile"
3286case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302esac
3303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_try") 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_try") 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003318 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003319else
3320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003324fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003325
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003326rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
3328done
3329rm -f conftest.$ac_ext
3330CC=$ac_save_CC
3331
3332fi
3333# AC_CACHE_VAL
3334case "x$ac_cv_prog_cc_c89" in
3335 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003336 { echo "$as_me:$LINENO: result: none needed" >&5
3337echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003338 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003339 { echo "$as_me:$LINENO: result: unsupported" >&5
3340echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003341 *)
3342 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003343 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003345esac
3346
3347
3348ac_ext=c
3349ac_cpp='$CPP $CPPFLAGS'
3350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
3354
3355ac_ext=c
3356ac_cpp='$CPP $CPPFLAGS'
3357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003360{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3361echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003362# On Suns, sometimes $CPP names a directory.
3363if test -n "$CPP" && test -d "$CPP"; then
3364 CPP=
3365fi
3366if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003367 if test "${ac_cv_prog_CPP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003369else
3370 # Double quotes because CPP needs to be expanded
3371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3372 do
3373 ac_preproc_ok=false
3374for ac_c_preproc_warn_flag in '' yes
3375do
3376 # Use a header file that comes with gcc, so configuring glibc
3377 # with a fresh cross-compiler works.
3378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379 # <limits.h> exists even on freestanding compilers.
3380 # On the NeXT, cc -E runs the code through the compiler's parser,
3381 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003387/* end confdefs.h. */
3388#ifdef __STDC__
3389# include <limits.h>
3390#else
3391# include <assert.h>
3392#endif
3393 Syntax error
3394_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003395if { (ac_try="$ac_cpp conftest.$ac_ext"
3396case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399esac
3400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 else
3412 ac_cpp_err=
3413 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003414else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003415 ac_cpp_err=yes
3416fi
3417if test -z "$ac_cpp_err"; then
3418 :
3419else
3420 echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003423 # Broken: fails on valid input.
3424continue
3425fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003426
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003427rm -f conftest.err conftest.$ac_ext
3428
3429 # OK, works on sane cases. Now check whether nonexistent headers
3430 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003436/* end confdefs.h. */
3437#include <ac_nonexistent.h>
3438_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003439if { (ac_try="$ac_cpp conftest.$ac_ext"
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 else
3456 ac_cpp_err=
3457 fi
3458else
3459 ac_cpp_err=yes
3460fi
3461if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003462 # Broken: success on invalid input.
3463continue
3464else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003465 echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003468 # Passes both tests.
3469ac_preproc_ok=:
3470break
3471fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003472
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003473rm -f conftest.err conftest.$ac_ext
3474
3475done
3476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003478if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003479 break
3480fi
3481
3482 done
3483 ac_cv_prog_CPP=$CPP
3484
3485fi
3486 CPP=$ac_cv_prog_CPP
3487else
3488 ac_cv_prog_CPP=$CPP
3489fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003490{ echo "$as_me:$LINENO: result: $CPP" >&5
3491echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003492ac_preproc_ok=false
3493for ac_c_preproc_warn_flag in '' yes
3494do
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003501 cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003506/* end confdefs.h. */
3507#ifdef __STDC__
3508# include <limits.h>
3509#else
3510# include <assert.h>
3511#endif
3512 Syntax error
3513_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003514if { (ac_try="$ac_cpp conftest.$ac_ext"
3515case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
3519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null; then
3527 if test -s conftest.err; then
3528 ac_cpp_err=$ac_c_preproc_warn_flag
3529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530 else
3531 ac_cpp_err=
3532 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003533else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003534 ac_cpp_err=yes
3535fi
3536if test -z "$ac_cpp_err"; then
3537 :
3538else
3539 echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003542 # Broken: fails on valid input.
3543continue
3544fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003545
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003546rm -f conftest.err conftest.$ac_ext
3547
3548 # OK, works on sane cases. Now check whether nonexistent headers
3549 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003555/* end confdefs.h. */
3556#include <ac_nonexistent.h>
3557_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003558if { (ac_try="$ac_cpp conftest.$ac_ext"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 else
3575 ac_cpp_err=
3576 fi
3577else
3578 ac_cpp_err=yes
3579fi
3580if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003581 # Broken: success on invalid input.
3582continue
3583else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003587 # Passes both tests.
3588ac_preproc_ok=:
3589break
3590fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003591
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003592rm -f conftest.err conftest.$ac_ext
3593
3594done
3595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003597if $ac_preproc_ok; then
3598 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003599else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003600 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3601See \`config.log' for more details." >&5
3602echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3603See \`config.log' for more details." >&2;}
3604 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003605fi
3606
3607ac_ext=c
3608ac_cpp='$CPP $CPPFLAGS'
3609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003614{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3615echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3616if test "${ac_cv_path_GREP+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003618else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003619 # Extract the first word of "grep ggrep" to use in msg output
3620if test -z "$GREP"; then
3621set dummy grep ggrep; ac_prog_name=$2
3622if test "${ac_cv_path_GREP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003625 ac_path_GREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003626# Loop through the user's path and test for each of PROGNAME-LIST
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003628for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003632 for ac_prog in grep ggrep; do
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3635 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3636 # Check for GNU ac_path_GREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003637 # Check for GNU $ac_path_GREP
3638case `"$ac_path_GREP" --version 2>&1` in
3639*GNU*)
3640 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3641*)
3642 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003643 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003644 while :
3645 do
3646 cat "conftest.in" "conftest.in" >"conftest.tmp"
3647 mv "conftest.tmp" "conftest.in"
3648 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003649 echo 'GREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003650 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003652 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003653 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3654 # Best one so far, save it but keep looking for a better one
3655 ac_cv_path_GREP="$ac_path_GREP"
3656 ac_path_GREP_max=$ac_count
3657 fi
3658 # 10*(2^10) chars as input seems more than enough
3659 test $ac_count -gt 10 && break
3660 done
3661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662esac
3663
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003664
3665 $ac_path_GREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003666 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003667done
3668
3669done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003670IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003671
3672
3673fi
3674
3675GREP="$ac_cv_path_GREP"
3676if test -z "$GREP"; then
3677 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679 { (exit 1); exit 1; }; }
3680fi
3681
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003682else
3683 ac_cv_path_GREP=$GREP
3684fi
3685
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003686
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003687fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003688{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3689echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003690 GREP="$ac_cv_path_GREP"
3691
3692
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003693{ echo "$as_me:$LINENO: checking for egrep" >&5
3694echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3695if test "${ac_cv_path_EGREP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003697else
3698 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3699 then ac_cv_path_EGREP="$GREP -E"
3700 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003701 # Extract the first word of "egrep" to use in msg output
3702if test -z "$EGREP"; then
3703set dummy egrep; ac_prog_name=$2
3704if test "${ac_cv_path_EGREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003707 ac_path_EGREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003708# Loop through the user's path and test for each of PROGNAME-LIST
3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711do
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003714 for ac_prog in egrep; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3717 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3718 # Check for GNU ac_path_EGREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003719 # Check for GNU $ac_path_EGREP
3720case `"$ac_path_EGREP" --version 2>&1` in
3721*GNU*)
3722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3723*)
3724 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003726 while :
3727 do
3728 cat "conftest.in" "conftest.in" >"conftest.tmp"
3729 mv "conftest.tmp" "conftest.in"
3730 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003731 echo 'EGREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003734 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3736 # Best one so far, save it but keep looking for a better one
3737 ac_cv_path_EGREP="$ac_path_EGREP"
3738 ac_path_EGREP_max=$ac_count
3739 fi
3740 # 10*(2^10) chars as input seems more than enough
3741 test $ac_count -gt 10 && break
3742 done
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744esac
3745
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003746
3747 $ac_path_EGREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003748 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003749done
3750
3751done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003752IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003753
3754
3755fi
3756
3757EGREP="$ac_cv_path_EGREP"
3758if test -z "$EGREP"; then
3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761 { (exit 1); exit 1; }; }
3762fi
3763
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003764else
3765 ac_cv_path_EGREP=$EGREP
3766fi
3767
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003768
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003769 fi
3770fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003771{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3772echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003773 EGREP="$ac_cv_path_EGREP"
3774
3775
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003776{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3777echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3778if test "${ac_cv_header_stdc+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003780else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003781 cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003786/* end confdefs.h. */
3787#include <stdlib.h>
3788#include <stdarg.h>
3789#include <string.h>
3790#include <float.h>
3791
3792int
3793main ()
3794{
3795
3796 ;
3797 return 0;
3798}
3799_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003800rm -f conftest.$ac_objext
3801if { (ac_try="$ac_compile"
3802case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805esac
3806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compile") 2>conftest.er1
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3815 { (case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818esac
3819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_try") 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try='test -s conftest.$ac_objext'
3825 { (case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828esac
3829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_try") 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003834 ac_cv_header_stdc=yes
3835else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003836 echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003840fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003841
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843
3844if test $ac_cv_header_stdc = yes; then
3845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003846 cat >conftest.$ac_ext <<_ACEOF
3847/* confdefs.h. */
3848_ACEOF
3849cat confdefs.h >>conftest.$ac_ext
3850cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003851/* end confdefs.h. */
3852#include <string.h>
3853
3854_ACEOF
3855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003856 $EGREP "memchr" >/dev/null 2>&1; then
3857 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003858else
3859 ac_cv_header_stdc=no
3860fi
3861rm -f conftest*
3862
3863fi
3864
3865if test $ac_cv_header_stdc = yes; then
3866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003867 cat >conftest.$ac_ext <<_ACEOF
3868/* confdefs.h. */
3869_ACEOF
3870cat confdefs.h >>conftest.$ac_ext
3871cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003872/* end confdefs.h. */
3873#include <stdlib.h>
3874
3875_ACEOF
3876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003877 $EGREP "free" >/dev/null 2>&1; then
3878 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003879else
3880 ac_cv_header_stdc=no
3881fi
3882rm -f conftest*
3883
3884fi
3885
3886if test $ac_cv_header_stdc = yes; then
3887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003888 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003889 :
3890else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003891 cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003896/* end confdefs.h. */
3897#include <ctype.h>
3898#include <stdlib.h>
3899#if ((' ' & 0x0FF) == 0x020)
3900# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3901# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3902#else
3903# define ISLOWER(c) \
3904 (('a' <= (c) && (c) <= 'i') \
3905 || ('j' <= (c) && (c) <= 'r') \
3906 || ('s' <= (c) && (c) <= 'z'))
3907# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3908#endif
3909
3910#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3911int
3912main ()
3913{
3914 int i;
3915 for (i = 0; i < 256; i++)
3916 if (XOR (islower (i), ISLOWER (i))
3917 || toupper (i) != TOUPPER (i))
3918 return 2;
3919 return 0;
3920}
3921_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003922rm -f conftest$ac_exeext
3923if { (ac_try="$ac_link"
3924case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927esac
3928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_link") 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933 { (case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936esac
3937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_try") 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003943else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003944 echo "$as_me: program exited with status $ac_status" >&5
3945echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948( exit $ac_status )
3949ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003950fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003951rm -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 +00003952fi
3953
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003954
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003955fi
3956fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003957{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3958echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003959if test $ac_cv_header_stdc = yes; then
3960
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003961cat >>confdefs.h <<\_ACEOF
3962#define STDC_HEADERS 1
3963_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003964
3965fi
3966
3967# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003968
3969
3970
3971
3972
3973
3974
3975
3976
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003977for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3978 inttypes.h stdint.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003979do
3980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3981{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986 cat >conftest.$ac_ext <<_ACEOF
3987/* confdefs.h. */
3988_ACEOF
3989cat confdefs.h >>conftest.$ac_ext
3990cat >>conftest.$ac_ext <<_ACEOF
3991/* end confdefs.h. */
3992$ac_includes_default
3993
3994#include <$ac_header>
3995_ACEOF
3996rm -f conftest.$ac_objext
3997if { (ac_try="$ac_compile"
3998case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001esac
4002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014esac
4015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024esac
4025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_try") 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 eval "$as_ac_Header=yes"
4031else
4032 echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 eval "$as_ac_Header=no"
4036fi
4037
4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039fi
4040ac_res=`eval echo '${'$as_ac_Header'}'`
4041 { echo "$as_me:$LINENO: result: $ac_res" >&5
4042echo "${ECHO_T}$ac_res" >&6; }
4043if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004044 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004046_ACEOF
4047
4048fi
4049
4050done
4051
4052
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004053{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4054echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4055if test "${ac_cv_c_bigendian+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004057else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004058 # See if sys/param.h defines the BYTE_ORDER macro.
4059cat >conftest.$ac_ext <<_ACEOF
4060/* confdefs.h. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004061_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004064/* end confdefs.h. */
4065#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004066#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004067
4068int
4069main ()
4070{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004071#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4072 bogus endian macros
4073#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004074
4075 ;
4076 return 0;
4077}
4078_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004079rm -f conftest.$ac_objext
4080if { (ac_try="$ac_compile"
4081case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084esac
4085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
4108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_try") 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004113 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004114cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004119/* end confdefs.h. */
4120#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004121#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004122
4123int
4124main ()
4125{
4126#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004127 not big endian
4128#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004129
4130 ;
4131 return 0;
4132}
4133_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004134rm -f conftest.$ac_objext
4135if { (ac_try="$ac_compile"
4136case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004168 ac_cv_c_bigendian=yes
4169else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004170 echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00004172
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004173 ac_cv_c_bigendian=no
4174fi
4175
4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177else
4178 echo "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 # It does not; compile a test program.
4182if test "$cross_compiling" = yes; then
4183 # try to guess the endianness by grepping values into an object file
4184 ac_cv_c_bigendian=unknown
4185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h. */
4191short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4192short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4193void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4194short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4195short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4196void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004197int
4198main ()
4199{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004200 _ascii (); _ebcdic ();
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004201 ;
4202 return 0;
4203}
4204_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004205rm -f conftest.$ac_objext
4206if { (ac_try="$ac_compile"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004240 ac_cv_c_bigendian=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004241fi
4242if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4243 if test "$ac_cv_c_bigendian" = unknown; then
4244 ac_cv_c_bigendian=no
4245 else
4246 # finding both strings is unlikely to happen, but who knows?
4247 ac_cv_c_bigendian=unknown
4248 fi
4249fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004250else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004251 echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004253
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004254
Edwin Törökc27310c2010-01-26 08:50:50 +00004255fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004256
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004259 cat >conftest.$ac_ext <<_ACEOF
4260/* confdefs.h. */
4261_ACEOF
4262cat confdefs.h >>conftest.$ac_ext
4263cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004264/* end confdefs.h. */
4265$ac_includes_default
4266int
4267main ()
4268{
4269
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004270 /* Are we little or big endian? From Harbison&Steele. */
4271 union
4272 {
4273 long int l;
4274 char c[sizeof (long int)];
4275 } u;
4276 u.l = 1;
4277 return u.c[sizeof (long int) - 1] == 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004278
4279 ;
4280 return 0;
4281}
4282_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004283rm -f conftest$ac_exeext
4284if { (ac_try="$ac_link"
4285case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288esac
4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_link") 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294 { (case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_try") 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004303 ac_cv_c_bigendian=no
4304else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004305 echo "$as_me: program exited with status $ac_status" >&5
4306echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309( exit $ac_status )
4310ac_cv_c_bigendian=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004311fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004312rm -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 +00004313fi
4314
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004315
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004316fi
4317
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319fi
4320{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4321echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4322case $ac_cv_c_bigendian in
4323 yes)
4324 ENDIAN=big
4325 ;;
4326 no)
4327 ENDIAN=little
4328 ;;
4329 *)
4330 { { echo "$as_me:$LINENO: error: unknown endianness
4331presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4332echo "$as_me: error: unknown endianness
4333presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4334 { (exit 1); exit 1; }; } ;;
4335esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004336
4337
4338if test "$cross_compiling" = yes; then
4339 LLVM_CROSS_COMPILING=1
4340
4341
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004342{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4343echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4344if test "${ac_cv_build_exeext+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004346else
4347 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4348 ac_cv_build_exeext=.exe
4349else
4350 ac_build_prefix=${build_alias}-
4351
4352 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4353set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4356if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004358else
4359 if test -n "$BUILD_CC"; then
4360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4361else
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 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 +00004369 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004371 break 2
4372 fi
4373done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004374done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004375IFS=$as_save_IFS
4376
4377fi
4378fi
4379BUILD_CC=$ac_cv_prog_BUILD_CC
4380if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004381 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4382echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004383else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004384 { echo "$as_me:$LINENO: result: no" >&5
4385echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004386fi
4387
4388
4389 if test -z "$BUILD_CC"; then
4390 # Extract the first word of "gcc", so it can be a program name with args.
4391set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004396else
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 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 +00004407 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004409 break 2
4410 fi
4411done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004412done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004413IFS=$as_save_IFS
4414
4415fi
4416fi
4417BUILD_CC=$ac_cv_prog_BUILD_CC
4418if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004421else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004422 { echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004424fi
4425
4426
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "cc", so it can be a program name with args.
4429set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004434else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437else
4438 ac_prog_rejected=no
4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 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 +00004446 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4447 ac_prog_rejected=yes
4448 continue
4449 fi
4450 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004452 break 2
4453 fi
4454done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004455done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004456IFS=$as_save_IFS
4457
4458if test $ac_prog_rejected = yes; then
4459 # We found a bogon in the path, so make sure we never use it.
4460 set dummy $ac_cv_prog_BUILD_CC
4461 shift
4462 if test $# != 0; then
4463 # We chose a different compiler from the bogus one.
4464 # However, it has the same basename, so the bogon will be chosen
4465 # first if we set BUILD_CC to just the basename; use the full file name.
4466 shift
4467 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4468 fi
4469fi
4470fi
4471fi
4472BUILD_CC=$ac_cv_prog_BUILD_CC
4473if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004474 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004476else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004477 { echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004479fi
4480
4481
4482 fi
4483 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004484 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4485echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4486 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004487 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4488 rm -f conftest*
4489 echo 'int main () { return 0; }' > conftest.$ac_ext
4490 ac_cv_build_exeext=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004491 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004492 (eval $ac_build_link) 2>&5
4493 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004496 for file in conftest.*; do
4497 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004498 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004499 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4500 esac
4501 done
4502 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004503 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4504echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4505 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004506 fi
4507 rm -f conftest*
4508 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4509fi
4510fi
4511
4512BUILD_EXEEXT=""
4513test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004514{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4515echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004516ac_build_exeext=$BUILD_EXEEXT
4517
Jim Grosbache4c032e2008-10-02 22:56:44 +00004518 ac_build_prefix=${build_alias}-
4519 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4520set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4523if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004525else
4526 if test -n "$BUILD_CXX"; then
4527 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4528else
4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 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 +00004536 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004538 break 2
4539 fi
4540done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004541done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004542IFS=$as_save_IFS
4543
4544fi
4545fi
4546BUILD_CXX=$ac_cv_prog_BUILD_CXX
4547if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004548 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4549echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004550else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004551 { echo "$as_me:$LINENO: result: no" >&5
4552echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004553fi
4554
4555
4556 if test -z "$BUILD_CXX"; then
4557 # Extract the first word of "g++", so it can be a program name with args.
4558set dummy g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4561if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004563else
4564 if test -n "$BUILD_CXX"; then
4565 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 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 +00004574 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004576 break 2
4577 fi
4578done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004579done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004580IFS=$as_save_IFS
4581
4582fi
4583fi
4584BUILD_CXX=$ac_cv_prog_BUILD_CXX
4585if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004586 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4587echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004588else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004589 { echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004591fi
4592
4593
4594 if test -z "$BUILD_CXX"; then
4595 # Extract the first word of "c++", so it can be a program name with args.
4596set dummy c++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004601else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604else
4605 ac_prog_rejected=no
4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 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 +00004613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4614 ac_prog_rejected=yes
4615 continue
4616 fi
4617 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004619 break 2
4620 fi
4621done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004622done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004623IFS=$as_save_IFS
4624
4625if test $ac_prog_rejected = yes; then
4626 # We found a bogon in the path, so make sure we never use it.
4627 set dummy $ac_cv_prog_BUILD_CXX
4628 shift
4629 if test $# != 0; then
4630 # We chose a different compiler from the bogus one.
4631 # However, it has the same basename, so the bogon will be chosen
4632 # first if we set BUILD_CXX to just the basename; use the full file name.
4633 shift
4634 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4635 fi
4636fi
4637fi
4638fi
4639BUILD_CXX=$ac_cv_prog_BUILD_CXX
4640if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004641 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4642echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004643else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004644 { echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004646fi
4647
4648
4649 fi
4650 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004651else
4652 LLVM_CROSS_COMPILING=0
4653
4654fi
4655
Nick Lewycky45f0f822009-04-10 05:18:27 +00004656if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004657 cvsbuild="yes"
4658 optimize="no"
4659 CVSBUILD=CVSBUILD=1
4660
4661else
4662 cvsbuild="no"
4663 optimize="yes"
4664fi
4665
4666
4667# Check whether --enable-optimized was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004668if test "${enable_optimized+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004669 enableval=$enable_optimized;
4670else
4671 enableval=$optimize
4672fi
4673
4674if test ${enableval} = "no" ; then
4675 ENABLE_OPTIMIZED=
4676
4677else
4678 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4679
4680fi
4681
David Greene19b1cbd2009-04-17 14:50:39 +00004682# Check whether --enable-profiling was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004683if test "${enable_profiling+set}" = set; then
David Greene19b1cbd2009-04-17 14:50:39 +00004684 enableval=$enable_profiling;
4685else
4686 enableval="no"
4687fi
4688
4689if test ${enableval} = "no" ; then
4690 ENABLE_PROFILING=
4691
4692else
4693 ENABLE_PROFILING=ENABLE_PROFILING=1
4694
4695fi
4696
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004697# Check whether --enable-assertions was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004698if test "${enable_assertions+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004699 enableval=$enable_assertions;
4700else
4701 enableval="yes"
4702fi
4703
4704if test ${enableval} = "yes" ; then
4705 DISABLE_ASSERTIONS=
4706
4707else
4708 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4709
4710fi
4711
4712# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004713if test "${enable_expensive_checks+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004714 enableval=$enable_expensive_checks;
4715else
4716 enableval="no"
4717fi
4718
4719if test ${enableval} = "yes" ; then
4720 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4721
4722 EXPENSIVE_CHECKS=yes
4723
4724else
4725 ENABLE_EXPENSIVE_CHECKS=
4726
4727 EXPENSIVE_CHECKS=no
4728
4729fi
4730
4731# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004732if test "${enable_debug_runtime+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004733 enableval=$enable_debug_runtime;
4734else
4735 enableval=no
4736fi
4737
4738if test ${enableval} = "no" ; then
4739 DEBUG_RUNTIME=
4740
4741else
4742 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4743
4744fi
4745
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004746# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004747if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004748 enableval=$enable_debug_symbols;
4749else
4750 enableval=no
4751fi
4752
4753if test ${enableval} = "no" ; then
4754 DEBUG_SYMBOLS=
4755
4756else
4757 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4758
4759fi
4760
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004761# Check whether --enable-jit was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004762if test "${enable_jit+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004763 enableval=$enable_jit;
4764else
4765 enableval=default
4766fi
4767
4768if test ${enableval} = "no"
4769then
4770 JIT=
4771
4772else
4773 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004774 x86) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004775 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004776 Sparc) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004777 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004778 PowerPC) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004779 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004780 x86_64) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004781 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004782 Alpha) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004783 ;;
Eric Christopher9ab1d2e2009-09-14 16:38:49 +00004784 ARM) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004785 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004786 Mips) TARGET_HAS_JIT=0
Tanya Lattner81915b12007-08-29 16:38:16 +00004787 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004788 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004789 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004790 XCore) TARGET_HAS_JIT=0
Richard Osborneab8167a2008-11-07 10:59:00 +00004791 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004792 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004793 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004794 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00004795 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004796 Blackfin) TARGET_HAS_JIT=0
4797 ;;
4798 *) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004799 ;;
4800 esac
4801fi
4802
4803# Check whether --enable-doxygen was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004804if test "${enable_doxygen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004805 enableval=$enable_doxygen;
4806else
4807 enableval=default
4808fi
4809
4810case "$enableval" in
4811 yes) ENABLE_DOXYGEN=1
4812 ;;
4813 no) ENABLE_DOXYGEN=0
4814 ;;
4815 default) ENABLE_DOXYGEN=0
4816 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004817 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4818echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4819 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004820esac
4821
4822# Check whether --enable-threads was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004823if test "${enable_threads+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004824 enableval=$enable_threads;
4825else
4826 enableval=default
4827fi
4828
4829case "$enableval" in
4830 yes) ENABLE_THREADS=1
4831 ;;
4832 no) ENABLE_THREADS=0
4833 ;;
4834 default) ENABLE_THREADS=1
4835 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004836 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4837echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4838 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004839esac
4840
Owen Anderson96237ec2009-05-19 22:18:56 +00004841cat >>confdefs.h <<_ACEOF
4842#define ENABLE_THREADS $ENABLE_THREADS
4843_ACEOF
4844
4845
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004846# Check whether --enable-pic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004847if test "${enable_pic+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004848 enableval=$enable_pic;
4849else
4850 enableval=default
4851fi
4852
4853case "$enableval" in
4854 yes) ENABLE_PIC=1
4855 ;;
4856 no) ENABLE_PIC=0
4857 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004858 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004859 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004860 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4861echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4862 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004863esac
4864
4865cat >>confdefs.h <<_ACEOF
4866#define ENABLE_PIC $ENABLE_PIC
4867_ACEOF
4868
4869
Jeffrey Yasskin42d27c72010-02-23 18:10:07 +00004870# Check whether --enable-shared was given.
4871if test "${enable_shared+set}" = set; then
4872 enableval=$enable_shared;
4873else
4874 enableval=default
4875fi
4876
4877case "$enableval" in
4878 yes) ENABLE_SHARED=1
4879 ;;
4880 no) ENABLE_SHARED=0
4881 ;;
4882 default) ENABLE_SHARED=0
4883 ;;
4884 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4885echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4887esac
4888
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004889TARGETS_TO_BUILD=""
4890# Check whether --enable-targets was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004891if test "${enable_targets+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004892 enableval=$enable_targets;
4893else
4894 enableval=all
4895fi
4896
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004897if test "$enableval" = host-only ; then
4898 enableval=host
4899fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004900case "$enableval" in
Jakob Stoklund Olesenb62e9aa2009-08-02 17:32:37 +00004901 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004902 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4903 case "$a_target" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004904 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4905 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4906 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4907 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4908 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4909 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4910 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4911 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4912 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4913 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4914 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4915 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4916 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4917 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4918 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4919 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004920 host) case "$llvm_cv_target_arch" in
4921 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4922 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4923 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4924 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4925 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4926 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4927 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4928 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4929 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4930 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4931 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikovc5cbb462010-01-05 20:45:43 +00004932 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004933 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004934 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4935echo "$as_me: error: Can not set target to build" >&2;}
4936 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004937 esac ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004938 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4939echo "$as_me: error: Unrecognized target $a_target" >&2;}
4940 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004941 esac
4942 done
4943 ;;
4944esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004945TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4946
4947
Douglas Gregor13e13882009-06-17 00:43:20 +00004948# Determine whether we are building LLVM support for the native architecture.
4949# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4950for a_target in $TARGETS_TO_BUILD; do
4951 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00004952 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00004953
4954cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00004955#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00004956_ACEOF
4957
4958 fi
4959done
4960
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004961# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4962# target feature def files.
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004963LLVM_ENUM_TARGETS=""
4964LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004965LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004966LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004967for target_to_build in $TARGETS_TO_BUILD; do
4968 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4969 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4970 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4971 fi
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004972 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4973 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4974 fi
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004975 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4976 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4977 fi
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004978done
4979
4980
4981
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004982
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004983
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004984# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004985if test "${enable_cbe_printf_a+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004986 enableval=$enable_cbe_printf_a;
4987else
4988 enableval=default
4989fi
4990
4991case "$enableval" in
4992 yes) ENABLE_CBE_PRINTF_A=1
4993 ;;
4994 no) ENABLE_CBE_PRINTF_A=0
4995 ;;
4996 default) ENABLE_CBE_PRINTF_A=1
4997 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004998 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4999echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5000 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005001esac
5002
5003cat >>confdefs.h <<_ACEOF
5004#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5005_ACEOF
5006
5007
5008
5009# Check whether --with-llvmgccdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005010if test "${with_llvmgccdir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005011 withval=$with_llvmgccdir;
5012else
5013 withval=default
5014fi
5015
5016case "$withval" in
5017 default) WITH_LLVMGCCDIR=default ;;
5018 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005019 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5020echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5021 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005022esac
5023
5024
Devang Pateld84ba7b2007-12-04 22:54:47 +00005025# Check whether --with-llvmgcc was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005026if test "${with_llvmgcc+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005027 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5028 WITH_LLVMGCCDIR=""
5029fi
5030
5031
5032
5033# Check whether --with-llvmgxx was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005034if test "${with_llvmgxx+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005035 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5036 WITH_LLVMGCCDIR=""
5037fi
5038
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005039
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005040if test -n "$LLVMGCC"; then
5041 LLVMGCCCOMMAND="$LLVMGCC"
5042fi
5043
5044if test -n "$LLVMGXX"; then
5045 LLVMGXXCOMMAND="$LLVMGXX"
5046fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005047
5048if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005049 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5050echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5051 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005052fi
5053
5054if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005055 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5056echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5057 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005058fi
5059
5060
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00005061# Check whether --with-clang was given.
5062if test "${with_clang+set}" = set; then
5063 withval=$with_clang;
5064else
5065 with_clang=default
5066fi
5067
5068
5069
5070# Check whether --with-built-clang was given.
5071if test "${with_built_clang+set}" = set; then
5072 withval=$with_built_clang;
5073else
5074 with_built_clang=check
5075fi
5076
5077
5078{ echo "$as_me:$LINENO: checking clang compiler" >&5
5079echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5080WITH_CLANGPATH=""
5081WITH_BUILT_CLANG=0
5082if test "$with_clang" != "default"; then
5083 WITH_CLANGPATH="$with_clang"
5084 if ! test -x "$WITH_CLANGPATH"; then
5085 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5086echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5087 { (exit 1); exit 1; }; }
5088 fi
5089elif test "$with_built_clang" = "yes"; then
5090 WITH_BUILT_CLANG=1
5091elif test "$with_built_clang" = "no"; then
5092 WITH_BUILT_CLANG=0
5093else
5094 if test "$with_built_clang" != "check"; then
5095 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5096echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5097 { (exit 1); exit 1; }; }
5098 fi
5099
5100 if test -f ${srcdir}/tools/clang/README.txt; then
5101 WITH_BUILT_CLANG=1
5102 fi
5103fi
5104
5105if ! test -z "$WITH_CLANGPATH"; then
5106 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5107echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5108 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5109elif test "$WITH_BUILT_CLANG" = "1"; then
5110 { echo "$as_me:$LINENO: result: built" >&5
5111echo "${ECHO_T}built" >&6; }
5112else
5113 { echo "$as_me:$LINENO: result: none" >&5
5114echo "${ECHO_T}none" >&6; }
5115fi
5116CLANGPATH=$WITH_CLANGPATH
5117
5118CLANGXXPATH=$WITH_CLANGXXPATH
5119
5120ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5121
5122
5123
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005124# Check whether --with-optimize-option was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005125if test "${with_optimize_option+set}" = set; then
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005126 withval=$with_optimize_option;
5127else
5128 withval=default
5129fi
5130
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005131{ echo "$as_me:$LINENO: checking optimization flags" >&5
5132echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005133case "$withval" in
5134 default)
5135 case "$llvm_cv_os_type" in
5136 MingW) optimize_option=-O3 ;;
5137 *) optimize_option=-O2 ;;
5138 esac ;;
5139 *) optimize_option="$withval" ;;
5140esac
5141OPTIMIZE_OPTION=$optimize_option
5142
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005143{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5144echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005145
5146
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005147# Check whether --with-extra-options was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005148if test "${with_extra_options+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005149 withval=$with_extra_options;
5150else
5151 withval=default
5152fi
5153
5154case "$withval" in
5155 default) EXTRA_OPTIONS= ;;
5156 *) EXTRA_OPTIONS=$withval ;;
5157esac
5158EXTRA_OPTIONS=$EXTRA_OPTIONS
5159
5160
Gordon Henriksen016ec472007-10-02 09:50:32 +00005161# Check whether --enable-bindings was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005162if test "${enable_bindings+set}" = set; then
Gordon Henriksen016ec472007-10-02 09:50:32 +00005163 enableval=$enable_bindings;
5164else
5165 enableval=default
5166fi
5167
5168BINDINGS_TO_BUILD=""
5169case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005170 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005171 all ) BINDINGS_TO_BUILD="ocaml" ;;
5172 none | no) BINDINGS_TO_BUILD="" ;;
5173 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5174 case "$a_binding" in
5175 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005176 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5177echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5178 { (exit 1); exit 1; }; } ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005179 esac
5180 done
5181 ;;
5182esac
5183
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005184
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005185# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005186if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005187 withval=$with_ocaml_libdir;
5188else
5189 withval=auto
5190fi
5191
5192case "$withval" in
5193 auto) with_ocaml_libdir="$withval" ;;
5194 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005195 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5196echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5197 { (exit 1); exit 1; }; } ;;
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005198esac
5199
5200
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005201# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005202if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005203 withval=$with_c_include_dirs;
Rafael Espindola354924d2009-11-12 05:46:09 +00005204else
5205 withval=""
5206fi
5207
5208
5209cat >>confdefs.h <<_ACEOF
5210#define C_INCLUDE_DIRS "$withval"
5211_ACEOF
5212
5213
5214
Rafael Espindola3890bf02009-11-16 19:46:55 +00005215# Check whether --with-cxx-include-root was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005216if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005217 withval=$with_cxx_include_root;
5218else
5219 withval=""
5220fi
5221
5222
5223cat >>confdefs.h <<_ACEOF
5224#define CXX_INCLUDE_ROOT "$withval"
5225_ACEOF
5226
5227
5228
5229# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005230if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005231 withval=$with_cxx_include_arch;
5232else
5233 withval=""
5234fi
5235
5236
5237cat >>confdefs.h <<_ACEOF
5238#define CXX_INCLUDE_ARCH "$withval"
5239_ACEOF
5240
5241
5242
5243# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005244if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005245 withval=$with_cxx_include_32bit_dir;
5246else
5247 withval=""
5248fi
5249
5250
5251cat >>confdefs.h <<_ACEOF
5252#define CXX_INCLUDE_32BIT_DIR "$withval"
5253_ACEOF
5254
5255
5256
5257# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005258if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005259 withval=$with_cxx_include_64bit_dir;
5260else
5261 withval=""
5262fi
5263
5264
5265cat >>confdefs.h <<_ACEOF
5266#define CXX_INCLUDE_64BIT_DIR "$withval"
5267_ACEOF
5268
5269
5270
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005271# Check whether --with-binutils-include was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005272if test "${with_binutils_include+set}" = set; then
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005273 withval=$with_binutils_include;
5274else
5275 withval=default
5276fi
5277
5278case "$withval" in
5279 default) WITH_BINUTILS_INCDIR=default ;;
5280 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005281 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5282echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5283 { (exit 1); exit 1; }; } ;;
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005284esac
5285if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5286 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5287
5288 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5289 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005290 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5291echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5292 { (exit 1); exit 1; }; };
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005293 fi
5294fi
5295
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005296# Check whether --enable-libffi was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005297if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005298 enableval=$enable_libffi; case "$enableval" in
5299 yes) llvm_cv_enable_libffi="yes" ;;
5300 no) llvm_cv_enable_libffi="no" ;;
5301 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005302echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5303 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005304 esac
5305else
5306 llvm_cv_enable_libffi=no
5307fi
5308
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005309
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005310if test "$llvm_cv_os_type" = "Win32" ; then
5311 llvmc_dynamic="yes"
5312else
5313 llvmc_dynamic="no"
5314fi
5315
5316# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005317if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005318 enableval=$enable_llvmc_dynamic;
5319else
5320 enableval=$llvmc_dynamic
5321fi
5322
5323if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5324 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5325
5326else
5327 ENABLE_LLVMC_DYNAMIC=
5328
5329fi
5330
5331# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005332if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005333 enableval=$enable_llvmc_dynamic_plugins;
5334else
5335 enableval=yes
5336fi
5337
5338if test ${enableval} = "yes" ; then
5339 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5340
5341else
5342 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5343
5344fi
5345
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005346
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005347ac_ext=c
5348ac_cpp='$CPP $CPPFLAGS'
5349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005352{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5353echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005354# On Suns, sometimes $CPP names a directory.
5355if test -n "$CPP" && test -d "$CPP"; then
5356 CPP=
5357fi
5358if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005359 if test "${ac_cv_prog_CPP+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005361else
5362 # Double quotes because CPP needs to be expanded
5363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5364 do
5365 ac_preproc_ok=false
5366for ac_c_preproc_warn_flag in '' yes
5367do
5368 # Use a header file that comes with gcc, so configuring glibc
5369 # with a fresh cross-compiler works.
5370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371 # <limits.h> exists even on freestanding compilers.
5372 # On the NeXT, cc -E runs the code through the compiler's parser,
5373 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005379/* end confdefs.h. */
5380#ifdef __STDC__
5381# include <limits.h>
5382#else
5383# include <assert.h>
5384#endif
5385 Syntax error
5386_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005387if { (ac_try="$ac_cpp conftest.$ac_ext"
5388case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391esac
5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_c_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403 else
5404 ac_cpp_err=
5405 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005406else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005407 ac_cpp_err=yes
5408fi
5409if test -z "$ac_cpp_err"; then
5410 :
5411else
5412 echo "$as_me: failed program was:" >&5
5413sed 's/^/| /' conftest.$ac_ext >&5
5414
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005415 # Broken: fails on valid input.
5416continue
5417fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005418
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005419rm -f conftest.err conftest.$ac_ext
5420
5421 # OK, works on sane cases. Now check whether nonexistent headers
5422 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005423 cat >conftest.$ac_ext <<_ACEOF
5424/* confdefs.h. */
5425_ACEOF
5426cat confdefs.h >>conftest.$ac_ext
5427cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005428/* end confdefs.h. */
5429#include <ac_nonexistent.h>
5430_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005431if { (ac_try="$ac_cpp conftest.$ac_ext"
5432case "(($ac_try" in
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5435esac
5436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } >/dev/null; then
5444 if test -s conftest.err; then
5445 ac_cpp_err=$ac_c_preproc_warn_flag
5446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5447 else
5448 ac_cpp_err=
5449 fi
5450else
5451 ac_cpp_err=yes
5452fi
5453if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005454 # Broken: success on invalid input.
5455continue
5456else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005457 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005460 # Passes both tests.
5461ac_preproc_ok=:
5462break
5463fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005464
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005465rm -f conftest.err conftest.$ac_ext
5466
5467done
5468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5469rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005470if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005471 break
5472fi
5473
5474 done
5475 ac_cv_prog_CPP=$CPP
5476
5477fi
5478 CPP=$ac_cv_prog_CPP
5479else
5480 ac_cv_prog_CPP=$CPP
5481fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005482{ echo "$as_me:$LINENO: result: $CPP" >&5
5483echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005484ac_preproc_ok=false
5485for ac_c_preproc_warn_flag in '' yes
5486do
5487 # Use a header file that comes with gcc, so configuring glibc
5488 # with a fresh cross-compiler works.
5489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490 # <limits.h> exists even on freestanding compilers.
5491 # On the NeXT, cc -E runs the code through the compiler's parser,
5492 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005493 cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h. */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005498/* end confdefs.h. */
5499#ifdef __STDC__
5500# include <limits.h>
5501#else
5502# include <assert.h>
5503#endif
5504 Syntax error
5505_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005506if { (ac_try="$ac_cpp conftest.$ac_ext"
5507case "(($ac_try" in
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5510esac
5511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } >/dev/null; then
5519 if test -s conftest.err; then
5520 ac_cpp_err=$ac_c_preproc_warn_flag
5521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5522 else
5523 ac_cpp_err=
5524 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005525else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005526 ac_cpp_err=yes
5527fi
5528if test -z "$ac_cpp_err"; then
5529 :
5530else
5531 echo "$as_me: failed program was:" >&5
5532sed 's/^/| /' conftest.$ac_ext >&5
5533
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005534 # Broken: fails on valid input.
5535continue
5536fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005537
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005538rm -f conftest.err conftest.$ac_ext
5539
5540 # OK, works on sane cases. Now check whether nonexistent headers
5541 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005542 cat >conftest.$ac_ext <<_ACEOF
5543/* confdefs.h. */
5544_ACEOF
5545cat confdefs.h >>conftest.$ac_ext
5546cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005547/* end confdefs.h. */
5548#include <ac_nonexistent.h>
5549_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005550if { (ac_try="$ac_cpp conftest.$ac_ext"
5551case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554esac
5555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5557 ac_status=$?
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } >/dev/null; then
5563 if test -s conftest.err; then
5564 ac_cpp_err=$ac_c_preproc_warn_flag
5565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5566 else
5567 ac_cpp_err=
5568 fi
5569else
5570 ac_cpp_err=yes
5571fi
5572if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005573 # Broken: success on invalid input.
5574continue
5575else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005579 # Passes both tests.
5580ac_preproc_ok=:
5581break
5582fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005583
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005584rm -f conftest.err conftest.$ac_ext
5585
5586done
5587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5588rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005589if $ac_preproc_ok; then
5590 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005591else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5593See \`config.log' for more details." >&5
5594echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5595See \`config.log' for more details." >&2;}
5596 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005597fi
5598
5599ac_ext=c
5600ac_cpp='$CPP $CPPFLAGS'
5601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604
5605ac_ext=c
5606ac_cpp='$CPP $CPPFLAGS'
5607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609ac_compiler_gnu=$ac_cv_c_compiler_gnu
5610if test -n "$ac_tool_prefix"; then
5611 for ac_prog in gcc
5612 do
5613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5617if test "${ac_cv_prog_CC+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005619else
5620 if test -n "$CC"; then
5621 ac_cv_prog_CC="$CC" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 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 +00005630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005632 break 2
5633 fi
5634done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005635done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005636IFS=$as_save_IFS
5637
5638fi
5639fi
5640CC=$ac_cv_prog_CC
5641if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005642 { echo "$as_me:$LINENO: result: $CC" >&5
5643echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005644else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005645 { echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005647fi
5648
5649
5650 test -n "$CC" && break
5651 done
5652fi
5653if test -z "$CC"; then
5654 ac_ct_CC=$CC
5655 for ac_prog in gcc
5656do
5657 # Extract the first word of "$ac_prog", so it can be a program name with args.
5658set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005663else
5664 if test -n "$ac_ct_CC"; then
5665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 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 +00005674 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005676 break 2
5677 fi
5678done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005679done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005680IFS=$as_save_IFS
5681
5682fi
5683fi
5684ac_ct_CC=$ac_cv_prog_ac_ct_CC
5685if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005686 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5687echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005688else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005689 { echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005691fi
5692
5693
5694 test -n "$ac_ct_CC" && break
5695done
5696
5697 if test "x$ac_ct_CC" = x; then
5698 CC=""
5699 else
5700 case $cross_compiling:$ac_tool_warned in
5701yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005702{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5703whose name does not start with the host triplet. If you think this
5704configuration is useful to you, please write to autoconf@gnu.org." >&5
5705echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5706whose name does not start with the host triplet. If you think this
5707configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005708ac_tool_warned=yes ;;
5709esac
5710 CC=$ac_ct_CC
5711 fi
5712fi
5713
5714
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005715test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5716See \`config.log' for more details." >&5
5717echo "$as_me: error: no acceptable C compiler found in \$PATH
5718See \`config.log' for more details." >&2;}
5719 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005720
5721# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005722echo "$as_me:$LINENO: checking for C compiler version" >&5
5723ac_compiler=`set X $ac_compile; echo $2`
5724{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005725case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005731 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }
5734{ (ac_try="$ac_compiler -v >&5"
5735case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738esac
5739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_compiler -v >&5") 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }
5744{ (ac_try="$ac_compiler -V >&5"
5745case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748esac
5749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_compiler -V >&5") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005754
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005755{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5756echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5757if test "${ac_cv_c_compiler_gnu+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005759else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005760 cat >conftest.$ac_ext <<_ACEOF
5761/* confdefs.h. */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005765/* end confdefs.h. */
5766
5767int
5768main ()
5769{
5770#ifndef __GNUC__
5771 choke me
5772#endif
5773
5774 ;
5775 return 0;
5776}
5777_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005778rm -f conftest.$ac_objext
5779if { (ac_try="$ac_compile"
5780case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5793 { (case "(($ac_try" in
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5796esac
5797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_try") 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806esac
5807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_try") 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005812 ac_compiler_gnu=yes
5813else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005814 echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005818fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005819
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821ac_cv_c_compiler_gnu=$ac_compiler_gnu
5822
5823fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005824{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5825echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5826GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005827ac_test_CFLAGS=${CFLAGS+set}
5828ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005829{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5830echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5831if test "${ac_cv_prog_cc_g+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005833else
5834 ac_save_c_werror_flag=$ac_c_werror_flag
5835 ac_c_werror_flag=yes
5836 ac_cv_prog_cc_g=no
5837 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005838 cat >conftest.$ac_ext <<_ACEOF
5839/* confdefs.h. */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005843/* end confdefs.h. */
5844
5845int
5846main ()
5847{
5848
5849 ;
5850 return 0;
5851}
5852_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005853rm -f conftest.$ac_objext
5854if { (ac_try="$ac_compile"
5855case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881esac
5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005887 ac_cv_prog_cc_g=yes
5888else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005889 echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 CFLAGS=""
5893 cat >conftest.$ac_ext <<_ACEOF
5894/* confdefs.h. */
5895_ACEOF
5896cat confdefs.h >>conftest.$ac_ext
5897cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005898/* end confdefs.h. */
5899
5900int
5901main ()
5902{
5903
5904 ;
5905 return 0;
5906}
5907_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005908rm -f conftest.$ac_objext
5909if { (ac_try="$ac_compile"
5910case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest.$ac_objext'
5933 { (case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936esac
5937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_try") 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 :
Edwin Törökc27310c2010-01-26 08:50:50 +00005943else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005944 echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005948 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005949 cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h. */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005954/* end confdefs.h. */
5955
5956int
5957main ()
5958{
5959
5960 ;
5961 return 0;
5962}
5963_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005964rm -f conftest.$ac_objext
5965if { (ac_try="$ac_compile"
5966case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969esac
5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982esac
5983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992esac
5993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_try") 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005998 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005999else
6000 echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006004fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006005
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006008
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006011
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 ac_c_werror_flag=$ac_save_c_werror_flag
6014fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006015{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6016echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006017if test "$ac_test_CFLAGS" = set; then
6018 CFLAGS=$ac_save_CFLAGS
6019elif test $ac_cv_prog_cc_g = yes; then
6020 if test "$GCC" = yes; then
6021 CFLAGS="-g -O2"
6022 else
6023 CFLAGS="-g"
6024 fi
6025else
6026 if test "$GCC" = yes; then
6027 CFLAGS="-O2"
6028 else
6029 CFLAGS=
6030 fi
6031fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006032{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6033echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6034if test "${ac_cv_prog_cc_c89+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006036else
6037 ac_cv_prog_cc_c89=no
6038ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006039cat >conftest.$ac_ext <<_ACEOF
6040/* confdefs.h. */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006044/* end confdefs.h. */
6045#include <stdarg.h>
6046#include <stdio.h>
6047#include <sys/types.h>
6048#include <sys/stat.h>
6049/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6050struct buf { int x; };
6051FILE * (*rcsopen) (struct buf *, struct stat *, int);
6052static char *e (p, i)
6053 char **p;
6054 int i;
6055{
6056 return p[i];
6057}
6058static char *f (char * (*g) (char **, int), char **p, ...)
6059{
6060 char *s;
6061 va_list v;
6062 va_start (v,p);
6063 s = g (p, va_arg (v,int));
6064 va_end (v);
6065 return s;
6066}
6067
6068/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6069 function prototypes and stuff, but not '\xHH' hex character constants.
6070 These don't provoke an error unfortunately, instead are silently treated
6071 as 'x'. The following induces an error, until -std is added to get
6072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6073 array size at least. It's necessary to write '\x00'==0 to get something
6074 that's true only with -std. */
6075int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6076
6077/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6078 inside strings and character constants. */
6079#define FOO(x) 'x'
6080int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6081
6082int test (int i, double x);
6083struct s1 {int (*f) (int a);};
6084struct s2 {int (*f) (double a);};
6085int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6086int argc;
6087char **argv;
6088int
6089main ()
6090{
6091return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6098do
6099 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006100 rm -f conftest.$ac_objext
6101if { (ac_try="$ac_compile"
6102case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105esac
6106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_compile") 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6115 { (case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118esac
6119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_try") 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest.$ac_objext'
6125 { (case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128esac
6129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_try") 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006134 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006135else
6136 echo "$as_me: failed program was:" >&5
6137sed 's/^/| /' conftest.$ac_ext >&5
6138
6139
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006140fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006141
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006142rm -f core conftest.err conftest.$ac_objext
6143 test "x$ac_cv_prog_cc_c89" != "xno" && break
6144done
6145rm -f conftest.$ac_ext
6146CC=$ac_save_CC
6147
6148fi
6149# AC_CACHE_VAL
6150case "x$ac_cv_prog_cc_c89" in
6151 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006152 { echo "$as_me:$LINENO: result: none needed" >&5
6153echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006154 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006155 { echo "$as_me:$LINENO: result: unsupported" >&5
6156echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006157 *)
6158 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006159 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6160echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006161esac
6162
6163
6164ac_ext=c
6165ac_cpp='$CPP $CPPFLAGS'
6166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169
6170ac_ext=cpp
6171ac_cpp='$CXXCPP $CPPFLAGS'
6172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6175if test -z "$CXX"; then
6176 if test -n "$CCC"; then
6177 CXX=$CCC
6178 else
6179 if test -n "$ac_tool_prefix"; then
6180 for ac_prog in g++
6181 do
6182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186if test "${ac_cv_prog_CXX+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006188else
6189 if test -n "$CXX"; then
6190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 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 +00006199 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006201 break 2
6202 fi
6203done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006204done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006205IFS=$as_save_IFS
6206
6207fi
6208fi
6209CXX=$ac_cv_prog_CXX
6210if test -n "$CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006211 { echo "$as_me:$LINENO: result: $CXX" >&5
6212echo "${ECHO_T}$CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006213else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006214 { echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006216fi
6217
6218
6219 test -n "$CXX" && break
6220 done
6221fi
6222if test -z "$CXX"; then
6223 ac_ct_CXX=$CXX
6224 for ac_prog in g++
6225do
6226 # Extract the first word of "$ac_prog", so it can be a program name with args.
6227set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006232else
6233 if test -n "$ac_ct_CXX"; then
6234 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 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 +00006243 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006245 break 2
6246 fi
6247done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006248done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006249IFS=$as_save_IFS
6250
6251fi
6252fi
6253ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6254if test -n "$ac_ct_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006255 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6256echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006257else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006258 { echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006260fi
6261
6262
6263 test -n "$ac_ct_CXX" && break
6264done
6265
6266 if test "x$ac_ct_CXX" = x; then
6267 CXX="g++"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006271{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272whose name does not start with the host triplet. If you think this
6273configuration is useful to you, please write to autoconf@gnu.org." >&5
6274echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275whose name does not start with the host triplet. If you think this
6276configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006277ac_tool_warned=yes ;;
6278esac
6279 CXX=$ac_ct_CXX
6280 fi
6281fi
6282
6283 fi
6284fi
6285# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006286echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6287ac_compiler=`set X $ac_compile; echo $2`
6288{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006289case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006295 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }
6298{ (ac_try="$ac_compiler -v >&5"
6299case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302esac
6303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compiler -v >&5") 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }
6308{ (ac_try="$ac_compiler -V >&5"
6309case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312esac
6313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_compiler -V >&5") 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006318
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006319{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6320echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6321if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006323else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006324 cat >conftest.$ac_ext <<_ACEOF
6325/* confdefs.h. */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006329/* end confdefs.h. */
6330
6331int
6332main ()
6333{
6334#ifndef __GNUC__
6335 choke me
6336#endif
6337
6338 ;
6339 return 0;
6340}
6341_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006342rm -f conftest.$ac_objext
6343if { (ac_try="$ac_compile"
6344case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6357 { (case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6360esac
6361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362 (eval "$ac_try") 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest.$ac_objext'
6367 { (case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370esac
6371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_try") 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006376 ac_compiler_gnu=yes
6377else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006378 echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006382fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006383
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6386
6387fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006388{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6389echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6390GXX=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006391ac_test_CXXFLAGS=${CXXFLAGS+set}
6392ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006393{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6394echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6395if test "${ac_cv_prog_cxx_g+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006397else
6398 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6399 ac_cxx_werror_flag=yes
6400 ac_cv_prog_cxx_g=no
6401 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006402 cat >conftest.$ac_ext <<_ACEOF
6403/* confdefs.h. */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006407/* end confdefs.h. */
6408
6409int
6410main ()
6411{
6412
6413 ;
6414 return 0;
6415}
6416_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006417rm -f conftest.$ac_objext
6418if { (ac_try="$ac_compile"
6419case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6432 { (case "(($ac_try" in
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6435esac
6436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_try") 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6445esac
6446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_try") 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006451 ac_cv_prog_cxx_g=yes
6452else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006453 echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
6455
6456 CXXFLAGS=""
6457 cat >conftest.$ac_ext <<_ACEOF
6458/* confdefs.h. */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006462/* end confdefs.h. */
6463
6464int
6465main ()
6466{
6467
6468 ;
6469 return 0;
6470}
6471_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006472rm -f conftest.$ac_objext
6473if { (ac_try="$ac_compile"
6474case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477esac
6478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490esac
6491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6500esac
6501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_try") 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 :
Edwin Törökc27310c2010-01-26 08:50:50 +00006507else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006508 echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006512 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006513 cat >conftest.$ac_ext <<_ACEOF
6514/* confdefs.h. */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006518/* end confdefs.h. */
6519
6520int
6521main ()
6522{
6523
6524 ;
6525 return 0;
6526}
6527_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006528rm -f conftest.$ac_objext
6529if { (ac_try="$ac_compile"
6530case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533esac
6534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_compile") 2>conftest.er1
6536 ac_status=$?
6537 grep -v '^ *+' conftest.er1 >conftest.err
6538 rm -f conftest.er1
6539 cat conftest.err >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6543 { (case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546esac
6547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_try") 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest.$ac_objext'
6553 { (case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556esac
6557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_try") 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006562 ac_cv_prog_cxx_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006563else
6564 echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006568fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006569
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006572
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006575
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6578fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006579{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6580echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006581if test "$ac_test_CXXFLAGS" = set; then
6582 CXXFLAGS=$ac_save_CXXFLAGS
6583elif test $ac_cv_prog_cxx_g = yes; then
6584 if test "$GXX" = yes; then
6585 CXXFLAGS="-g -O2"
6586 else
6587 CXXFLAGS="-g"
6588 fi
6589else
6590 if test "$GXX" = yes; then
6591 CXXFLAGS="-O2"
6592 else
6593 CXXFLAGS=
6594 fi
6595fi
6596ac_ext=c
6597ac_cpp='$CPP $CPPFLAGS'
6598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6600ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006602
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006603{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6604echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6605if test "${lt_cv_path_NM+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006607else
6608 if test -n "$NM"; then
6609 # Let the user override the test.
6610 lt_cv_path_NM="$NM"
6611else
6612 lt_nm_to_check="${ac_tool_prefix}nm"
6613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6614 lt_nm_to_check="$lt_nm_to_check nm"
6615 fi
6616 for lt_tmp_nm in $lt_nm_to_check; do
6617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6619 IFS="$lt_save_ifs"
6620 test -z "$ac_dir" && ac_dir=.
6621 tmp_nm="$ac_dir/$lt_tmp_nm"
6622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6623 # Check to see if the nm accepts a BSD-compat flag.
6624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6625 # nm: unknown option "B" ignored
6626 # Tru64's nm complains that /dev/null is an invalid object file
6627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6628 */dev/null* | *'Invalid file or object type'*)
6629 lt_cv_path_NM="$tmp_nm -B"
6630 break
6631 ;;
6632 *)
6633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6634 */dev/null*)
6635 lt_cv_path_NM="$tmp_nm -p"
6636 break
6637 ;;
6638 *)
6639 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6640 continue # so that we can try to find one that supports BSD flags
6641 ;;
6642 esac
6643 ;;
6644 esac
6645 fi
6646 done
6647 IFS="$lt_save_ifs"
6648 done
6649 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6650fi
6651fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006652{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6653echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006654NM="$lt_cv_path_NM"
6655
6656
6657
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006658{ echo "$as_me:$LINENO: checking for GNU make" >&5
6659echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6660if test "${llvm_cv_gnu_make_command+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006662else
6663 llvm_cv_gnu_make_command=''
6664 for a in "$MAKE" make gmake gnumake ; do
6665 if test -z "$a" ; then continue ; fi ;
6666 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6667 then
6668 llvm_cv_gnu_make_command=$a ;
6669 break;
6670 fi
6671 done
6672fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006673{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6674echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006675 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6676 ifGNUmake='' ;
6677 else
6678 ifGNUmake='#' ;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006679 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6680echo "${ECHO_T}\"Not found\"" >&6; };
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006681 fi
6682
6683
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006684{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6685echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006686LN_S=$as_ln_s
6687if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006688 { echo "$as_me:$LINENO: result: yes" >&5
6689echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006690else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006691 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6692echo "${ECHO_T}no, using $LN_S" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006693fi
6694
6695# Extract the first word of "cmp", so it can be a program name with args.
6696set dummy cmp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699if test "${ac_cv_path_CMP+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006701else
6702 case $CMP in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6705 ;;
6706 *)
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 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 +00006714 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006716 break 2
6717 fi
6718done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006719done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006720IFS=$as_save_IFS
6721
6722 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6723 ;;
6724esac
6725fi
6726CMP=$ac_cv_path_CMP
6727if test -n "$CMP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006728 { echo "$as_me:$LINENO: result: $CMP" >&5
6729echo "${ECHO_T}$CMP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006730else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006731 { echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006733fi
6734
6735
6736# Extract the first word of "cp", so it can be a program name with args.
6737set dummy cp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740if test "${ac_cv_path_CP+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006742else
6743 case $CP in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6746 ;;
6747 *)
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 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 +00006755 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006757 break 2
6758 fi
6759done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006760done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006761IFS=$as_save_IFS
6762
6763 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6764 ;;
6765esac
6766fi
6767CP=$ac_cv_path_CP
6768if test -n "$CP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006769 { echo "$as_me:$LINENO: result: $CP" >&5
6770echo "${ECHO_T}$CP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006771else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006772 { echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006774fi
6775
6776
6777# Extract the first word of "date", so it can be a program name with args.
6778set dummy date; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781if test "${ac_cv_path_DATE+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006783else
6784 case $DATE in
6785 [\\/]* | ?:[\\/]*)
6786 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6787 ;;
6788 *)
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 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 +00006796 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006798 break 2
6799 fi
6800done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006801done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006802IFS=$as_save_IFS
6803
6804 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6805 ;;
6806esac
6807fi
6808DATE=$ac_cv_path_DATE
6809if test -n "$DATE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006810 { echo "$as_me:$LINENO: result: $DATE" >&5
6811echo "${ECHO_T}$DATE" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006812else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006813 { echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006815fi
6816
6817
6818# Extract the first word of "find", so it can be a program name with args.
6819set dummy find; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822if test "${ac_cv_path_FIND+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006824else
6825 case $FIND in
6826 [\\/]* | ?:[\\/]*)
6827 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6828 ;;
6829 *)
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 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 +00006837 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006839 break 2
6840 fi
6841done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006842done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006843IFS=$as_save_IFS
6844
6845 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6846 ;;
6847esac
6848fi
6849FIND=$ac_cv_path_FIND
6850if test -n "$FIND"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006851 { echo "$as_me:$LINENO: result: $FIND" >&5
6852echo "${ECHO_T}$FIND" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006853else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006854 { echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006856fi
6857
6858
6859# Extract the first word of "grep", so it can be a program name with args.
6860set dummy grep; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863if test "${ac_cv_path_GREP+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006865else
6866 case $GREP in
6867 [\\/]* | ?:[\\/]*)
6868 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6869 ;;
6870 *)
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 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 +00006878 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006880 break 2
6881 fi
6882done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006883done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006884IFS=$as_save_IFS
6885
6886 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6887 ;;
6888esac
6889fi
6890GREP=$ac_cv_path_GREP
6891if test -n "$GREP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006892 { echo "$as_me:$LINENO: result: $GREP" >&5
6893echo "${ECHO_T}$GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006894else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006895 { echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006897fi
6898
6899
6900# Extract the first word of "mkdir", so it can be a program name with args.
6901set dummy mkdir; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_path_MKDIR+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006906else
6907 case $MKDIR in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 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 +00006919 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006921 break 2
6922 fi
6923done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006924done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006925IFS=$as_save_IFS
6926
6927 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6928 ;;
6929esac
6930fi
6931MKDIR=$ac_cv_path_MKDIR
6932if test -n "$MKDIR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006933 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6934echo "${ECHO_T}$MKDIR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006935else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006936 { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006938fi
6939
6940
6941# Extract the first word of "mv", so it can be a program name with args.
6942set dummy mv; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6945if test "${ac_cv_path_MV+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006947else
6948 case $MV in
6949 [\\/]* | ?:[\\/]*)
6950 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6951 ;;
6952 *)
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 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 +00006960 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006962 break 2
6963 fi
6964done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006965done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006966IFS=$as_save_IFS
6967
6968 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6969 ;;
6970esac
6971fi
6972MV=$ac_cv_path_MV
6973if test -n "$MV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006974 { echo "$as_me:$LINENO: result: $MV" >&5
6975echo "${ECHO_T}$MV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006976else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006977 { echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006979fi
6980
6981
6982if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6984set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987if test "${ac_cv_prog_RANLIB+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006989else
6990 if test -n "$RANLIB"; then
6991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 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 +00007000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007002 break 2
7003 fi
7004done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007005done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007006IFS=$as_save_IFS
7007
7008fi
7009fi
7010RANLIB=$ac_cv_prog_RANLIB
7011if test -n "$RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007012 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7013echo "${ECHO_T}$RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007014else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007015 { echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007017fi
7018
7019
7020fi
7021if test -z "$ac_cv_prog_RANLIB"; then
7022 ac_ct_RANLIB=$RANLIB
7023 # Extract the first word of "ranlib", so it can be a program name with args.
7024set dummy ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007029else
7030 if test -n "$ac_ct_RANLIB"; then
7031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 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 +00007040 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007042 break 2
7043 fi
7044done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007045done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007046IFS=$as_save_IFS
7047
7048fi
7049fi
7050ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7051if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007052 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7053echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007054else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007055 { echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007057fi
7058
7059 if test "x$ac_ct_RANLIB" = x; then
7060 RANLIB=":"
7061 else
7062 case $cross_compiling:$ac_tool_warned in
7063yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007064{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7065whose name does not start with the host triplet. If you think this
7066configuration is useful to you, please write to autoconf@gnu.org." >&5
7067echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7068whose name does not start with the host triplet. If you think this
7069configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007070ac_tool_warned=yes ;;
7071esac
7072 RANLIB=$ac_ct_RANLIB
7073 fi
7074else
7075 RANLIB="$ac_cv_prog_RANLIB"
7076fi
7077
Edwin Törökc27310c2010-01-26 08:50:50 +00007078if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7080set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083if test "${ac_cv_prog_AR+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007085else
7086 if test -n "$AR"; then
7087 ac_cv_prog_AR="$AR" # Let the user override the test.
7088else
7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 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 +00007096 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007098 break 2
7099 fi
7100done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007101done
Edwin Törökc27310c2010-01-26 08:50:50 +00007102IFS=$as_save_IFS
7103
7104fi
7105fi
7106AR=$ac_cv_prog_AR
7107if test -n "$AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007108 { echo "$as_me:$LINENO: result: $AR" >&5
7109echo "${ECHO_T}$AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007110else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007111 { echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007113fi
7114
7115
7116fi
7117if test -z "$ac_cv_prog_AR"; then
7118 ac_ct_AR=$AR
7119 # Extract the first word of "ar", so it can be a program name with args.
7120set dummy ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007125else
7126 if test -n "$ac_ct_AR"; then
7127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7128else
7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 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 +00007136 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007138 break 2
7139 fi
7140done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007141done
Edwin Törökc27310c2010-01-26 08:50:50 +00007142IFS=$as_save_IFS
7143
7144fi
7145fi
7146ac_ct_AR=$ac_cv_prog_ac_ct_AR
7147if test -n "$ac_ct_AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007148 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7149echo "${ECHO_T}$ac_ct_AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007150else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007151 { echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007153fi
7154
7155 if test "x$ac_ct_AR" = x; then
7156 AR="false"
7157 else
7158 case $cross_compiling:$ac_tool_warned in
7159yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007160{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7161whose name does not start with the host triplet. If you think this
7162configuration is useful to you, please write to autoconf@gnu.org." >&5
7163echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7164whose name does not start with the host triplet. If you think this
7165configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Edwin Törökc27310c2010-01-26 08:50:50 +00007166ac_tool_warned=yes ;;
7167esac
7168 AR=$ac_ct_AR
7169 fi
7170else
7171 AR="$ac_cv_prog_AR"
7172fi
7173
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007174# Extract the first word of "rm", so it can be a program name with args.
7175set dummy rm; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178if test "${ac_cv_path_RM+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007180else
7181 case $RM in
7182 [\\/]* | ?:[\\/]*)
7183 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7184 ;;
7185 *)
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187for as_dir in $PATH
7188do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 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 +00007193 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007195 break 2
7196 fi
7197done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007198done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007199IFS=$as_save_IFS
7200
7201 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7202 ;;
7203esac
7204fi
7205RM=$ac_cv_path_RM
7206if test -n "$RM"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007207 { echo "$as_me:$LINENO: result: $RM" >&5
7208echo "${ECHO_T}$RM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007209else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007210 { echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007212fi
7213
7214
7215# Extract the first word of "sed", so it can be a program name with args.
7216set dummy sed; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219if test "${ac_cv_path_SED+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007221else
7222 case $SED in
7223 [\\/]* | ?:[\\/]*)
7224 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7225 ;;
7226 *)
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 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 +00007234 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007236 break 2
7237 fi
7238done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007239done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007240IFS=$as_save_IFS
7241
7242 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7243 ;;
7244esac
7245fi
7246SED=$ac_cv_path_SED
7247if test -n "$SED"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007248 { echo "$as_me:$LINENO: result: $SED" >&5
7249echo "${ECHO_T}$SED" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007250else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007251 { echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007253fi
7254
7255
7256# Extract the first word of "tar", so it can be a program name with args.
7257set dummy tar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260if test "${ac_cv_path_TAR+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007262else
7263 case $TAR in
7264 [\\/]* | ?:[\\/]*)
7265 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7266 ;;
7267 *)
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 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 +00007275 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007277 break 2
7278 fi
7279done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007280done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007281IFS=$as_save_IFS
7282
7283 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7284 ;;
7285esac
7286fi
7287TAR=$ac_cv_path_TAR
7288if test -n "$TAR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007289 { echo "$as_me:$LINENO: result: $TAR" >&5
7290echo "${ECHO_T}$TAR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007291else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007292 { echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007294fi
7295
7296
7297# Extract the first word of "pwd", so it can be a program name with args.
7298set dummy pwd; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301if test "${ac_cv_path_BINPWD+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007303else
7304 case $BINPWD in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7307 ;;
7308 *)
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 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 +00007316 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007318 break 2
7319 fi
7320done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007321done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007322IFS=$as_save_IFS
7323
7324 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7325 ;;
7326esac
7327fi
7328BINPWD=$ac_cv_path_BINPWD
7329if test -n "$BINPWD"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007330 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7331echo "${ECHO_T}$BINPWD" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007332else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007333 { echo "$as_me:$LINENO: result: no" >&5
7334echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007335fi
7336
7337
7338
7339# Extract the first word of "Graphviz", so it can be a program name with args.
7340set dummy Graphviz; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007345else
7346 case $GRAPHVIZ in
7347 [\\/]* | ?:[\\/]*)
7348 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7349 ;;
7350 *)
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 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 +00007358 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007360 break 2
7361 fi
7362done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007363done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007364IFS=$as_save_IFS
7365
7366 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7367 ;;
7368esac
7369fi
7370GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7371if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007372 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7373echo "${ECHO_T}$GRAPHVIZ" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007374else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007375 { echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007377fi
7378
7379
7380if test "$GRAPHVIZ" != "echo Graphviz" ; then
7381
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007382cat >>confdefs.h <<\_ACEOF
7383#define HAVE_GRAPHVIZ 1
7384_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007385
7386 if test "$llvm_cv_os_type" = "MingW" ; then
7387 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7388 fi
7389
7390cat >>confdefs.h <<_ACEOF
7391#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7392_ACEOF
7393
7394fi
7395# Extract the first word of "dot", so it can be a program name with args.
7396set dummy dot; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399if test "${ac_cv_path_DOT+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007401else
7402 case $DOT in
7403 [\\/]* | ?:[\\/]*)
7404 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7405 ;;
7406 *)
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 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 +00007414 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007416 break 2
7417 fi
7418done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007419done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007420IFS=$as_save_IFS
7421
7422 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7423 ;;
7424esac
7425fi
7426DOT=$ac_cv_path_DOT
7427if test -n "$DOT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007428 { echo "$as_me:$LINENO: result: $DOT" >&5
7429echo "${ECHO_T}$DOT" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007430else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007431 { echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007433fi
7434
7435
7436if test "$DOT" != "echo dot" ; then
7437
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007438cat >>confdefs.h <<\_ACEOF
7439#define HAVE_DOT 1
7440_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007441
7442 if test "$llvm_cv_os_type" = "MingW" ; then
7443 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7444 fi
7445
7446cat >>confdefs.h <<_ACEOF
7447#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7448_ACEOF
7449
7450fi
David Greenedb740ef2009-07-09 17:16:26 +00007451# Extract the first word of "fdp", so it can be a program name with args.
7452set dummy fdp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455if test "${ac_cv_path_FDP+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007457else
7458 case $FDP in
7459 [\\/]* | ?:[\\/]*)
7460 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7461 ;;
7462 *)
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 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 +00007470 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007472 break 2
7473 fi
7474done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007475done
David Greenedb740ef2009-07-09 17:16:26 +00007476IFS=$as_save_IFS
7477
7478 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7479 ;;
7480esac
7481fi
7482FDP=$ac_cv_path_FDP
7483if test -n "$FDP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007484 { echo "$as_me:$LINENO: result: $FDP" >&5
7485echo "${ECHO_T}$FDP" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007486else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007487 { echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007489fi
7490
7491
7492if test "$FDP" != "echo fdp" ; then
7493
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007494cat >>confdefs.h <<\_ACEOF
7495#define HAVE_FDP 1
7496_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007497
7498 if test "$llvm_cv_os_type" = "MingW" ; then
7499 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7500 fi
7501
7502cat >>confdefs.h <<_ACEOF
7503#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7504_ACEOF
7505
7506fi
7507# Extract the first word of "neato", so it can be a program name with args.
7508set dummy neato; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511if test "${ac_cv_path_NEATO+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007513else
7514 case $NEATO in
7515 [\\/]* | ?:[\\/]*)
7516 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7517 ;;
7518 *)
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 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 +00007526 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007528 break 2
7529 fi
7530done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007531done
David Greenedb740ef2009-07-09 17:16:26 +00007532IFS=$as_save_IFS
7533
7534 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7535 ;;
7536esac
7537fi
7538NEATO=$ac_cv_path_NEATO
7539if test -n "$NEATO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007540 { echo "$as_me:$LINENO: result: $NEATO" >&5
7541echo "${ECHO_T}$NEATO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007542else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007543 { echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007545fi
7546
7547
7548if test "$NEATO" != "echo neato" ; then
7549
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007550cat >>confdefs.h <<\_ACEOF
7551#define HAVE_NEATO 1
7552_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007553
7554 if test "$llvm_cv_os_type" = "MingW" ; then
7555 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7556 fi
7557
7558cat >>confdefs.h <<_ACEOF
7559#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7560_ACEOF
7561
7562fi
7563# Extract the first word of "twopi", so it can be a program name with args.
7564set dummy twopi; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567if test "${ac_cv_path_TWOPI+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007569else
7570 case $TWOPI in
7571 [\\/]* | ?:[\\/]*)
7572 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7573 ;;
7574 *)
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 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 +00007582 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007584 break 2
7585 fi
7586done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007587done
David Greenedb740ef2009-07-09 17:16:26 +00007588IFS=$as_save_IFS
7589
7590 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7591 ;;
7592esac
7593fi
7594TWOPI=$ac_cv_path_TWOPI
7595if test -n "$TWOPI"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007596 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7597echo "${ECHO_T}$TWOPI" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007598else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007599 { echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007601fi
7602
7603
7604if test "$TWOPI" != "echo twopi" ; then
7605
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007606cat >>confdefs.h <<\_ACEOF
7607#define HAVE_TWOPI 1
7608_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007609
7610 if test "$llvm_cv_os_type" = "MingW" ; then
7611 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7612 fi
7613
7614cat >>confdefs.h <<_ACEOF
7615#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7616_ACEOF
7617
7618fi
7619# Extract the first word of "circo", so it can be a program name with args.
7620set dummy circo; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7623if test "${ac_cv_path_CIRCO+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007625else
7626 case $CIRCO in
7627 [\\/]* | ?:[\\/]*)
7628 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7629 ;;
7630 *)
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 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 +00007638 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007640 break 2
7641 fi
7642done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007643done
David Greenedb740ef2009-07-09 17:16:26 +00007644IFS=$as_save_IFS
7645
7646 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7647 ;;
7648esac
7649fi
7650CIRCO=$ac_cv_path_CIRCO
7651if test -n "$CIRCO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007652 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7653echo "${ECHO_T}$CIRCO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007654else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007655 { echo "$as_me:$LINENO: result: no" >&5
7656echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007657fi
7658
7659
7660if test "$CIRCO" != "echo circo" ; then
7661
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007662cat >>confdefs.h <<\_ACEOF
7663#define HAVE_CIRCO 1
7664_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007665
7666 if test "$llvm_cv_os_type" = "MingW" ; then
7667 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7668 fi
7669
7670cat >>confdefs.h <<_ACEOF
7671#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7672_ACEOF
7673
7674fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007675for ac_prog in gv gsview32
7676do
7677 # Extract the first word of "$ac_prog", so it can be a program name with args.
7678set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681if test "${ac_cv_path_GV+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007683else
7684 case $GV in
7685 [\\/]* | ?:[\\/]*)
7686 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7687 ;;
7688 *)
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 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 +00007696 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007698 break 2
7699 fi
7700done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007701done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007702IFS=$as_save_IFS
7703
7704 ;;
7705esac
7706fi
7707GV=$ac_cv_path_GV
7708if test -n "$GV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007709 { echo "$as_me:$LINENO: result: $GV" >&5
7710echo "${ECHO_T}$GV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007711else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007712 { echo "$as_me:$LINENO: result: no" >&5
7713echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007714fi
7715
7716
7717 test -n "$GV" && break
7718done
7719test -n "$GV" || GV="echo gv"
7720
7721if test "$GV" != "echo gv" ; then
7722
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007723cat >>confdefs.h <<\_ACEOF
7724#define HAVE_GV 1
7725_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007726
7727 if test "$llvm_cv_os_type" = "MingW" ; then
7728 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7729 fi
7730
7731cat >>confdefs.h <<_ACEOF
7732#define LLVM_PATH_GV "$GV${EXEEXT}"
7733_ACEOF
7734
7735fi
7736# Extract the first word of "dotty", so it can be a program name with args.
7737set dummy dotty; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740if test "${ac_cv_path_DOTTY+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007742else
7743 case $DOTTY in
7744 [\\/]* | ?:[\\/]*)
7745 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7746 ;;
7747 *)
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 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 +00007755 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007757 break 2
7758 fi
7759done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007760done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007761IFS=$as_save_IFS
7762
7763 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7764 ;;
7765esac
7766fi
7767DOTTY=$ac_cv_path_DOTTY
7768if test -n "$DOTTY"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007769 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7770echo "${ECHO_T}$DOTTY" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007771else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007772 { echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007774fi
7775
7776
7777if test "$DOTTY" != "echo dotty" ; then
7778
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007779cat >>confdefs.h <<\_ACEOF
7780#define HAVE_DOTTY 1
7781_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007782
7783 if test "$llvm_cv_os_type" = "MingW" ; then
7784 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7785 fi
7786
7787cat >>confdefs.h <<_ACEOF
7788#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7789_ACEOF
7790
7791fi
7792
7793
7794# Extract the first word of "perl", so it can be a program name with args.
7795set dummy perl; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798if test "${ac_cv_path_PERL+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007800else
7801 case $PERL in
7802 [\\/]* | ?:[\\/]*)
7803 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7804 ;;
7805 *)
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 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 +00007813 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007815 break 2
7816 fi
7817done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007818done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007819IFS=$as_save_IFS
7820
7821 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7822 ;;
7823esac
7824fi
7825PERL=$ac_cv_path_PERL
7826if test -n "$PERL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007827 { echo "$as_me:$LINENO: result: $PERL" >&5
7828echo "${ECHO_T}$PERL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007829else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007830 { echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007832fi
7833
7834
7835if test "$PERL" != "none"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007836 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7837echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007838 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007839 { echo "$as_me:$LINENO: result: yes" >&5
7840echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007841 else
7842 PERL=none
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007843 { echo "$as_me:$LINENO: result: not found" >&5
7844echo "${ECHO_T}not found" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007845 fi
7846fi
7847
7848
7849if test x"$PERL" = xnone; then
7850 HAVE_PERL=0
7851
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007852 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7853echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7854 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007855else
7856 HAVE_PERL=1
7857
7858fi
7859
7860# Find a good install program. We prefer a C program (faster),
7861# so one script is as good as another. But avoid the broken or
7862# incompatible versions:
7863# SysV /etc/install, /usr/sbin/install
7864# SunOS /usr/etc/install
7865# IRIX /sbin/install
7866# AIX /bin/install
7867# AmigaOS /C/install, which installs bootblocks on floppy discs
7868# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7869# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7870# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7871# OS/2's system install, which has a completely different semantic
7872# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007873{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7874echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007875if test -z "$INSTALL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007876if test "${ac_cv_path_install+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007878else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007884 # Account for people who put trailing slashes in PATH elements.
7885case $as_dir/ in
7886 ./ | .// | /cC/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007887 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007888 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007889 /usr/ucb/* ) ;;
7890 *)
7891 # OSF1 and SCO ODT 3.0 have their own names for install.
7892 # Don't use installbsd from OSF since it installs stuff as root
7893 # by default.
7894 for ac_prog in ginstall scoinst install; do
7895 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007896 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 +00007897 if test $ac_prog = install &&
7898 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7899 # AIX install. It has an incompatible calling convention.
7900 :
7901 elif test $ac_prog = install &&
7902 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7903 # program-specific install script used by HP pwplus--don't use.
7904 :
7905 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007906 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7907 break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007908 fi
7909 fi
7910 done
7911 done
7912 ;;
7913esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007914done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007915IFS=$as_save_IFS
7916
7917
7918fi
7919 if test "${ac_cv_path_install+set}" = set; then
7920 INSTALL=$ac_cv_path_install
7921 else
7922 # As a last resort, use the slow shell script. Don't cache a
7923 # value for INSTALL within a source directory, because that will
7924 # break other packages using the cache if that directory is
7925 # removed, or if the value is a relative name.
7926 INSTALL=$ac_install_sh
7927 fi
7928fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007929{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7930echo "${ECHO_T}$INSTALL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007931
7932# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7933# It thinks the first close brace ends the variable substitution.
7934test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7935
7936test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7937
7938test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7939
7940
7941# Extract the first word of "bzip2", so it can be a program name with args.
7942set dummy bzip2; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7945if test "${ac_cv_path_BZIP2+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007947else
7948 case $BZIP2 in
7949 [\\/]* | ?:[\\/]*)
7950 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7951 ;;
7952 *)
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 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 +00007960 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007962 break 2
7963 fi
7964done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007965done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007966IFS=$as_save_IFS
7967
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007968 ;;
7969esac
7970fi
7971BZIP2=$ac_cv_path_BZIP2
7972if test -n "$BZIP2"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007973 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7974echo "${ECHO_T}$BZIP2" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007975else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007976 { echo "$as_me:$LINENO: result: no" >&5
7977echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007978fi
7979
7980
7981# Extract the first word of "doxygen", so it can be a program name with args.
7982set dummy doxygen; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7985if test "${ac_cv_path_DOXYGEN+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007987else
7988 case $DOXYGEN in
7989 [\\/]* | ?:[\\/]*)
7990 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7991 ;;
7992 *)
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 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 +00008000 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008002 break 2
8003 fi
8004done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008005done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008006IFS=$as_save_IFS
8007
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008008 ;;
8009esac
8010fi
8011DOXYGEN=$ac_cv_path_DOXYGEN
8012if test -n "$DOXYGEN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008013 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8014echo "${ECHO_T}$DOXYGEN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008015else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008016 { echo "$as_me:$LINENO: result: no" >&5
8017echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008018fi
8019
8020
8021# Extract the first word of "groff", so it can be a program name with args.
8022set dummy groff; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8025if test "${ac_cv_path_GROFF+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008027else
8028 case $GROFF in
8029 [\\/]* | ?:[\\/]*)
8030 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8031 ;;
8032 *)
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034for as_dir in $PATH
8035do
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 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 +00008040 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008042 break 2
8043 fi
8044done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008045done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008046IFS=$as_save_IFS
8047
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008048 ;;
8049esac
8050fi
8051GROFF=$ac_cv_path_GROFF
8052if test -n "$GROFF"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008053 { echo "$as_me:$LINENO: result: $GROFF" >&5
8054echo "${ECHO_T}$GROFF" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008055else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008056 { echo "$as_me:$LINENO: result: no" >&5
8057echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008058fi
8059
8060
8061# Extract the first word of "gzip", so it can be a program name with args.
8062set dummy gzip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8065if test "${ac_cv_path_GZIP+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008067else
8068 case $GZIP in
8069 [\\/]* | ?:[\\/]*)
8070 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8071 ;;
8072 *)
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074for as_dir in $PATH
8075do
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 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 +00008080 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008082 break 2
8083 fi
8084done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008085done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008086IFS=$as_save_IFS
8087
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008088 ;;
8089esac
8090fi
8091GZIP=$ac_cv_path_GZIP
8092if test -n "$GZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008093 { echo "$as_me:$LINENO: result: $GZIP" >&5
8094echo "${ECHO_T}$GZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008095else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008096 { echo "$as_me:$LINENO: result: no" >&5
8097echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008098fi
8099
8100
8101# Extract the first word of "pod2html", so it can be a program name with args.
8102set dummy pod2html; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8105if test "${ac_cv_path_POD2HTML+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008107else
8108 case $POD2HTML in
8109 [\\/]* | ?:[\\/]*)
8110 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8111 ;;
8112 *)
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114for as_dir in $PATH
8115do
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 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 +00008120 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008122 break 2
8123 fi
8124done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008125done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008126IFS=$as_save_IFS
8127
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008128 ;;
8129esac
8130fi
8131POD2HTML=$ac_cv_path_POD2HTML
8132if test -n "$POD2HTML"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008133 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8134echo "${ECHO_T}$POD2HTML" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008135else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008136 { echo "$as_me:$LINENO: result: no" >&5
8137echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008138fi
8139
8140
8141# Extract the first word of "pod2man", so it can be a program name with args.
8142set dummy pod2man; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8145if test "${ac_cv_path_POD2MAN+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008147else
8148 case $POD2MAN in
8149 [\\/]* | ?:[\\/]*)
8150 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8151 ;;
8152 *)
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154for as_dir in $PATH
8155do
8156 IFS=$as_save_IFS
8157 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 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 +00008160 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008162 break 2
8163 fi
8164done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008165done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008166IFS=$as_save_IFS
8167
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008168 ;;
8169esac
8170fi
8171POD2MAN=$ac_cv_path_POD2MAN
8172if test -n "$POD2MAN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008173 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8174echo "${ECHO_T}$POD2MAN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008175else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008176 { echo "$as_me:$LINENO: result: no" >&5
8177echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008178fi
8179
8180
8181# Extract the first word of "runtest", so it can be a program name with args.
8182set dummy runtest; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8185if test "${ac_cv_path_RUNTEST+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008187else
8188 case $RUNTEST in
8189 [\\/]* | ?:[\\/]*)
8190 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8191 ;;
8192 *)
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 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 +00008200 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008202 break 2
8203 fi
8204done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008205done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008206IFS=$as_save_IFS
8207
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008208 ;;
8209esac
8210fi
8211RUNTEST=$ac_cv_path_RUNTEST
8212if test -n "$RUNTEST"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008213 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8214echo "${ECHO_T}$RUNTEST" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008215else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008216 { echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008218fi
8219
8220
8221
8222no_itcl=true
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008223{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8224echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008225
8226# Check whether --with-tclinclude was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008227if test "${with_tclinclude+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008228 withval=$with_tclinclude; with_tclinclude=${withval}
8229else
8230 with_tclinclude=''
8231fi
8232
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008233if test "${ac_cv_path_tclsh+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008235else
8236
8237if test x"${with_tclinclude}" != x ; then
8238 if test -f ${with_tclinclude}/tclsh ; then
8239 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8240 elif test -f ${with_tclinclude}/src/tclsh ; then
8241 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8242 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008243 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8244echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8245 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008246 fi
8247fi
Edwin Törökc27310c2010-01-26 08:50:50 +00008248fi
8249
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008250
8251if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008252 { echo "$as_me:$LINENO: result: none" >&5
8253echo "${ECHO_T}none" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008254 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
8255do
8256 # Extract the first word of "$ac_prog", so it can be a program name with args.
8257set dummy $ac_prog; 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_TCLSH+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008262else
8263 case $TCLSH in
8264 [\\/]* | ?:[\\/]*)
8265 ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$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
8283 ;;
8284esac
8285fi
8286TCLSH=$ac_cv_path_TCLSH
8287if test -n "$TCLSH"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008288 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8289echo "${ECHO_T}$TCLSH" >&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
8296 test -n "$TCLSH" && break
8297done
8298
8299 if test x"${TCLSH}" = x ; then
8300 ac_cv_path_tclsh='';
8301 else
8302 ac_cv_path_tclsh="${TCLSH}";
8303 fi
8304else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008305 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8306echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008307 TCLSH="${ac_cv_path_tclsh}"
8308
8309fi
8310
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008311# Extract the first word of "zip", so it can be a program name with args.
8312set dummy zip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8315if test "${ac_cv_path_ZIP+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008317else
8318 case $ZIP in
8319 [\\/]* | ?:[\\/]*)
8320 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8321 ;;
8322 *)
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 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 +00008330 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008332 break 2
8333 fi
8334done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008335done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008336IFS=$as_save_IFS
8337
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008338 ;;
8339esac
8340fi
8341ZIP=$ac_cv_path_ZIP
8342if test -n "$ZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008343 { echo "$as_me:$LINENO: result: $ZIP" >&5
8344echo "${ECHO_T}$ZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008345else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008346 { echo "$as_me:$LINENO: result: no" >&5
8347echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008348fi
8349
8350
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008351for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008352do
8353 # Extract the first word of "$ac_prog", so it can be a program name with args.
8354set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357if test "${ac_cv_path_OCAMLC+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008359else
8360 case $OCAMLC in
8361 [\\/]* | ?:[\\/]*)
8362 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8363 ;;
8364 *)
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 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 +00008372 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008374 break 2
8375 fi
8376done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008377done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008378IFS=$as_save_IFS
8379
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008380 ;;
8381esac
8382fi
8383OCAMLC=$ac_cv_path_OCAMLC
8384if test -n "$OCAMLC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008385 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8386echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008387else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008388 { echo "$as_me:$LINENO: result: no" >&5
8389echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008390fi
8391
8392
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008393 test -n "$OCAMLC" && break
8394done
8395
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008396for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008397do
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008404else
8405 case $OCAMLOPT in
8406 [\\/]* | ?:[\\/]*)
8407 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8408 ;;
8409 *)
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 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 +00008417 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008419 break 2
8420 fi
8421done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008422done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008423IFS=$as_save_IFS
8424
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008425 ;;
8426esac
8427fi
8428OCAMLOPT=$ac_cv_path_OCAMLOPT
8429if test -n "$OCAMLOPT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008430 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8431echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008432else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008433 { echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008435fi
8436
8437
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008438 test -n "$OCAMLOPT" && break
8439done
8440
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008441for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008442do
8443 # Extract the first word of "$ac_prog", so it can be a program name with args.
8444set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8447if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008449else
8450 case $OCAMLDEP in
8451 [\\/]* | ?:[\\/]*)
8452 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8453 ;;
8454 *)
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456for as_dir in $PATH
8457do
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 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 +00008462 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008464 break 2
8465 fi
8466done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008467done
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008468IFS=$as_save_IFS
8469
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008470 ;;
8471esac
8472fi
8473OCAMLDEP=$ac_cv_path_OCAMLDEP
8474if test -n "$OCAMLDEP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008475 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8476echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008477else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008478 { echo "$as_me:$LINENO: result: no" >&5
8479echo "${ECHO_T}no" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008480fi
8481
8482
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008483 test -n "$OCAMLDEP" && break
8484done
8485
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008486for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008487do
8488 # Extract the first word of "$ac_prog", so it can be a program name with args.
8489set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8492if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008494else
8495 case $OCAMLDOC in
8496 [\\/]* | ?:[\\/]*)
8497 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8498 ;;
8499 *)
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501for as_dir in $PATH
8502do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 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 +00008507 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008509 break 2
8510 fi
8511done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008512done
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008513IFS=$as_save_IFS
8514
8515 ;;
8516esac
8517fi
8518OCAMLDOC=$ac_cv_path_OCAMLDOC
8519if test -n "$OCAMLDOC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008520 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8521echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008522else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008523 { echo "$as_me:$LINENO: result: no" >&5
8524echo "${ECHO_T}no" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008525fi
8526
8527
8528 test -n "$OCAMLDOC" && break
8529done
8530
Edwin Török20176752008-10-22 09:56:27 +00008531for ac_prog in gas as
8532do
8533 # Extract the first word of "$ac_prog", so it can be a program name with args.
8534set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8537if test "${ac_cv_path_GAS+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Török20176752008-10-22 09:56:27 +00008539else
8540 case $GAS in
8541 [\\/]* | ?:[\\/]*)
8542 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8543 ;;
8544 *)
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546for as_dir in $PATH
8547do
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 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 +00008552 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Török20176752008-10-22 09:56:27 +00008554 break 2
8555 fi
8556done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008557done
Edwin Török20176752008-10-22 09:56:27 +00008558IFS=$as_save_IFS
8559
8560 ;;
8561esac
8562fi
8563GAS=$ac_cv_path_GAS
8564if test -n "$GAS"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008565 { echo "$as_me:$LINENO: result: $GAS" >&5
8566echo "${ECHO_T}$GAS" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008567else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008568 { echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008570fi
8571
8572
8573 test -n "$GAS" && break
8574done
8575
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008576
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008577{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8578echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8579if test "${llvm_cv_link_use_r+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008581else
8582 ac_ext=c
8583ac_cpp='$CPP $CPPFLAGS'
8584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587
8588 oldcflags="$CFLAGS"
8589 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008590 cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008595/* end confdefs.h. */
8596
8597int
8598main ()
8599{
8600int main() { return 0; }
8601 ;
8602 return 0;
8603}
8604_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008605rm -f conftest.$ac_objext conftest$ac_exeext
8606if { (ac_try="$ac_link"
8607case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610esac
8611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_link") 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8623esac
8624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_try") 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633esac
8634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_try") 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008639 llvm_cv_link_use_r=yes
8640else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008641 echo "$as_me: failed program was:" >&5
8642sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 llvm_cv_link_use_r=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008645fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008646
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008647rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008648 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008649 CFLAGS="$oldcflags"
8650 ac_ext=c
8651ac_cpp='$CPP $CPPFLAGS'
8652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655
8656
8657fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008658{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8659echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008660if test "$llvm_cv_link_use_r" = yes ; then
8661
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008662cat >>confdefs.h <<\_ACEOF
8663#define HAVE_LINK_R 1
8664_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008665
8666 fi
8667
8668
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008669{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8670echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8671if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky6eab6652009-03-05 08:20:44 +00008673else
8674 ac_ext=c
8675ac_cpp='$CPP $CPPFLAGS'
8676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678ac_compiler_gnu=$ac_cv_c_compiler_gnu
8679
8680 oldcflags="$CFLAGS"
8681 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008682 cat >conftest.$ac_ext <<_ACEOF
8683/* confdefs.h. */
8684_ACEOF
8685cat confdefs.h >>conftest.$ac_ext
8686cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008687/* end confdefs.h. */
8688
8689int
8690main ()
8691{
8692int main() { return 0; }
8693 ;
8694 return 0;
8695}
8696_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008697rm -f conftest.$ac_objext conftest$ac_exeext
8698if { (ac_try="$ac_link"
8699case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702esac
8703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_link") 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712 { (case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715esac
8716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_try") 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; } &&
8721 { ac_try='test -s conftest$ac_exeext'
8722 { (case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8725esac
8726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_try") 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008731 llvm_cv_link_use_export_dynamic=yes
8732else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008733 echo "$as_me: failed program was:" >&5
8734sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 llvm_cv_link_use_export_dynamic=no
Nick Lewycky6eab6652009-03-05 08:20:44 +00008737fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008738
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008739rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008740 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky6eab6652009-03-05 08:20:44 +00008741 CFLAGS="$oldcflags"
8742 ac_ext=c
8743ac_cpp='$CPP $CPPFLAGS'
8744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746ac_compiler_gnu=$ac_cv_c_compiler_gnu
8747
8748
8749fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008750{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8751echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky6eab6652009-03-05 08:20:44 +00008752if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8753
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008754cat >>confdefs.h <<\_ACEOF
8755#define HAVE_LINK_EXPORT_DYNAMIC 1
8756_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008757
8758 fi
8759
8760
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008761
8762
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008763{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8764echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8765if test "${ac_cv_c_const+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008767else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008768 cat >conftest.$ac_ext <<_ACEOF
8769/* confdefs.h. */
8770_ACEOF
8771cat confdefs.h >>conftest.$ac_ext
8772cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008773/* end confdefs.h. */
8774
8775int
8776main ()
8777{
8778/* FIXME: Include the comments suggested by Paul. */
8779#ifndef __cplusplus
8780 /* Ultrix mips cc rejects this. */
8781 typedef int charset[2];
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008782 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008783 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008784 char const *const *ccp;
8785 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008786 /* NEC SVR4.0.2 mips cc rejects this. */
8787 struct point {int x, y;};
8788 static struct point const zero = {0,0};
8789 /* AIX XL C 1.02.0.0 rejects this.
8790 It does not let you subtract one const X* pointer from another in
8791 an arm of an if-expression whose if-part is not a constant
8792 expression */
8793 const char *g = "string";
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008794 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008795 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008796 ++ccp;
8797 p = (char**) ccp;
8798 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008799 { /* SCO 3.2v4 cc rejects this. */
8800 char *t;
8801 char const *s = 0 ? (char *) 0 : (char const *) 0;
8802
8803 *t++ = 0;
8804 if (s) return 0;
8805 }
8806 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8807 int x[] = {25, 17};
8808 const int *foo = &x[0];
8809 ++foo;
8810 }
8811 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8812 typedef const int *iptr;
8813 iptr p = 0;
8814 ++p;
8815 }
8816 { /* AIX XL C 1.02.0.0 rejects this saying
8817 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8818 struct s { int j; const int *ap[3]; };
8819 struct s *b; b->j = 5;
8820 }
8821 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8822 const int foo = 10;
8823 if (!foo) return 0;
8824 }
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008825 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008826#endif
8827
8828 ;
8829 return 0;
8830}
8831_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008832rm -f conftest.$ac_objext
8833if { (ac_try="$ac_compile"
8834case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8837esac
8838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compile") 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8847 { (case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850esac
8851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_try") 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest.$ac_objext'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860esac
8861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008866 ac_cv_c_const=yes
8867else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008868 echo "$as_me: failed program was:" >&5
8869sed 's/^/| /' conftest.$ac_ext >&5
8870
8871 ac_cv_c_const=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008872fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008873
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008876{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8877echo "${ECHO_T}$ac_cv_c_const" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008878if test $ac_cv_c_const = no; then
8879
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008880cat >>confdefs.h <<\_ACEOF
8881#define const
8882_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008883
8884fi
8885
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008886
8887
8888
8889
8890
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008891ac_header_dirent=no
8892for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008893 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8894{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8895echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008898else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008899 cat >conftest.$ac_ext <<_ACEOF
8900/* confdefs.h. */
8901_ACEOF
8902cat confdefs.h >>conftest.$ac_ext
8903cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008904/* end confdefs.h. */
8905#include <sys/types.h>
8906#include <$ac_hdr>
8907
8908int
8909main ()
8910{
8911if ((DIR *) 0)
8912return 0;
8913 ;
8914 return 0;
8915}
8916_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008917rm -f conftest.$ac_objext
8918if { (ac_try="$ac_compile"
8919case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922esac
8923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8932 { (case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935esac
8936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_try") 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest.$ac_objext'
8942 { (case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8945esac
8946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_try") 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008951 eval "$as_ac_Header=yes"
8952else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008953 echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008957fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008958
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008961ac_res=`eval echo '${'$as_ac_Header'}'`
8962 { echo "$as_me:$LINENO: result: $ac_res" >&5
8963echo "${ECHO_T}$ac_res" >&6; }
8964if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008965 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008966#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008967_ACEOF
8968
8969ac_header_dirent=$ac_hdr; break
8970fi
8971
8972done
8973# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8974if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008975 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8976echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8977if test "${ac_cv_search_opendir+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008979else
8980 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008981cat >conftest.$ac_ext <<_ACEOF
8982/* confdefs.h. */
8983_ACEOF
8984cat confdefs.h >>conftest.$ac_ext
8985cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008986/* end confdefs.h. */
8987
8988/* Override any GCC internal prototype to avoid an error.
8989 Use char because int might match the return type of a GCC
8990 builtin and then its argument prototype would still apply. */
8991#ifdef __cplusplus
8992extern "C"
8993#endif
8994char opendir ();
8995int
8996main ()
8997{
8998return opendir ();
8999 ;
9000 return 0;
9001}
9002_ACEOF
9003for ac_lib in '' dir; do
9004 if test -z "$ac_lib"; then
9005 ac_res="none required"
9006 else
9007 ac_res=-l$ac_lib
9008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9009 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009010 rm -f conftest.$ac_objext conftest$ac_exeext
9011if { (ac_try="$ac_link"
9012case "(($ac_try" in
9013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9014 *) ac_try_echo=$ac_try;;
9015esac
9016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9017 (eval "$ac_link") 2>conftest.er1
9018 ac_status=$?
9019 grep -v '^ *+' conftest.er1 >conftest.err
9020 rm -f conftest.er1
9021 cat conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9025 { (case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9028esac
9029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_try") 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } &&
9034 { ac_try='test -s conftest$ac_exeext'
9035 { (case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038esac
9039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_try") 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009044 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009045else
9046 echo "$as_me: failed program was:" >&5
9047sed 's/^/| /' conftest.$ac_ext >&5
9048
9049
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009050fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009051
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009052rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009053 conftest$ac_exeext
9054 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009055 break
9056fi
9057done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009058if test "${ac_cv_search_opendir+set}" = set; then
9059 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009060else
9061 ac_cv_search_opendir=no
9062fi
9063rm conftest.$ac_ext
9064LIBS=$ac_func_search_save_LIBS
9065fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009066{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9067echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009068ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009069if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9071
9072fi
9073
9074else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009075 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9076echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9077if test "${ac_cv_search_opendir+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009079else
9080 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009081cat >conftest.$ac_ext <<_ACEOF
9082/* confdefs.h. */
9083_ACEOF
9084cat confdefs.h >>conftest.$ac_ext
9085cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009086/* end confdefs.h. */
9087
9088/* Override any GCC internal prototype to avoid an error.
9089 Use char because int might match the return type of a GCC
9090 builtin and then its argument prototype would still apply. */
9091#ifdef __cplusplus
9092extern "C"
9093#endif
9094char opendir ();
9095int
9096main ()
9097{
9098return opendir ();
9099 ;
9100 return 0;
9101}
9102_ACEOF
9103for ac_lib in '' x; do
9104 if test -z "$ac_lib"; then
9105 ac_res="none required"
9106 else
9107 ac_res=-l$ac_lib
9108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9109 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009110 rm -f conftest.$ac_objext conftest$ac_exeext
9111if { (ac_try="$ac_link"
9112case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9115esac
9116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_link") 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9134 { ac_try='test -s conftest$ac_exeext'
9135 { (case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9138esac
9139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_try") 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009144 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009145else
9146 echo "$as_me: failed program was:" >&5
9147sed 's/^/| /' conftest.$ac_ext >&5
9148
9149
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009150fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009151
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009152rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009153 conftest$ac_exeext
9154 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009155 break
9156fi
9157done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009158if test "${ac_cv_search_opendir+set}" = set; then
9159 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009160else
9161 ac_cv_search_opendir=no
9162fi
9163rm conftest.$ac_ext
9164LIBS=$ac_func_search_save_LIBS
9165fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009166{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9167echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009168ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009169if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9171
9172fi
9173
9174fi
9175
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009176
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009177for ac_header in dlfcn.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009178do
9179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185fi
9186ac_res=`eval echo '${'$as_ac_Header'}'`
9187 { echo "$as_me:$LINENO: result: $ac_res" >&5
9188echo "${ECHO_T}$ac_res" >&6; }
9189else
9190 # Is the header compilable?
9191{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9193cat >conftest.$ac_ext <<_ACEOF
9194/* confdefs.h. */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h. */
9199$ac_includes_default
9200#include <$ac_header>
9201_ACEOF
9202rm -f conftest.$ac_objext
9203if { (ac_try="$ac_compile"
9204case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207esac
9208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9217 { (case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9220esac
9221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_try") 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9230esac
9231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_try") 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_header_compiler=yes
9237else
9238 echo "$as_me: failed program was:" >&5
9239sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ac_header_compiler=no
9242fi
9243
9244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246echo "${ECHO_T}$ac_header_compiler" >&6; }
9247
9248# Is the header present?
9249{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9251cat >conftest.$ac_ext <<_ACEOF
9252/* confdefs.h. */
9253_ACEOF
9254cat confdefs.h >>conftest.$ac_ext
9255cat >>conftest.$ac_ext <<_ACEOF
9256/* end confdefs.h. */
9257#include <$ac_header>
9258_ACEOF
9259if { (ac_try="$ac_cpp conftest.$ac_ext"
9260case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263esac
9264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } >/dev/null; then
9272 if test -s conftest.err; then
9273 ac_cpp_err=$ac_c_preproc_warn_flag
9274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9275 else
9276 ac_cpp_err=
9277 fi
9278else
9279 ac_cpp_err=yes
9280fi
9281if test -z "$ac_cpp_err"; then
9282 ac_header_preproc=yes
9283else
9284 echo "$as_me: failed program was:" >&5
9285sed 's/^/| /' conftest.$ac_ext >&5
9286
9287 ac_header_preproc=no
9288fi
9289
9290rm -f conftest.err conftest.$ac_ext
9291{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292echo "${ECHO_T}$ac_header_preproc" >&6; }
9293
9294# So? What about this header?
9295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9296 yes:no: )
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9301 ac_header_preproc=yes
9302 ;;
9303 no:yes:* )
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9316 ( cat <<\_ASBOX
9317## ----------------------------------- ##
9318## Report this to llvmbugs@cs.uiuc.edu ##
9319## ----------------------------------- ##
9320_ASBOX
9321 ) | sed "s/^/$as_me: WARNING: /" >&2
9322 ;;
9323esac
9324{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9328else
9329 eval "$as_ac_Header=\$ac_header_preproc"
9330fi
9331ac_res=`eval echo '${'$as_ac_Header'}'`
9332 { echo "$as_me:$LINENO: result: $ac_res" >&5
9333echo "${ECHO_T}$ac_res" >&6; }
9334
9335fi
9336if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009337 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009339_ACEOF
9340
9341fi
9342
9343done
9344
9345# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009346if test "${enable_ltdl_install+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009347 enableval=$enable_ltdl_install;
9348fi
9349
9350
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009351
9352
9353if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009354 INSTALL_LTDL_TRUE=
9355 INSTALL_LTDL_FALSE='#'
9356else
9357 INSTALL_LTDL_TRUE='#'
9358 INSTALL_LTDL_FALSE=
9359fi
9360
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009361
9362
9363if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009364 CONVENIENCE_LTDL_TRUE=
9365 CONVENIENCE_LTDL_FALSE='#'
9366else
9367 CONVENIENCE_LTDL_TRUE='#'
9368 CONVENIENCE_LTDL_FALSE=
9369fi
9370
9371
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009372{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9373echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009374library_names_spec=
9375libname_spec='lib$name'
9376soname_spec=
9377shrext_cmds=".so"
9378postinstall_cmds=
9379postuninstall_cmds=
9380finish_cmds=
9381finish_eval=
9382shlibpath_var=
9383shlibpath_overrides_runpath=unknown
9384version_type=none
9385dynamic_linker="$host_os ld.so"
9386sys_lib_dlsearch_path_spec="/lib /usr/lib"
9387if test "$GCC" = yes; then
9388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9389 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9390 # if the path contains ";" then we assume it to be the separator
9391 # otherwise default to the standard path separator (i.e. ":") - it is
9392 # assumed that no part of a normal pathname contains ";" but that should
9393 # okay in the real world where ";" in dirpaths is itself problematic.
9394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9395 else
9396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9397 fi
9398else
9399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9400fi
9401need_lib_prefix=unknown
9402hardcode_into_libs=no
9403
9404# when you set need_version to no, make sure it does not cause -set_version
9405# flags to be left without arguments
9406need_version=unknown
9407
9408case $host_os in
9409aix3*)
9410 version_type=linux
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9412 shlibpath_var=LIBPATH
9413
9414 # AIX 3 has no versioning support, so we append a major version to the name.
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 ;;
9417
9418aix4* | aix5*)
9419 version_type=linux
9420 need_lib_prefix=no
9421 need_version=no
9422 hardcode_into_libs=yes
9423 if test "$host_cpu" = ia64; then
9424 # AIX 5 supports IA64
9425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9426 shlibpath_var=LD_LIBRARY_PATH
9427 else
9428 # With GCC up to 2.95.x, collect2 would create an import file
9429 # for dependence libraries. The import file would start with
9430 # the line `#! .'. This would cause the generated library to
9431 # depend on `.', always an invalid library. This was fixed in
9432 # development snapshots of GCC prior to 3.0.
9433 case $host_os in
9434 aix4 | aix4.[01] | aix4.[01].*)
9435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9436 echo ' yes '
9437 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9438 :
9439 else
9440 can_build_shared=no
9441 fi
9442 ;;
9443 esac
9444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9445 # soname into executable. Probably we can add versioning support to
9446 # collect2, so additional links can be useful in future.
9447 if test "$aix_use_runtimelinking" = yes; then
9448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9449 # instead of lib<name>.a to let people know that these are not
9450 # typical AIX shared libraries.
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 else
9453 # We preserve .a as extension for shared libraries through AIX4.2
9454 # and later when we are not doing run time linking.
9455 library_names_spec='${libname}${release}.a $libname.a'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 fi
9458 shlibpath_var=LIBPATH
9459 fi
9460 ;;
9461
9462amigaos*)
9463 library_names_spec='$libname.ixlibrary $libname.a'
9464 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9465 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'
9466 ;;
9467
9468beos*)
9469 library_names_spec='${libname}${shared_ext}'
9470 dynamic_linker="$host_os ld.so"
9471 shlibpath_var=LIBRARY_PATH
9472 ;;
9473
9474bsdi[45]*)
9475 version_type=linux
9476 need_version=no
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9483 # the default ld.so.conf also contains /usr/contrib/lib and
9484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9485 # libtool to hard-code these into programs
9486 ;;
9487
9488cygwin* | mingw* | pw32*)
9489 version_type=windows
9490 shrext_cmds=".dll"
9491 need_version=no
9492 need_lib_prefix=no
9493
9494 case $GCC,$host_os in
9495 yes,cygwin* | yes,mingw* | yes,pw32*)
9496 library_names_spec='$libname.dll.a'
9497 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9498 postinstall_cmds='base_file=`basename \${file}`~
9499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9500 dldir=$destdir/`dirname \$dlpath`~
9501 test -d \$dldir || mkdir -p \$dldir~
9502 $install_prog $dir/$dlname \$dldir/$dlname~
9503 chmod a+x \$dldir/$dlname'
9504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9505 dlpath=$dir/\$dldll~
9506 $rm \$dlpath'
9507 shlibpath_overrides_runpath=yes
9508
9509 case $host_os in
9510 cygwin*)
9511 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9512 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9513 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9514 ;;
9515 mingw*)
9516 # MinGW DLLs use traditional 'lib' prefix
9517 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9518 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9519 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9520 # It is most probably a Windows format PATH printed by
9521 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9522 # path with ; separators, and with drive letters. We can handle the
9523 # drive letters (cygwin fileutils understands them), so leave them,
9524 # especially as we might pass files found there to a mingw objdump,
9525 # which wouldn't understand a cygwinified path. Ahh.
9526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9527 else
9528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9529 fi
9530 ;;
9531 pw32*)
9532 # pw32 DLLs use 'pw' prefix rather than 'lib'
9533 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9534 ;;
9535 esac
9536 ;;
9537
9538 *)
9539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9540 ;;
9541 esac
9542 dynamic_linker='Win32 ld.exe'
9543 # FIXME: first we should search . and the directory the executable is in
9544 shlibpath_var=PATH
9545 ;;
9546
9547darwin* | rhapsody*)
9548 dynamic_linker="$host_os dyld"
9549 version_type=darwin
9550 need_lib_prefix=no
9551 need_version=no
9552 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9553 soname_spec='${libname}${release}${major}$shared_ext'
9554 shlibpath_overrides_runpath=yes
9555 shlibpath_var=DYLD_LIBRARY_PATH
9556 shrext_cmds='.dylib'
9557 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9558 if test "$GCC" = yes; then
9559 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"`
9560 else
9561 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9562 fi
9563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9564 ;;
9565
9566dgux*)
9567 version_type=linux
9568 need_lib_prefix=no
9569 need_version=no
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 ;;
9574
9575freebsd1*)
9576 dynamic_linker=no
9577 ;;
9578
9579kfreebsd*-gnu)
9580 version_type=linux
9581 need_lib_prefix=no
9582 need_version=no
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=no
9587 hardcode_into_libs=yes
9588 dynamic_linker='GNU ld.so'
9589 ;;
9590
9591freebsd* | dragonfly*)
9592 # DragonFly does not have aout. When/if they implement a new
9593 # versioning mechanism, adjust this.
9594 if test -x /usr/bin/objformat; then
9595 objformat=`/usr/bin/objformat`
9596 else
9597 case $host_os in
9598 freebsd[123]*) objformat=aout ;;
9599 *) objformat=elf ;;
9600 esac
9601 fi
9602 version_type=freebsd-$objformat
9603 case $version_type in
9604 freebsd-elf*)
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9606 need_version=no
9607 need_lib_prefix=no
9608 ;;
9609 freebsd-*)
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9611 need_version=yes
9612 ;;
9613 esac
9614 shlibpath_var=LD_LIBRARY_PATH
9615 case $host_os in
9616 freebsd2*)
9617 shlibpath_overrides_runpath=yes
9618 ;;
9619 freebsd3.[01]* | freebsdelf3.[01]*)
9620 shlibpath_overrides_runpath=yes
9621 hardcode_into_libs=yes
9622 ;;
9623 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9624 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9625 shlibpath_overrides_runpath=no
9626 hardcode_into_libs=yes
9627 ;;
9628 freebsd*) # from 4.6 on
9629 shlibpath_overrides_runpath=yes
9630 hardcode_into_libs=yes
9631 ;;
9632 esac
9633 ;;
9634
9635gnu*)
9636 version_type=linux
9637 need_lib_prefix=no
9638 need_version=no
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 shlibpath_var=LD_LIBRARY_PATH
9642 hardcode_into_libs=yes
9643 ;;
9644
9645hpux9* | hpux10* | hpux11*)
9646 # Give a soname corresponding to the major version so that dld.sl refuses to
9647 # link against other versions.
9648 version_type=sunos
9649 need_lib_prefix=no
9650 need_version=no
9651 case $host_cpu in
9652 ia64*)
9653 shrext_cmds='.so'
9654 hardcode_into_libs=yes
9655 dynamic_linker="$host_os dld.so"
9656 shlibpath_var=LD_LIBRARY_PATH
9657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 if test "X$HPUX_IA64_MODE" = X32; then
9661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9662 else
9663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9664 fi
9665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9666 ;;
9667 hppa*64*)
9668 shrext_cmds='.sl'
9669 hardcode_into_libs=yes
9670 dynamic_linker="$host_os dld.sl"
9671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674 soname_spec='${libname}${release}${shared_ext}$major'
9675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9677 ;;
9678 *)
9679 shrext_cmds='.sl'
9680 dynamic_linker="$host_os dld.sl"
9681 shlibpath_var=SHLIB_PATH
9682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 ;;
9686 esac
9687 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9688 postinstall_cmds='chmod 555 $lib'
9689 ;;
9690
9691interix3*)
9692 version_type=linux
9693 need_lib_prefix=no
9694 need_version=no
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9696 soname_spec='${libname}${release}${shared_ext}$major'
9697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 shlibpath_overrides_runpath=no
9700 hardcode_into_libs=yes
9701 ;;
9702
9703irix5* | irix6* | nonstopux*)
9704 case $host_os in
9705 nonstopux*) version_type=nonstopux ;;
9706 *)
9707 if test "$lt_cv_prog_gnu_ld" = yes; then
9708 version_type=linux
9709 else
9710 version_type=irix
9711 fi ;;
9712 esac
9713 need_lib_prefix=no
9714 need_version=no
9715 soname_spec='${libname}${release}${shared_ext}$major'
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9717 case $host_os in
9718 irix5* | nonstopux*)
9719 libsuff= shlibsuff=
9720 ;;
9721 *)
9722 case $LD in # libtool.m4 will add one of these switches to LD
9723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9724 libsuff= shlibsuff= libmagic=32-bit;;
9725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9726 libsuff=32 shlibsuff=N32 libmagic=N32;;
9727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9729 *) libsuff= shlibsuff= libmagic=never-match;;
9730 esac
9731 ;;
9732 esac
9733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9734 shlibpath_overrides_runpath=no
9735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9737 hardcode_into_libs=yes
9738 ;;
9739
9740# No shared lib support for Linux oldld, aout, or coff.
9741linux*oldld* | linux*aout* | linux*coff*)
9742 dynamic_linker=no
9743 ;;
9744
9745# This must be Linux ELF.
9746linux*)
9747 version_type=linux
9748 need_lib_prefix=no
9749 need_version=no
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9753 shlibpath_var=LD_LIBRARY_PATH
9754 shlibpath_overrides_runpath=no
9755 # This implies no fast_install, which is unacceptable.
9756 # Some rework will be needed to allow for fast_install
9757 # before this can be enabled.
9758 hardcode_into_libs=yes
9759
9760 # Append ld.so.conf contents to the search path
9761 if test -f /etc/ld.so.conf; then
9762 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' ' '`
9763 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9764 fi
9765
9766 # We used to test for /lib/ld.so.1 and disable shared libraries on
9767 # powerpc, because MkLinux only supported shared libraries with the
9768 # GNU dynamic linker. Since this was broken with cross compilers,
9769 # most powerpc-linux boxes support dynamic linking these days and
9770 # people can always --disable-shared, the test was removed, and we
9771 # assume the GNU/Linux dynamic linker is in use.
9772 dynamic_linker='GNU/Linux ld.so'
9773 ;;
9774
9775knetbsd*-gnu)
9776 version_type=linux
9777 need_lib_prefix=no
9778 need_version=no
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 shlibpath_overrides_runpath=no
9783 hardcode_into_libs=yes
9784 dynamic_linker='GNU ld.so'
9785 ;;
9786
9787netbsd*)
9788 version_type=sunos
9789 need_lib_prefix=no
9790 need_version=no
9791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9794 dynamic_linker='NetBSD (a.out) ld.so'
9795 else
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 dynamic_linker='NetBSD ld.elf_so'
9799 fi
9800 shlibpath_var=LD_LIBRARY_PATH
9801 shlibpath_overrides_runpath=yes
9802 hardcode_into_libs=yes
9803 ;;
9804
9805newsos6)
9806 version_type=linux
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 shlibpath_overrides_runpath=yes
9810 ;;
9811
9812nto-qnx*)
9813 version_type=linux
9814 need_lib_prefix=no
9815 need_version=no
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 soname_spec='${libname}${release}${shared_ext}$major'
9818 shlibpath_var=LD_LIBRARY_PATH
9819 shlibpath_overrides_runpath=yes
9820 ;;
9821
9822openbsd*)
9823 version_type=sunos
9824 sys_lib_dlsearch_path_spec="/usr/lib"
9825 need_lib_prefix=no
9826 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9827 case $host_os in
9828 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9829 *) need_version=no ;;
9830 esac
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9835 case $host_os in
9836 openbsd2.[89] | openbsd2.[89].*)
9837 shlibpath_overrides_runpath=no
9838 ;;
9839 *)
9840 shlibpath_overrides_runpath=yes
9841 ;;
9842 esac
9843 else
9844 shlibpath_overrides_runpath=yes
9845 fi
9846 ;;
9847
9848os2*)
9849 libname_spec='$name'
9850 shrext_cmds=".dll"
9851 need_lib_prefix=no
9852 library_names_spec='$libname${shared_ext} $libname.a'
9853 dynamic_linker='OS/2 ld.exe'
9854 shlibpath_var=LIBPATH
9855 ;;
9856
9857osf3* | osf4* | osf5*)
9858 version_type=osf
9859 need_lib_prefix=no
9860 need_version=no
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9865 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9866 ;;
9867
9868solaris*)
9869 version_type=linux
9870 need_lib_prefix=no
9871 need_version=no
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 shlibpath_overrides_runpath=yes
9876 hardcode_into_libs=yes
9877 # ldd complains unless libraries are executable
9878 postinstall_cmds='chmod +x $lib'
9879 ;;
9880
9881sunos4*)
9882 version_type=sunos
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 shlibpath_overrides_runpath=yes
9887 if test "$with_gnu_ld" = yes; then
9888 need_lib_prefix=no
9889 fi
9890 need_version=yes
9891 ;;
9892
9893sysv4 | sysv4.3*)
9894 version_type=linux
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 shlibpath_var=LD_LIBRARY_PATH
9898 case $host_vendor in
9899 sni)
9900 shlibpath_overrides_runpath=no
9901 need_lib_prefix=no
9902 export_dynamic_flag_spec='${wl}-Blargedynsym'
9903 runpath_var=LD_RUN_PATH
9904 ;;
9905 siemens)
9906 need_lib_prefix=no
9907 ;;
9908 motorola)
9909 need_lib_prefix=no
9910 need_version=no
9911 shlibpath_overrides_runpath=no
9912 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9913 ;;
9914 esac
9915 ;;
9916
9917sysv4*MP*)
9918 if test -d /usr/nec ;then
9919 version_type=linux
9920 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9921 soname_spec='$libname${shared_ext}.$major'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 fi
9924 ;;
9925
9926sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9927 version_type=freebsd-elf
9928 need_lib_prefix=no
9929 need_version=no
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 shlibpath_var=LD_LIBRARY_PATH
9933 hardcode_into_libs=yes
9934 if test "$with_gnu_ld" = yes; then
9935 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9936 shlibpath_overrides_runpath=no
9937 else
9938 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9939 shlibpath_overrides_runpath=yes
9940 case $host_os in
9941 sco3.2v5*)
9942 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9943 ;;
9944 esac
9945 fi
9946 sys_lib_dlsearch_path_spec='/usr/lib'
9947 ;;
9948
9949uts4*)
9950 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
9954 ;;
9955
9956*)
9957 dynamic_linker=no
9958 ;;
9959esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009960{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9961echo "${ECHO_T}$dynamic_linker" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009962test "$dynamic_linker" = no && can_build_shared=no
9963
9964variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9965if test "$GCC" = yes; then
9966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9967fi
9968
9969
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009970{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9971echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9972if test "${libltdl_cv_shlibext+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009974else
9975
9976module=yes
9977eval libltdl_cv_shlibext=$shrext_cmds
9978
9979fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009980{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9981echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009982if test -n "$libltdl_cv_shlibext"; then
9983
9984cat >>confdefs.h <<_ACEOF
9985#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9986_ACEOF
9987
9988fi
9989
9990
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009991{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9992echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9993if test "${libltdl_cv_shlibpath_var+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009995else
9996 libltdl_cv_shlibpath_var="$shlibpath_var"
9997fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009998{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9999echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010000if test -n "$libltdl_cv_shlibpath_var"; then
10001
10002cat >>confdefs.h <<_ACEOF
10003#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10004_ACEOF
10005
10006fi
10007
10008
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010009{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10010echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10011if test "${libltdl_cv_sys_search_path+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010013else
10014 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10015fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010016{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10017echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010018if test -n "$libltdl_cv_sys_search_path"; then
10019 sys_search_path=
10020 for dir in $libltdl_cv_sys_search_path; do
10021 if test -z "$sys_search_path"; then
10022 sys_search_path="$dir"
10023 else
10024 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10025 fi
10026 done
10027
10028cat >>confdefs.h <<_ACEOF
10029#define LTDL_SYSSEARCHPATH "$sys_search_path"
10030_ACEOF
10031
10032fi
10033
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010034{ echo "$as_me:$LINENO: checking for objdir" >&5
10035echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10036if test "${libltdl_cv_objdir+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010038else
10039 libltdl_cv_objdir="$objdir"
10040 if test -n "$objdir"; then
10041 :
10042 else
10043 rm -f .libs 2>/dev/null
10044 mkdir .libs 2>/dev/null
10045 if test -d .libs; then
10046 libltdl_cv_objdir=.libs
10047 else
10048 # MS-DOS does not allow filenames that begin with a dot.
10049 libltdl_cv_objdir=_libs
10050 fi
10051 rmdir .libs 2>/dev/null
10052 fi
10053
10054fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010055{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10056echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010057
10058cat >>confdefs.h <<_ACEOF
10059#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10060_ACEOF
10061
10062
10063
10064
10065
10066
10067# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010068{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10069echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10070if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010072else
10073
10074# These are sane defaults that work on at least a few old systems.
10075# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10076
10077# Character class describing NM global symbol codes.
10078symcode='[BCDEGRST]'
10079
10080# Regexp to match symbols that can be accessed directly from C.
10081sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10082
10083# Transform an extracted symbol line into a proper C declaration
10084lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10085
10086# Transform an extracted symbol line into symbol name and symbol address
10087lt_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'"
10088
10089# Define system-specific variables.
10090case $host_os in
10091aix*)
10092 symcode='[BCDT]'
10093 ;;
10094cygwin* | mingw* | pw32*)
10095 symcode='[ABCDGISTW]'
10096 ;;
10097hpux*) # Its linker distinguishes data from code symbols
10098 if test "$host_cpu" = ia64; then
10099 symcode='[ABCDEGRST]'
10100 fi
10101 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10102 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'"
10103 ;;
10104linux*)
10105 if test "$host_cpu" = ia64; then
10106 symcode='[ABCDGIRSTW]'
10107 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10108 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'"
10109 fi
10110 ;;
10111irix* | nonstopux*)
10112 symcode='[BCDEGRST]'
10113 ;;
10114osf*)
10115 symcode='[BCDEGQRST]'
10116 ;;
10117solaris*)
10118 symcode='[BDRT]'
10119 ;;
10120sco3.2v5*)
10121 symcode='[DT]'
10122 ;;
10123sysv4.2uw2*)
10124 symcode='[DT]'
10125 ;;
10126sysv5* | sco5v6* | unixware* | OpenUNIX*)
10127 symcode='[ABDT]'
10128 ;;
10129sysv4)
10130 symcode='[DFNSTU]'
10131 ;;
10132esac
10133
10134# Handle CRLF in mingw tool chain
10135opt_cr=
10136case $build_os in
10137mingw*)
10138 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10139 ;;
10140esac
10141
10142# If we're using GNU nm, then use its standard symbol codes.
10143case `$NM -V 2>&1` in
10144*GNU* | *'with BFD'*)
10145 symcode='[ABCDGIRSTW]' ;;
10146esac
10147
10148# Try without a prefix undercore, then with it.
10149for ac_symprfx in "" "_"; do
10150
10151 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10152 symxfrm="\\1 $ac_symprfx\\2 \\2"
10153
10154 # Write the raw and C identifiers.
10155 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10156
10157 # Check to see that the pipe works correctly.
10158 pipe_works=no
10159
10160 rm -f conftest*
10161 cat > conftest.$ac_ext <<EOF
10162#ifdef __cplusplus
10163extern "C" {
10164#endif
10165char nm_test_var;
10166void nm_test_func(){}
10167#ifdef __cplusplus
10168}
10169#endif
10170int main(){nm_test_var='a';nm_test_func();return(0);}
10171EOF
10172
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010174 (eval $ac_compile) 2>&5
10175 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010178 # Now try to grab the symbols.
10179 nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010180 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 +000010181 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10182 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && test -s "$nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010185 # Try sorting and uniquifying the output.
10186 if sort "$nlist" | uniq > "$nlist"T; then
10187 mv -f "$nlist"T "$nlist"
10188 else
10189 rm -f "$nlist"T
10190 fi
10191
10192 # Make sure that we snagged all the symbols we need.
10193 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10194 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10195 cat <<EOF > conftest.$ac_ext
10196#ifdef __cplusplus
10197extern "C" {
10198#endif
10199
10200EOF
10201 # Now generate the symbol file.
10202 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10203
10204 cat <<EOF >> conftest.$ac_ext
10205#if defined (__STDC__) && __STDC__
10206# define lt_ptr_t void *
10207#else
10208# define lt_ptr_t char *
10209# define const
10210#endif
10211
10212/* The mapping between symbol names and symbols. */
10213const struct {
10214 const char *name;
10215 lt_ptr_t address;
10216}
10217lt_preloaded_symbols[] =
10218{
10219EOF
10220 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10221 cat <<\EOF >> conftest.$ac_ext
10222 {0, (lt_ptr_t) 0}
10223};
10224
10225#ifdef __cplusplus
10226}
10227#endif
10228EOF
10229 # Now try linking the two files.
10230 mv conftest.$ac_objext conftstm.$ac_objext
10231 lt_save_LIBS="$LIBS"
10232 lt_save_CFLAGS="$CFLAGS"
10233 LIBS="conftstm.$ac_objext"
10234 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010236 (eval $ac_link) 2>&5
10237 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010240 pipe_works=yes
10241 fi
10242 LIBS="$lt_save_LIBS"
10243 CFLAGS="$lt_save_CFLAGS"
10244 else
10245 echo "cannot find nm_test_func in $nlist" >&5
10246 fi
10247 else
10248 echo "cannot find nm_test_var in $nlist" >&5
10249 fi
10250 else
10251 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10252 fi
10253 else
10254 echo "$progname: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10256 fi
10257 rm -f conftest* conftst*
10258
10259 # Do not use the global_symbol_pipe unless it works.
10260 if test "$pipe_works" = yes; then
10261 break
10262 else
10263 lt_cv_sys_global_symbol_pipe=
10264 fi
10265done
10266
10267fi
10268
10269if test -z "$lt_cv_sys_global_symbol_pipe"; then
10270 lt_cv_sys_global_symbol_to_cdecl=
10271fi
10272if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010273 { echo "$as_me:$LINENO: result: failed" >&5
10274echo "${ECHO_T}failed" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010275else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010276 { echo "$as_me:$LINENO: result: ok" >&5
10277echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010278fi
10279
10280
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010281{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10282echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10283if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010285else
10286 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10287 libltdl_cv_preloaded_symbols=yes
10288 else
10289 libltdl_cv_preloaded_symbols=no
10290 fi
10291
10292fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010293{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10294echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010295if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10296
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010297cat >>confdefs.h <<\_ACEOF
10298#define HAVE_PRELOADED_SYMBOLS 1
10299_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010300
10301fi
10302
10303LIBADD_DL=
10304
10305ac_ext=c
10306ac_cpp='$CPP $CPPFLAGS'
10307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10309ac_compiler_gnu=$ac_cv_c_compiler_gnu
10310
10311
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010312{ echo "$as_me:$LINENO: checking for shl_load" >&5
10313echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10314if test "${ac_cv_func_shl_load+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316else
10317 cat >conftest.$ac_ext <<_ACEOF
10318/* confdefs.h. */
10319_ACEOF
10320cat confdefs.h >>conftest.$ac_ext
10321cat >>conftest.$ac_ext <<_ACEOF
10322/* end confdefs.h. */
10323/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10325#define shl_load innocuous_shl_load
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010326
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010327/* System header to define __stub macros and hopefully few prototypes,
10328 which can conflict with char shl_load (); below.
10329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10330 <limits.h> exists even on freestanding compilers. */
10331
10332#ifdef __STDC__
10333# include <limits.h>
10334#else
10335# include <assert.h>
10336#endif
10337
10338#undef shl_load
10339
10340/* Override any GCC internal prototype to avoid an error.
10341 Use char because int might match the return type of a GCC
10342 builtin and then its argument prototype would still apply. */
10343#ifdef __cplusplus
10344extern "C"
10345#endif
10346char shl_load ();
10347/* The GNU C library defines this for functions which it implements
10348 to always fail with ENOSYS. Some functions are actually named
10349 something starting with __ and the normal name is an alias. */
10350#if defined __stub_shl_load || defined __stub___shl_load
10351choke me
10352#endif
10353
10354int
10355main ()
10356{
10357return shl_load ();
10358 ;
10359 return 0;
10360}
10361_ACEOF
10362rm -f conftest.$ac_objext conftest$ac_exeext
10363if { (ac_try="$ac_link"
10364case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367esac
10368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_link") 2>conftest.er1
10370 ac_status=$?
10371 grep -v '^ *+' conftest.er1 >conftest.err
10372 rm -f conftest.er1
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } &&
10376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10377 { (case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10380esac
10381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_try") 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; } &&
10386 { ac_try='test -s conftest$ac_exeext'
10387 { (case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390esac
10391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_try") 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 ac_cv_func_shl_load=yes
10397else
10398 echo "$as_me: failed program was:" >&5
10399sed 's/^/| /' conftest.$ac_ext >&5
10400
10401 ac_cv_func_shl_load=no
10402fi
10403
10404rm -f core conftest.err conftest.$ac_objext \
10405 conftest$ac_exeext conftest.$ac_ext
10406fi
10407{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10408echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10409if test $ac_cv_func_shl_load = yes; then
10410
10411cat >>confdefs.h <<\_ACEOF
10412#define HAVE_SHL_LOAD 1
10413_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010414
10415else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010416 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10417echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10418if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010420else
10421 ac_check_lib_save_LIBS=$LIBS
10422LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010423cat >conftest.$ac_ext <<_ACEOF
10424/* confdefs.h. */
10425_ACEOF
10426cat confdefs.h >>conftest.$ac_ext
10427cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010428/* end confdefs.h. */
10429
10430/* Override any GCC internal prototype to avoid an error.
10431 Use char because int might match the return type of a GCC
10432 builtin and then its argument prototype would still apply. */
10433#ifdef __cplusplus
10434extern "C"
10435#endif
10436char shl_load ();
10437int
10438main ()
10439{
10440return shl_load ();
10441 ;
10442 return 0;
10443}
10444_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010445rm -f conftest.$ac_objext conftest$ac_exeext
10446if { (ac_try="$ac_link"
10447case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10450esac
10451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_link") 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10460 { (case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10463esac
10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_try") 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; } &&
10469 { ac_try='test -s conftest$ac_exeext'
10470 { (case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473esac
10474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_try") 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010479 ac_cv_lib_dld_shl_load=yes
10480else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010481 echo "$as_me: failed program was:" >&5
10482sed 's/^/| /' conftest.$ac_ext >&5
10483
10484 ac_cv_lib_dld_shl_load=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010485fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010486
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010487rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010488 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010489LIBS=$ac_check_lib_save_LIBS
10490fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010491{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10492echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10493if test $ac_cv_lib_dld_shl_load = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010494
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010495cat >>confdefs.h <<\_ACEOF
10496#define HAVE_SHL_LOAD 1
10497_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010498
10499 LIBADD_DL="$LIBADD_DL -ldld"
10500else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010501 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10502echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10503if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010505else
10506 ac_check_lib_save_LIBS=$LIBS
10507LIBS="-ldl $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010508cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h. */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010513/* end confdefs.h. */
10514
10515/* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10518#ifdef __cplusplus
10519extern "C"
10520#endif
10521char dlopen ();
10522int
10523main ()
10524{
10525return dlopen ();
10526 ;
10527 return 0;
10528}
10529_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010530rm -f conftest.$ac_objext conftest$ac_exeext
10531if { (ac_try="$ac_link"
10532case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } &&
10544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10545 { (case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548esac
10549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_try") 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; } &&
10554 { ac_try='test -s conftest$ac_exeext'
10555 { (case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10558esac
10559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560 (eval "$ac_try") 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010564 ac_cv_lib_dl_dlopen=yes
10565else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010566 echo "$as_me: failed program was:" >&5
10567sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_cv_lib_dl_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010570fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010571
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010572rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010573 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010574LIBS=$ac_check_lib_save_LIBS
10575fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010576{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10577echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10578if test $ac_cv_lib_dl_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010579
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010580cat >>confdefs.h <<\_ACEOF
10581#define HAVE_LIBDL 1
10582_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010583
10584 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10585else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010586 cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h. */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010591/* end confdefs.h. */
10592#if HAVE_DLFCN_H
10593# include <dlfcn.h>
10594#endif
10595
10596int
10597main ()
10598{
10599dlopen(0, 0);
10600 ;
10601 return 0;
10602}
10603_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010604rm -f conftest.$ac_objext conftest$ac_exeext
10605if { (ac_try="$ac_link"
10606case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609esac
10610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_link") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
10618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10619 { (case "(($ac_try" in
10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621 *) ac_try_echo=$ac_try;;
10622esac
10623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10624 (eval "$ac_try") 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; } &&
10628 { ac_try='test -s conftest$ac_exeext'
10629 { (case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10632esac
10633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_try") 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010638
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010639cat >>confdefs.h <<\_ACEOF
10640#define HAVE_LIBDL 1
10641_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010642 libltdl_cv_func_dlopen="yes"
10643else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010644 echo "$as_me: failed program was:" >&5
10645sed 's/^/| /' conftest.$ac_ext >&5
10646
10647 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10648echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10649if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010651else
10652 ac_check_lib_save_LIBS=$LIBS
10653LIBS="-lsvld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010654cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h. */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010659/* end confdefs.h. */
10660
10661/* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10664#ifdef __cplusplus
10665extern "C"
10666#endif
10667char dlopen ();
10668int
10669main ()
10670{
10671return dlopen ();
10672 ;
10673 return 0;
10674}
10675_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010676rm -f conftest.$ac_objext conftest$ac_exeext
10677if { (ac_try="$ac_link"
10678case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681esac
10682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_link") 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10691 { (case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694esac
10695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_try") 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704esac
10705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_try") 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010710 ac_cv_lib_svld_dlopen=yes
10711else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010712 echo "$as_me: failed program was:" >&5
10713sed 's/^/| /' conftest.$ac_ext >&5
10714
10715 ac_cv_lib_svld_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010716fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010717
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010718rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010719 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010720LIBS=$ac_check_lib_save_LIBS
10721fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010722{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10723echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10724if test $ac_cv_lib_svld_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010725
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010726cat >>confdefs.h <<\_ACEOF
10727#define HAVE_LIBDL 1
10728_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010729
10730 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10731else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010732 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10733echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10734if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010736else
10737 ac_check_lib_save_LIBS=$LIBS
10738LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010739cat >conftest.$ac_ext <<_ACEOF
10740/* confdefs.h. */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010744/* end confdefs.h. */
10745
10746/* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749#ifdef __cplusplus
10750extern "C"
10751#endif
10752char dld_link ();
10753int
10754main ()
10755{
10756return dld_link ();
10757 ;
10758 return 0;
10759}
10760_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010761rm -f conftest.$ac_objext conftest$ac_exeext
10762if { (ac_try="$ac_link"
10763case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766esac
10767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_link") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } &&
10775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10776 { (case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779esac
10780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_try") 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; } &&
10785 { ac_try='test -s conftest$ac_exeext'
10786 { (case "(($ac_try" in
10787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788 *) ac_try_echo=$ac_try;;
10789esac
10790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791 (eval "$ac_try") 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010795 ac_cv_lib_dld_dld_link=yes
10796else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010797 echo "$as_me: failed program was:" >&5
10798sed 's/^/| /' conftest.$ac_ext >&5
10799
10800 ac_cv_lib_dld_dld_link=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010801fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010802
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010803rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010804 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010805LIBS=$ac_check_lib_save_LIBS
10806fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010807{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10808echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10809if test $ac_cv_lib_dld_dld_link = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010810
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010811cat >>confdefs.h <<\_ACEOF
10812#define HAVE_DLD 1
10813_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010814
10815 LIBADD_DL="$LIBADD_DL -ldld"
10816else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010817 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10818echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10819if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821else
10822 cat >conftest.$ac_ext <<_ACEOF
10823/* confdefs.h. */
10824_ACEOF
10825cat confdefs.h >>conftest.$ac_ext
10826cat >>conftest.$ac_ext <<_ACEOF
10827/* end confdefs.h. */
10828/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10830#define _dyld_func_lookup innocuous__dyld_func_lookup
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010831
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010832/* System header to define __stub macros and hopefully few prototypes,
10833 which can conflict with char _dyld_func_lookup (); below.
10834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10835 <limits.h> exists even on freestanding compilers. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010836
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010837#ifdef __STDC__
10838# include <limits.h>
10839#else
10840# include <assert.h>
10841#endif
10842
10843#undef _dyld_func_lookup
10844
10845/* Override any GCC internal prototype to avoid an error.
10846 Use char because int might match the return type of a GCC
10847 builtin and then its argument prototype would still apply. */
10848#ifdef __cplusplus
10849extern "C"
10850#endif
10851char _dyld_func_lookup ();
10852/* The GNU C library defines this for functions which it implements
10853 to always fail with ENOSYS. Some functions are actually named
10854 something starting with __ and the normal name is an alias. */
10855#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10856choke me
10857#endif
10858
10859int
10860main ()
10861{
10862return _dyld_func_lookup ();
10863 ;
10864 return 0;
10865}
10866_ACEOF
10867rm -f conftest.$ac_objext conftest$ac_exeext
10868if { (ac_try="$ac_link"
10869case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872esac
10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_link") 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10882 { (case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885esac
10886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_try") 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; } &&
10891 { ac_try='test -s conftest$ac_exeext'
10892 { (case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_try") 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; }; then
10901 ac_cv_func__dyld_func_lookup=yes
10902else
10903 echo "$as_me: failed program was:" >&5
10904sed 's/^/| /' conftest.$ac_ext >&5
10905
10906 ac_cv_func__dyld_func_lookup=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010907fi
10908
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010909rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010910 conftest$ac_exeext conftest.$ac_ext
10911fi
10912{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10913echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10914if test $ac_cv_func__dyld_func_lookup = yes; then
10915
10916cat >>confdefs.h <<\_ACEOF
10917#define HAVE_DYLD 1
10918_ACEOF
10919
10920fi
10921
10922
10923fi
10924
10925
10926fi
10927
10928
10929fi
10930
10931rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010933
10934fi
10935
10936
10937fi
10938
10939
10940fi
10941
10942
10943if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10944then
10945 lt_save_LIBS="$LIBS"
10946 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010947
10948for ac_func in dlerror
10949do
10950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955else
10956 cat >conftest.$ac_ext <<_ACEOF
10957/* confdefs.h. */
10958_ACEOF
10959cat confdefs.h >>conftest.$ac_ext
10960cat >>conftest.$ac_ext <<_ACEOF
10961/* end confdefs.h. */
10962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10964#define $ac_func innocuous_$ac_func
10965
10966/* System header to define __stub macros and hopefully few prototypes,
10967 which can conflict with char $ac_func (); below.
10968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10969 <limits.h> exists even on freestanding compilers. */
10970
10971#ifdef __STDC__
10972# include <limits.h>
10973#else
10974# include <assert.h>
10975#endif
10976
10977#undef $ac_func
10978
10979/* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10982#ifdef __cplusplus
10983extern "C"
10984#endif
10985char $ac_func ();
10986/* The GNU C library defines this for functions which it implements
10987 to always fail with ENOSYS. Some functions are actually named
10988 something starting with __ and the normal name is an alias. */
10989#if defined __stub_$ac_func || defined __stub___$ac_func
10990choke me
10991#endif
10992
10993int
10994main ()
10995{
10996return $ac_func ();
10997 ;
10998 return 0;
10999}
11000_ACEOF
11001rm -f conftest.$ac_objext conftest$ac_exeext
11002if { (ac_try="$ac_link"
11003case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006esac
11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_link") 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest$ac_exeext'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11029esac
11030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 eval "$as_ac_var=yes"
11036else
11037 echo "$as_me: failed program was:" >&5
11038sed 's/^/| /' conftest.$ac_ext >&5
11039
11040 eval "$as_ac_var=no"
11041fi
11042
11043rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11045fi
11046ac_res=`eval echo '${'$as_ac_var'}'`
11047 { echo "$as_me:$LINENO: result: $ac_res" >&5
11048echo "${ECHO_T}$ac_res" >&6; }
11049if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011050 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011052_ACEOF
11053
11054fi
11055done
11056
11057 LIBS="$lt_save_LIBS"
11058fi
11059ac_ext=c
11060ac_cpp='$CPP $CPPFLAGS'
11061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11063ac_compiler_gnu=$ac_cv_c_compiler_gnu
11064
11065
11066
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011067{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11068echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11069if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011071else
11072 ac_cv_sys_symbol_underscore=no
11073 cat > conftest.$ac_ext <<EOF
11074void nm_test_func(){}
11075int main(){nm_test_func;return 0;}
11076EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011078 (eval $ac_compile) 2>&5
11079 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011082 # Now try to grab the symbols.
11083 ac_nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011084 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 +000011085 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11086 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && test -s "$ac_nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011089 # See whether the symbols have a leading underscore.
11090 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11091 ac_cv_sys_symbol_underscore=yes
11092 else
11093 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11094 :
11095 else
11096 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11097 fi
11098 fi
11099 else
11100 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11101 fi
11102 else
11103 echo "configure: failed program was:" >&5
11104 cat conftest.c >&5
11105 fi
11106 rm -rf conftest*
11107
11108fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011109{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11110echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011111
11112
11113if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11114 if test x"$libltdl_cv_func_dlopen" = xyes ||
11115 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011116 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11117echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11118if test "${libltdl_cv_need_uscore+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011120else
11121 libltdl_cv_need_uscore=unknown
11122 save_LIBS="$LIBS"
11123 LIBS="$LIBS $LIBADD_DL"
11124 if test "$cross_compiling" = yes; then :
11125 libltdl_cv_need_uscore=cross
11126else
11127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11128 lt_status=$lt_dlunknown
11129 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskin42d27c72010-02-23 18:10:07 +000011130#line 11130 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011131#include "confdefs.h"
11132
11133#if HAVE_DLFCN_H
11134#include <dlfcn.h>
11135#endif
11136
11137#include <stdio.h>
11138
11139#ifdef RTLD_GLOBAL
11140# define LT_DLGLOBAL RTLD_GLOBAL
11141#else
11142# ifdef DL_GLOBAL
11143# define LT_DLGLOBAL DL_GLOBAL
11144# else
11145# define LT_DLGLOBAL 0
11146# endif
11147#endif
11148
11149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11150 find out it does not work in some platform. */
11151#ifndef LT_DLLAZY_OR_NOW
11152# ifdef RTLD_LAZY
11153# define LT_DLLAZY_OR_NOW RTLD_LAZY
11154# else
11155# ifdef DL_LAZY
11156# define LT_DLLAZY_OR_NOW DL_LAZY
11157# else
11158# ifdef RTLD_NOW
11159# define LT_DLLAZY_OR_NOW RTLD_NOW
11160# else
11161# ifdef DL_NOW
11162# define LT_DLLAZY_OR_NOW DL_NOW
11163# else
11164# define LT_DLLAZY_OR_NOW 0
11165# endif
11166# endif
11167# endif
11168# endif
11169#endif
11170
11171#ifdef __cplusplus
11172extern "C" void exit (int);
11173#endif
11174
11175void fnord() { int i=42;}
11176int main ()
11177{
11178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11179 int status = $lt_dlunknown;
11180
11181 if (self)
11182 {
11183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11185 /* dlclose (self); */
11186 }
11187 else
11188 puts (dlerror ());
11189
11190 exit (status);
11191}
11192EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011194 (eval $ac_link) 2>&5
11195 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011198 (./conftest; exit; ) >&5 2>/dev/null
11199 lt_status=$?
11200 case x$lt_status in
11201 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11202 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11203 x$lt_dlunknown|x*) ;;
11204 esac
11205 else :
11206 # compilation failed
11207
11208 fi
11209fi
11210rm -fr conftest*
11211
11212 LIBS="$save_LIBS"
11213
11214fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011215{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11216echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011217 fi
11218fi
11219
11220if test x"$libltdl_cv_need_uscore" = xyes; then
11221
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011222cat >>confdefs.h <<\_ACEOF
11223#define NEED_USCORE 1
11224_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011225
11226fi
11227
11228
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011229{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11230echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11231if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011233else
11234 # PORTME does your system automatically load deplibs for dlopen?
11235 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11236 # For now, we just catch OSes we know something about -- in the
11237 # future, we'll try test this programmatically.
11238 libltdl_cv_sys_dlopen_deplibs=unknown
11239 case "$host_os" in
11240 aix3*|aix4.1.*|aix4.2.*)
11241 # Unknown whether this is true for these versions of AIX, but
11242 # we want this `case' here to explicitly catch those versions.
11243 libltdl_cv_sys_dlopen_deplibs=unknown
11244 ;;
11245 aix[45]*)
11246 libltdl_cv_sys_dlopen_deplibs=yes
11247 ;;
11248 darwin*)
11249 # Assuming the user has installed a libdl from somewhere, this is true
11250 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11251 libltdl_cv_sys_dlopen_deplibs=yes
11252 ;;
11253 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11254 # GNU and its variants, using gnu ld.so (Glibc)
11255 libltdl_cv_sys_dlopen_deplibs=yes
11256 ;;
11257 hpux10*|hpux11*)
11258 libltdl_cv_sys_dlopen_deplibs=yes
11259 ;;
11260 interix*)
11261 libltdl_cv_sys_dlopen_deplibs=yes
11262 ;;
11263 irix[12345]*|irix6.[01]*)
11264 # Catch all versions of IRIX before 6.2, and indicate that we don't
11265 # know how it worked for any of those versions.
11266 libltdl_cv_sys_dlopen_deplibs=unknown
11267 ;;
11268 irix*)
11269 # The case above catches anything before 6.2, and it's known that
11270 # at 6.2 and later dlopen does load deplibs.
11271 libltdl_cv_sys_dlopen_deplibs=yes
11272 ;;
11273 netbsd*)
11274 libltdl_cv_sys_dlopen_deplibs=yes
11275 ;;
11276 openbsd*)
11277 libltdl_cv_sys_dlopen_deplibs=yes
11278 ;;
11279 osf[1234]*)
11280 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11281 # it did *not* use an RPATH in a shared library to find objects the
11282 # library depends on, so we explictly say `no'.
11283 libltdl_cv_sys_dlopen_deplibs=no
11284 ;;
11285 osf5.0|osf5.0a|osf5.1)
11286 # dlopen *does* load deplibs and with the right loader patch applied
11287 # it even uses RPATH in a shared library to search for shared objects
11288 # that the library depends on, but there's no easy way to know if that
11289 # patch is installed. Since this is the case, all we can really
11290 # say is unknown -- it depends on the patch being installed. If
11291 # it is, this changes to `yes'. Without it, it would be `no'.
11292 libltdl_cv_sys_dlopen_deplibs=unknown
11293 ;;
11294 osf*)
11295 # the two cases above should catch all versions of osf <= 5.1. Read
11296 # the comments above for what we know about them.
11297 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11298 # is used to find them so we can finally say `yes'.
11299 libltdl_cv_sys_dlopen_deplibs=yes
11300 ;;
11301 solaris*)
11302 libltdl_cv_sys_dlopen_deplibs=yes
11303 ;;
11304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11305 libltdl_cv_sys_dlopen_deplibs=yes
11306 ;;
11307 esac
11308
11309fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011310{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11311echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011312if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11313
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011314cat >>confdefs.h <<\_ACEOF
11315#define LTDL_DLOPEN_DEPLIBS 1
11316_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011317
11318fi
11319
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011320
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011321for ac_header in argz.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011322do
11323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329fi
11330ac_res=`eval echo '${'$as_ac_Header'}'`
11331 { echo "$as_me:$LINENO: result: $ac_res" >&5
11332echo "${ECHO_T}$ac_res" >&6; }
11333else
11334 # Is the header compilable?
11335{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11337cat >conftest.$ac_ext <<_ACEOF
11338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
11343$ac_includes_default
11344#include <$ac_header>
11345_ACEOF
11346rm -f conftest.$ac_objext
11347if { (ac_try="$ac_compile"
11348case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11351esac
11352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_compile") 2>conftest.er1
11354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } &&
11360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364esac
11365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest.$ac_objext'
11371 { (case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374esac
11375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_try") 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_header_compiler=yes
11381else
11382 echo "$as_me: failed program was:" >&5
11383sed 's/^/| /' conftest.$ac_ext >&5
11384
11385 ac_header_compiler=no
11386fi
11387
11388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11390echo "${ECHO_T}$ac_header_compiler" >&6; }
11391
11392# Is the header present?
11393{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11395cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
11401#include <$ac_header>
11402_ACEOF
11403if { (ac_try="$ac_cpp conftest.$ac_ext"
11404case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407esac
11408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } >/dev/null; then
11416 if test -s conftest.err; then
11417 ac_cpp_err=$ac_c_preproc_warn_flag
11418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11419 else
11420 ac_cpp_err=
11421 fi
11422else
11423 ac_cpp_err=yes
11424fi
11425if test -z "$ac_cpp_err"; then
11426 ac_header_preproc=yes
11427else
11428 echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
11430
11431 ac_header_preproc=no
11432fi
11433
11434rm -f conftest.err conftest.$ac_ext
11435{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11436echo "${ECHO_T}$ac_header_preproc" >&6; }
11437
11438# So? What about this header?
11439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11440 yes:no: )
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11445 ac_header_preproc=yes
11446 ;;
11447 no:yes:* )
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11460 ( cat <<\_ASBOX
11461## ----------------------------------- ##
11462## Report this to llvmbugs@cs.uiuc.edu ##
11463## ----------------------------------- ##
11464_ASBOX
11465 ) | sed "s/^/$as_me: WARNING: /" >&2
11466 ;;
11467esac
11468{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11472else
11473 eval "$as_ac_Header=\$ac_header_preproc"
11474fi
11475ac_res=`eval echo '${'$as_ac_Header'}'`
11476 { echo "$as_me:$LINENO: result: $ac_res" >&5
11477echo "${ECHO_T}$ac_res" >&6; }
11478
11479fi
11480if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011481 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011483_ACEOF
11484
11485fi
11486
11487done
11488
11489
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011490{ echo "$as_me:$LINENO: checking for error_t" >&5
11491echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11492if test "${ac_cv_type_error_t+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501#if HAVE_ARGZ_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011502# include <argz.h>
11503#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011504
11505typedef error_t ac__type_new_;
11506int
11507main ()
11508{
11509if ((ac__type_new_ *) 0)
11510 return 0;
11511if (sizeof (ac__type_new_))
11512 return 0;
11513 ;
11514 return 0;
11515}
11516_ACEOF
11517rm -f conftest.$ac_objext
11518if { (ac_try="$ac_compile"
11519case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_compile") 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11532 { (case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535esac
11536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_try") 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; } &&
11541 { ac_try='test -s conftest.$ac_objext'
11542 { (case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545esac
11546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_try") 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 ac_cv_type_error_t=yes
11552else
11553 echo "$as_me: failed program was:" >&5
11554sed 's/^/| /' conftest.$ac_ext >&5
11555
11556 ac_cv_type_error_t=no
11557fi
11558
11559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560fi
11561{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11562echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11563if test $ac_cv_type_error_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011564
11565cat >>confdefs.h <<_ACEOF
11566#define HAVE_ERROR_T 1
11567_ACEOF
11568
11569
11570else
11571
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011572cat >>confdefs.h <<\_ACEOF
11573#define error_t int
11574_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011575
11576fi
11577
11578
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011579
11580
11581
11582
11583
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011584for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011585do
11586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592 cat >conftest.$ac_ext <<_ACEOF
11593/* confdefs.h. */
11594_ACEOF
11595cat confdefs.h >>conftest.$ac_ext
11596cat >>conftest.$ac_ext <<_ACEOF
11597/* end confdefs.h. */
11598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600#define $ac_func innocuous_$ac_func
11601
11602/* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11606
11607#ifdef __STDC__
11608# include <limits.h>
11609#else
11610# include <assert.h>
11611#endif
11612
11613#undef $ac_func
11614
11615/* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618#ifdef __cplusplus
11619extern "C"
11620#endif
11621char $ac_func ();
11622/* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625#if defined __stub_$ac_func || defined __stub___$ac_func
11626choke me
11627#endif
11628
11629int
11630main ()
11631{
11632return $ac_func ();
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (ac_try="$ac_link"
11639case "(($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_link") 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652 { (case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_try") 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665esac
11666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "$as_ac_var=yes"
11672else
11673 echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676 eval "$as_ac_var=no"
11677fi
11678
11679rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681fi
11682ac_res=`eval echo '${'$as_ac_var'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684echo "${ECHO_T}$ac_res" >&6; }
11685if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011686 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011688_ACEOF
11689
11690fi
11691done
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011712
11713
11714
11715
11716
11717
11718
11719
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011720for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11721 stdio.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011722do
11723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729fi
11730ac_res=`eval echo '${'$as_ac_Header'}'`
11731 { echo "$as_me:$LINENO: result: $ac_res" >&5
11732echo "${ECHO_T}$ac_res" >&6; }
11733else
11734 # Is the header compilable?
11735{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11737cat >conftest.$ac_ext <<_ACEOF
11738/* confdefs.h. */
11739_ACEOF
11740cat confdefs.h >>conftest.$ac_ext
11741cat >>conftest.$ac_ext <<_ACEOF
11742/* end confdefs.h. */
11743$ac_includes_default
11744#include <$ac_header>
11745_ACEOF
11746rm -f conftest.$ac_objext
11747if { (ac_try="$ac_compile"
11748case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11751esac
11752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753 (eval "$ac_compile") 2>conftest.er1
11754 ac_status=$?
11755 grep -v '^ *+' conftest.er1 >conftest.err
11756 rm -f conftest.er1
11757 cat conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11761 { (case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764esac
11765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_try") 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; } &&
11770 { ac_try='test -s conftest.$ac_objext'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
11775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; }; then
11780 ac_header_compiler=yes
11781else
11782 echo "$as_me: failed program was:" >&5
11783sed 's/^/| /' conftest.$ac_ext >&5
11784
11785 ac_header_compiler=no
11786fi
11787
11788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11789{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11790echo "${ECHO_T}$ac_header_compiler" >&6; }
11791
11792# Is the header present?
11793{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11795cat >conftest.$ac_ext <<_ACEOF
11796/* confdefs.h. */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h. */
11801#include <$ac_header>
11802_ACEOF
11803if { (ac_try="$ac_cpp conftest.$ac_ext"
11804case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807esac
11808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } >/dev/null; then
11816 if test -s conftest.err; then
11817 ac_cpp_err=$ac_c_preproc_warn_flag
11818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11819 else
11820 ac_cpp_err=
11821 fi
11822else
11823 ac_cpp_err=yes
11824fi
11825if test -z "$ac_cpp_err"; then
11826 ac_header_preproc=yes
11827else
11828 echo "$as_me: failed program was:" >&5
11829sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 ac_header_preproc=no
11832fi
11833
11834rm -f conftest.err conftest.$ac_ext
11835{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11836echo "${ECHO_T}$ac_header_preproc" >&6; }
11837
11838# So? What about this header?
11839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11840 yes:no: )
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11842echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11844echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11845 ac_header_preproc=yes
11846 ;;
11847 no:yes:* )
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11849echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11851echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11853echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11855echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11857echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11859echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11860 ( cat <<\_ASBOX
11861## ----------------------------------- ##
11862## Report this to llvmbugs@cs.uiuc.edu ##
11863## ----------------------------------- ##
11864_ASBOX
11865 ) | sed "s/^/$as_me: WARNING: /" >&2
11866 ;;
11867esac
11868{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872else
11873 eval "$as_ac_Header=\$ac_header_preproc"
11874fi
11875ac_res=`eval echo '${'$as_ac_Header'}'`
11876 { echo "$as_me:$LINENO: result: $ac_res" >&5
11877echo "${ECHO_T}$ac_res" >&6; }
11878
11879fi
11880if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011881 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011882#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011883_ACEOF
11884
11885fi
11886
11887done
11888
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011889
11890
11891
11892
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011893for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011894do
11895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901fi
11902ac_res=`eval echo '${'$as_ac_Header'}'`
11903 { echo "$as_me:$LINENO: result: $ac_res" >&5
11904echo "${ECHO_T}$ac_res" >&6; }
11905else
11906 # Is the header compilable?
11907{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11909cat >conftest.$ac_ext <<_ACEOF
11910/* confdefs.h. */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h. */
11915$ac_includes_default
11916#include <$ac_header>
11917_ACEOF
11918rm -f conftest.$ac_objext
11919if { (ac_try="$ac_compile"
11920case "(($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_compile") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946esac
11947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_header_compiler=yes
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_header_compiler=no
11958fi
11959
11960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11962echo "${ECHO_T}$ac_header_compiler" >&6; }
11963
11964# Is the header present?
11965{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11966echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11967cat >conftest.$ac_ext <<_ACEOF
11968/* confdefs.h. */
11969_ACEOF
11970cat confdefs.h >>conftest.$ac_ext
11971cat >>conftest.$ac_ext <<_ACEOF
11972/* end confdefs.h. */
11973#include <$ac_header>
11974_ACEOF
11975if { (ac_try="$ac_cpp conftest.$ac_ext"
11976case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979esac
11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } >/dev/null; then
11988 if test -s conftest.err; then
11989 ac_cpp_err=$ac_c_preproc_warn_flag
11990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11991 else
11992 ac_cpp_err=
11993 fi
11994else
11995 ac_cpp_err=yes
11996fi
11997if test -z "$ac_cpp_err"; then
11998 ac_header_preproc=yes
11999else
12000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003 ac_header_preproc=no
12004fi
12005
12006rm -f conftest.err conftest.$ac_ext
12007{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12008echo "${ECHO_T}$ac_header_preproc" >&6; }
12009
12010# So? What about this header?
12011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12012 yes:no: )
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12014echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12016echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12017 ac_header_preproc=yes
12018 ;;
12019 no:yes:* )
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12023echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12025echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12027echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12031echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12032 ( cat <<\_ASBOX
12033## ----------------------------------- ##
12034## Report this to llvmbugs@cs.uiuc.edu ##
12035## ----------------------------------- ##
12036_ASBOX
12037 ) | sed "s/^/$as_me: WARNING: /" >&2
12038 ;;
12039esac
12040{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044else
12045 eval "$as_ac_Header=\$ac_header_preproc"
12046fi
12047ac_res=`eval echo '${'$as_ac_Header'}'`
12048 { echo "$as_me:$LINENO: result: $ac_res" >&5
12049echo "${ECHO_T}$ac_res" >&6; }
12050
12051fi
12052if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012053 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012055_ACEOF
12056
12057fi
12058
12059done
12060
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012061
12062
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012063for ac_header in string.h strings.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012064do
12065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071fi
12072ac_res=`eval echo '${'$as_ac_Header'}'`
12073 { echo "$as_me:$LINENO: result: $ac_res" >&5
12074echo "${ECHO_T}$ac_res" >&6; }
12075else
12076 # Is the header compilable?
12077{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12079cat >conftest.$ac_ext <<_ACEOF
12080/* confdefs.h. */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h. */
12085$ac_includes_default
12086#include <$ac_header>
12087_ACEOF
12088rm -f conftest.$ac_objext
12089if { (ac_try="$ac_compile"
12090case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093esac
12094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_compile") 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12103 { (case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106esac
12107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_try") 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest.$ac_objext'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_header_compiler=yes
12123else
12124 echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_header_compiler=no
12128fi
12129
12130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12132echo "${ECHO_T}$ac_header_compiler" >&6; }
12133
12134# Is the header present?
12135{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12137cat >conftest.$ac_ext <<_ACEOF
12138/* confdefs.h. */
12139_ACEOF
12140cat confdefs.h >>conftest.$ac_ext
12141cat >>conftest.$ac_ext <<_ACEOF
12142/* end confdefs.h. */
12143#include <$ac_header>
12144_ACEOF
12145if { (ac_try="$ac_cpp conftest.$ac_ext"
12146case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149esac
12150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12152 ac_status=$?
12153 grep -v '^ *+' conftest.er1 >conftest.err
12154 rm -f conftest.er1
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } >/dev/null; then
12158 if test -s conftest.err; then
12159 ac_cpp_err=$ac_c_preproc_warn_flag
12160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12161 else
12162 ac_cpp_err=
12163 fi
12164else
12165 ac_cpp_err=yes
12166fi
12167if test -z "$ac_cpp_err"; then
12168 ac_header_preproc=yes
12169else
12170 echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 ac_header_preproc=no
12174fi
12175
12176rm -f conftest.err conftest.$ac_ext
12177{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12178echo "${ECHO_T}$ac_header_preproc" >&6; }
12179
12180# So? What about this header?
12181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12182 yes:no: )
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12187 ac_header_preproc=yes
12188 ;;
12189 no:yes:* )
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12202 ( cat <<\_ASBOX
12203## ----------------------------------- ##
12204## Report this to llvmbugs@cs.uiuc.edu ##
12205## ----------------------------------- ##
12206_ASBOX
12207 ) | sed "s/^/$as_me: WARNING: /" >&2
12208 ;;
12209esac
12210{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214else
12215 eval "$as_ac_Header=\$ac_header_preproc"
12216fi
12217ac_res=`eval echo '${'$as_ac_Header'}'`
12218 { echo "$as_me:$LINENO: result: $ac_res" >&5
12219echo "${ECHO_T}$ac_res" >&6; }
12220
12221fi
12222if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012223 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012225_ACEOF
12226 break
12227fi
12228
12229done
12230
12231
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012232
12233
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012234for ac_func in strchr index
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012235do
12236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12237{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12239if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241else
12242 cat >conftest.$ac_ext <<_ACEOF
12243/* confdefs.h. */
12244_ACEOF
12245cat confdefs.h >>conftest.$ac_ext
12246cat >>conftest.$ac_ext <<_ACEOF
12247/* end confdefs.h. */
12248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12250#define $ac_func innocuous_$ac_func
12251
12252/* System header to define __stub macros and hopefully few prototypes,
12253 which can conflict with char $ac_func (); below.
12254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12255 <limits.h> exists even on freestanding compilers. */
12256
12257#ifdef __STDC__
12258# include <limits.h>
12259#else
12260# include <assert.h>
12261#endif
12262
12263#undef $ac_func
12264
12265/* Override any GCC internal prototype to avoid an error.
12266 Use char because int might match the return type of a GCC
12267 builtin and then its argument prototype would still apply. */
12268#ifdef __cplusplus
12269extern "C"
12270#endif
12271char $ac_func ();
12272/* The GNU C library defines this for functions which it implements
12273 to always fail with ENOSYS. Some functions are actually named
12274 something starting with __ and the normal name is an alias. */
12275#if defined __stub_$ac_func || defined __stub___$ac_func
12276choke me
12277#endif
12278
12279int
12280main ()
12281{
12282return $ac_func ();
12283 ;
12284 return 0;
12285}
12286_ACEOF
12287rm -f conftest.$ac_objext conftest$ac_exeext
12288if { (ac_try="$ac_link"
12289case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292esac
12293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_link") 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12302 { (case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12305esac
12306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_try") 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315esac
12316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_try") 2>&5
12318 ac_status=$?
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 eval "$as_ac_var=yes"
12322else
12323 echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 eval "$as_ac_var=no"
12327fi
12328
12329rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331fi
12332ac_res=`eval echo '${'$as_ac_var'}'`
12333 { echo "$as_me:$LINENO: result: $ac_res" >&5
12334echo "${ECHO_T}$ac_res" >&6; }
12335if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012336 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012338_ACEOF
12339 break
12340fi
12341done
12342
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012343
12344
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012345for ac_func in strrchr rindex
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012346do
12347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12348{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12350if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12352else
12353 cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12361#define $ac_func innocuous_$ac_func
12362
12363/* System header to define __stub macros and hopefully few prototypes,
12364 which can conflict with char $ac_func (); below.
12365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12366 <limits.h> exists even on freestanding compilers. */
12367
12368#ifdef __STDC__
12369# include <limits.h>
12370#else
12371# include <assert.h>
12372#endif
12373
12374#undef $ac_func
12375
12376/* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12379#ifdef __cplusplus
12380extern "C"
12381#endif
12382char $ac_func ();
12383/* The GNU C library defines this for functions which it implements
12384 to always fail with ENOSYS. Some functions are actually named
12385 something starting with __ and the normal name is an alias. */
12386#if defined __stub_$ac_func || defined __stub___$ac_func
12387choke me
12388#endif
12389
12390int
12391main ()
12392{
12393return $ac_func ();
12394 ;
12395 return 0;
12396}
12397_ACEOF
12398rm -f conftest.$ac_objext conftest$ac_exeext
12399if { (ac_try="$ac_link"
12400case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403esac
12404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413 { (case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12416esac
12417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_try") 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426esac
12427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_try") 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 eval "$as_ac_var=yes"
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 eval "$as_ac_var=no"
12438fi
12439
12440rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442fi
12443ac_res=`eval echo '${'$as_ac_var'}'`
12444 { echo "$as_me:$LINENO: result: $ac_res" >&5
12445echo "${ECHO_T}$ac_res" >&6; }
12446if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012447 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012449_ACEOF
12450 break
12451fi
12452done
12453
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012454
12455
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012456for ac_func in memcpy bcopy
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012457do
12458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12461if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463else
12464 cat >conftest.$ac_ext <<_ACEOF
12465/* confdefs.h. */
12466_ACEOF
12467cat confdefs.h >>conftest.$ac_ext
12468cat >>conftest.$ac_ext <<_ACEOF
12469/* end confdefs.h. */
12470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12472#define $ac_func innocuous_$ac_func
12473
12474/* System header to define __stub macros and hopefully few prototypes,
12475 which can conflict with char $ac_func (); below.
12476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12477 <limits.h> exists even on freestanding compilers. */
12478
12479#ifdef __STDC__
12480# include <limits.h>
12481#else
12482# include <assert.h>
12483#endif
12484
12485#undef $ac_func
12486
12487/* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490#ifdef __cplusplus
12491extern "C"
12492#endif
12493char $ac_func ();
12494/* The GNU C library defines this for functions which it implements
12495 to always fail with ENOSYS. Some functions are actually named
12496 something starting with __ and the normal name is an alias. */
12497#if defined __stub_$ac_func || defined __stub___$ac_func
12498choke me
12499#endif
12500
12501int
12502main ()
12503{
12504return $ac_func ();
12505 ;
12506 return 0;
12507}
12508_ACEOF
12509rm -f conftest.$ac_objext conftest$ac_exeext
12510if { (ac_try="$ac_link"
12511case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12514esac
12515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_link") 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12524 { (case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12527esac
12528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_try") 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest$ac_exeext'
12534 { (case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537esac
12538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_try") 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 eval "$as_ac_var=yes"
12544else
12545 echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 eval "$as_ac_var=no"
12549fi
12550
12551rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12553fi
12554ac_res=`eval echo '${'$as_ac_var'}'`
12555 { echo "$as_me:$LINENO: result: $ac_res" >&5
12556echo "${ECHO_T}$ac_res" >&6; }
12557if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012558 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012560_ACEOF
12561 break
12562fi
12563done
12564
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012565
12566
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012567for ac_func in memmove strcmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012568do
12569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12570{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12572if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574else
12575 cat >conftest.$ac_ext <<_ACEOF
12576/* confdefs.h. */
12577_ACEOF
12578cat confdefs.h >>conftest.$ac_ext
12579cat >>conftest.$ac_ext <<_ACEOF
12580/* end confdefs.h. */
12581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12583#define $ac_func innocuous_$ac_func
12584
12585/* System header to define __stub macros and hopefully few prototypes,
12586 which can conflict with char $ac_func (); below.
12587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12588 <limits.h> exists even on freestanding compilers. */
12589
12590#ifdef __STDC__
12591# include <limits.h>
12592#else
12593# include <assert.h>
12594#endif
12595
12596#undef $ac_func
12597
12598/* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12601#ifdef __cplusplus
12602extern "C"
12603#endif
12604char $ac_func ();
12605/* The GNU C library defines this for functions which it implements
12606 to always fail with ENOSYS. Some functions are actually named
12607 something starting with __ and the normal name is an alias. */
12608#if defined __stub_$ac_func || defined __stub___$ac_func
12609choke me
12610#endif
12611
12612int
12613main ()
12614{
12615return $ac_func ();
12616 ;
12617 return 0;
12618}
12619_ACEOF
12620rm -f conftest.$ac_objext conftest$ac_exeext
12621if { (ac_try="$ac_link"
12622case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12625esac
12626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_link") 2>conftest.er1
12628 ac_status=$?
12629 grep -v '^ *+' conftest.er1 >conftest.err
12630 rm -f conftest.er1
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638esac
12639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest$ac_exeext'
12645 { (case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648esac
12649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_try") 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 eval "$as_ac_var=yes"
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 eval "$as_ac_var=no"
12660fi
12661
12662rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12664fi
12665ac_res=`eval echo '${'$as_ac_var'}'`
12666 { echo "$as_me:$LINENO: result: $ac_res" >&5
12667echo "${ECHO_T}$ac_res" >&6; }
12668if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012669 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012671_ACEOF
12672
12673fi
12674done
12675
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012676
12677
12678
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012679for ac_func in closedir opendir readdir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012680do
12681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12682{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12684if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687 cat >conftest.$ac_ext <<_ACEOF
12688/* confdefs.h. */
12689_ACEOF
12690cat confdefs.h >>conftest.$ac_ext
12691cat >>conftest.$ac_ext <<_ACEOF
12692/* end confdefs.h. */
12693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12695#define $ac_func innocuous_$ac_func
12696
12697/* System header to define __stub macros and hopefully few prototypes,
12698 which can conflict with char $ac_func (); below.
12699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12700 <limits.h> exists even on freestanding compilers. */
12701
12702#ifdef __STDC__
12703# include <limits.h>
12704#else
12705# include <assert.h>
12706#endif
12707
12708#undef $ac_func
12709
12710/* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12713#ifdef __cplusplus
12714extern "C"
12715#endif
12716char $ac_func ();
12717/* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720#if defined __stub_$ac_func || defined __stub___$ac_func
12721choke me
12722#endif
12723
12724int
12725main ()
12726{
12727return $ac_func ();
12728 ;
12729 return 0;
12730}
12731_ACEOF
12732rm -f conftest.$ac_objext conftest$ac_exeext
12733if { (ac_try="$ac_link"
12734case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12737esac
12738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_link") 2>conftest.er1
12740 ac_status=$?
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12750esac
12751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; } &&
12756 { ac_try='test -s conftest$ac_exeext'
12757 { (case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12760esac
12761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_try") 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 eval "$as_ac_var=yes"
12767else
12768 echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
12771 eval "$as_ac_var=no"
12772fi
12773
12774rm -f core conftest.err conftest.$ac_objext \
12775 conftest$ac_exeext conftest.$ac_ext
12776fi
12777ac_res=`eval echo '${'$as_ac_var'}'`
12778 { echo "$as_me:$LINENO: result: $ac_res" >&5
12779echo "${ECHO_T}$ac_res" >&6; }
12780if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012781 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012783_ACEOF
12784
12785fi
12786done
12787
12788
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000012789
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012790if test "$WITH_LLVMGCCDIR" = "default" ; then
12791 LLVMGCC="llvm-gcc${EXEEXT}"
12792 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012793 LLVMGCCCOMMAND="$LLVMGCC"
12794 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012795 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12796
12797 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12798
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012799 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12800set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12803if test "${ac_cv_path_LLVMGCC+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012805else
12806 case $LLVMGCC in
12807 [\\/]* | ?:[\\/]*)
12808 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12809 ;;
12810 *)
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812for as_dir in $PATH
12813do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 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 +000012818 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012820 break 2
12821 fi
12822done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012823done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012824IFS=$as_save_IFS
12825
12826 ;;
12827esac
12828fi
12829LLVMGCC=$ac_cv_path_LLVMGCC
12830if test -n "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012831 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12832echo "${ECHO_T}$LLVMGCC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012833else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012834 { echo "$as_me:$LINENO: result: no" >&5
12835echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012836fi
12837
12838
12839 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12840set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12843if test "${ac_cv_path_LLVMGXX+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012845else
12846 case $LLVMGXX in
12847 [\\/]* | ?:[\\/]*)
12848 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12849 ;;
12850 *)
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852for as_dir in $PATH
12853do
12854 IFS=$as_save_IFS
12855 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 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 +000012858 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012860 break 2
12861 fi
12862done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012863done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012864IFS=$as_save_IFS
12865
12866 ;;
12867esac
12868fi
12869LLVMGXX=$ac_cv_path_LLVMGXX
12870if test -n "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012871 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12872echo "${ECHO_T}$LLVMGXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012873else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012874 { echo "$as_me:$LINENO: result: no" >&5
12875echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012876fi
12877
12878
12879else
Devang Pateld84ba7b2007-12-04 22:54:47 +000012880 if test -z "$LLVMGCC"; then
12881 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012882 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012883 fi
12884 if test -z "$LLVMGXX"; then
12885 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012886 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012887 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012888
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012889 LLVMGCC=$LLVMGCC
12890
12891 LLVMGXX=$LLVMGXX
12892
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012893 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12894
12895 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12896
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012897fi
12898
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012899
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000012900# Check whether --with-llvmcc was given.
12901if test "${with_llvmcc+set}" = set; then
12902 withval=$with_llvmcc;
12903else
12904 with_llvmcc=check
12905fi
12906
12907{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12908echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12909if test "$with_llvmcc" != "check"; then
12910 if (test "$with_llvmcc" != "llvm-gcc" &&
12911 test "$with_llvmcc" != "clang" &&
12912 test "$with_llvmcc" != "none"); then
12913 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12914echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12915 { (exit 1); exit 1; }; }
12916 fi
12917 WITH_LLVMCC="$with_llvmcc"
12918elif test -n "$LLVMGCC"; then
12919 WITH_LLVMCC=llvm-gcc
12920elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12921 WITH_LLVMCC=clang
12922else
12923 WITH_LLVMCC=none
12924fi
12925{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12926echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12927LLVMCC_OPTION=$WITH_LLVMCC
12928
12929
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012930{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12931echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012932
12933ICC=no
12934IXX=no
12935case $CC in
12936 icc*|icpc*)
12937 ICC=yes
12938 IXX=yes
12939 ;;
12940 *)
12941 ;;
12942esac
12943
12944if test "$GCC" != "yes" && test "$ICC" != "yes"
12945then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012946 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12947echo "$as_me: error: gcc|icc required but not found" >&2;}
12948 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012949fi
12950
12951if test "$GXX" != "yes" && test "$IXX" != "yes"
12952then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012953 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12954echo "$as_me: error: g++|icc required but not found" >&2;}
12955 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012956fi
12957
12958if test "$GCC" = "yes"
12959then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012960 cat >conftest.$ac_ext <<_ACEOF
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012961#if !defined(__GNUC__) || __GNUC__ < 3
12962#error Unsupported GCC version
12963#endif
12964
12965_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012966rm -f conftest.$ac_objext
12967if { (ac_try="$ac_compile"
12968case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971esac
12972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_compile") 2>conftest.er1
12974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12981 { (case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12984esac
12985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_try") 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest.$ac_objext'
12991 { (case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994esac
12995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_try") 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000 :
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013001else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013002 echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
13005 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13006echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13007 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013008fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013009
Chris Lattnerf0ddba82008-02-05 19:43:53 +000013010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013011fi
13012
13013if test -z "$llvm_cv_gnu_make_command"
13014then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013015 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13016echo "$as_me: error: GNU Make required but not found" >&2;}
13017 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013018fi
13019
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013020{ echo "$as_me:$LINENO: result: ok" >&5
13021echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013022
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013023{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13024echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000013025NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13026
13027NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13028
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013029{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13030echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000013031
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000013032
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013033
13034{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13035echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13036if test "${ac_cv_lib_m_sin+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013038else
13039 ac_check_lib_save_LIBS=$LIBS
13040LIBS="-lm $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013041cat >conftest.$ac_ext <<_ACEOF
13042/* confdefs.h. */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013046/* end confdefs.h. */
13047
13048/* Override any GCC internal prototype to avoid an error.
13049 Use char because int might match the return type of a GCC
13050 builtin and then its argument prototype would still apply. */
13051#ifdef __cplusplus
13052extern "C"
13053#endif
13054char sin ();
13055int
13056main ()
13057{
13058return sin ();
13059 ;
13060 return 0;
13061}
13062_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013063rm -f conftest.$ac_objext conftest$ac_exeext
13064if { (ac_try="$ac_link"
13065case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13068esac
13069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_link") 2>conftest.er1
13071 ac_status=$?
13072 grep -v '^ *+' conftest.er1 >conftest.err
13073 rm -f conftest.er1
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13078 { (case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_try") 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest$ac_exeext'
13088 { (case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13091esac
13092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_try") 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013097 ac_cv_lib_m_sin=yes
13098else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013099 echo "$as_me: failed program was:" >&5
13100sed 's/^/| /' conftest.$ac_ext >&5
13101
13102 ac_cv_lib_m_sin=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013103fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013104
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013105rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013106 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013107LIBS=$ac_check_lib_save_LIBS
13108fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013109{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13110echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13111if test $ac_cv_lib_m_sin = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013112 cat >>confdefs.h <<_ACEOF
13113#define HAVE_LIBM 1
13114_ACEOF
13115
13116 LIBS="-lm $LIBS"
13117
13118fi
13119
13120if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013121
13122{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13123echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13124if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013126else
13127 ac_check_lib_save_LIBS=$LIBS
13128LIBS="-limagehlp $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013129cat >conftest.$ac_ext <<_ACEOF
13130/* confdefs.h. */
13131_ACEOF
13132cat confdefs.h >>conftest.$ac_ext
13133cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013134/* end confdefs.h. */
13135
13136
13137int
13138main ()
13139{
13140return main ();
13141 ;
13142 return 0;
13143}
13144_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013145rm -f conftest.$ac_objext conftest$ac_exeext
13146if { (ac_try="$ac_link"
13147case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150esac
13151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_link") 2>conftest.er1
13153 ac_status=$?
13154 grep -v '^ *+' conftest.er1 >conftest.err
13155 rm -f conftest.er1
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13160 { (case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13163esac
13164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_try") 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; } &&
13169 { ac_try='test -s conftest$ac_exeext'
13170 { (case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13173esac
13174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_try") 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013179 ac_cv_lib_imagehlp_main=yes
13180else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013181 echo "$as_me: failed program was:" >&5
13182sed 's/^/| /' conftest.$ac_ext >&5
13183
13184 ac_cv_lib_imagehlp_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013185fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013186
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013187rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013188 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013189LIBS=$ac_check_lib_save_LIBS
13190fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013191{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13192echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13193if test $ac_cv_lib_imagehlp_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013194 cat >>confdefs.h <<_ACEOF
13195#define HAVE_LIBIMAGEHLP 1
13196_ACEOF
13197
13198 LIBS="-limagehlp $LIBS"
13199
13200fi
13201
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013202
13203{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13204echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13205if test "${ac_cv_lib_psapi_main+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013207else
13208 ac_check_lib_save_LIBS=$LIBS
13209LIBS="-lpsapi $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013210cat >conftest.$ac_ext <<_ACEOF
13211/* confdefs.h. */
13212_ACEOF
13213cat confdefs.h >>conftest.$ac_ext
13214cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013215/* end confdefs.h. */
13216
13217
13218int
13219main ()
13220{
13221return main ();
13222 ;
13223 return 0;
13224}
13225_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013226rm -f conftest.$ac_objext conftest$ac_exeext
13227if { (ac_try="$ac_link"
13228case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231esac
13232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_link") 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244esac
13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest$ac_exeext'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254esac
13255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013260 ac_cv_lib_psapi_main=yes
13261else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013262 echo "$as_me: failed program was:" >&5
13263sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_cv_lib_psapi_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013266fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013267
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013268rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013269 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013270LIBS=$ac_check_lib_save_LIBS
13271fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013272{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13273echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13274if test $ac_cv_lib_psapi_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013275 cat >>confdefs.h <<_ACEOF
13276#define HAVE_LIBPSAPI 1
13277_ACEOF
13278
13279 LIBS="-lpsapi $LIBS"
13280
13281fi
13282
13283fi
13284
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013285{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13286echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13287if test "${ac_cv_search_dlopen+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013289else
13290 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013291cat >conftest.$ac_ext <<_ACEOF
13292/* confdefs.h. */
13293_ACEOF
13294cat confdefs.h >>conftest.$ac_ext
13295cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013296/* end confdefs.h. */
13297
13298/* Override any GCC internal prototype to avoid an error.
13299 Use char because int might match the return type of a GCC
13300 builtin and then its argument prototype would still apply. */
13301#ifdef __cplusplus
13302extern "C"
13303#endif
13304char dlopen ();
13305int
13306main ()
13307{
13308return dlopen ();
13309 ;
13310 return 0;
13311}
13312_ACEOF
13313for ac_lib in '' dl; do
13314 if test -z "$ac_lib"; then
13315 ac_res="none required"
13316 else
13317 ac_res=-l$ac_lib
13318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13319 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013320 rm -f conftest.$ac_objext conftest$ac_exeext
13321if { (ac_try="$ac_link"
13322case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13325esac
13326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_link") 2>conftest.er1
13328 ac_status=$?
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
13334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest$ac_exeext'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348esac
13349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013354 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013355else
13356 echo "$as_me: failed program was:" >&5
13357sed 's/^/| /' conftest.$ac_ext >&5
13358
13359
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013360fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013361
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013362rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013363 conftest$ac_exeext
13364 if test "${ac_cv_search_dlopen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013365 break
13366fi
13367done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013368if test "${ac_cv_search_dlopen+set}" = set; then
13369 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013370else
13371 ac_cv_search_dlopen=no
13372fi
13373rm conftest.$ac_ext
13374LIBS=$ac_func_search_save_LIBS
13375fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013376{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13377echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013378ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013379if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13381
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013382cat >>confdefs.h <<\_ACEOF
13383#define HAVE_DLOPEN 1
13384_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013385
13386else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013387 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13388echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013389fi
13390
13391
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013392if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013393 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13394echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13395if test "${ac_cv_search_ffi_call+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky0235b622009-02-04 06:27:44 +000013397else
Nick Lewycky6c58a402009-04-13 04:26:27 +000013398 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013399cat >conftest.$ac_ext <<_ACEOF
13400/* confdefs.h. */
13401_ACEOF
13402cat confdefs.h >>conftest.$ac_ext
13403cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000013404/* end confdefs.h. */
13405
13406/* Override any GCC internal prototype to avoid an error.
13407 Use char because int might match the return type of a GCC
13408 builtin and then its argument prototype would still apply. */
13409#ifdef __cplusplus
13410extern "C"
13411#endif
13412char ffi_call ();
13413int
13414main ()
13415{
13416return ffi_call ();
13417 ;
13418 return 0;
13419}
13420_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013421for ac_lib in '' ffi; do
13422 if test -z "$ac_lib"; then
13423 ac_res="none required"
13424 else
13425 ac_res=-l$ac_lib
13426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13427 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013428 rm -f conftest.$ac_objext conftest$ac_exeext
13429if { (ac_try="$ac_link"
13430case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13433esac
13434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_link") 2>conftest.er1
13436 ac_status=$?
13437 grep -v '^ *+' conftest.er1 >conftest.err
13438 rm -f conftest.er1
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13443 { (case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13446esac
13447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_try") 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; } &&
13452 { ac_try='test -s conftest$ac_exeext'
13453 { (case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456esac
13457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_try") 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013462 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013463else
13464 echo "$as_me: failed program was:" >&5
13465sed 's/^/| /' conftest.$ac_ext >&5
13466
13467
Nick Lewycky0235b622009-02-04 06:27:44 +000013468fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013469
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013470rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013471 conftest$ac_exeext
13472 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013473 break
Nick Lewycky0235b622009-02-04 06:27:44 +000013474fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000013475done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013476if test "${ac_cv_search_ffi_call+set}" = set; then
13477 :
Nick Lewycky6c58a402009-04-13 04:26:27 +000013478else
13479 ac_cv_search_ffi_call=no
13480fi
13481rm conftest.$ac_ext
13482LIBS=$ac_func_search_save_LIBS
13483fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013484{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13485echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky6c58a402009-04-13 04:26:27 +000013486ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013487if test "$ac_res" != no; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13489
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013490cat >>confdefs.h <<\_ACEOF
13491#define HAVE_FFI_CALL 1
13492_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013493
Nick Lewycky0235b622009-02-04 06:27:44 +000013494else
Jeffrey Yasskin260af332010-02-09 23:03:44 +000013495 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13496echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13497 { (exit 1); exit 1; }; }
Nick Lewycky0235b622009-02-04 06:27:44 +000013498fi
13499
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013500fi
Nick Lewycky0235b622009-02-04 06:27:44 +000013501
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013502{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13503echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13504if test "${ac_cv_search_mallinfo+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013506else
13507 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013508cat >conftest.$ac_ext <<_ACEOF
13509/* confdefs.h. */
13510_ACEOF
13511cat confdefs.h >>conftest.$ac_ext
13512cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013513/* end confdefs.h. */
13514
13515/* Override any GCC internal prototype to avoid an error.
13516 Use char because int might match the return type of a GCC
13517 builtin and then its argument prototype would still apply. */
13518#ifdef __cplusplus
13519extern "C"
13520#endif
13521char mallinfo ();
13522int
13523main ()
13524{
13525return mallinfo ();
13526 ;
13527 return 0;
13528}
13529_ACEOF
13530for ac_lib in '' malloc; do
13531 if test -z "$ac_lib"; then
13532 ac_res="none required"
13533 else
13534 ac_res=-l$ac_lib
13535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13536 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013537 rm -f conftest.$ac_objext conftest$ac_exeext
13538if { (ac_try="$ac_link"
13539case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
13543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_link") 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555esac
13556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest$ac_exeext'
13562 { (case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565esac
13566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_try") 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013571 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013572else
13573 echo "$as_me: failed program was:" >&5
13574sed 's/^/| /' conftest.$ac_ext >&5
13575
13576
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013577fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013578
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013579rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013580 conftest$ac_exeext
13581 if test "${ac_cv_search_mallinfo+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013582 break
13583fi
13584done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013585if test "${ac_cv_search_mallinfo+set}" = set; then
13586 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013587else
13588 ac_cv_search_mallinfo=no
13589fi
13590rm conftest.$ac_ext
13591LIBS=$ac_func_search_save_LIBS
13592fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013593{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13594echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013595ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013596if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13598
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013599cat >>confdefs.h <<\_ACEOF
13600#define HAVE_MALLINFO 1
13601_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013602
13603fi
13604
13605
13606if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013607
13608{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13609echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13610if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013612else
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013613 ac_check_lib_save_LIBS=$LIBS
13614LIBS="-lpthread $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013615cat >conftest.$ac_ext <<_ACEOF
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013620/* end confdefs.h. */
13621
13622/* Override any GCC internal prototype to avoid an error.
13623 Use char because int might match the return type of a GCC
13624 builtin and then its argument prototype would still apply. */
13625#ifdef __cplusplus
13626extern "C"
13627#endif
13628char pthread_mutex_init ();
13629int
13630main ()
13631{
13632return pthread_mutex_init ();
13633 ;
13634 return 0;
13635}
13636_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013637rm -f conftest.$ac_objext conftest$ac_exeext
13638if { (ac_try="$ac_link"
13639case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642esac
13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_link") 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13655esac
13656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest$ac_exeext'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013671 ac_cv_lib_pthread_pthread_mutex_init=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013672else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013673 echo "$as_me: failed program was:" >&5
13674sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 ac_cv_lib_pthread_pthread_mutex_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013677fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013678
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013679rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013680 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013681LIBS=$ac_check_lib_save_LIBS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013682fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013683{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13684echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13685if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013686 cat >>confdefs.h <<_ACEOF
13687#define HAVE_LIBPTHREAD 1
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +000013688_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013689
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013690 LIBS="-lpthread $LIBS"
13691
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013692fi
13693
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013694 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13695echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13696if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013698else
13699 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013700cat >conftest.$ac_ext <<_ACEOF
13701/* confdefs.h. */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013705/* end confdefs.h. */
13706
13707/* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13710#ifdef __cplusplus
13711extern "C"
13712#endif
13713char pthread_mutex_lock ();
13714int
13715main ()
13716{
13717return pthread_mutex_lock ();
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722for ac_lib in '' pthread; do
13723 if test -z "$ac_lib"; then
13724 ac_res="none required"
13725 else
13726 ac_res=-l$ac_lib
13727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13728 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013729 rm -f conftest.$ac_objext conftest$ac_exeext
13730if { (ac_try="$ac_link"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_link") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744 { (case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13747esac
13748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_try") 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest$ac_exeext'
13754 { (case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757esac
13758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_try") 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013763 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013764else
13765 echo "$as_me: failed program was:" >&5
13766sed 's/^/| /' conftest.$ac_ext >&5
13767
13768
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013769fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013770
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013771rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013772 conftest$ac_exeext
13773 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013774 break
13775fi
13776done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013777if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13778 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013779else
13780 ac_cv_search_pthread_mutex_lock=no
13781fi
13782rm conftest.$ac_ext
13783LIBS=$ac_func_search_save_LIBS
13784fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013785{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13786echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013787ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013788if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13790
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013791cat >>confdefs.h <<\_ACEOF
13792#define HAVE_PTHREAD_MUTEX_LOCK 1
13793_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013794
13795fi
13796
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013797 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13798echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13799if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson23c36602009-06-16 18:20:20 +000013801else
13802 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013803cat >conftest.$ac_ext <<_ACEOF
13804/* confdefs.h. */
13805_ACEOF
13806cat confdefs.h >>conftest.$ac_ext
13807cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013808/* end confdefs.h. */
13809
13810/* Override any GCC internal prototype to avoid an error.
13811 Use char because int might match the return type of a GCC
13812 builtin and then its argument prototype would still apply. */
13813#ifdef __cplusplus
13814extern "C"
13815#endif
13816char pthread_rwlock_init ();
13817int
13818main ()
13819{
13820return pthread_rwlock_init ();
13821 ;
13822 return 0;
13823}
13824_ACEOF
13825for ac_lib in '' pthread; do
13826 if test -z "$ac_lib"; then
13827 ac_res="none required"
13828 else
13829 ac_res=-l$ac_lib
13830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13831 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013832 rm -f conftest.$ac_objext conftest$ac_exeext
13833if { (ac_try="$ac_link"
13834case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13837esac
13838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_link") 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13847 { (case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850esac
13851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_try") 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest$ac_exeext'
13857 { (case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13860esac
13861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_try") 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
Owen Anderson23c36602009-06-16 18:20:20 +000013866 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013867else
13868 echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
13871
Owen Anderson23c36602009-06-16 18:20:20 +000013872fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013873
Owen Anderson23c36602009-06-16 18:20:20 +000013874rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013875 conftest$ac_exeext
13876 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Anderson23c36602009-06-16 18:20:20 +000013877 break
13878fi
13879done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013880if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13881 :
Owen Anderson23c36602009-06-16 18:20:20 +000013882else
13883 ac_cv_search_pthread_rwlock_init=no
13884fi
13885rm conftest.$ac_ext
13886LIBS=$ac_func_search_save_LIBS
13887fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013888{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13889echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Anderson23c36602009-06-16 18:20:20 +000013890ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013891if test "$ac_res" != no; then
Owen Anderson23c36602009-06-16 18:20:20 +000013892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13893
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013894cat >>confdefs.h <<\_ACEOF
13895#define HAVE_PTHREAD_RWLOCK_INIT 1
13896_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013897
13898fi
13899
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013900 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13901echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13902if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersoncc135af2009-06-25 23:10:26 +000013904else
13905 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013906cat >conftest.$ac_ext <<_ACEOF
13907/* confdefs.h. */
13908_ACEOF
13909cat confdefs.h >>conftest.$ac_ext
13910cat >>conftest.$ac_ext <<_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000013911/* end confdefs.h. */
13912
13913/* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13916#ifdef __cplusplus
13917extern "C"
13918#endif
13919char pthread_getspecific ();
13920int
13921main ()
13922{
13923return pthread_getspecific ();
13924 ;
13925 return 0;
13926}
13927_ACEOF
13928for ac_lib in '' pthread; do
13929 if test -z "$ac_lib"; then
13930 ac_res="none required"
13931 else
13932 ac_res=-l$ac_lib
13933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13934 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013935 rm -f conftest.$ac_objext conftest$ac_exeext
13936if { (ac_try="$ac_link"
13937case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940esac
13941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_link") 2>conftest.er1
13943 ac_status=$?
13944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13950 { (case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953esac
13954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_try") 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest$ac_exeext'
13960 { (case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13963esac
13964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_try") 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013969 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013970else
13971 echo "$as_me: failed program was:" >&5
13972sed 's/^/| /' conftest.$ac_ext >&5
13973
13974
Owen Andersoncc135af2009-06-25 23:10:26 +000013975fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013976
Owen Andersoncc135af2009-06-25 23:10:26 +000013977rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013978 conftest$ac_exeext
13979 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013980 break
13981fi
13982done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013983if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13984 :
Owen Andersoncc135af2009-06-25 23:10:26 +000013985else
13986 ac_cv_search_pthread_getspecific=no
13987fi
13988rm conftest.$ac_ext
13989LIBS=$ac_func_search_save_LIBS
13990fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013991{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13992echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Andersoncc135af2009-06-25 23:10:26 +000013993ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013994if test "$ac_res" != no; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13996
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013997cat >>confdefs.h <<\_ACEOF
13998#define HAVE_PTHREAD_GETSPECIFIC 1
13999_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000014000
14001fi
14002
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014003fi
14004
14005
14006# Check whether --with-udis86 was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014007if test "${with_udis86+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014008 withval=$with_udis86;
14009 USE_UDIS86=1
14010
14011 case "$withval" in
14012 /usr/lib|yes) ;;
14013 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14014 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014015
14016{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14017echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14018if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014020else
14021 ac_check_lib_save_LIBS=$LIBS
14022LIBS="-ludis86 $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014023cat >conftest.$ac_ext <<_ACEOF
14024/* confdefs.h. */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014028/* end confdefs.h. */
14029
14030/* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14033#ifdef __cplusplus
14034extern "C"
14035#endif
14036char ud_init ();
14037int
14038main ()
14039{
14040return ud_init ();
14041 ;
14042 return 0;
14043}
14044_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014045rm -f conftest.$ac_objext conftest$ac_exeext
14046if { (ac_try="$ac_link"
14047case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050esac
14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_link") 2>conftest.er1
14053 ac_status=$?
14054 grep -v '^ *+' conftest.er1 >conftest.err
14055 rm -f conftest.er1
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_try") 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest$ac_exeext'
14070 { (case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14073esac
14074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_try") 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014079 ac_cv_lib_udis86_ud_init=yes
14080else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014081 echo "$as_me: failed program was:" >&5
14082sed 's/^/| /' conftest.$ac_ext >&5
14083
14084 ac_cv_lib_udis86_ud_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014085fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014086
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014087rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014088 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014089LIBS=$ac_check_lib_save_LIBS
14090fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014091{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14092echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14093if test $ac_cv_lib_udis86_ud_init = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014094 cat >>confdefs.h <<_ACEOF
14095#define HAVE_LIBUDIS86 1
14096_ACEOF
14097
14098 LIBS="-ludis86 $LIBS"
14099
14100else
14101
14102 echo "Error! You need to have libudis86 around."
14103 exit -1
14104
14105fi
14106
14107
14108else
14109 USE_UDIS86=0
14110
14111fi
14112
14113
14114cat >>confdefs.h <<_ACEOF
14115#define USE_UDIS86 $USE_UDIS86
14116_ACEOF
14117
14118
14119
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014120# Check whether --with-oprofile was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014121if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014122 withval=$with_oprofile;
14123 USE_OPROFILE=1
14124
14125 case "$withval" in
14126 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014127 no) llvm_cv_oppath=
14128 USE_OPROFILE=0
14129 ;;
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014130 *) llvm_cv_oppath="${withval}/lib/oprofile"
14131 CPPFLAGS="-I${withval}/include";;
14132 esac
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014133 if test -n "$llvm_cv_oppath" ; then
14134 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014135 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14136echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14137if test "${ac_cv_search_bfd_init+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014139else
14140 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014141cat >conftest.$ac_ext <<_ACEOF
14142/* confdefs.h. */
14143_ACEOF
14144cat confdefs.h >>conftest.$ac_ext
14145cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014146/* end confdefs.h. */
14147
14148/* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14151#ifdef __cplusplus
14152extern "C"
14153#endif
14154char bfd_init ();
14155int
14156main ()
14157{
14158return bfd_init ();
14159 ;
14160 return 0;
14161}
14162_ACEOF
14163for ac_lib in '' bfd; do
14164 if test -z "$ac_lib"; then
14165 ac_res="none required"
14166 else
14167 ac_res=-l$ac_lib
14168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14169 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014170 rm -f conftest.$ac_objext conftest$ac_exeext
14171if { (ac_try="$ac_link"
14172case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14175esac
14176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177 (eval "$ac_link") 2>conftest.er1
14178 ac_status=$?
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
14184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14185 { (case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14188esac
14189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_try") 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest$ac_exeext'
14195 { (case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198esac
14199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_try") 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014204 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014205else
14206 echo "$as_me: failed program was:" >&5
14207sed 's/^/| /' conftest.$ac_ext >&5
14208
14209
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014210fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014211
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014212rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014213 conftest$ac_exeext
14214 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014215 break
14216fi
14217done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014218if test "${ac_cv_search_bfd_init+set}" = set; then
14219 :
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014220else
14221 ac_cv_search_bfd_init=no
14222fi
14223rm conftest.$ac_ext
14224LIBS=$ac_func_search_save_LIBS
14225fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014226{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14227echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014228ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014229if test "$ac_res" != no; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14231
14232fi
14233
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014234 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14235echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14236if test "${ac_cv_search_op_open_agent+set}" = set; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014238else
14239 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014240cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014245/* end confdefs.h. */
14246
14247/* Override any GCC internal prototype to avoid an error.
14248 Use char because int might match the return type of a GCC
14249 builtin and then its argument prototype would still apply. */
14250#ifdef __cplusplus
14251extern "C"
14252#endif
14253char op_open_agent ();
14254int
14255main ()
14256{
14257return op_open_agent ();
14258 ;
14259 return 0;
14260}
14261_ACEOF
14262for ac_lib in '' opagent; do
14263 if test -z "$ac_lib"; then
14264 ac_res="none required"
14265 else
14266 ac_res=-l$ac_lib
14267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14268 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014269 rm -f conftest.$ac_objext conftest$ac_exeext
14270if { (ac_try="$ac_link"
14271case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274esac
14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_link") 2>conftest.er1
14277 ac_status=$?
14278 grep -v '^ *+' conftest.er1 >conftest.err
14279 rm -f conftest.er1
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } &&
14283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287esac
14288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest$ac_exeext'
14294 { (case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14297esac
14298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_try") 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; }; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014303 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014304else
14305 echo "$as_me: failed program was:" >&5
14306sed 's/^/| /' conftest.$ac_ext >&5
14307
14308
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014309fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014310
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014311rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014312 conftest$ac_exeext
14313 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014314 break
14315fi
14316done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014317if test "${ac_cv_search_op_open_agent+set}" = set; then
14318 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014319else
14320 ac_cv_search_op_open_agent=no
14321fi
14322rm conftest.$ac_ext
14323LIBS=$ac_func_search_save_LIBS
14324fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014325{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14326echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014327ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014328if test "$ac_res" != no; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14330
14331else
14332
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014333 echo "Error! You need to have libopagent around."
14334 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014335
14336fi
14337
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014338 if test "${ac_cv_header_opagent_h+set}" = set; then
14339 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14340echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14341if test "${ac_cv_header_opagent_h+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343fi
14344{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14345echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14346else
14347 # Is the header compilable?
14348{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14349echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14350cat >conftest.$ac_ext <<_ACEOF
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
14356$ac_includes_default
14357#include <opagent.h>
14358_ACEOF
14359rm -f conftest.$ac_objext
14360if { (ac_try="$ac_compile"
14361case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364esac
14365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_compile") 2>conftest.er1
14367 ac_status=$?
14368 grep -v '^ *+' conftest.er1 >conftest.err
14369 rm -f conftest.er1
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14374 { (case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14377esac
14378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_try") 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; } &&
14383 { ac_try='test -s conftest.$ac_objext'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387esac
14388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_header_compiler=yes
14394else
14395 echo "$as_me: failed program was:" >&5
14396sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014397
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014398 ac_header_compiler=no
14399fi
14400
14401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14403echo "${ECHO_T}$ac_header_compiler" >&6; }
14404
14405# Is the header present?
14406{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14407echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14408cat >conftest.$ac_ext <<_ACEOF
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
14413/* end confdefs.h. */
14414#include <opagent.h>
14415_ACEOF
14416if { (ac_try="$ac_cpp conftest.$ac_ext"
14417case "(($ac_try" in
14418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419 *) ac_try_echo=$ac_try;;
14420esac
14421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14423 ac_status=$?
14424 grep -v '^ *+' conftest.er1 >conftest.err
14425 rm -f conftest.er1
14426 cat conftest.err >&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } >/dev/null; then
14429 if test -s conftest.err; then
14430 ac_cpp_err=$ac_c_preproc_warn_flag
14431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14432 else
14433 ac_cpp_err=
14434 fi
14435else
14436 ac_cpp_err=yes
14437fi
14438if test -z "$ac_cpp_err"; then
14439 ac_header_preproc=yes
14440else
14441 echo "$as_me: failed program was:" >&5
14442sed 's/^/| /' conftest.$ac_ext >&5
14443
14444 ac_header_preproc=no
14445fi
14446
14447rm -f conftest.err conftest.$ac_ext
14448{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14449echo "${ECHO_T}$ac_header_preproc" >&6; }
14450
14451# So? What about this header?
14452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14453 yes:no: )
14454 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14455echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14457echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14458 ac_header_preproc=yes
14459 ;;
14460 no:yes:* )
14461 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14462echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14464echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14466echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14468echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14470echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14472echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14473 ( cat <<\_ASBOX
14474## ----------------------------------- ##
14475## Report this to llvmbugs@cs.uiuc.edu ##
14476## ----------------------------------- ##
14477_ASBOX
14478 ) | sed "s/^/$as_me: WARNING: /" >&2
14479 ;;
14480esac
14481{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14482echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14483if test "${ac_cv_header_opagent_h+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485else
14486 ac_cv_header_opagent_h=$ac_header_preproc
14487fi
14488{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14489echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14490
14491fi
14492if test $ac_cv_header_opagent_h = yes; then
14493 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014494else
14495
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014496 echo "Error! You need to have opagent.h around."
14497 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014498
14499fi
14500
14501
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014502 fi
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014503
14504else
14505
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014506 USE_OPROFILE=0
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014507
14508
14509fi
14510
14511
14512cat >>confdefs.h <<_ACEOF
14513#define USE_OPROFILE $USE_OPROFILE
14514_ACEOF
14515
14516
14517
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014518
14519
14520
14521
14522
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014523ac_header_dirent=no
14524for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014525 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14526{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14527echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014530else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014531 cat >conftest.$ac_ext <<_ACEOF
14532/* confdefs.h. */
14533_ACEOF
14534cat confdefs.h >>conftest.$ac_ext
14535cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014536/* end confdefs.h. */
14537#include <sys/types.h>
14538#include <$ac_hdr>
14539
14540int
14541main ()
14542{
14543if ((DIR *) 0)
14544return 0;
14545 ;
14546 return 0;
14547}
14548_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014549rm -f conftest.$ac_objext
14550if { (ac_try="$ac_compile"
14551case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554esac
14555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_compile") 2>conftest.er1
14557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14564 { (case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567esac
14568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_try") 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
14574 { (case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577esac
14578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_try") 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014583 eval "$as_ac_Header=yes"
14584else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014585 echo "$as_me: failed program was:" >&5
14586sed 's/^/| /' conftest.$ac_ext >&5
14587
14588 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014589fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014590
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014593ac_res=`eval echo '${'$as_ac_Header'}'`
14594 { echo "$as_me:$LINENO: result: $ac_res" >&5
14595echo "${ECHO_T}$ac_res" >&6; }
14596if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014597 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014598#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014599_ACEOF
14600
14601ac_header_dirent=$ac_hdr; break
14602fi
14603
14604done
14605# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14606if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014607 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14608echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14609if test "${ac_cv_search_opendir+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014611else
14612 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014613cat >conftest.$ac_ext <<_ACEOF
14614/* confdefs.h. */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014618/* end confdefs.h. */
14619
14620/* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14623#ifdef __cplusplus
14624extern "C"
14625#endif
14626char opendir ();
14627int
14628main ()
14629{
14630return opendir ();
14631 ;
14632 return 0;
14633}
14634_ACEOF
14635for ac_lib in '' dir; do
14636 if test -z "$ac_lib"; then
14637 ac_res="none required"
14638 else
14639 ac_res=-l$ac_lib
14640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14641 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014642 rm -f conftest.$ac_objext conftest$ac_exeext
14643if { (ac_try="$ac_link"
14644case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657 { (case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14660esac
14661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_try") 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest$ac_exeext'
14667 { (case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14670esac
14671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_try") 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014676 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014677else
14678 echo "$as_me: failed program was:" >&5
14679sed 's/^/| /' conftest.$ac_ext >&5
14680
14681
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014682fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014683
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014684rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014685 conftest$ac_exeext
14686 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014687 break
14688fi
14689done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014690if test "${ac_cv_search_opendir+set}" = set; then
14691 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014692else
14693 ac_cv_search_opendir=no
14694fi
14695rm conftest.$ac_ext
14696LIBS=$ac_func_search_save_LIBS
14697fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014698{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14699echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014700ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014701if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14703
14704fi
14705
14706else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014707 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14708echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14709if test "${ac_cv_search_opendir+set}" = set; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014711else
14712 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014713cat >conftest.$ac_ext <<_ACEOF
14714/* confdefs.h. */
14715_ACEOF
14716cat confdefs.h >>conftest.$ac_ext
14717cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014718/* end confdefs.h. */
14719
14720/* Override any GCC internal prototype to avoid an error.
14721 Use char because int might match the return type of a GCC
14722 builtin and then its argument prototype would still apply. */
14723#ifdef __cplusplus
14724extern "C"
14725#endif
14726char opendir ();
14727int
14728main ()
14729{
14730return opendir ();
14731 ;
14732 return 0;
14733}
14734_ACEOF
14735for ac_lib in '' x; do
14736 if test -z "$ac_lib"; then
14737 ac_res="none required"
14738 else
14739 ac_res=-l$ac_lib
14740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14741 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014742 rm -f conftest.$ac_objext conftest$ac_exeext
14743if { (ac_try="$ac_link"
14744case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14747esac
14748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749 (eval "$ac_link") 2>conftest.er1
14750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14757 { (case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760esac
14761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; } &&
14766 { ac_try='test -s conftest$ac_exeext'
14767 { (case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14770esac
14771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_try") 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014776 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014777else
14778 echo "$as_me: failed program was:" >&5
14779sed 's/^/| /' conftest.$ac_ext >&5
14780
14781
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014782fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014783
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014784rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014785 conftest$ac_exeext
14786 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014787 break
14788fi
14789done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014790if test "${ac_cv_search_opendir+set}" = set; then
14791 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014792else
14793 ac_cv_search_opendir=no
14794fi
14795rm conftest.$ac_ext
14796LIBS=$ac_func_search_save_LIBS
14797fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014798{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14799echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014800ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014801if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14803
14804fi
14805
14806fi
14807
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014808{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14809echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14810if test "${ac_cv_header_mmap_anon+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014812else
14813 ac_ext=c
14814ac_cpp='$CPP $CPPFLAGS'
14815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14817ac_compiler_gnu=$ac_cv_c_compiler_gnu
14818
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014819 cat >conftest.$ac_ext <<_ACEOF
14820/* confdefs.h. */
14821_ACEOF
14822cat confdefs.h >>conftest.$ac_ext
14823cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014824/* end confdefs.h. */
14825#include <sys/mman.h>
14826#include <unistd.h>
14827#include <fcntl.h>
14828int
14829main ()
14830{
14831mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14832 ;
14833 return 0;
14834}
14835_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014836rm -f conftest.$ac_objext
14837if { (ac_try="$ac_compile"
14838case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14841esac
14842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_compile") 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14851 { (case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854esac
14855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_try") 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; } &&
14860 { ac_try='test -s conftest.$ac_objext'
14861 { (case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864esac
14865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_try") 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014870 ac_cv_header_mmap_anon=yes
14871else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014872 echo "$as_me: failed program was:" >&5
14873sed 's/^/| /' conftest.$ac_ext >&5
14874
14875 ac_cv_header_mmap_anon=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014876fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014877
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879 ac_ext=c
14880ac_cpp='$CPP $CPPFLAGS'
14881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14883ac_compiler_gnu=$ac_cv_c_compiler_gnu
14884
14885
14886fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014887{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14888echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014889if test "$ac_cv_header_mmap_anon" = yes; then
14890
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014891cat >>confdefs.h <<\_ACEOF
14892#define HAVE_MMAP_ANONYMOUS 1
14893_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014894
14895fi
14896
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014897{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14898echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14899if test "${ac_cv_header_stat_broken+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014901else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014902 cat >conftest.$ac_ext <<_ACEOF
14903/* confdefs.h. */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014907/* end confdefs.h. */
14908#include <sys/types.h>
14909#include <sys/stat.h>
14910
14911#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014912# if S_ISBLK (S_IFDIR)
14913You lose.
14914# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014915#endif
14916
14917#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014918# if S_ISBLK (S_IFCHR)
14919You lose.
14920# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014921#endif
14922
14923#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014924# if S_ISLNK (S_IFREG)
14925You lose.
14926# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014927#endif
14928
14929#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014930# if S_ISSOCK (S_IFREG)
14931You lose.
14932# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014933#endif
14934
14935_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14937 $EGREP "You lose" >/dev/null 2>&1; then
Edwin Törökc27310c2010-01-26 08:50:50 +000014938 ac_cv_header_stat_broken=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014939else
14940 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000014941fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014942rm -f conftest*
14943
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014944fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014945{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14946echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014947if test $ac_cv_header_stat_broken = yes; then
14948
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014949cat >>confdefs.h <<\_ACEOF
14950#define STAT_MACROS_BROKEN 1
14951_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014952
14953fi
14954
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014955{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14956echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14957if test "${ac_cv_header_stdc+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014959else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014960 cat >conftest.$ac_ext <<_ACEOF
14961/* confdefs.h. */
14962_ACEOF
14963cat confdefs.h >>conftest.$ac_ext
14964cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014965/* end confdefs.h. */
14966#include <stdlib.h>
14967#include <stdarg.h>
14968#include <string.h>
14969#include <float.h>
14970
14971int
14972main ()
14973{
14974
14975 ;
14976 return 0;
14977}
14978_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014979rm -f conftest.$ac_objext
14980if { (ac_try="$ac_compile"
14981case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984esac
14985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_compile") 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14994 { (case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14997esac
14998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_try") 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } &&
15003 { ac_try='test -s conftest.$ac_objext'
15004 { (case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15007esac
15008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_try") 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015013 ac_cv_header_stdc=yes
15014else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015015 echo "$as_me: failed program was:" >&5
15016sed 's/^/| /' conftest.$ac_ext >&5
15017
15018 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015019fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015020
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022
15023if test $ac_cv_header_stdc = yes; then
15024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015025 cat >conftest.$ac_ext <<_ACEOF
15026/* confdefs.h. */
15027_ACEOF
15028cat confdefs.h >>conftest.$ac_ext
15029cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015030/* end confdefs.h. */
15031#include <string.h>
15032
15033_ACEOF
15034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015035 $EGREP "memchr" >/dev/null 2>&1; then
15036 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015037else
15038 ac_cv_header_stdc=no
15039fi
15040rm -f conftest*
15041
15042fi
15043
15044if test $ac_cv_header_stdc = yes; then
15045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015046 cat >conftest.$ac_ext <<_ACEOF
15047/* confdefs.h. */
15048_ACEOF
15049cat confdefs.h >>conftest.$ac_ext
15050cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015051/* end confdefs.h. */
15052#include <stdlib.h>
15053
15054_ACEOF
15055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015056 $EGREP "free" >/dev/null 2>&1; then
15057 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015058else
15059 ac_cv_header_stdc=no
15060fi
15061rm -f conftest*
15062
15063fi
15064
15065if test $ac_cv_header_stdc = yes; then
15066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015067 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015068 :
15069else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015070 cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015075/* end confdefs.h. */
15076#include <ctype.h>
15077#include <stdlib.h>
15078#if ((' ' & 0x0FF) == 0x020)
15079# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15080# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15081#else
15082# define ISLOWER(c) \
15083 (('a' <= (c) && (c) <= 'i') \
15084 || ('j' <= (c) && (c) <= 'r') \
15085 || ('s' <= (c) && (c) <= 'z'))
15086# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15087#endif
15088
15089#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15090int
15091main ()
15092{
15093 int i;
15094 for (i = 0; i < 256; i++)
15095 if (XOR (islower (i), ISLOWER (i))
15096 || toupper (i) != TOUPPER (i))
15097 return 2;
15098 return 0;
15099}
15100_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015101rm -f conftest$ac_exeext
15102if { (ac_try="$ac_link"
15103case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106esac
15107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_link") 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15112 { (case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115esac
15116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_try") 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015122else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015123 echo "$as_me: program exited with status $ac_status" >&5
15124echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
15126
15127( exit $ac_status )
15128ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015129fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015130rm -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 +000015131fi
15132
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015133
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015134fi
15135fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015136{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15137echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015138if test $ac_cv_header_stdc = yes; then
15139
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015140cat >>confdefs.h <<\_ACEOF
15141#define STDC_HEADERS 1
15142_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015143
15144fi
15145
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015146{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15147echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15148if test "${ac_cv_header_sys_wait_h+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015150else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015151 cat >conftest.$ac_ext <<_ACEOF
15152/* confdefs.h. */
15153_ACEOF
15154cat confdefs.h >>conftest.$ac_ext
15155cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015156/* end confdefs.h. */
15157#include <sys/types.h>
15158#include <sys/wait.h>
15159#ifndef WEXITSTATUS
15160# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15161#endif
15162#ifndef WIFEXITED
15163# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15164#endif
15165
15166int
15167main ()
15168{
15169 int s;
15170 wait (&s);
15171 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15172 ;
15173 return 0;
15174}
15175_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015176rm -f conftest.$ac_objext
15177if { (ac_try="$ac_compile"
15178case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15181esac
15182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_compile") 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15194esac
15195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015210 ac_cv_header_sys_wait_h=yes
15211else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015212 echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 ac_cv_header_sys_wait_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015216fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015217
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015220{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15221echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015222if test $ac_cv_header_sys_wait_h = yes; then
15223
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015224cat >>confdefs.h <<\_ACEOF
15225#define HAVE_SYS_WAIT_H 1
15226_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015227
15228fi
15229
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015230{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15231echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15232if test "${ac_cv_header_time+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015234else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015235 cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015240/* end confdefs.h. */
15241#include <sys/types.h>
15242#include <sys/time.h>
15243#include <time.h>
15244
15245int
15246main ()
15247{
15248if ((struct tm *) 0)
15249return 0;
15250 ;
15251 return 0;
15252}
15253_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015254rm -f conftest.$ac_objext
15255if { (ac_try="$ac_compile"
15256case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15259esac
15260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_compile") 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15269 { (case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272esac
15273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_try") 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
15279 { (case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15282esac
15283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_try") 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015288 ac_cv_header_time=yes
15289else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015290 echo "$as_me: failed program was:" >&5
15291sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 ac_cv_header_time=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015294fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015295
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015298{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15299echo "${ECHO_T}$ac_cv_header_time" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015300if test $ac_cv_header_time = yes; then
15301
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015302cat >>confdefs.h <<\_ACEOF
15303#define TIME_WITH_SYS_TIME 1
15304_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015305
15306fi
15307
15308
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015309
15310
15311
15312
15313
15314
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015315for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015316do
15317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15323fi
15324ac_res=`eval echo '${'$as_ac_Header'}'`
15325 { echo "$as_me:$LINENO: result: $ac_res" >&5
15326echo "${ECHO_T}$ac_res" >&6; }
15327else
15328 # Is the header compilable?
15329{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15331cat >conftest.$ac_ext <<_ACEOF
15332/* confdefs.h. */
15333_ACEOF
15334cat confdefs.h >>conftest.$ac_ext
15335cat >>conftest.$ac_ext <<_ACEOF
15336/* end confdefs.h. */
15337$ac_includes_default
15338#include <$ac_header>
15339_ACEOF
15340rm -f conftest.$ac_objext
15341if { (ac_try="$ac_compile"
15342case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_compile") 2>conftest.er1
15348 ac_status=$?
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } &&
15354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15355 { (case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358esac
15359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_try") 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest.$ac_objext'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368esac
15369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 ac_header_compiler=yes
15375else
15376 echo "$as_me: failed program was:" >&5
15377sed 's/^/| /' conftest.$ac_ext >&5
15378
15379 ac_header_compiler=no
15380fi
15381
15382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15384echo "${ECHO_T}$ac_header_compiler" >&6; }
15385
15386# Is the header present?
15387{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15389cat >conftest.$ac_ext <<_ACEOF
15390/* confdefs.h. */
15391_ACEOF
15392cat confdefs.h >>conftest.$ac_ext
15393cat >>conftest.$ac_ext <<_ACEOF
15394/* end confdefs.h. */
15395#include <$ac_header>
15396_ACEOF
15397if { (ac_try="$ac_cpp conftest.$ac_ext"
15398case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401esac
15402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15404 ac_status=$?
15405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } >/dev/null; then
15410 if test -s conftest.err; then
15411 ac_cpp_err=$ac_c_preproc_warn_flag
15412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15413 else
15414 ac_cpp_err=
15415 fi
15416else
15417 ac_cpp_err=yes
15418fi
15419if test -z "$ac_cpp_err"; then
15420 ac_header_preproc=yes
15421else
15422 echo "$as_me: failed program was:" >&5
15423sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 ac_header_preproc=no
15426fi
15427
15428rm -f conftest.err conftest.$ac_ext
15429{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15430echo "${ECHO_T}$ac_header_preproc" >&6; }
15431
15432# So? What about this header?
15433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15434 yes:no: )
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15439 ac_header_preproc=yes
15440 ;;
15441 no:yes:* )
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15454 ( cat <<\_ASBOX
15455## ----------------------------------- ##
15456## Report this to llvmbugs@cs.uiuc.edu ##
15457## ----------------------------------- ##
15458_ASBOX
15459 ) | sed "s/^/$as_me: WARNING: /" >&2
15460 ;;
15461esac
15462{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466else
15467 eval "$as_ac_Header=\$ac_header_preproc"
15468fi
15469ac_res=`eval echo '${'$as_ac_Header'}'`
15470 { echo "$as_me:$LINENO: result: $ac_res" >&5
15471echo "${ECHO_T}$ac_res" >&6; }
15472
15473fi
15474if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015475 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015477_ACEOF
15478
15479fi
15480
15481done
15482
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015483
15484
15485
15486
15487
15488
Douglas Gregor6230bee2009-05-18 17:21:34 +000015489for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015490do
15491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15497fi
15498ac_res=`eval echo '${'$as_ac_Header'}'`
15499 { echo "$as_me:$LINENO: result: $ac_res" >&5
15500echo "${ECHO_T}$ac_res" >&6; }
15501else
15502 # Is the header compilable?
15503{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15505cat >conftest.$ac_ext <<_ACEOF
15506/* confdefs.h. */
15507_ACEOF
15508cat confdefs.h >>conftest.$ac_ext
15509cat >>conftest.$ac_ext <<_ACEOF
15510/* end confdefs.h. */
15511$ac_includes_default
15512#include <$ac_header>
15513_ACEOF
15514rm -f conftest.$ac_objext
15515if { (ac_try="$ac_compile"
15516case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15519esac
15520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521 (eval "$ac_compile") 2>conftest.er1
15522 ac_status=$?
15523 grep -v '^ *+' conftest.er1 >conftest.err
15524 rm -f conftest.er1
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15529 { (case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15532esac
15533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_try") 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
15539 { (case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15542esac
15543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_try") 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_header_compiler=yes
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 ac_header_compiler=no
15554fi
15555
15556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15558echo "${ECHO_T}$ac_header_compiler" >&6; }
15559
15560# Is the header present?
15561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15563cat >conftest.$ac_ext <<_ACEOF
15564/* confdefs.h. */
15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h. */
15569#include <$ac_header>
15570_ACEOF
15571if { (ac_try="$ac_cpp conftest.$ac_ext"
15572case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575esac
15576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } >/dev/null; then
15584 if test -s conftest.err; then
15585 ac_cpp_err=$ac_c_preproc_warn_flag
15586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15587 else
15588 ac_cpp_err=
15589 fi
15590else
15591 ac_cpp_err=yes
15592fi
15593if test -z "$ac_cpp_err"; then
15594 ac_header_preproc=yes
15595else
15596 echo "$as_me: failed program was:" >&5
15597sed 's/^/| /' conftest.$ac_ext >&5
15598
15599 ac_header_preproc=no
15600fi
15601
15602rm -f conftest.err conftest.$ac_ext
15603{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15604echo "${ECHO_T}$ac_header_preproc" >&6; }
15605
15606# So? What about this header?
15607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15608 yes:no: )
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15613 ac_header_preproc=yes
15614 ;;
15615 no:yes:* )
15616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15628 ( cat <<\_ASBOX
15629## ----------------------------------- ##
15630## Report this to llvmbugs@cs.uiuc.edu ##
15631## ----------------------------------- ##
15632_ASBOX
15633 ) | sed "s/^/$as_me: WARNING: /" >&2
15634 ;;
15635esac
15636{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15640else
15641 eval "$as_ac_Header=\$ac_header_preproc"
15642fi
15643ac_res=`eval echo '${'$as_ac_Header'}'`
15644 { echo "$as_me:$LINENO: result: $ac_res" >&5
15645echo "${ECHO_T}$ac_res" >&6; }
15646
15647fi
15648if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015649 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015651_ACEOF
15652
15653fi
15654
15655done
15656
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015657
15658
Douglas Gregor6230bee2009-05-18 17:21:34 +000015659for ac_header in utime.h windows.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015660do
15661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15666 echo $ECHO_N "(cached) $ECHO_C" >&6
15667fi
15668ac_res=`eval echo '${'$as_ac_Header'}'`
15669 { echo "$as_me:$LINENO: result: $ac_res" >&5
15670echo "${ECHO_T}$ac_res" >&6; }
15671else
15672 # Is the header compilable?
15673{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15675cat >conftest.$ac_ext <<_ACEOF
15676/* confdefs.h. */
15677_ACEOF
15678cat confdefs.h >>conftest.$ac_ext
15679cat >>conftest.$ac_ext <<_ACEOF
15680/* end confdefs.h. */
15681$ac_includes_default
15682#include <$ac_header>
15683_ACEOF
15684rm -f conftest.$ac_objext
15685if { (ac_try="$ac_compile"
15686case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15689esac
15690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_compile") 2>conftest.er1
15692 ac_status=$?
15693 grep -v '^ *+' conftest.er1 >conftest.err
15694 rm -f conftest.er1
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
15698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15699 { (case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15702esac
15703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_try") 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
15709 { (case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712esac
15713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_try") 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 ac_header_compiler=yes
15719else
15720 echo "$as_me: failed program was:" >&5
15721sed 's/^/| /' conftest.$ac_ext >&5
15722
15723 ac_header_compiler=no
15724fi
15725
15726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15728echo "${ECHO_T}$ac_header_compiler" >&6; }
15729
15730# Is the header present?
15731{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15733cat >conftest.$ac_ext <<_ACEOF
15734/* confdefs.h. */
15735_ACEOF
15736cat confdefs.h >>conftest.$ac_ext
15737cat >>conftest.$ac_ext <<_ACEOF
15738/* end confdefs.h. */
15739#include <$ac_header>
15740_ACEOF
15741if { (ac_try="$ac_cpp conftest.$ac_ext"
15742case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745esac
15746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } >/dev/null; then
15754 if test -s conftest.err; then
15755 ac_cpp_err=$ac_c_preproc_warn_flag
15756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15757 else
15758 ac_cpp_err=
15759 fi
15760else
15761 ac_cpp_err=yes
15762fi
15763if test -z "$ac_cpp_err"; then
15764 ac_header_preproc=yes
15765else
15766 echo "$as_me: failed program was:" >&5
15767sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 ac_header_preproc=no
15770fi
15771
15772rm -f conftest.err conftest.$ac_ext
15773{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15774echo "${ECHO_T}$ac_header_preproc" >&6; }
15775
15776# So? What about this header?
15777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15778 yes:no: )
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15782echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15783 ac_header_preproc=yes
15784 ;;
15785 no:yes:* )
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15791echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15793echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15797echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15798 ( cat <<\_ASBOX
15799## ----------------------------------- ##
15800## Report this to llvmbugs@cs.uiuc.edu ##
15801## ----------------------------------- ##
15802_ASBOX
15803 ) | sed "s/^/$as_me: WARNING: /" >&2
15804 ;;
15805esac
15806{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810else
15811 eval "$as_ac_Header=\$ac_header_preproc"
15812fi
15813ac_res=`eval echo '${'$as_ac_Header'}'`
15814 { echo "$as_me:$LINENO: result: $ac_res" >&5
15815echo "${ECHO_T}$ac_res" >&6; }
15816
15817fi
15818if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000015819 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000015821_ACEOF
15822
15823fi
15824
15825done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015826
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015827
15828
15829
15830
Reid Spencer096a8142007-08-17 05:45:26 +000015831for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015832do
15833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839fi
15840ac_res=`eval echo '${'$as_ac_Header'}'`
15841 { echo "$as_me:$LINENO: result: $ac_res" >&5
15842echo "${ECHO_T}$ac_res" >&6; }
15843else
15844 # Is the header compilable?
15845{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15847cat >conftest.$ac_ext <<_ACEOF
15848/* confdefs.h. */
15849_ACEOF
15850cat confdefs.h >>conftest.$ac_ext
15851cat >>conftest.$ac_ext <<_ACEOF
15852/* end confdefs.h. */
15853$ac_includes_default
15854#include <$ac_header>
15855_ACEOF
15856rm -f conftest.$ac_objext
15857if { (ac_try="$ac_compile"
15858case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15861esac
15862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_compile") 2>conftest.er1
15864 ac_status=$?
15865 grep -v '^ *+' conftest.er1 >conftest.err
15866 rm -f conftest.er1
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15871 { (case "(($ac_try" in
15872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873 *) ac_try_echo=$ac_try;;
15874esac
15875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876 (eval "$ac_try") 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest.$ac_objext'
15881 { (case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15884esac
15885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_try") 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_header_compiler=yes
15891else
15892 echo "$as_me: failed program was:" >&5
15893sed 's/^/| /' conftest.$ac_ext >&5
15894
15895 ac_header_compiler=no
15896fi
15897
15898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15900echo "${ECHO_T}$ac_header_compiler" >&6; }
15901
15902# Is the header present?
15903{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15905cat >conftest.$ac_ext <<_ACEOF
15906/* confdefs.h. */
15907_ACEOF
15908cat confdefs.h >>conftest.$ac_ext
15909cat >>conftest.$ac_ext <<_ACEOF
15910/* end confdefs.h. */
15911#include <$ac_header>
15912_ACEOF
15913if { (ac_try="$ac_cpp conftest.$ac_ext"
15914case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15917esac
15918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15920 ac_status=$?
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } >/dev/null; then
15926 if test -s conftest.err; then
15927 ac_cpp_err=$ac_c_preproc_warn_flag
15928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15929 else
15930 ac_cpp_err=
15931 fi
15932else
15933 ac_cpp_err=yes
15934fi
15935if test -z "$ac_cpp_err"; then
15936 ac_header_preproc=yes
15937else
15938 echo "$as_me: failed program was:" >&5
15939sed 's/^/| /' conftest.$ac_ext >&5
15940
15941 ac_header_preproc=no
15942fi
15943
15944rm -f conftest.err conftest.$ac_ext
15945{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946echo "${ECHO_T}$ac_header_preproc" >&6; }
15947
15948# So? What about this header?
15949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15950 yes:no: )
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15954echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15955 ac_header_preproc=yes
15956 ;;
15957 no:yes:* )
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15959echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15961echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15963echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15965echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15969echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15970 ( cat <<\_ASBOX
15971## ----------------------------------- ##
15972## Report this to llvmbugs@cs.uiuc.edu ##
15973## ----------------------------------- ##
15974_ASBOX
15975 ) | sed "s/^/$as_me: WARNING: /" >&2
15976 ;;
15977esac
15978{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982else
15983 eval "$as_ac_Header=\$ac_header_preproc"
15984fi
15985ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987echo "${ECHO_T}$ac_res" >&6; }
15988
15989fi
15990if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015991 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015993_ACEOF
15994
15995fi
15996
15997done
15998
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015999
16000
16001
16002
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000016003for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016004do
16005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16011fi
16012ac_res=`eval echo '${'$as_ac_Header'}'`
16013 { echo "$as_me:$LINENO: result: $ac_res" >&5
16014echo "${ECHO_T}$ac_res" >&6; }
16015else
16016 # Is the header compilable?
16017{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16019cat >conftest.$ac_ext <<_ACEOF
16020/* confdefs.h. */
16021_ACEOF
16022cat confdefs.h >>conftest.$ac_ext
16023cat >>conftest.$ac_ext <<_ACEOF
16024/* end confdefs.h. */
16025$ac_includes_default
16026#include <$ac_header>
16027_ACEOF
16028rm -f conftest.$ac_objext
16029if { (ac_try="$ac_compile"
16030case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033esac
16034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_compile") 2>conftest.er1
16036 ac_status=$?
16037 grep -v '^ *+' conftest.er1 >conftest.err
16038 rm -f conftest.er1
16039 cat conftest.err >&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16043 { (case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16046esac
16047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_try") 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
16052 { ac_try='test -s conftest.$ac_objext'
16053 { (case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16056esac
16057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16058 (eval "$ac_try") 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_header_compiler=yes
16063else
16064 echo "$as_me: failed program was:" >&5
16065sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ac_header_compiler=no
16068fi
16069
16070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16071{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16072echo "${ECHO_T}$ac_header_compiler" >&6; }
16073
16074# Is the header present?
16075{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16077cat >conftest.$ac_ext <<_ACEOF
16078/* confdefs.h. */
16079_ACEOF
16080cat confdefs.h >>conftest.$ac_ext
16081cat >>conftest.$ac_ext <<_ACEOF
16082/* end confdefs.h. */
16083#include <$ac_header>
16084_ACEOF
16085if { (ac_try="$ac_cpp conftest.$ac_ext"
16086case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16089esac
16090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } >/dev/null; then
16098 if test -s conftest.err; then
16099 ac_cpp_err=$ac_c_preproc_warn_flag
16100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16101 else
16102 ac_cpp_err=
16103 fi
16104else
16105 ac_cpp_err=yes
16106fi
16107if test -z "$ac_cpp_err"; then
16108 ac_header_preproc=yes
16109else
16110 echo "$as_me: failed program was:" >&5
16111sed 's/^/| /' conftest.$ac_ext >&5
16112
16113 ac_header_preproc=no
16114fi
16115
16116rm -f conftest.err conftest.$ac_ext
16117{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16118echo "${ECHO_T}$ac_header_preproc" >&6; }
16119
16120# So? What about this header?
16121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16122 yes:no: )
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16127 ac_header_preproc=yes
16128 ;;
16129 no:yes:* )
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16142 ( cat <<\_ASBOX
16143## ----------------------------------- ##
16144## Report this to llvmbugs@cs.uiuc.edu ##
16145## ----------------------------------- ##
16146_ASBOX
16147 ) | sed "s/^/$as_me: WARNING: /" >&2
16148 ;;
16149esac
16150{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16154else
16155 eval "$as_ac_Header=\$ac_header_preproc"
16156fi
16157ac_res=`eval echo '${'$as_ac_Header'}'`
16158 { echo "$as_me:$LINENO: result: $ac_res" >&5
16159echo "${ECHO_T}$ac_res" >&6; }
16160
16161fi
16162if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016163 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016165_ACEOF
16166
16167fi
16168
16169done
16170
16171if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016172
16173for ac_header in pthread.h
16174do
16175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181fi
16182ac_res=`eval echo '${'$as_ac_Header'}'`
16183 { echo "$as_me:$LINENO: result: $ac_res" >&5
16184echo "${ECHO_T}$ac_res" >&6; }
16185else
16186 # Is the header compilable?
16187{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16189cat >conftest.$ac_ext <<_ACEOF
16190/* confdefs.h. */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h. */
16195$ac_includes_default
16196#include <$ac_header>
16197_ACEOF
16198rm -f conftest.$ac_objext
16199if { (ac_try="$ac_compile"
16200case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203esac
16204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
16212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16213 { (case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216esac
16217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_try") 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
16223 { (case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226esac
16227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_try") 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16232 ac_header_compiler=yes
16233else
16234 echo "$as_me: failed program was:" >&5
16235sed 's/^/| /' conftest.$ac_ext >&5
16236
16237 ac_header_compiler=no
16238fi
16239
16240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16242echo "${ECHO_T}$ac_header_compiler" >&6; }
16243
16244# Is the header present?
16245{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16246echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16247cat >conftest.$ac_ext <<_ACEOF
16248/* confdefs.h. */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h. */
16253#include <$ac_header>
16254_ACEOF
16255if { (ac_try="$ac_cpp conftest.$ac_ext"
16256case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259esac
16260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } >/dev/null; then
16268 if test -s conftest.err; then
16269 ac_cpp_err=$ac_c_preproc_warn_flag
16270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16271 else
16272 ac_cpp_err=
16273 fi
16274else
16275 ac_cpp_err=yes
16276fi
16277if test -z "$ac_cpp_err"; then
16278 ac_header_preproc=yes
16279else
16280 echo "$as_me: failed program was:" >&5
16281sed 's/^/| /' conftest.$ac_ext >&5
16282
16283 ac_header_preproc=no
16284fi
16285
16286rm -f conftest.err conftest.$ac_ext
16287{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16288echo "${ECHO_T}$ac_header_preproc" >&6; }
16289
16290# So? What about this header?
16291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16292 yes:no: )
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16297 ac_header_preproc=yes
16298 ;;
16299 no:yes:* )
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16303echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16307echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16312 ( cat <<\_ASBOX
16313## ----------------------------------- ##
16314## Report this to llvmbugs@cs.uiuc.edu ##
16315## ----------------------------------- ##
16316_ASBOX
16317 ) | sed "s/^/$as_me: WARNING: /" >&2
16318 ;;
16319esac
16320{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16324else
16325 eval "$as_ac_Header=\$ac_header_preproc"
16326fi
16327ac_res=`eval echo '${'$as_ac_Header'}'`
16328 { echo "$as_me:$LINENO: result: $ac_res" >&5
16329echo "${ECHO_T}$ac_res" >&6; }
16330
16331fi
16332if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000016333 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016334#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000016335_ACEOF
16336 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016337
16338else
16339 HAVE_PTHREAD=0
16340
16341fi
16342
Reid Spencer096a8142007-08-17 05:45:26 +000016343done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016344
16345else
16346 HAVE_PTHREAD=0
16347
16348fi
16349
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016350if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016351
16352
16353for ac_header in ffi.h ffi/ffi.h
16354do
16355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361fi
16362ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364echo "${ECHO_T}$ac_res" >&6; }
16365else
16366 # Is the header compilable?
16367{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
16375$ac_includes_default
16376#include <$ac_header>
16377_ACEOF
16378rm -f conftest.$ac_objext
16379if { (ac_try="$ac_compile"
16380case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16383esac
16384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396esac
16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16406esac
16407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_header_compiler=yes
16413else
16414 echo "$as_me: failed program was:" >&5
16415sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 ac_header_compiler=no
16418fi
16419
16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16422echo "${ECHO_T}$ac_header_compiler" >&6; }
16423
16424# Is the header present?
16425{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16427cat >conftest.$ac_ext <<_ACEOF
16428/* confdefs.h. */
16429_ACEOF
16430cat confdefs.h >>conftest.$ac_ext
16431cat >>conftest.$ac_ext <<_ACEOF
16432/* end confdefs.h. */
16433#include <$ac_header>
16434_ACEOF
16435if { (ac_try="$ac_cpp conftest.$ac_ext"
16436case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16439esac
16440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16442 ac_status=$?
16443 grep -v '^ *+' conftest.er1 >conftest.err
16444 rm -f conftest.er1
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } >/dev/null; then
16448 if test -s conftest.err; then
16449 ac_cpp_err=$ac_c_preproc_warn_flag
16450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16451 else
16452 ac_cpp_err=
16453 fi
16454else
16455 ac_cpp_err=yes
16456fi
16457if test -z "$ac_cpp_err"; then
16458 ac_header_preproc=yes
16459else
16460 echo "$as_me: failed program was:" >&5
16461sed 's/^/| /' conftest.$ac_ext >&5
16462
16463 ac_header_preproc=no
16464fi
16465
16466rm -f conftest.err conftest.$ac_ext
16467{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16468echo "${ECHO_T}$ac_header_preproc" >&6; }
16469
16470# So? What about this header?
16471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16472 yes:no: )
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16474echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16476echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16477 ac_header_preproc=yes
16478 ;;
16479 no:yes:* )
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16485echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16487echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16491echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16492 ( cat <<\_ASBOX
16493## ----------------------------------- ##
16494## Report this to llvmbugs@cs.uiuc.edu ##
16495## ----------------------------------- ##
16496_ASBOX
16497 ) | sed "s/^/$as_me: WARNING: /" >&2
16498 ;;
16499esac
16500{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504else
16505 eval "$as_ac_Header=\$ac_header_preproc"
16506fi
16507ac_res=`eval echo '${'$as_ac_Header'}'`
16508 { echo "$as_me:$LINENO: result: $ac_res" >&5
16509echo "${ECHO_T}$ac_res" >&6; }
16510
16511fi
16512if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky0235b622009-02-04 06:27:44 +000016513 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky0235b622009-02-04 06:27:44 +000016515_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000016516
16517fi
16518
16519done
16520
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016521fi
Nick Lewycky0235b622009-02-04 06:27:44 +000016522
Nick Lewycky5d713ec2009-01-20 00:52:24 +000016523
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016524
Edwin Törökc27310c2010-01-26 08:50:50 +000016525
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016526 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16527echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16528if test "${ac_cv_huge_val_sanity+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016530else
16531
16532 ac_ext=cpp
16533ac_cpp='$CXXCPP $CPPFLAGS'
16534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16537
16538 CXXFLAGS=-pedantic
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016539 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016540 ac_cv_huge_val_sanity=yes
16541else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016542 cat >conftest.$ac_ext <<_ACEOF
16543/* confdefs.h. */
16544_ACEOF
16545cat confdefs.h >>conftest.$ac_ext
16546cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016547/* end confdefs.h. */
16548#include <math.h>
16549int
16550main ()
16551{
16552double x = HUGE_VAL; return x != x;
16553 ;
16554 return 0;
16555}
16556_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016557rm -f conftest$ac_exeext
16558if { (ac_try="$ac_link"
16559case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562esac
16563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_link") 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16568 { (case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16571esac
16572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_try") 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016577 ac_cv_huge_val_sanity=yes
16578else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016579 echo "$as_me: program exited with status $ac_status" >&5
16580echo "$as_me: failed program was:" >&5
16581sed 's/^/| /' conftest.$ac_ext >&5
16582
16583( exit $ac_status )
16584ac_cv_huge_val_sanity=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016585fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016586rm -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 +000016587fi
16588
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016589
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016590 ac_ext=c
16591ac_cpp='$CPP $CPPFLAGS'
16592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16594ac_compiler_gnu=$ac_cv_c_compiler_gnu
16595
16596
16597fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016598{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16599echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016600 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16601
16602
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016603{ echo "$as_me:$LINENO: checking for pid_t" >&5
16604echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16605if test "${ac_cv_type_pid_t+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607else
16608 cat >conftest.$ac_ext <<_ACEOF
16609/* confdefs.h. */
16610_ACEOF
16611cat confdefs.h >>conftest.$ac_ext
16612cat >>conftest.$ac_ext <<_ACEOF
16613/* end confdefs.h. */
16614$ac_includes_default
16615typedef pid_t ac__type_new_;
16616int
16617main ()
16618{
16619if ((ac__type_new_ *) 0)
16620 return 0;
16621if (sizeof (ac__type_new_))
16622 return 0;
16623 ;
16624 return 0;
16625}
16626_ACEOF
16627rm -f conftest.$ac_objext
16628if { (ac_try="$ac_compile"
16629case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_compile") 2>conftest.er1
16635 ac_status=$?
16636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } &&
16641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645esac
16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest.$ac_objext'
16652 { (case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16655esac
16656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_try") 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ac_cv_type_pid_t=yes
16662else
16663 echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016665
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016666 ac_cv_type_pid_t=no
16667fi
16668
16669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670fi
16671{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16672echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16673if test $ac_cv_type_pid_t = yes; then
16674 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016675else
16676
16677cat >>confdefs.h <<_ACEOF
16678#define pid_t int
16679_ACEOF
16680
16681fi
16682
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016683{ echo "$as_me:$LINENO: checking for size_t" >&5
16684echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16685if test "${ac_cv_type_size_t+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687else
16688 cat >conftest.$ac_ext <<_ACEOF
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
16694$ac_includes_default
16695typedef size_t ac__type_new_;
16696int
16697main ()
16698{
16699if ((ac__type_new_ *) 0)
16700 return 0;
16701if (sizeof (ac__type_new_))
16702 return 0;
16703 ;
16704 return 0;
16705}
16706_ACEOF
16707rm -f conftest.$ac_objext
16708if { (ac_try="$ac_compile"
16709case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16712esac
16713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_compile") 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16725esac
16726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735esac
16736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_type_size_t=yes
16742else
16743 echo "$as_me: failed program was:" >&5
16744sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016745
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016746 ac_cv_type_size_t=no
16747fi
16748
16749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16750fi
16751{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16752echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16753if test $ac_cv_type_size_t = yes; then
16754 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016755else
16756
16757cat >>confdefs.h <<_ACEOF
16758#define size_t unsigned int
16759_ACEOF
16760
16761fi
16762
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016763
16764cat >>confdefs.h <<_ACEOF
Edwin Törökc27310c2010-01-26 08:50:50 +000016765#define RETSIGTYPE void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016766_ACEOF
16767
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016768{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16769echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16770if test "${ac_cv_struct_tm+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016772else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016773 cat >conftest.$ac_ext <<_ACEOF
16774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016778/* end confdefs.h. */
16779#include <sys/types.h>
16780#include <time.h>
16781
16782int
16783main ()
16784{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016785struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016786 ;
16787 return 0;
16788}
16789_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016790rm -f conftest.$ac_objext
16791if { (ac_try="$ac_compile"
16792case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16795esac
16796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_compile") 2>conftest.er1
16798 ac_status=$?
16799 grep -v '^ *+' conftest.er1 >conftest.err
16800 rm -f conftest.er1
16801 cat conftest.err >&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } &&
16804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808esac
16809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest.$ac_objext'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016824 ac_cv_struct_tm=time.h
16825else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016826 echo "$as_me: failed program was:" >&5
16827sed 's/^/| /' conftest.$ac_ext >&5
16828
16829 ac_cv_struct_tm=sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016830fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016831
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016834{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16835echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016836if test $ac_cv_struct_tm = sys/time.h; then
16837
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016838cat >>confdefs.h <<\_ACEOF
16839#define TM_IN_SYS_TIME 1
16840_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016841
16842fi
16843
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016844{ echo "$as_me:$LINENO: checking for int64_t" >&5
16845echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16846if test "${ac_cv_type_int64_t+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848else
16849 cat >conftest.$ac_ext <<_ACEOF
16850/* confdefs.h. */
16851_ACEOF
16852cat confdefs.h >>conftest.$ac_ext
16853cat >>conftest.$ac_ext <<_ACEOF
16854/* end confdefs.h. */
16855$ac_includes_default
16856typedef int64_t ac__type_new_;
16857int
16858main ()
16859{
16860if ((ac__type_new_ *) 0)
16861 return 0;
16862if (sizeof (ac__type_new_))
16863 return 0;
16864 ;
16865 return 0;
16866}
16867_ACEOF
16868rm -f conftest.$ac_objext
16869if { (ac_try="$ac_compile"
16870case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16873esac
16874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_compile") 2>conftest.er1
16876 ac_status=$?
16877 grep -v '^ *+' conftest.er1 >conftest.err
16878 rm -f conftest.er1
16879 cat conftest.err >&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16886esac
16887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest.$ac_objext'
16893 { (case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16896esac
16897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_try") 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16902 ac_cv_type_int64_t=yes
16903else
16904 echo "$as_me: failed program was:" >&5
16905sed 's/^/| /' conftest.$ac_ext >&5
16906
16907 ac_cv_type_int64_t=no
16908fi
16909
16910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16911fi
16912{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16913echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16914if test $ac_cv_type_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016915
16916cat >>confdefs.h <<_ACEOF
16917#define HAVE_INT64_T 1
16918_ACEOF
16919
16920
16921else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016922 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16923echo "$as_me: error: Type int64_t required but not found" >&2;}
16924 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016925fi
16926
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016927{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16928echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16929if test "${ac_cv_type_uint64_t+set}" = set; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16931else
16932 cat >conftest.$ac_ext <<_ACEOF
16933/* confdefs.h. */
16934_ACEOF
16935cat confdefs.h >>conftest.$ac_ext
16936cat >>conftest.$ac_ext <<_ACEOF
16937/* end confdefs.h. */
16938$ac_includes_default
16939typedef uint64_t ac__type_new_;
16940int
16941main ()
16942{
16943if ((ac__type_new_ *) 0)
16944 return 0;
16945if (sizeof (ac__type_new_))
16946 return 0;
16947 ;
16948 return 0;
16949}
16950_ACEOF
16951rm -f conftest.$ac_objext
16952if { (ac_try="$ac_compile"
16953case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16956esac
16957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_compile") 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16966 { (case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16969esac
16970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_try") 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; } &&
16975 { ac_try='test -s conftest.$ac_objext'
16976 { (case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979esac
16980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_try") 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_type_uint64_t=yes
16986else
16987 echo "$as_me: failed program was:" >&5
16988sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 ac_cv_type_uint64_t=no
16991fi
16992
16993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16994fi
16995{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16996echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16997if test $ac_cv_type_uint64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016998
16999cat >>confdefs.h <<_ACEOF
17000#define HAVE_UINT64_T 1
17001_ACEOF
17002
17003
17004else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017005 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17006echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17007if test "${ac_cv_type_u_int64_t+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009else
17010 cat >conftest.$ac_ext <<_ACEOF
17011/* confdefs.h. */
17012_ACEOF
17013cat confdefs.h >>conftest.$ac_ext
17014cat >>conftest.$ac_ext <<_ACEOF
17015/* end confdefs.h. */
17016$ac_includes_default
17017typedef u_int64_t ac__type_new_;
17018int
17019main ()
17020{
17021if ((ac__type_new_ *) 0)
17022 return 0;
17023if (sizeof (ac__type_new_))
17024 return 0;
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest.$ac_objext
17030if { (ac_try="$ac_compile"
17031case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17034esac
17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_compile") 2>conftest.er1
17037 ac_status=$?
17038 grep -v '^ *+' conftest.er1 >conftest.err
17039 rm -f conftest.er1
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17044 { (case "(($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_try") 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest.$ac_objext'
17054 { (case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057esac
17058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_try") 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_cv_type_u_int64_t=yes
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068 ac_cv_type_u_int64_t=no
17069fi
17070
17071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072fi
17073{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17074echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17075if test $ac_cv_type_u_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017076
17077cat >>confdefs.h <<_ACEOF
17078#define HAVE_U_INT64_T 1
17079_ACEOF
17080
17081
17082else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017083 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17084echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17085 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017086fi
17087
17088fi
17089
17090
17091
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017092
17093
17094
17095
17096
17097
17098
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017099for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017100do
17101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17102{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17104if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106else
17107 cat >conftest.$ac_ext <<_ACEOF
17108/* confdefs.h. */
17109_ACEOF
17110cat confdefs.h >>conftest.$ac_ext
17111cat >>conftest.$ac_ext <<_ACEOF
17112/* end confdefs.h. */
17113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17115#define $ac_func innocuous_$ac_func
17116
17117/* System header to define __stub macros and hopefully few prototypes,
17118 which can conflict with char $ac_func (); below.
17119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17120 <limits.h> exists even on freestanding compilers. */
17121
17122#ifdef __STDC__
17123# include <limits.h>
17124#else
17125# include <assert.h>
17126#endif
17127
17128#undef $ac_func
17129
17130/* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17133#ifdef __cplusplus
17134extern "C"
17135#endif
17136char $ac_func ();
17137/* The GNU C library defines this for functions which it implements
17138 to always fail with ENOSYS. Some functions are actually named
17139 something starting with __ and the normal name is an alias. */
17140#if defined __stub_$ac_func || defined __stub___$ac_func
17141choke me
17142#endif
17143
17144int
17145main ()
17146{
17147return $ac_func ();
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext conftest$ac_exeext
17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170esac
17171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest$ac_exeext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180esac
17181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 eval "$as_ac_var=yes"
17187else
17188 echo "$as_me: failed program was:" >&5
17189sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 eval "$as_ac_var=no"
17192fi
17193
17194rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17196fi
17197ac_res=`eval echo '${'$as_ac_var'}'`
17198 { echo "$as_me:$LINENO: result: $ac_res" >&5
17199echo "${ECHO_T}$ac_res" >&6; }
17200if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017201 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017203_ACEOF
17204
17205fi
17206done
17207
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017208
17209
17210
17211
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017212for ac_func in powf fmodf strtof round
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017213do
17214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219else
17220 cat >conftest.$ac_ext <<_ACEOF
17221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
17226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228#define $ac_func innocuous_$ac_func
17229
17230/* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char $ac_func (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17234
17235#ifdef __STDC__
17236# include <limits.h>
17237#else
17238# include <assert.h>
17239#endif
17240
17241#undef $ac_func
17242
17243/* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17246#ifdef __cplusplus
17247extern "C"
17248#endif
17249char $ac_func ();
17250/* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253#if defined __stub_$ac_func || defined __stub___$ac_func
17254choke me
17255#endif
17256
17257int
17258main ()
17259{
17260return $ac_func ();
17261 ;
17262 return 0;
17263}
17264_ACEOF
17265rm -f conftest.$ac_objext conftest$ac_exeext
17266if { (ac_try="$ac_link"
17267case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270esac
17271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_link") 2>conftest.er1
17273 ac_status=$?
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17283esac
17284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; } &&
17289 { ac_try='test -s conftest$ac_exeext'
17290 { (case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293esac
17294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_try") 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 eval "$as_ac_var=yes"
17300else
17301 echo "$as_me: failed program was:" >&5
17302sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 eval "$as_ac_var=no"
17305fi
17306
17307rm -f core conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
17309fi
17310ac_res=`eval echo '${'$as_ac_var'}'`
17311 { echo "$as_me:$LINENO: result: $ac_res" >&5
17312echo "${ECHO_T}$ac_res" >&6; }
17313if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017314 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017316_ACEOF
17317
17318fi
17319done
17320
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017321
17322
17323
17324
17325
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017326for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017327do
17328as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17329{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17330echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17331if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17333else
17334 cat >conftest.$ac_ext <<_ACEOF
17335/* confdefs.h. */
17336_ACEOF
17337cat confdefs.h >>conftest.$ac_ext
17338cat >>conftest.$ac_ext <<_ACEOF
17339/* end confdefs.h. */
17340/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17342#define $ac_func innocuous_$ac_func
17343
17344/* System header to define __stub macros and hopefully few prototypes,
17345 which can conflict with char $ac_func (); below.
17346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17347 <limits.h> exists even on freestanding compilers. */
17348
17349#ifdef __STDC__
17350# include <limits.h>
17351#else
17352# include <assert.h>
17353#endif
17354
17355#undef $ac_func
17356
17357/* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17360#ifdef __cplusplus
17361extern "C"
17362#endif
17363char $ac_func ();
17364/* The GNU C library defines this for functions which it implements
17365 to always fail with ENOSYS. Some functions are actually named
17366 something starting with __ and the normal name is an alias. */
17367#if defined __stub_$ac_func || defined __stub___$ac_func
17368choke me
17369#endif
17370
17371int
17372main ()
17373{
17374return $ac_func ();
17375 ;
17376 return 0;
17377}
17378_ACEOF
17379rm -f conftest.$ac_objext conftest$ac_exeext
17380if { (ac_try="$ac_link"
17381case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384esac
17385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_link") 2>conftest.er1
17387 ac_status=$?
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397esac
17398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest$ac_exeext'
17404 { (case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_try") 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 eval "$as_ac_var=yes"
17414else
17415 echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 eval "$as_ac_var=no"
17419fi
17420
17421rm -f core conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
17423fi
17424ac_res=`eval echo '${'$as_ac_var'}'`
17425 { echo "$as_me:$LINENO: result: $ac_res" >&5
17426echo "${ECHO_T}$ac_res" >&6; }
17427if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017428 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017430_ACEOF
17431
17432fi
17433done
17434
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017435
17436
17437
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017438for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017439do
17440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17441{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17443if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445else
17446 cat >conftest.$ac_ext <<_ACEOF
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
17452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17454#define $ac_func innocuous_$ac_func
17455
17456/* System header to define __stub macros and hopefully few prototypes,
17457 which can conflict with char $ac_func (); below.
17458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17459 <limits.h> exists even on freestanding compilers. */
17460
17461#ifdef __STDC__
17462# include <limits.h>
17463#else
17464# include <assert.h>
17465#endif
17466
17467#undef $ac_func
17468
17469/* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17472#ifdef __cplusplus
17473extern "C"
17474#endif
17475char $ac_func ();
17476/* The GNU C library defines this for functions which it implements
17477 to always fail with ENOSYS. Some functions are actually named
17478 something starting with __ and the normal name is an alias. */
17479#if defined __stub_$ac_func || defined __stub___$ac_func
17480choke me
17481#endif
17482
17483int
17484main ()
17485{
17486return $ac_func ();
17487 ;
17488 return 0;
17489}
17490_ACEOF
17491rm -f conftest.$ac_objext conftest$ac_exeext
17492if { (ac_try="$ac_link"
17493case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496esac
17497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509esac
17510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest$ac_exeext'
17516 { (case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17519esac
17520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_try") 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 eval "$as_ac_var=yes"
17526else
17527 echo "$as_me: failed program was:" >&5
17528sed 's/^/| /' conftest.$ac_ext >&5
17529
17530 eval "$as_ac_var=no"
17531fi
17532
17533rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17535fi
17536ac_res=`eval echo '${'$as_ac_var'}'`
17537 { echo "$as_me:$LINENO: result: $ac_res" >&5
17538echo "${ECHO_T}$ac_res" >&6; }
17539if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017540 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017542_ACEOF
17543
17544fi
17545done
17546
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017547
17548
17549
17550
17551
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017552for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017553do
17554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17555{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17557if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17559else
17560 cat >conftest.$ac_ext <<_ACEOF
17561/* confdefs.h. */
17562_ACEOF
17563cat confdefs.h >>conftest.$ac_ext
17564cat >>conftest.$ac_ext <<_ACEOF
17565/* end confdefs.h. */
17566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17568#define $ac_func innocuous_$ac_func
17569
17570/* System header to define __stub macros and hopefully few prototypes,
17571 which can conflict with char $ac_func (); below.
17572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573 <limits.h> exists even on freestanding compilers. */
17574
17575#ifdef __STDC__
17576# include <limits.h>
17577#else
17578# include <assert.h>
17579#endif
17580
17581#undef $ac_func
17582
17583/* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17586#ifdef __cplusplus
17587extern "C"
17588#endif
17589char $ac_func ();
17590/* The GNU C library defines this for functions which it implements
17591 to always fail with ENOSYS. Some functions are actually named
17592 something starting with __ and the normal name is an alias. */
17593#if defined __stub_$ac_func || defined __stub___$ac_func
17594choke me
17595#endif
17596
17597int
17598main ()
17599{
17600return $ac_func ();
17601 ;
17602 return 0;
17603}
17604_ACEOF
17605rm -f conftest.$ac_objext conftest$ac_exeext
17606if { (ac_try="$ac_link"
17607case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17610esac
17611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_link") 2>conftest.er1
17613 ac_status=$?
17614 grep -v '^ *+' conftest.er1 >conftest.err
17615 rm -f conftest.er1
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17620 { (case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17623esac
17624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_try") 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try='test -s conftest$ac_exeext'
17630 { (case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17633esac
17634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_try") 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 eval "$as_ac_var=yes"
17640else
17641 echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 eval "$as_ac_var=no"
17645fi
17646
17647rm -f core conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
17649fi
17650ac_res=`eval echo '${'$as_ac_var'}'`
17651 { echo "$as_me:$LINENO: result: $ac_res" >&5
17652echo "${ECHO_T}$ac_res" >&6; }
17653if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017654 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017656_ACEOF
17657
17658fi
17659done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017660
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017661
17662
17663
17664
Jeffrey Yasskin41a338b2009-09-25 21:07:20 +000017665for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017666do
17667as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17669echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17670if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672else
17673 cat >conftest.$ac_ext <<_ACEOF
17674/* confdefs.h. */
17675_ACEOF
17676cat confdefs.h >>conftest.$ac_ext
17677cat >>conftest.$ac_ext <<_ACEOF
17678/* end confdefs.h. */
17679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17681#define $ac_func innocuous_$ac_func
17682
17683/* System header to define __stub macros and hopefully few prototypes,
17684 which can conflict with char $ac_func (); below.
17685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686 <limits.h> exists even on freestanding compilers. */
17687
17688#ifdef __STDC__
17689# include <limits.h>
17690#else
17691# include <assert.h>
17692#endif
17693
17694#undef $ac_func
17695
17696/* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17699#ifdef __cplusplus
17700extern "C"
17701#endif
17702char $ac_func ();
17703/* The GNU C library defines this for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706#if defined __stub_$ac_func || defined __stub___$ac_func
17707choke me
17708#endif
17709
17710int
17711main ()
17712{
17713return $ac_func ();
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext conftest$ac_exeext
17719if { (ac_try="$ac_link"
17720case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723esac
17724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_link") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest$ac_exeext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 eval "$as_ac_var=yes"
17753else
17754 echo "$as_me: failed program was:" >&5
17755sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 eval "$as_ac_var=no"
17758fi
17759
17760rm -f core conftest.err conftest.$ac_objext \
17761 conftest$ac_exeext conftest.$ac_ext
17762fi
17763ac_res=`eval echo '${'$as_ac_var'}'`
17764 { echo "$as_me:$LINENO: result: $ac_res" >&5
17765echo "${ECHO_T}$ac_res" >&6; }
17766if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017767 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017769_ACEOF
17770
17771fi
17772done
17773
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017774
17775
17776
17777
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017778for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017779do
17780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17781{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17783if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17785else
17786 cat >conftest.$ac_ext <<_ACEOF
17787/* confdefs.h. */
17788_ACEOF
17789cat confdefs.h >>conftest.$ac_ext
17790cat >>conftest.$ac_ext <<_ACEOF
17791/* end confdefs.h. */
17792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17794#define $ac_func innocuous_$ac_func
17795
17796/* System header to define __stub macros and hopefully few prototypes,
17797 which can conflict with char $ac_func (); below.
17798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17799 <limits.h> exists even on freestanding compilers. */
17800
17801#ifdef __STDC__
17802# include <limits.h>
17803#else
17804# include <assert.h>
17805#endif
17806
17807#undef $ac_func
17808
17809/* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17812#ifdef __cplusplus
17813extern "C"
17814#endif
17815char $ac_func ();
17816/* The GNU C library defines this for functions which it implements
17817 to always fail with ENOSYS. Some functions are actually named
17818 something starting with __ and the normal name is an alias. */
17819#if defined __stub_$ac_func || defined __stub___$ac_func
17820choke me
17821#endif
17822
17823int
17824main ()
17825{
17826return $ac_func ();
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext conftest$ac_exeext
17832if { (ac_try="$ac_link"
17833case "(($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_link") 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest$ac_exeext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 eval "$as_ac_var=yes"
17866else
17867 echo "$as_me: failed program was:" >&5
17868sed 's/^/| /' conftest.$ac_ext >&5
17869
17870 eval "$as_ac_var=no"
17871fi
17872
17873rm -f core conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17875fi
17876ac_res=`eval echo '${'$as_ac_var'}'`
17877 { echo "$as_me:$LINENO: result: $ac_res" >&5
17878echo "${ECHO_T}$ac_res" >&6; }
17879if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017880 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017882_ACEOF
17883
17884fi
17885done
17886
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017887
17888
17889
17890
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017891for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017892do
17893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17894{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
17898else
17899 cat >conftest.$ac_ext <<_ACEOF
17900/* confdefs.h. */
17901_ACEOF
17902cat confdefs.h >>conftest.$ac_ext
17903cat >>conftest.$ac_ext <<_ACEOF
17904/* end confdefs.h. */
17905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17907#define $ac_func innocuous_$ac_func
17908
17909/* System header to define __stub macros and hopefully few prototypes,
17910 which can conflict with char $ac_func (); below.
17911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17912 <limits.h> exists even on freestanding compilers. */
17913
17914#ifdef __STDC__
17915# include <limits.h>
17916#else
17917# include <assert.h>
17918#endif
17919
17920#undef $ac_func
17921
17922/* Override any GCC internal prototype to avoid an error.
17923 Use char because int might match the return type of a GCC
17924 builtin and then its argument prototype would still apply. */
17925#ifdef __cplusplus
17926extern "C"
17927#endif
17928char $ac_func ();
17929/* The GNU C library defines this for functions which it implements
17930 to always fail with ENOSYS. Some functions are actually named
17931 something starting with __ and the normal name is an alias. */
17932#if defined __stub_$ac_func || defined __stub___$ac_func
17933choke me
17934#endif
17935
17936int
17937main ()
17938{
17939return $ac_func ();
17940 ;
17941 return 0;
17942}
17943_ACEOF
17944rm -f conftest.$ac_objext conftest$ac_exeext
17945if { (ac_try="$ac_link"
17946case "(($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_link") 2>conftest.er1
17952 ac_status=$?
17953 grep -v '^ *+' conftest.er1 >conftest.err
17954 rm -f conftest.er1
17955 cat conftest.err >&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17962esac
17963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_try") 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest$ac_exeext'
17969 { (case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17972esac
17973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_try") 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
17978 eval "$as_ac_var=yes"
17979else
17980 echo "$as_me: failed program was:" >&5
17981sed 's/^/| /' conftest.$ac_ext >&5
17982
17983 eval "$as_ac_var=no"
17984fi
17985
17986rm -f core conftest.err conftest.$ac_objext \
17987 conftest$ac_exeext conftest.$ac_ext
17988fi
17989ac_res=`eval echo '${'$as_ac_var'}'`
17990 { echo "$as_me:$LINENO: result: $ac_res" >&5
17991echo "${ECHO_T}$ac_res" >&6; }
17992if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017993 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017995_ACEOF
17996
17997fi
17998done
17999
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018000{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18001echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18002if test "${llvm_cv_c_printf_a+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018004else
18005 ac_ext=c
18006ac_cpp='$CPP $CPPFLAGS'
18007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18009ac_compiler_gnu=$ac_cv_c_compiler_gnu
18010
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018011 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018012 llvmac_cv_c_printf_a=no
18013else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018014 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018015
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018016 /* confdefs.h. */
18017_ACEOF
18018cat confdefs.h >>conftest.$ac_ext
18019cat >>conftest.$ac_ext <<_ACEOF
18020/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000018021
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018022#include <stdio.h>
18023#include <stdlib.h>
18024
18025int
18026main ()
18027{
18028
18029volatile double A, B;
18030char Buffer[100];
18031A = 1;
18032A /= 10.0;
18033sprintf(Buffer, "%a", A);
18034B = atof(Buffer);
18035if (A != B)
18036 return (1);
18037if (A != 0x1.999999999999ap-4)
18038 return (1);
18039return (0);
18040 ;
18041 return 0;
18042}
18043_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018044rm -f 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>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18055 { (case "(($ac_try" in
18056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057 *) ac_try_echo=$ac_try;;
18058esac
18059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060 (eval "$ac_try") 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018064 llvm_cv_c_printf_a=yes
18065else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018066 echo "$as_me: program exited with status $ac_status" >&5
18067echo "$as_me: failed program was:" >&5
18068sed 's/^/| /' conftest.$ac_ext >&5
18069
18070( exit $ac_status )
18071llvmac_cv_c_printf_a=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018072fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018073rm -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 +000018074fi
18075
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018076
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018077 ac_ext=c
18078ac_cpp='$CPP $CPPFLAGS'
18079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18081ac_compiler_gnu=$ac_cv_c_compiler_gnu
18082
18083fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018084{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18085echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018086 if test "$llvm_cv_c_printf_a" = "yes"; then
18087
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018088cat >>confdefs.h <<\_ACEOF
18089#define HAVE_PRINTF_A 1
18090_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018091
18092 fi
18093
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018094
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018095{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18096echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18097if test "${ac_cv_func_rand48+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018099else
18100 ac_ext=cpp
18101ac_cpp='$CXXCPP $CPPFLAGS'
18102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18105
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018106 cat >conftest.$ac_ext <<_ACEOF
18107/* confdefs.h. */
18108_ACEOF
18109cat confdefs.h >>conftest.$ac_ext
18110cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018111/* end confdefs.h. */
18112#include <stdlib.h>
18113int
18114main ()
18115{
18116srand48(0);lrand48();drand48();
18117 ;
18118 return 0;
18119}
18120_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018121rm -f conftest.$ac_objext
18122if { (ac_try="$ac_compile"
18123case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18126esac
18127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_compile") 2>conftest.er1
18129 ac_status=$?
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18136 { (case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18139esac
18140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_try") 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18149esac
18150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_try") 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018155 ac_cv_func_rand48=yes
18156else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018157 echo "$as_me: failed program was:" >&5
18158sed 's/^/| /' conftest.$ac_ext >&5
18159
18160 ac_cv_func_rand48=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018161fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018162
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164 ac_ext=c
18165ac_cpp='$CPP $CPPFLAGS'
18166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18168ac_compiler_gnu=$ac_cv_c_compiler_gnu
18169
18170fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018171{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18172echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018173
18174if test "$ac_cv_func_rand48" = "yes" ; then
18175
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018176cat >>confdefs.h <<\_ACEOF
18177#define HAVE_RAND48 1
18178_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018179
18180fi
18181
18182
Edwin Törökc27310c2010-01-26 08:50:50 +000018183
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018184{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18185echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18186if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018188else
18189 ac_ext=cpp
18190ac_cpp='$CXXCPP $CPPFLAGS'
18191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18194
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018195 cat >conftest.$ac_ext <<_ACEOF
18196/* confdefs.h. */
18197_ACEOF
18198cat confdefs.h >>conftest.$ac_ext
18199cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018200/* end confdefs.h. */
18201#include <math.h>
18202int
18203main ()
18204{
18205float f; isnan(f);
18206 ;
18207 return 0;
18208}
18209_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018210rm -f conftest.$ac_objext
18211if { (ac_try="$ac_compile"
18212case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18215esac
18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_compile") 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18225 { (case "(($ac_try" in
18226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227 *) ac_try_echo=$ac_try;;
18228esac
18229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230 (eval "$ac_try") 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest.$ac_objext'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238esac
18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018244 ac_cv_func_isnan_in_math_h=yes
18245else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018246 echo "$as_me: failed program was:" >&5
18247sed 's/^/| /' conftest.$ac_ext >&5
18248
18249 ac_cv_func_isnan_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018250fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018251
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18253 ac_ext=c
18254ac_cpp='$CPP $CPPFLAGS'
18255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18257ac_compiler_gnu=$ac_cv_c_compiler_gnu
18258
18259fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018260{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18261echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018262
18263
18264if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18265
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018266cat >>confdefs.h <<\_ACEOF
18267#define HAVE_ISNAN_IN_MATH_H 1
18268_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018269
18270fi
18271
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018272{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18273echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18274if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018276else
18277 ac_ext=cpp
18278ac_cpp='$CXXCPP $CPPFLAGS'
18279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18282
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018283 cat >conftest.$ac_ext <<_ACEOF
18284/* confdefs.h. */
18285_ACEOF
18286cat confdefs.h >>conftest.$ac_ext
18287cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018288/* end confdefs.h. */
18289#include <cmath>
18290int
18291main ()
18292{
18293float f; isnan(f);
18294 ;
18295 return 0;
18296}
18297_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018298rm -f conftest.$ac_objext
18299if { (ac_try="$ac_compile"
18300case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18303esac
18304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_compile") 2>conftest.er1
18306 ac_status=$?
18307 grep -v '^ *+' conftest.er1 >conftest.err
18308 rm -f conftest.er1
18309 cat conftest.err >&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18313 { (case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316esac
18317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_try") 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; } &&
18322 { ac_try='test -s conftest.$ac_objext'
18323 { (case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18326esac
18327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_try") 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018332 ac_cv_func_isnan_in_cmath=yes
18333else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018334 echo "$as_me: failed program was:" >&5
18335sed 's/^/| /' conftest.$ac_ext >&5
18336
18337 ac_cv_func_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018338fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018339
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18341 ac_ext=c
18342ac_cpp='$CPP $CPPFLAGS'
18343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18345ac_compiler_gnu=$ac_cv_c_compiler_gnu
18346
18347fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018348{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18349echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018350
18351if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18352
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018353cat >>confdefs.h <<\_ACEOF
18354#define HAVE_ISNAN_IN_CMATH 1
18355_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018356
18357fi
18358
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018359{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18360echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18361if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18362 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018363else
18364 ac_ext=cpp
18365ac_cpp='$CXXCPP $CPPFLAGS'
18366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18369
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018370 cat >conftest.$ac_ext <<_ACEOF
18371/* confdefs.h. */
18372_ACEOF
18373cat confdefs.h >>conftest.$ac_ext
18374cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018375/* end confdefs.h. */
18376#include <cmath>
18377int
18378main ()
18379{
18380float f; std::isnan(f);
18381 ;
18382 return 0;
18383}
18384_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018385rm -f conftest.$ac_objext
18386if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018419 ac_cv_func_std_isnan_in_cmath=yes
18420else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018421 echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424 ac_cv_func_std_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018425fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018426
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428 ac_ext=c
18429ac_cpp='$CPP $CPPFLAGS'
18430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18432ac_compiler_gnu=$ac_cv_c_compiler_gnu
18433
18434fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018435{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18436echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018437
18438if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18439
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018440cat >>confdefs.h <<\_ACEOF
18441#define HAVE_STD_ISNAN_IN_CMATH 1
18442_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018443
18444fi
18445
18446
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018447{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18448echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18449if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018451else
18452 ac_ext=cpp
18453ac_cpp='$CXXCPP $CPPFLAGS'
18454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18457
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018458 cat >conftest.$ac_ext <<_ACEOF
18459/* confdefs.h. */
18460_ACEOF
18461cat confdefs.h >>conftest.$ac_ext
18462cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018463/* end confdefs.h. */
18464#include <math.h>
18465int
18466main ()
18467{
18468float f; isinf(f);
18469 ;
18470 return 0;
18471}
18472_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018473rm -f conftest.$ac_objext
18474if { (ac_try="$ac_compile"
18475case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18478esac
18479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_compile") 2>conftest.er1
18481 ac_status=$?
18482 grep -v '^ *+' conftest.er1 >conftest.err
18483 rm -f conftest.er1
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } &&
18487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18488 { (case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18491esac
18492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_try") 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest.$ac_objext'
18498 { (case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501esac
18502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_try") 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018507 ac_cv_func_isinf_in_math_h=yes
18508else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018509 echo "$as_me: failed program was:" >&5
18510sed 's/^/| /' conftest.$ac_ext >&5
18511
18512 ac_cv_func_isinf_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018513fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018514
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18516 ac_ext=c
18517ac_cpp='$CPP $CPPFLAGS'
18518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18520ac_compiler_gnu=$ac_cv_c_compiler_gnu
18521
18522fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018523{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18524echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018525
18526if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18527
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018528cat >>confdefs.h <<\_ACEOF
18529#define HAVE_ISINF_IN_MATH_H 1
18530_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018531
18532fi
18533
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018534{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18535echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18536if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018538else
18539 ac_ext=cpp
18540ac_cpp='$CXXCPP $CPPFLAGS'
18541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18544
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018545 cat >conftest.$ac_ext <<_ACEOF
18546/* confdefs.h. */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018550/* end confdefs.h. */
18551#include <cmath>
18552int
18553main ()
18554{
18555float f; isinf(f);
18556 ;
18557 return 0;
18558}
18559_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018560rm -f conftest.$ac_objext
18561if { (ac_try="$ac_compile"
18562case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18565esac
18566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_compile") 2>conftest.er1
18568 ac_status=$?
18569 grep -v '^ *+' conftest.er1 >conftest.err
18570 rm -f conftest.er1
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18575 { (case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18578esac
18579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580 (eval "$ac_try") 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; } &&
18584 { ac_try='test -s conftest.$ac_objext'
18585 { (case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18588esac
18589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_try") 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018594 ac_cv_func_isinf_in_cmath=yes
18595else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018596 echo "$as_me: failed program was:" >&5
18597sed 's/^/| /' conftest.$ac_ext >&5
18598
18599 ac_cv_func_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018600fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018601
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18603 ac_ext=c
18604ac_cpp='$CPP $CPPFLAGS'
18605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18607ac_compiler_gnu=$ac_cv_c_compiler_gnu
18608
18609fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018610{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18611echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018612
18613if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18614
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018615cat >>confdefs.h <<\_ACEOF
18616#define HAVE_ISINF_IN_CMATH 1
18617_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018618
18619fi
18620
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018621{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18622echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18623if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018625else
18626 ac_ext=cpp
18627ac_cpp='$CXXCPP $CPPFLAGS'
18628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18631
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018632 cat >conftest.$ac_ext <<_ACEOF
18633/* confdefs.h. */
18634_ACEOF
18635cat confdefs.h >>conftest.$ac_ext
18636cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018637/* end confdefs.h. */
18638#include <cmath>
18639int
18640main ()
18641{
18642float f; std::isinf(f)}
18643 ;
18644 return 0;
18645}
18646_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018647rm -f conftest.$ac_objext
18648if { (ac_try="$ac_compile"
18649case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18652esac
18653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_compile") 2>conftest.er1
18655 ac_status=$?
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18665esac
18666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest.$ac_objext'
18672 { (case "(($ac_try" in
18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674 *) ac_try_echo=$ac_try;;
18675esac
18676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677 (eval "$ac_try") 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018681 ac_cv_func_std_isinf_in_cmath=yes
18682else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018683 echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686 ac_cv_func_std_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018687fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018688
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18690 ac_ext=c
18691ac_cpp='$CPP $CPPFLAGS'
18692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18694ac_compiler_gnu=$ac_cv_c_compiler_gnu
18695
18696fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018697{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18698echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018699
18700if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18701
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018702cat >>confdefs.h <<\_ACEOF
18703#define HAVE_STD_ISINF_IN_CMATH 1
18704_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018705
18706fi
18707
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018708{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18709echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18710if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018712else
18713 ac_ext=cpp
18714ac_cpp='$CXXCPP $CPPFLAGS'
18715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18718
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018719 cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018724/* end confdefs.h. */
18725#include <ieeefp.h>
18726int
18727main ()
18728{
18729float f; finite(f);
18730 ;
18731 return 0;
18732}
18733_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018734rm -f conftest.$ac_objext
18735if { (ac_try="$ac_compile"
18736case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739esac
18740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_compile") 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
18748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
18758 { ac_try='test -s conftest.$ac_objext'
18759 { (case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18762esac
18763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_try") 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018768 ac_cv_func_finite_in_ieeefp_h=yes
18769else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018770 echo "$as_me: failed program was:" >&5
18771sed 's/^/| /' conftest.$ac_ext >&5
18772
18773 ac_cv_func_finite_in_ieeefp_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018774fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018775
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18777 ac_ext=c
18778ac_cpp='$CPP $CPPFLAGS'
18779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18781ac_compiler_gnu=$ac_cv_c_compiler_gnu
18782
18783fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018784{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18785echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018786
18787if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18788
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018789cat >>confdefs.h <<\_ACEOF
18790#define HAVE_FINITE_IN_IEEEFP_H 1
18791_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018792
18793fi
18794
18795
18796
18797if test "$llvm_cv_platform_type" = "Unix" ; then
18798
18799
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018800for ac_header in stdlib.h unistd.h
18801do
18802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18808fi
18809ac_res=`eval echo '${'$as_ac_Header'}'`
18810 { echo "$as_me:$LINENO: result: $ac_res" >&5
18811echo "${ECHO_T}$ac_res" >&6; }
18812else
18813 # Is the header compilable?
18814{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18816cat >conftest.$ac_ext <<_ACEOF
18817/* confdefs.h. */
18818_ACEOF
18819cat confdefs.h >>conftest.$ac_ext
18820cat >>conftest.$ac_ext <<_ACEOF
18821/* end confdefs.h. */
18822$ac_includes_default
18823#include <$ac_header>
18824_ACEOF
18825rm -f conftest.$ac_objext
18826if { (ac_try="$ac_compile"
18827case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18830esac
18831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_compile") 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
18839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18840 { (case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843esac
18844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_try") 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; } &&
18849 { ac_try='test -s conftest.$ac_objext'
18850 { (case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18853esac
18854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_try") 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; }; then
18859 ac_header_compiler=yes
18860else
18861 echo "$as_me: failed program was:" >&5
18862sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018863
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018864 ac_header_compiler=no
18865fi
18866
18867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18869echo "${ECHO_T}$ac_header_compiler" >&6; }
18870
18871# Is the header present?
18872{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18874cat >conftest.$ac_ext <<_ACEOF
18875/* confdefs.h. */
18876_ACEOF
18877cat confdefs.h >>conftest.$ac_ext
18878cat >>conftest.$ac_ext <<_ACEOF
18879/* end confdefs.h. */
18880#include <$ac_header>
18881_ACEOF
18882if { (ac_try="$ac_cpp conftest.$ac_ext"
18883case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18886esac
18887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18889 ac_status=$?
18890 grep -v '^ *+' conftest.er1 >conftest.err
18891 rm -f conftest.er1
18892 cat conftest.err >&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } >/dev/null; then
18895 if test -s conftest.err; then
18896 ac_cpp_err=$ac_c_preproc_warn_flag
18897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18898 else
18899 ac_cpp_err=
18900 fi
18901else
18902 ac_cpp_err=yes
18903fi
18904if test -z "$ac_cpp_err"; then
18905 ac_header_preproc=yes
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ac_header_preproc=no
18911fi
18912
18913rm -f conftest.err conftest.$ac_ext
18914{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18915echo "${ECHO_T}$ac_header_preproc" >&6; }
18916
18917# So? What about this header?
18918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18919 yes:no: )
18920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18924 ac_header_preproc=yes
18925 ;;
18926 no:yes:* )
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18939 ( cat <<\_ASBOX
18940## ----------------------------------- ##
18941## Report this to llvmbugs@cs.uiuc.edu ##
18942## ----------------------------------- ##
18943_ASBOX
18944 ) | sed "s/^/$as_me: WARNING: /" >&2
18945 ;;
18946esac
18947{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18951else
18952 eval "$as_ac_Header=\$ac_header_preproc"
18953fi
18954ac_res=`eval echo '${'$as_ac_Header'}'`
18955 { echo "$as_me:$LINENO: result: $ac_res" >&5
18956echo "${ECHO_T}$ac_res" >&6; }
18957
18958fi
18959if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018960 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018962_ACEOF
18963
18964fi
18965
18966done
18967
18968
18969for ac_func in getpagesize
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018970do
18971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18972{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18974if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976else
18977 cat >conftest.$ac_ext <<_ACEOF
18978/* confdefs.h. */
18979_ACEOF
18980cat confdefs.h >>conftest.$ac_ext
18981cat >>conftest.$ac_ext <<_ACEOF
18982/* end confdefs.h. */
18983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18985#define $ac_func innocuous_$ac_func
18986
18987/* System header to define __stub macros and hopefully few prototypes,
18988 which can conflict with char $ac_func (); below.
18989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18990 <limits.h> exists even on freestanding compilers. */
18991
18992#ifdef __STDC__
18993# include <limits.h>
18994#else
18995# include <assert.h>
18996#endif
18997
18998#undef $ac_func
18999
19000/* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19003#ifdef __cplusplus
19004extern "C"
19005#endif
19006char $ac_func ();
19007/* The GNU C library defines this for functions which it implements
19008 to always fail with ENOSYS. Some functions are actually named
19009 something starting with __ and the normal name is an alias. */
19010#if defined __stub_$ac_func || defined __stub___$ac_func
19011choke me
19012#endif
19013
19014int
19015main ()
19016{
19017return $ac_func ();
19018 ;
19019 return 0;
19020}
19021_ACEOF
19022rm -f conftest.$ac_objext conftest$ac_exeext
19023if { (ac_try="$ac_link"
19024case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19027esac
19028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_link") 2>conftest.er1
19030 ac_status=$?
19031 grep -v '^ *+' conftest.er1 >conftest.err
19032 rm -f conftest.er1
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
19036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037 { (case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_try") 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_try") 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 eval "$as_ac_var=yes"
19057else
19058 echo "$as_me: failed program was:" >&5
19059sed 's/^/| /' conftest.$ac_ext >&5
19060
19061 eval "$as_ac_var=no"
19062fi
19063
19064rm -f core conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19066fi
19067ac_res=`eval echo '${'$as_ac_var'}'`
19068 { echo "$as_me:$LINENO: result: $ac_res" >&5
19069echo "${ECHO_T}$ac_res" >&6; }
19070if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019071 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019073_ACEOF
19074
19075fi
19076done
19077
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019078{ echo "$as_me:$LINENO: checking for working mmap" >&5
19079echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19080if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019082else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019083 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019084 ac_cv_func_mmap_fixed_mapped=no
19085else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019086 cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019091/* end confdefs.h. */
19092$ac_includes_default
19093/* malloc might have been renamed as rpl_malloc. */
19094#undef malloc
19095
19096/* Thanks to Mike Haertel and Jim Avera for this test.
19097 Here is a matrix of mmap possibilities:
19098 mmap private not fixed
19099 mmap private fixed at somewhere currently unmapped
19100 mmap private fixed at somewhere already mapped
19101 mmap shared not fixed
19102 mmap shared fixed at somewhere currently unmapped
19103 mmap shared fixed at somewhere already mapped
19104 For private mappings, we should verify that changes cannot be read()
19105 back from the file, nor mmap's back from the file at a different
19106 address. (There have been systems where private was not correctly
19107 implemented like the infamous i386 svr4.0, and systems where the
19108 VM page cache was not coherent with the file system buffer cache
19109 like early versions of FreeBSD and possibly contemporary NetBSD.)
19110 For shared mappings, we should conversely verify that changes get
19111 propagated back to all the places they're supposed to be.
19112
19113 Grep wants private fixed already mapped.
19114 The main things grep needs to know about mmap are:
19115 * does it exist and is it safe to write into the mmap'd area
19116 * how to use it (BSD variants) */
19117
19118#include <fcntl.h>
19119#include <sys/mman.h>
19120
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019121#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019122char *malloc ();
19123#endif
19124
19125/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019126#if !HAVE_GETPAGESIZE
19127/* Assume that all systems that can run configure have sys/param.h. */
19128# if !HAVE_SYS_PARAM_H
19129# define HAVE_SYS_PARAM_H 1
19130# endif
19131
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019132# ifdef _SC_PAGESIZE
19133# define getpagesize() sysconf(_SC_PAGESIZE)
19134# else /* no _SC_PAGESIZE */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019135# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019136# include <sys/param.h>
19137# ifdef EXEC_PAGESIZE
19138# define getpagesize() EXEC_PAGESIZE
19139# else /* no EXEC_PAGESIZE */
19140# ifdef NBPG
19141# define getpagesize() NBPG * CLSIZE
19142# ifndef CLSIZE
19143# define CLSIZE 1
19144# endif /* no CLSIZE */
19145# else /* no NBPG */
19146# ifdef NBPC
19147# define getpagesize() NBPC
19148# else /* no NBPC */
19149# ifdef PAGESIZE
19150# define getpagesize() PAGESIZE
19151# endif /* PAGESIZE */
19152# endif /* no NBPC */
19153# endif /* no NBPG */
19154# endif /* no EXEC_PAGESIZE */
19155# else /* no HAVE_SYS_PARAM_H */
19156# define getpagesize() 8192 /* punt totally */
19157# endif /* no HAVE_SYS_PARAM_H */
19158# endif /* no _SC_PAGESIZE */
19159
19160#endif /* no HAVE_GETPAGESIZE */
19161
19162int
19163main ()
19164{
19165 char *data, *data2, *data3;
19166 int i, pagesize;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019167 int fd;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019168
19169 pagesize = getpagesize ();
19170
19171 /* First, make a file with some known garbage in it. */
19172 data = (char *) malloc (pagesize);
19173 if (!data)
19174 return 1;
19175 for (i = 0; i < pagesize; ++i)
19176 *(data + i) = rand ();
19177 umask (0);
19178 fd = creat ("conftest.mmap", 0600);
19179 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019180 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019181 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019182 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019183 close (fd);
19184
19185 /* Next, try to mmap the file at a fixed address which already has
19186 something else allocated at it. If we can, also make sure that
19187 we see the same garbage. */
19188 fd = open ("conftest.mmap", O_RDWR);
19189 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019190 return 1;
19191 data2 = (char *) malloc (2 * pagesize);
19192 if (!data2)
19193 return 1;
19194 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019195 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019197 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019198 for (i = 0; i < pagesize; ++i)
19199 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019200 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019201
19202 /* Finally, make sure that changes to the mapped area do not
19203 percolate back to the file as seen by read(). (This is a bug on
19204 some variants of i386 svr4.0.) */
19205 for (i = 0; i < pagesize; ++i)
19206 *(data2 + i) = *(data2 + i) + 1;
19207 data3 = (char *) malloc (pagesize);
19208 if (!data3)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019209 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019210 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019211 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019212 for (i = 0; i < pagesize; ++i)
19213 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019214 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019215 close (fd);
19216 return 0;
19217}
19218_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019219rm -f conftest$ac_exeext
19220if { (ac_try="$ac_link"
19221case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19224esac
19225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_link") 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19233esac
19234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019239 ac_cv_func_mmap_fixed_mapped=yes
19240else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019241 echo "$as_me: program exited with status $ac_status" >&5
19242echo "$as_me: failed program was:" >&5
19243sed 's/^/| /' conftest.$ac_ext >&5
19244
19245( exit $ac_status )
19246ac_cv_func_mmap_fixed_mapped=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019247fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019248rm -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 +000019249fi
19250
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019251
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019252fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019253{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19254echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019255if test $ac_cv_func_mmap_fixed_mapped = yes; then
19256
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019257cat >>confdefs.h <<\_ACEOF
19258#define HAVE_MMAP 1
19259_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019260
19261fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019262rm -f conftest.mmap
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019263
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019264 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19265echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19266if test "${ac_cv_func_mmap_file+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019268else
19269 ac_ext=c
19270ac_cpp='$CPP $CPPFLAGS'
19271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273ac_compiler_gnu=$ac_cv_c_compiler_gnu
19274
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019275 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019276 ac_cv_func_mmap_file=no
19277else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019278 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019279
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019280 /* confdefs.h. */
19281_ACEOF
19282cat confdefs.h >>conftest.$ac_ext
19283cat >>conftest.$ac_ext <<_ACEOF
19284/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000019285
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019286#include <sys/types.h>
19287#include <sys/mman.h>
19288#include <fcntl.h>
19289
19290int
19291main ()
19292{
19293
19294 int fd;
19295 fd = creat ("foo",0777);
19296 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19297 unlink ("foo");
19298 return (fd != (int) MAP_FAILED);
19299 ;
19300 return 0;
19301}
19302_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019303rm -f conftest$ac_exeext
19304if { (ac_try="$ac_link"
19305case "(($ac_try" in
19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307 *) ac_try_echo=$ac_try;;
19308esac
19309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310 (eval "$ac_link") 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19314 { (case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19317esac
19318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_try") 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019323 ac_cv_func_mmap_file=yes
19324else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019325 echo "$as_me: program exited with status $ac_status" >&5
19326echo "$as_me: failed program was:" >&5
19327sed 's/^/| /' conftest.$ac_ext >&5
19328
19329( exit $ac_status )
19330ac_cv_func_mmap_file=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019331fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019332rm -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 +000019333fi
19334
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019335
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019336 ac_ext=c
19337ac_cpp='$CPP $CPPFLAGS'
19338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340ac_compiler_gnu=$ac_cv_c_compiler_gnu
19341
19342
19343fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019344{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19345echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019346if test "$ac_cv_func_mmap_file" = yes; then
19347
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019348cat >>confdefs.h <<\_ACEOF
19349#define HAVE_MMAP_FILE
19350_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019351
19352 MMAP_FILE=yes
19353
19354fi
19355
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019356 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19357echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19358if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019360else
19361 if test "$llvm_cv_os_type" = "Interix" ; then
19362 ac_cv_need_dev_zero_for_mmap=yes
19363 else
19364 ac_cv_need_dev_zero_for_mmap=no
19365 fi
19366
19367fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019368{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19369echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019370if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19371
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019372cat >>confdefs.h <<\_ACEOF
19373#define NEED_DEV_ZERO_FOR_MMAP 1
19374_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019375
19376fi
19377
19378 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19379 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019380 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19381echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019382 fi
19383 if test "$ac_cv_func_mmap_file" = "no"
19384 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019385 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19386echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019387 fi
19388fi
19389
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019390{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19391echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19392cat >conftest.$ac_ext <<_ACEOF
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000019397/* end confdefs.h. */
19398int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000019399 volatile unsigned long val = 1;
19400 __sync_synchronize();
19401 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000019402 __sync_add_and_fetch(&val, 1);
19403 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000019404 return 0;
19405 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019406
19407_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019408rm -f conftest.$ac_objext conftest$ac_exeext
19409if { (ac_try="$ac_link"
19410case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413esac
19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_link") 2>conftest.er1
19416 ac_status=$?
19417 grep -v '^ *+' conftest.er1 >conftest.err
19418 rm -f conftest.er1
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426esac
19427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_try") 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19436esac
19437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_try") 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 { echo "$as_me:$LINENO: result: yes" >&5
19443echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000019444
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019445cat >>confdefs.h <<\_ACEOF
19446#define LLVM_MULTITHREADED 1
19447_ACEOF
Owen Anderson96237ec2009-05-19 22:18:56 +000019448
Owen Andersonff0f88e2009-05-18 23:58:51 +000019449else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019450 echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000019452
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019453 { echo "$as_me:$LINENO: result: no" >&5
19454echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019455
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019456cat >>confdefs.h <<\_ACEOF
19457#define LLVM_MULTITHREADED 0
19458_ACEOF
19459
19460 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19461echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000019462fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019463
Owen Andersonff0f88e2009-05-18 23:58:51 +000019464rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019465 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000019466
19467
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019468
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019469if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019470 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19471echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19472if test "${llvm_cv_linux_mixed+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019474else
19475 ac_ext=c
19476ac_cpp='$CPP $CPPFLAGS'
19477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19479ac_compiler_gnu=$ac_cv_c_compiler_gnu
19480
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019481 cat >conftest.$ac_ext <<_ACEOF
19482/* confdefs.h. */
19483_ACEOF
19484cat confdefs.h >>conftest.$ac_ext
19485cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019486/* end confdefs.h. */
19487#ifndef __x86_64__
19488 error: Not x86-64 even if uname says so!
19489 #endif
19490
19491int
19492main ()
19493{
19494
19495 ;
19496 return 0;
19497}
19498_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019499rm -f conftest.$ac_objext
19500if { (ac_try="$ac_compile"
19501case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504esac
19505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_compile") 2>conftest.er1
19507 ac_status=$?
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
19513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517esac
19518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19527esac
19528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_try") 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019533 llvm_cv_linux_mixed=no
19534else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019535 echo "$as_me: failed program was:" >&5
19536sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 llvm_cv_linux_mixed=yes
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019539fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019540
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19542 ac_ext=c
19543ac_cpp='$CPP $CPPFLAGS'
19544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546ac_compiler_gnu=$ac_cv_c_compiler_gnu
19547
19548
19549fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019550{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19551echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019552
19553 if test "$llvm_cv_linux_mixed" = "yes"; then
19554 llvm_cv_target_arch="x86"
19555 ARCH="x86"
19556 fi
19557fi
19558
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019559
Reid Spencer59c09b32007-07-30 20:13:24 +000019560for ac_func in __dso_handle
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019561do
19562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19563{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19565if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567else
19568 cat >conftest.$ac_ext <<_ACEOF
19569/* confdefs.h. */
19570_ACEOF
19571cat confdefs.h >>conftest.$ac_ext
19572cat >>conftest.$ac_ext <<_ACEOF
19573/* end confdefs.h. */
19574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19576#define $ac_func innocuous_$ac_func
19577
19578/* System header to define __stub macros and hopefully few prototypes,
19579 which can conflict with char $ac_func (); below.
19580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19581 <limits.h> exists even on freestanding compilers. */
19582
19583#ifdef __STDC__
19584# include <limits.h>
19585#else
19586# include <assert.h>
19587#endif
19588
19589#undef $ac_func
19590
19591/* Override any GCC internal prototype to avoid an error.
19592 Use char because int might match the return type of a GCC
19593 builtin and then its argument prototype would still apply. */
19594#ifdef __cplusplus
19595extern "C"
19596#endif
19597char $ac_func ();
19598/* The GNU C library defines this for functions which it implements
19599 to always fail with ENOSYS. Some functions are actually named
19600 something starting with __ and the normal name is an alias. */
19601#if defined __stub_$ac_func || defined __stub___$ac_func
19602choke me
19603#endif
19604
19605int
19606main ()
19607{
19608return $ac_func ();
19609 ;
19610 return 0;
19611}
19612_ACEOF
19613rm -f conftest.$ac_objext conftest$ac_exeext
19614if { (ac_try="$ac_link"
19615case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618esac
19619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_link") 2>conftest.er1
19621 ac_status=$?
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
19627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19628 { (case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631esac
19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_try") 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; } &&
19637 { ac_try='test -s conftest$ac_exeext'
19638 { (case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19641esac
19642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_try") 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; }; then
19647 eval "$as_ac_var=yes"
19648else
19649 echo "$as_me: failed program was:" >&5
19650sed 's/^/| /' conftest.$ac_ext >&5
19651
19652 eval "$as_ac_var=no"
19653fi
19654
19655rm -f core conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19657fi
19658ac_res=`eval echo '${'$as_ac_var'}'`
19659 { echo "$as_me:$LINENO: result: $ac_res" >&5
19660echo "${ECHO_T}$ac_res" >&6; }
19661if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer59c09b32007-07-30 20:13:24 +000019662 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer59c09b32007-07-30 20:13:24 +000019664_ACEOF
19665
19666fi
19667done
19668
19669
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019670{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19671echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19672if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019674else
19675 llvm_cv_llvmgcc_sanity="no"
19676if test -x "$LLVMGCC" ; then
19677 cp /dev/null conftest.c
19678 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19679 grep 'target datalayout =' > /dev/null 2>&1
19680 if test $? -eq 0 ; then
19681 llvm_cv_llvmgcc_sanity="yes"
19682 fi
19683 rm conftest.c
19684fi
19685fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019686{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19687echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019688
19689if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019690 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19691echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019692 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19693 LLVMCC1=$llvmcc1path
19694
19695 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19696 LLVMCC1PLUS=$llvmcc1pluspath
19697
19698 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19699 LLVMGCCDIR=$llvmgccdir
19700
Tanya Lattner9894c2c2008-10-07 22:21:03 +000019701 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019702 LLVMGCC_LANGS=$llvmgcclangs
19703
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019704 { echo "$as_me:$LINENO: result: ok" >&5
19705echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019706fi
19707
19708SHLIBEXT=$libltdl_cv_shlibext
19709
19710
Jeffrey Yasskin42d27c72010-02-23 18:10:07 +000019711SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19712
19713
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019714# Translate the various configuration directories and other basic
19715# information into substitutions that will end up in Makefile.config.in
19716# that these configured values can be used by the makefiles
19717if test "${prefix}" = "NONE" ; then
19718 prefix="/usr/local"
19719fi
19720eval LLVM_PREFIX="${prefix}";
19721eval LLVM_BINDIR="${prefix}/bin";
19722eval LLVM_LIBDIR="${prefix}/lib";
19723eval LLVM_DATADIR="${prefix}/share/llvm";
19724eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19725eval LLVM_ETCDIR="${prefix}/etc/llvm";
19726eval LLVM_INCLUDEDIR="${prefix}/include";
19727eval LLVM_INFODIR="${prefix}/info";
19728eval LLVM_MANDIR="${prefix}/man";
19729LLVM_CONFIGTIME=`date`
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741# Place the various directores into the config.h file as #defines so that we
19742# can know about the installation paths within LLVM.
19743
19744cat >>confdefs.h <<_ACEOF
19745#define LLVM_PREFIX "$LLVM_PREFIX"
19746_ACEOF
19747
19748
19749cat >>confdefs.h <<_ACEOF
19750#define LLVM_BINDIR "$LLVM_BINDIR"
19751_ACEOF
19752
19753
19754cat >>confdefs.h <<_ACEOF
19755#define LLVM_LIBDIR "$LLVM_LIBDIR"
19756_ACEOF
19757
19758
19759cat >>confdefs.h <<_ACEOF
19760#define LLVM_DATADIR "$LLVM_DATADIR"
19761_ACEOF
19762
19763
19764cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000019765#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019766_ACEOF
19767
19768
19769cat >>confdefs.h <<_ACEOF
19770#define LLVM_ETCDIR "$LLVM_ETCDIR"
19771_ACEOF
19772
19773
19774cat >>confdefs.h <<_ACEOF
19775#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19776_ACEOF
19777
19778
19779cat >>confdefs.h <<_ACEOF
19780#define LLVM_INFODIR "$LLVM_INFODIR"
19781_ACEOF
19782
19783
19784cat >>confdefs.h <<_ACEOF
19785#define LLVM_MANDIR "$LLVM_MANDIR"
19786_ACEOF
19787
19788
19789cat >>confdefs.h <<_ACEOF
19790#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19791_ACEOF
19792
19793
Eric Christopher8b274472007-12-01 00:34:39 +000019794cat >>confdefs.h <<_ACEOF
19795#define LLVM_HOSTTRIPLE "$host"
19796_ACEOF
19797
19798
Gordon Henriksen016ec472007-10-02 09:50:32 +000019799# Determine which bindings to build.
19800if test "$BINDINGS_TO_BUILD" = auto ; then
19801 BINDINGS_TO_BUILD=""
19802 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19803 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19804 fi
19805fi
19806BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19807
19808
19809# This isn't really configurey, but it avoids having to repeat the list in
19810# other files.
19811ALL_BINDINGS=ocaml
19812
19813
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019814# Do any work necessary to ensure that bindings have what they need.
19815binding_prereqs_failed=0
19816for a_binding in $BINDINGS_TO_BUILD ; do
19817 case "$a_binding" in
19818 ocaml)
19819 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019820 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19821echo "$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 +000019822 binding_prereqs_failed=1
19823 fi
19824 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019825 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19826echo "$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 +000019827 binding_prereqs_failed=1
19828 fi
19829 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019830 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19831echo "$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 +000019832 fi
19833 if test "x$with_ocaml_libdir" != xauto ; then
19834 OCAML_LIBDIR=$with_ocaml_libdir
19835
19836 else
19837 ocaml_stdlib="`"$OCAMLC" -where`"
19838 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19839 then
19840 # ocaml stdlib is beneath our prefix; use stdlib
19841 OCAML_LIBDIR=$ocaml_stdlib
19842
19843 else
19844 # ocaml stdlib is outside our prefix; use libdir/ocaml
19845 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19846
19847 fi
19848 fi
19849 ;;
19850 esac
19851done
19852if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019853 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19854echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19855 { (exit 1); exit 1; }; }
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019856fi
19857
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019858{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19859echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19860if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019862else
19863 ac_ext=cpp
19864ac_cpp='$CXXCPP $CPPFLAGS'
19865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19868
19869 oldcxxflags="$CXXFLAGS"
19870 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019871 cat >conftest.$ac_ext <<_ACEOF
19872/* confdefs.h. */
19873_ACEOF
19874cat confdefs.h >>conftest.$ac_ext
19875cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019876/* end confdefs.h. */
19877
19878int
19879main ()
19880{
19881
19882 ;
19883 return 0;
19884}
19885_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019886rm -f conftest.$ac_objext
19887if { (ac_try="$ac_compile"
19888case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891esac
19892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_compile") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
19900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19901 { (case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19904esac
19905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_try") 2>&5
19907 ac_status=$?
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest.$ac_objext'
19911 { (case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_try") 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019920 llvm_cv_cxx_visibility_inlines_hidden=yes
19921else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019922 echo "$as_me: failed program was:" >&5
19923sed 's/^/| /' conftest.$ac_ext >&5
19924
19925 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019926fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019927
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929 CXXFLAGS="$oldcxxflags"
19930 ac_ext=c
19931ac_cpp='$CPP $CPPFLAGS'
19932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934ac_compiler_gnu=$ac_cv_c_compiler_gnu
19935
19936
19937fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019938{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19939echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019940if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19941 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19942
19943else
19944 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19945
19946fi
19947
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019948
Nick Lewycky6eab6652009-03-05 08:20:44 +000019949if test "$llvm_cv_link_use_r" = "yes" ; then
19950 RPATH="-Wl,-R"
19951else
19952 RPATH="-Wl,-rpath"
19953fi
19954
19955
19956if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19957 RDYNAMIC="-Wl,-export-dynamic"
19958else
19959 RDYNAMIC=""
19960fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000019961
19962
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019963
19964ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19965
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000019966ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19967
19968ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19969
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000019970ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19971
Daniel Dunbar0e18f262009-11-25 04:37:28 +000019972ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19973
Chandler Carruth1ec7df12009-10-26 01:35:46 +000019974ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019975
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019976
19977ac_config_files="$ac_config_files Makefile.config"
19978
19979
19980ac_config_files="$ac_config_files llvm.spec"
19981
19982
19983ac_config_files="$ac_config_files docs/doxygen.cfg"
19984
19985
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000019986ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19987
19988
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019989ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19990
19991
19992ac_config_commands="$ac_config_commands setup"
19993
19994ac_config_commands="$ac_config_commands Makefile"
19995
19996
19997ac_config_commands="$ac_config_commands Makefile.common"
19998
19999
20000ac_config_commands="$ac_config_commands examples/Makefile"
20001
20002
20003ac_config_commands="$ac_config_commands lib/Makefile"
20004
20005
20006ac_config_commands="$ac_config_commands runtime/Makefile"
20007
20008
20009ac_config_commands="$ac_config_commands test/Makefile"
20010
20011
20012ac_config_commands="$ac_config_commands test/Makefile.tests"
20013
20014
Bill Wendling9b9833f2009-01-04 23:12:30 +000020015ac_config_commands="$ac_config_commands unittests/Makefile"
20016
20017
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020018ac_config_commands="$ac_config_commands tools/Makefile"
20019
20020
20021ac_config_commands="$ac_config_commands utils/Makefile"
20022
20023
20024ac_config_commands="$ac_config_commands projects/Makefile"
20025
20026
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000020027ac_config_commands="$ac_config_commands bindings/Makefile"
20028
20029
20030ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20031
20032
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020033
20034cat >confcache <<\_ACEOF
20035# This file is a shell script that caches the results of configure
20036# tests run on this system so they can be shared between configure
20037# scripts and configure runs, see configure's option --config-cache.
20038# It is not useful on other systems. If it contains results you don't
20039# want to keep, you may remove or edit it.
20040#
20041# config.status only pays attention to the cache file if you give it
20042# the --recheck option to rerun configure.
20043#
20044# `ac_cv_env_foo' variables (set or unset) will be overridden when
20045# loading this file, other *unset* `ac_cv_foo' will be assigned the
20046# following values.
20047
20048_ACEOF
20049
20050# The following way of writing the cache mishandles newlines in values,
20051# but we know of no workaround that is simple, portable, and efficient.
20052# So, we kill variables containing newlines.
20053# Ultrix sh set writes to stderr and can't be redirected directly,
20054# and sets the high bit in the cache file unless we assign to the vars.
20055(
20056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20057 eval ac_val=\$$ac_var
20058 case $ac_val in #(
20059 *${as_nl}*)
20060 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020061 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20062echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020063 esac
20064 case $ac_var in #(
20065 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020066 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020067 esac ;;
20068 esac
20069 done
20070
20071 (set) 2>&1 |
20072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20073 *${as_nl}ac_space=\ *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020074 # `set' does not quote correctly, so add quotes (double-quote
20075 # substitution turns \\\\ into \\, and sed turns \\ into \).
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020076 sed -n \
20077 "s/'/'\\\\''/g;
20078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20079 ;; #(
20080 *)
20081 # `set' quotes correctly as required by POSIX, so do not add quotes.
20082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20083 ;;
20084 esac |
20085 sort
20086) |
20087 sed '
20088 /^ac_cv_env_/b end
20089 t clear
20090 :clear
20091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20092 t end
20093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20094 :end' >>confcache
20095if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20096 if test -w "$cache_file"; then
20097 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020098 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20099echo "$as_me: updating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020100 cat confcache >$cache_file
20101 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020102 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20103echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020104 fi
20105fi
20106rm -f confcache
20107
20108test "x$prefix" = xNONE && prefix=$ac_default_prefix
20109# Let make expand exec_prefix.
20110test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20111
20112DEFS=-DHAVE_CONFIG_H
20113
20114ac_libobjs=
20115ac_ltlibobjs=
20116for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20117 # 1. Remove the extension, and $U if already installed.
20118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020119 ac_i=`echo "$ac_i" | sed "$ac_script"`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20121 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020122 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20123 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020124done
20125LIBOBJS=$ac_libobjs
20126
20127LTLIBOBJS=$ac_ltlibobjs
20128
20129
20130if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020131 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20132Usually this means the macro was only invoked conditionally." >&5
20133echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20134Usually this means the macro was only invoked conditionally." >&2;}
20135 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020136fi
20137if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020138 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20139Usually this means the macro was only invoked conditionally." >&5
20140echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20141Usually this means the macro was only invoked conditionally." >&2;}
20142 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020143fi
20144
20145: ${CONFIG_STATUS=./config.status}
20146ac_clean_files_save=$ac_clean_files
20147ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020148{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20149echo "$as_me: creating $CONFIG_STATUS" >&6;}
20150cat >$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020151#! $SHELL
20152# Generated by $as_me.
20153# Run this file to recreate the current configuration.
20154# Compiler output produced by configure, useful for debugging
20155# configure, is in config.log if it exists.
20156
20157debug=false
20158ac_cs_recheck=false
20159ac_cs_silent=false
20160SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020161_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020162
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020163cat >>$CONFIG_STATUS <<\_ACEOF
20164## --------------------- ##
20165## M4sh Initialization. ##
20166## --------------------- ##
20167
20168# Be Bourne compatible
20169if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020170 emulate sh
20171 NULLCMD=:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020172 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020173 # is contrary to our usage. Disable this feature.
20174 alias -g '${1+"$@"}'='"$@"'
20175 setopt NO_GLOB_SUBST
20176else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020177 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020178fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020179BIN_SH=xpg4; export BIN_SH # for Tru64
20180DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020181
20182
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020183# PATH needs CR
20184# Avoid depending upon Character Ranges.
20185as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20186as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20187as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20188as_cr_digits='0123456789'
20189as_cr_alnum=$as_cr_Letters$as_cr_digits
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020190
20191# The user is always right.
20192if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020193 echo "#! /bin/sh" >conf$$.sh
20194 echo "exit 0" >>conf$$.sh
20195 chmod +x conf$$.sh
20196 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20197 PATH_SEPARATOR=';'
20198 else
20199 PATH_SEPARATOR=:
20200 fi
20201 rm -f conf$$.sh
20202fi
20203
20204# Support unset when possible.
20205if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20206 as_unset=unset
20207else
20208 as_unset=false
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020209fi
20210
20211
20212# IFS
20213# We need space, tab and new line, in precisely that order. Quoting is
20214# there to prevent editors from complaining about space-tab.
20215# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20216# splitting by setting IFS to empty value.)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020217as_nl='
20218'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020219IFS=" "" $as_nl"
20220
20221# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020222case $0 in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020223 *[\\/]* ) as_myself=$0 ;;
20224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225for as_dir in $PATH
20226do
20227 IFS=$as_save_IFS
20228 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20230done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020231IFS=$as_save_IFS
20232
20233 ;;
20234esac
20235# We did not find ourselves, most probably we were run as `sh COMMAND'
20236# in which case we are not to be found in the path.
20237if test "x$as_myself" = x; then
20238 as_myself=$0
20239fi
20240if test ! -f "$as_myself"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020241 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20242 { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020243fi
20244
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020245# Work around bugs in pre-3.0 UWIN ksh.
20246for as_var in ENV MAIL MAILPATH
20247do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020248done
20249PS1='$ '
20250PS2='> '
20251PS4='+ '
20252
20253# NLS nuisances.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020254for as_var in \
20255 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20256 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20257 LC_TELEPHONE LC_TIME
20258do
20259 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20260 eval $as_var=C; export $as_var
20261 else
20262 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Edwin Törökc27310c2010-01-26 08:50:50 +000020263 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020264done
Edwin Törökc27310c2010-01-26 08:50:50 +000020265
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020266# Required to use basename.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020267if expr a : '\(a\)' >/dev/null 2>&1 &&
20268 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20269 as_expr=expr
20270else
20271 as_expr=false
20272fi
20273
20274if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20275 as_basename=basename
20276else
20277 as_basename=false
20278fi
20279
20280
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020281# Name of the executable.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020282as_me=`$as_basename -- "$0" ||
20283$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20284 X"$0" : 'X\(//\)$' \| \
20285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020286echo X/"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020287 sed '/^.*\/\([^/][^/]*\)\/*$/{
20288 s//\1/
20289 q
20290 }
20291 /^X\/\(\/\/\)$/{
20292 s//\1/
20293 q
20294 }
20295 /^X\/\(\/\).*/{
20296 s//\1/
20297 q
20298 }
20299 s/.*/./; q'`
20300
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020301# CDPATH.
20302$as_unset CDPATH
20303
20304
20305
20306 as_lineno_1=$LINENO
20307 as_lineno_2=$LINENO
20308 test "x$as_lineno_1" != "x$as_lineno_2" &&
20309 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20310
20311 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20312 # uniformly replaced by the line number. The first 'sed' inserts a
20313 # line-number line after each line using $LINENO; the second 'sed'
20314 # does the real work. The second script uses 'N' to pair each
20315 # line-number line with the line containing $LINENO, and appends
20316 # trailing '-' during substitution so that $LINENO is not a special
20317 # case at line end.
20318 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20319 # scripts with optimization help from Paolo Bonzini. Blame Lee
20320 # E. McMahon (1931-1989) for sed's syntax. :-)
20321 sed -n '
20322 p
20323 /[$]LINENO/=
20324 ' <$as_myself |
20325 sed '
20326 s/[$]LINENO.*/&-/
20327 t lineno
20328 b
20329 :lineno
20330 N
20331 :loop
20332 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20333 t loop
20334 s/-\n.*//
20335 ' >$as_me.lineno &&
20336 chmod +x "$as_me.lineno" ||
20337 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20338 { (exit 1); exit 1; }; }
20339
20340 # Don't try to exec as it changes $[0], causing all sort of problems
20341 # (the dirname of $[0] is not the place where we might find the
20342 # original and so on. Autoconf is especially sensitive to this).
20343 . "./$as_me.lineno"
20344 # Exit status is that of the last command.
20345 exit
20346}
20347
20348
20349if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20350 as_dirname=dirname
20351else
20352 as_dirname=false
20353fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020354
20355ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020356case `echo -n x` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020357-n*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020358 case `echo 'x\c'` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020360 *) ECHO_C='\c';;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020361 esac;;
20362*)
20363 ECHO_N='-n';;
20364esac
20365
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020366if expr a : '\(a\)' >/dev/null 2>&1 &&
20367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20368 as_expr=expr
20369else
20370 as_expr=false
20371fi
20372
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020373rm -f conf$$ conf$$.exe conf$$.file
20374if test -d conf$$.dir; then
20375 rm -f conf$$.dir/conf$$.file
20376else
20377 rm -f conf$$.dir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020378 mkdir conf$$.dir
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020379fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020380echo >conf$$.file
20381if ln -s conf$$.file conf$$ 2>/dev/null; then
20382 as_ln_s='ln -s'
20383 # ... but there are two gotchas:
20384 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20385 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20386 # In both cases, we have to default to `cp -p'.
20387 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020388 as_ln_s='cp -p'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020389elif ln conf$$.file conf$$ 2>/dev/null; then
20390 as_ln_s=ln
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020391else
20392 as_ln_s='cp -p'
20393fi
20394rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20395rmdir conf$$.dir 2>/dev/null
20396
20397if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020398 as_mkdir_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020399else
20400 test -d ./-p && rmdir ./-p
20401 as_mkdir_p=false
20402fi
20403
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020404# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20405# systems may use methods other than mode bits to determine executability.
20406cat >conf$$.file <<_ASEOF
20407#! /bin/sh
20408exit 0
20409_ASEOF
20410chmod +x conf$$.file
20411if test -x conf$$.file >/dev/null 2>&1; then
20412 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020413else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020414 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020415fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020416rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020417
20418# Sed expression to map a string onto a valid CPP name.
20419as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20420
20421# Sed expression to map a string onto a valid variable name.
20422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20423
20424
20425exec 6>&1
20426
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020427# Save the log message, to keep $[0] and so on meaningful, and to
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020428# report actual input values of CONFIG_FILES etc. instead of their
20429# values after options handling.
20430ac_log="
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000020431This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020432generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020433
20434 CONFIG_FILES = $CONFIG_FILES
20435 CONFIG_HEADERS = $CONFIG_HEADERS
20436 CONFIG_LINKS = $CONFIG_LINKS
20437 CONFIG_COMMANDS = $CONFIG_COMMANDS
20438 $ $0 $@
20439
20440on `(hostname || uname -n) 2>/dev/null | sed 1q`
20441"
20442
20443_ACEOF
20444
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020445cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020446# Files that config.status was made for.
20447config_files="$ac_config_files"
20448config_headers="$ac_config_headers"
20449config_commands="$ac_config_commands"
20450
20451_ACEOF
20452
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020453cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020454ac_cs_usage="\
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020455\`$as_me' instantiates files from templates according to the
20456current configuration.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020457
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020458Usage: $0 [OPTIONS] [FILE]...
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020459
20460 -h, --help print this help, then exit
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020461 -V, --version print version number, then exit
20462 -q, --quiet do not print progress messages
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020463 -d, --debug don't remove temporary files
20464 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020465 --file=FILE[:TEMPLATE]
20466 instantiate the configuration file FILE
20467 --header=FILE[:TEMPLATE]
20468 instantiate the configuration header FILE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020469
20470Configuration files:
20471$config_files
20472
20473Configuration headers:
20474$config_headers
20475
20476Configuration commands:
20477$config_commands
20478
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020479Report bugs to <bug-autoconf@gnu.org>."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020480
20481_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020482cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020483ac_cs_version="\\
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000020484llvm config.status 2.7svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020485configured by $0, generated by GNU Autoconf 2.60,
20486 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020487
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020488Copyright (C) 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020489This config.status script is free software; the Free Software Foundation
20490gives unlimited permission to copy, distribute and modify it."
20491
20492ac_pwd='$ac_pwd'
20493srcdir='$srcdir'
20494INSTALL='$INSTALL'
20495_ACEOF
20496
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020497cat >>$CONFIG_STATUS <<\_ACEOF
20498# If no file are specified by the user, then we need to provide default
20499# value. By we need to know if files were specified by the user.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020500ac_need_defaults=:
20501while test $# != 0
20502do
20503 case $1 in
20504 --*=*)
20505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20506 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20507 ac_shift=:
20508 ;;
20509 *)
20510 ac_option=$1
20511 ac_optarg=$2
20512 ac_shift=shift
20513 ;;
20514 esac
20515
20516 case $ac_option in
20517 # Handling of the options.
20518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20519 ac_cs_recheck=: ;;
20520 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020521 echo "$ac_cs_version"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020522 --debug | --debu | --deb | --de | --d | -d )
20523 debug=: ;;
20524 --file | --fil | --fi | --f )
20525 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020526 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020527 ac_need_defaults=false;;
20528 --header | --heade | --head | --hea )
20529 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020530 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020531 ac_need_defaults=false;;
20532 --he | --h)
20533 # Conflict between --help and --header
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020534 { echo "$as_me: error: ambiguous option: $1
20535Try \`$0 --help' for more information." >&2
20536 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020537 --help | --hel | -h )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020538 echo "$ac_cs_usage"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20541 ac_cs_silent=: ;;
20542
20543 # This is an error.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020544 -*) { echo "$as_me: error: unrecognized option: $1
20545Try \`$0 --help' for more information." >&2
20546 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020547
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020548 *) ac_config_targets="$ac_config_targets $1"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020549 ac_need_defaults=false ;;
20550
20551 esac
20552 shift
20553done
20554
20555ac_configure_extra_args=
20556
20557if $ac_cs_silent; then
20558 exec 6>/dev/null
20559 ac_configure_extra_args="$ac_configure_extra_args --silent"
20560fi
20561
20562_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020563cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020564if \$ac_cs_recheck; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020565 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20566 CONFIG_SHELL=$SHELL
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020567 export CONFIG_SHELL
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020568 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020569fi
20570
20571_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020572cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020573exec 5>>config.log
20574{
20575 echo
20576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20577## Running $as_me. ##
20578_ASBOX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020579 echo "$ac_log"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020580} >&5
20581
20582_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020583cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020584#
20585# INIT-COMMANDS
20586#
20587llvm_src="${srcdir}"
20588
20589_ACEOF
20590
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020591cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020592
20593# Handling of arguments.
20594for ac_config_target in $ac_config_targets
20595do
20596 case $ac_config_target in
20597 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000020598 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20599 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000020600 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar0e18f262009-11-25 04:37:28 +000020601 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth1ec7df12009-10-26 01:35:46 +000020602 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020603 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20604 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20605 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000020606 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020607 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20608 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20609 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20610 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20611 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20612 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20613 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20614 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20615 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000020616 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020617 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20618 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20619 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000020620 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20621 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020622
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020623 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20624echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20625 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020626 esac
20627done
20628
20629
20630# If the user did not use the arguments to specify the items to instantiate,
20631# then the envvar interface is used. Set only those that are not.
20632# We use the long form for the default assignment because of an extremely
20633# bizarre bug on SunOS 4.1.3.
20634if $ac_need_defaults; then
20635 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20636 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20638fi
20639
20640# Have a temporary directory for convenience. Make it in the build tree
20641# simply because there is no reason against having it here, and in addition,
20642# creating and moving files from /tmp can sometimes cause problems.
20643# Hook for its removal unless debugging.
20644# Note that there is a small window in which the directory will not be cleaned:
20645# after its creation but before its name has been assigned to `$tmp'.
20646$debug ||
20647{
20648 tmp=
20649 trap 'exit_status=$?
20650 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20651' 0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020652 trap '{ (exit 1); exit 1; }' 1 2 13 15
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020653}
20654# Create a (secure) tmp directory for tmp files.
20655
20656{
20657 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20658 test -n "$tmp" && test -d "$tmp"
20659} ||
20660{
20661 tmp=./conf$$-$RANDOM
20662 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020663} ||
20664{
20665 echo "$me: cannot create a temporary directory in ." >&2
20666 { (exit 1); exit 1; }
20667}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020668
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020669#
20670# Set up the sed scripts for CONFIG_FILES section.
20671#
20672
20673# No need to generate the scripts if there are no CONFIG_FILES.
20674# This happens for instance when ./config.status config.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020675if test -n "$CONFIG_FILES"; then
20676
20677_ACEOF
20678
20679
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020680
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020681ac_delim='%!_!# '
20682for ac_last_try in false false false false false :; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020683 cat >conf$$subs.sed <<_ACEOF
20684SHELL!$SHELL$ac_delim
20685PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20686PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20687PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20688PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20689PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20690PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20691exec_prefix!$exec_prefix$ac_delim
20692prefix!$prefix$ac_delim
20693program_transform_name!$program_transform_name$ac_delim
20694bindir!$bindir$ac_delim
20695sbindir!$sbindir$ac_delim
20696libexecdir!$libexecdir$ac_delim
20697datarootdir!$datarootdir$ac_delim
20698datadir!$datadir$ac_delim
20699sysconfdir!$sysconfdir$ac_delim
20700sharedstatedir!$sharedstatedir$ac_delim
20701localstatedir!$localstatedir$ac_delim
20702includedir!$includedir$ac_delim
20703oldincludedir!$oldincludedir$ac_delim
20704docdir!$docdir$ac_delim
20705infodir!$infodir$ac_delim
20706htmldir!$htmldir$ac_delim
20707dvidir!$dvidir$ac_delim
20708pdfdir!$pdfdir$ac_delim
20709psdir!$psdir$ac_delim
20710libdir!$libdir$ac_delim
20711localedir!$localedir$ac_delim
20712mandir!$mandir$ac_delim
20713DEFS!$DEFS$ac_delim
20714ECHO_C!$ECHO_C$ac_delim
20715ECHO_N!$ECHO_N$ac_delim
20716ECHO_T!$ECHO_T$ac_delim
20717LIBS!$LIBS$ac_delim
20718build_alias!$build_alias$ac_delim
20719host_alias!$host_alias$ac_delim
20720target_alias!$target_alias$ac_delim
20721LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20722subdirs!$subdirs$ac_delim
20723build!$build$ac_delim
20724build_cpu!$build_cpu$ac_delim
20725build_vendor!$build_vendor$ac_delim
20726build_os!$build_os$ac_delim
20727host!$host$ac_delim
20728host_cpu!$host_cpu$ac_delim
20729host_vendor!$host_vendor$ac_delim
20730host_os!$host_os$ac_delim
20731target!$target$ac_delim
20732target_cpu!$target_cpu$ac_delim
20733target_vendor!$target_vendor$ac_delim
20734target_os!$target_os$ac_delim
20735OS!$OS$ac_delim
20736HOST_OS!$HOST_OS$ac_delim
20737TARGET_OS!$TARGET_OS$ac_delim
20738LINKALL!$LINKALL$ac_delim
20739NOLINKALL!$NOLINKALL$ac_delim
20740LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20741LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20742ARCH!$ARCH$ac_delim
20743ENDIAN!$ENDIAN$ac_delim
20744CC!$CC$ac_delim
20745CFLAGS!$CFLAGS$ac_delim
20746LDFLAGS!$LDFLAGS$ac_delim
20747CPPFLAGS!$CPPFLAGS$ac_delim
20748ac_ct_CC!$ac_ct_CC$ac_delim
20749EXEEXT!$EXEEXT$ac_delim
20750OBJEXT!$OBJEXT$ac_delim
20751CPP!$CPP$ac_delim
20752GREP!$GREP$ac_delim
20753EGREP!$EGREP$ac_delim
20754LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20755BUILD_CC!$BUILD_CC$ac_delim
20756BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20757BUILD_CXX!$BUILD_CXX$ac_delim
20758CVSBUILD!$CVSBUILD$ac_delim
20759ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20760ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20761DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20762ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20763EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20764DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20765DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20766JIT!$JIT$ac_delim
20767TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20768ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20769ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20770ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskin42d27c72010-02-23 18:10:07 +000020771ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020772TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20773LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20774LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20775LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20776LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20777ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000020778CLANGPATH!$CLANGPATH$ac_delim
20779CLANGXXPATH!$CLANGXXPATH$ac_delim
20780ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020781_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020782
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020783 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020784 break
20785 elif $ac_last_try; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020786 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20787echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20788 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020789 else
20790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20791 fi
20792done
20793
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020794ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20795if test -n "$ac_eof"; then
20796 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20797 ac_eof=`expr $ac_eof + 1`
20798fi
20799
20800cat >>$CONFIG_STATUS <<_ACEOF
20801cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20802/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020803_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020804sed '
20805s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20806s/^/s,@/; s/!/@,|#_!!_#|/
20807:n
20808t n
20809s/'"$ac_delim"'$/,g/; t
20810s/$/\\/; p
20811N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20812' >>$CONFIG_STATUS <conf$$subs.sed
20813rm -f conf$$subs.sed
20814cat >>$CONFIG_STATUS <<_ACEOF
20815CEOF$ac_eof
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020816_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020817
20818
20819ac_delim='%!_!# '
20820for ac_last_try in false false false false false :; do
20821 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskin42d27c72010-02-23 18:10:07 +000020822OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000020823EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20824BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20825ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020826ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20827CXX!$CXX$ac_delim
20828CXXFLAGS!$CXXFLAGS$ac_delim
20829ac_ct_CXX!$ac_ct_CXX$ac_delim
20830NM!$NM$ac_delim
20831ifGNUmake!$ifGNUmake$ac_delim
20832LN_S!$LN_S$ac_delim
20833CMP!$CMP$ac_delim
20834CP!$CP$ac_delim
20835DATE!$DATE$ac_delim
20836FIND!$FIND$ac_delim
20837MKDIR!$MKDIR$ac_delim
20838MV!$MV$ac_delim
20839RANLIB!$RANLIB$ac_delim
20840AR!$AR$ac_delim
20841RM!$RM$ac_delim
20842SED!$SED$ac_delim
20843TAR!$TAR$ac_delim
20844BINPWD!$BINPWD$ac_delim
20845GRAPHVIZ!$GRAPHVIZ$ac_delim
20846DOT!$DOT$ac_delim
20847FDP!$FDP$ac_delim
20848NEATO!$NEATO$ac_delim
20849TWOPI!$TWOPI$ac_delim
20850CIRCO!$CIRCO$ac_delim
20851GV!$GV$ac_delim
20852DOTTY!$DOTTY$ac_delim
20853PERL!$PERL$ac_delim
20854HAVE_PERL!$HAVE_PERL$ac_delim
20855INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20856INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20857INSTALL_DATA!$INSTALL_DATA$ac_delim
20858BZIP2!$BZIP2$ac_delim
20859DOXYGEN!$DOXYGEN$ac_delim
20860GROFF!$GROFF$ac_delim
20861GZIP!$GZIP$ac_delim
20862POD2HTML!$POD2HTML$ac_delim
20863POD2MAN!$POD2MAN$ac_delim
20864RUNTEST!$RUNTEST$ac_delim
20865TCLSH!$TCLSH$ac_delim
20866ZIP!$ZIP$ac_delim
20867OCAMLC!$OCAMLC$ac_delim
20868OCAMLOPT!$OCAMLOPT$ac_delim
20869OCAMLDEP!$OCAMLDEP$ac_delim
20870OCAMLDOC!$OCAMLDOC$ac_delim
20871GAS!$GAS$ac_delim
20872INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20873INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20874CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20875CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20876LIBADD_DL!$LIBADD_DL$ac_delim
20877LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20878LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20879LLVMGCC!$LLVMGCC$ac_delim
20880LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000020881LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020882NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20883NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20884USE_UDIS86!$USE_UDIS86$ac_delim
20885USE_OPROFILE!$USE_OPROFILE$ac_delim
20886HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20887HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20888MMAP_FILE!$MMAP_FILE$ac_delim
20889LLVMCC1!$LLVMCC1$ac_delim
20890LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20891LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020892LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20893SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskin42d27c72010-02-23 18:10:07 +000020894SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020895LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20896LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20897LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20898LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20899LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20900LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20901LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20902LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20903LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20904LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20905BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20906ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20907OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20908ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20909RPATH!$RPATH$ac_delim
20910RDYNAMIC!$RDYNAMIC$ac_delim
20911LIBOBJS!$LIBOBJS$ac_delim
20912LTLIBOBJS!$LTLIBOBJS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020913_ACEOF
20914
Jeffrey Yasskin42d27c72010-02-23 18:10:07 +000020915 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020916 break
20917 elif $ac_last_try; then
20918 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20919echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20920 { (exit 1); exit 1; }; }
20921 else
20922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20923 fi
20924done
20925
20926ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20927if test -n "$ac_eof"; then
20928 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20929 ac_eof=`expr $ac_eof + 1`
20930fi
20931
20932cat >>$CONFIG_STATUS <<_ACEOF
20933cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20934/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20935_ACEOF
20936sed '
20937s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20938s/^/s,@/; s/!/@,|#_!!_#|/
20939:n
20940t n
20941s/'"$ac_delim"'$/,g/; t
20942s/$/\\/; p
20943N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20944' >>$CONFIG_STATUS <conf$$subs.sed
20945rm -f conf$$subs.sed
20946cat >>$CONFIG_STATUS <<_ACEOF
20947:end
20948s/|#_!!_#|//g
20949CEOF$ac_eof
20950_ACEOF
20951
20952
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020953# VPATH may cause trouble with some makes, so we remove $(srcdir),
20954# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20955# trailing colons and then remove the whole line if VPATH becomes empty
20956# (actually we leave an empty line to preserve line numbers).
20957if test "x$srcdir" = x.; then
20958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20959s/:*\$(srcdir):*/:/
20960s/:*\${srcdir}:*/:/
20961s/:*@srcdir@:*/:/
20962s/^\([^=]*=[ ]*\):*/\1/
20963s/:*$//
20964s/^[^=]*=[ ]*$//
20965}'
20966fi
20967
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020968cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020969fi # test -n "$CONFIG_FILES"
20970
20971
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020972for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020973do
20974 case $ac_tag in
20975 :[FHLC]) ac_mode=$ac_tag; continue;;
20976 esac
20977 case $ac_mode$ac_tag in
20978 :[FHL]*:*);;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020979 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20980echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20981 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020982 :[FH]-) ac_tag=-:-;;
20983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20984 esac
20985 ac_save_IFS=$IFS
20986 IFS=:
20987 set x $ac_tag
20988 IFS=$ac_save_IFS
20989 shift
20990 ac_file=$1
20991 shift
20992
20993 case $ac_mode in
20994 :L) ac_source=$1;;
20995 :[FH])
20996 ac_file_inputs=
20997 for ac_f
20998 do
20999 case $ac_f in
21000 -) ac_f="$tmp/stdin";;
21001 *) # Look for the file first in the build tree, then in the source tree
21002 # (if the path is not absolute). The absolute path cannot be DOS-style,
21003 # because $ac_f cannot contain `:'.
21004 test -f "$ac_f" ||
21005 case $ac_f in
21006 [\\/$]*) false;;
21007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21008 esac ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021009 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21010echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21011 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021012 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021013 ac_file_inputs="$ac_file_inputs $ac_f"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021014 done
21015
21016 # Let's still pretend it is `configure' which instantiates (i.e., don't
21017 # use $as_me), people would be surprised to read:
21018 # /* config.h. Generated by config.status. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021019 configure_input="Generated from "`IFS=:
21020 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021021 if test x"$ac_file" != x-; then
21022 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021023 { echo "$as_me:$LINENO: creating $ac_file" >&5
21024echo "$as_me: creating $ac_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021025 fi
21026
21027 case $ac_tag in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021028 *:-:* | *:-) cat >"$tmp/stdin";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021029 esac
21030 ;;
21031 esac
21032
21033 ac_dir=`$as_dirname -- "$ac_file" ||
21034$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21035 X"$ac_file" : 'X\(//\)[^/]' \| \
21036 X"$ac_file" : 'X\(//\)$' \| \
21037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021038echo X"$ac_file" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21040 s//\1/
21041 q
21042 }
21043 /^X\(\/\/\)[^/].*/{
21044 s//\1/
21045 q
21046 }
21047 /^X\(\/\/\)$/{
21048 s//\1/
21049 q
21050 }
21051 /^X\(\/\).*/{
21052 s//\1/
21053 q
21054 }
21055 s/.*/./; q'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021056 { as_dir="$ac_dir"
21057 case $as_dir in #(
21058 -*) as_dir=./$as_dir;;
21059 esac
21060 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21061 as_dirs=
21062 while :; do
21063 case $as_dir in #(
21064 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21065 *) as_qdir=$as_dir;;
21066 esac
21067 as_dirs="'$as_qdir' $as_dirs"
21068 as_dir=`$as_dirname -- "$as_dir" ||
21069$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21070 X"$as_dir" : 'X\(//\)[^/]' \| \
21071 X"$as_dir" : 'X\(//\)$' \| \
21072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21073echo X"$as_dir" |
21074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21075 s//\1/
21076 q
21077 }
21078 /^X\(\/\/\)[^/].*/{
21079 s//\1/
21080 q
21081 }
21082 /^X\(\/\/\)$/{
21083 s//\1/
21084 q
21085 }
21086 /^X\(\/\).*/{
21087 s//\1/
21088 q
21089 }
21090 s/.*/./; q'`
21091 test -d "$as_dir" && break
21092 done
21093 test -z "$as_dirs" || eval "mkdir $as_dirs"
21094 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21095echo "$as_me: error: cannot create directory $as_dir" >&2;}
21096 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021097 ac_builddir=.
21098
21099case "$ac_dir" in
21100.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21101*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021103 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021104 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021105 case $ac_top_builddir_sub in
21106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21108 esac ;;
21109esac
21110ac_abs_top_builddir=$ac_pwd
21111ac_abs_builddir=$ac_pwd$ac_dir_suffix
21112# for backward compatibility:
21113ac_top_builddir=$ac_top_build_prefix
21114
21115case $srcdir in
21116 .) # We are building in place.
21117 ac_srcdir=.
21118 ac_top_srcdir=$ac_top_builddir_sub
21119 ac_abs_top_srcdir=$ac_pwd ;;
21120 [\\/]* | ?:[\\/]* ) # Absolute name.
21121 ac_srcdir=$srcdir$ac_dir_suffix;
21122 ac_top_srcdir=$srcdir
21123 ac_abs_top_srcdir=$srcdir ;;
21124 *) # Relative name.
21125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21126 ac_top_srcdir=$ac_top_build_prefix$srcdir
21127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21128esac
21129ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21130
21131
21132 case $ac_mode in
21133 :F)
21134 #
21135 # CONFIG_FILE
21136 #
21137
21138 case $INSTALL in
21139 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21140 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21141 esac
21142_ACEOF
21143
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021144cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021145# If the template does not know about datarootdir, expand it.
21146# FIXME: This hack should be removed a few years after 2.60.
21147ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021148
21149case `sed -n '/datarootdir/ {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021150 p
21151 q
21152}
21153/@datadir@/p
21154/@docdir@/p
21155/@infodir@/p
21156/@localedir@/p
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021157/@mandir@/p
21158' $ac_file_inputs` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021159*datarootdir*) ac_datarootdir_seen=yes;;
21160*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021161 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21162echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021163_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021164cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021165 ac_datarootdir_hack='
21166 s&@datadir@&$datadir&g
21167 s&@docdir@&$docdir&g
21168 s&@infodir@&$infodir&g
21169 s&@localedir@&$localedir&g
21170 s&@mandir@&$mandir&g
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021171 s&\\\${datarootdir}&$datarootdir&g' ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021172esac
21173_ACEOF
21174
21175# Neutralize VPATH when `$srcdir' = `.'.
21176# Shell code in configure.ac might set extrasub.
21177# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021178cat >>$CONFIG_STATUS <<_ACEOF
21179 sed "$ac_vpsub
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021180$extrasub
21181_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021182cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021183:t
21184/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021185s&@configure_input@&$configure_input&;t t
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021186s&@top_builddir@&$ac_top_builddir_sub&;t t
21187s&@srcdir@&$ac_srcdir&;t t
21188s&@abs_srcdir@&$ac_abs_srcdir&;t t
21189s&@top_srcdir@&$ac_top_srcdir&;t t
21190s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21191s&@builddir@&$ac_builddir&;t t
21192s&@abs_builddir@&$ac_abs_builddir&;t t
21193s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21194s&@INSTALL@&$ac_INSTALL&;t t
21195$ac_datarootdir_hack
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021196" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021197
21198test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21199 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21200 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021201 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021202which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021203echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021204which seems to be undefined. Please make sure it is defined." >&2;}
21205
21206 rm -f "$tmp/stdin"
21207 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021208 -) cat "$tmp/out"; rm -f "$tmp/out";;
21209 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21210 esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021211 ;;
21212 :H)
21213 #
21214 # CONFIG_HEADER
21215 #
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021216_ACEOF
21217
21218# Transform confdefs.h into a sed script `conftest.defines', that
21219# substitutes the proper values into config.h.in to produce config.h.
21220rm -f conftest.defines conftest.tail
21221# First, append a space to every undef/define line, to ease matching.
21222echo 's/$/ /' >conftest.defines
21223# Then, protect against being on the right side of a sed subst, or in
21224# an unquoted here document, in config.status. If some macros were
21225# called several times there might be several #defines for the same
21226# symbol, which is useless. But do not sort them, since the last
21227# AC_DEFINE must be honored.
21228ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21229# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21230# NAME is the cpp macro being defined, VALUE is the value it is being given.
21231# PARAMS is the parameter list in the macro definition--in most cases, it's
21232# just an empty string.
21233ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21234ac_dB='\\)[ (].*,\\1define\\2'
21235ac_dC=' '
21236ac_dD=' ,'
21237
21238uniq confdefs.h |
21239 sed -n '
21240 t rset
21241 :rset
21242 s/^[ ]*#[ ]*define[ ][ ]*//
21243 t ok
21244 d
21245 :ok
21246 s/[\\&,]/\\&/g
21247 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21248 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21249 ' >>conftest.defines
21250
21251# Remove the space that was appended to ease matching.
21252# Then replace #undef with comments. This is necessary, for
21253# example, in the case of _POSIX_SOURCE, which is predefined and required
21254# on some systems where configure will not decide to define it.
21255# (The regexp can be short, since the line contains either #define or #undef.)
21256echo 's/ $//
21257s,^[ #]*u.*,/* & */,' >>conftest.defines
21258
21259# Break up conftest.defines:
21260ac_max_sed_lines=50
21261
21262# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21263# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21264# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21265# et cetera.
21266ac_in='$ac_file_inputs'
21267ac_out='"$tmp/out1"'
21268ac_nxt='"$tmp/out2"'
21269
21270while :
21271do
21272 # Write a here document:
21273 cat >>$CONFIG_STATUS <<_ACEOF
21274 # First, check the format of the line:
21275 cat >"\$tmp/defines.sed" <<\\CEOF
21276/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21277/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21278b
21279:def
21280_ACEOF
21281 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21282 echo 'CEOF
21283 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21284 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21285 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21286 grep . conftest.tail >/dev/null || break
21287 rm -f conftest.defines
21288 mv conftest.tail conftest.defines
21289done
21290rm -f conftest.defines conftest.tail
21291
21292echo "ac_result=$ac_in" >>$CONFIG_STATUS
21293cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021294 if test x"$ac_file" != x-; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021295 echo "/* $configure_input */" >"$tmp/config.h"
21296 cat "$ac_result" >>"$tmp/config.h"
21297 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21298 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21299echo "$as_me: $ac_file is unchanged" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021300 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021301 rm -f $ac_file
21302 mv "$tmp/config.h" $ac_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021303 fi
21304 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021305 echo "/* $configure_input */"
21306 cat "$ac_result"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021307 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021308 rm -f "$tmp/out12"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021309 ;;
21310
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021311 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21312echo "$as_me: executing $ac_file commands" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021313 ;;
21314 esac
21315
21316
21317 case $ac_file$ac_mode in
21318 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021319 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021320 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Edwin Törökab4193b2009-08-28 16:12:48 +000021321 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021322 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021323 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021324 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021325 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021326 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021327 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021328 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021329 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021330 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Edwin Törökab4193b2009-08-28 16:12:48 +000021331 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000021332 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021333 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021334 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021335 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021336 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021337 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021338 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021339 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021340 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021341 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021342 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Edwin Törökab4193b2009-08-28 16:12:48 +000021343 ${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 +000021344
21345 esac
21346done # for ac_tag
21347
21348
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021349{ (exit 0); exit 0; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021350_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021351chmod +x $CONFIG_STATUS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021352ac_clean_files=$ac_clean_files_save
21353
21354
21355# configure is writing to config.log, and then calls config.status.
21356# config.status does its own redirection, appending to config.log.
21357# Unfortunately, on DOS this fails, as config.log is still kept open
21358# by configure, so config.status won't be able to write to it; its
21359# output is simply discarded. So we exec the FD to /dev/null,
21360# effectively closing config.log, so it can be properly (re)opened and
21361# appended to by config.status. When coming back to configure, we
21362# need to make the FD available again.
21363if test "$no_create" != yes; then
21364 ac_cs_success=:
21365 ac_config_status_args=
21366 test "$silent" = yes &&
21367 ac_config_status_args="$ac_config_status_args --quiet"
21368 exec 5>/dev/null
21369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21370 exec 5>>config.log
21371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21372 # would make configure fail if this is the last instruction.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021373 $ac_cs_success || { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021374fi
21375
21376#
21377# CONFIG_SUBDIRS section.
21378#
21379if test "$no_recursion" != yes; then
21380
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021381 # Remove --cache-file and --srcdir arguments so they do not pile up.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021382 ac_sub_configure_args=
21383 ac_prev=
21384 eval "set x $ac_configure_args"
21385 shift
21386 for ac_arg
21387 do
21388 if test -n "$ac_prev"; then
21389 ac_prev=
21390 continue
21391 fi
21392 case $ac_arg in
21393 -cache-file | --cache-file | --cache-fil | --cache-fi \
21394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21395 ac_prev=cache_file ;;
21396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21398 | --c=*)
21399 ;;
21400 --config-cache | -C)
21401 ;;
21402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21403 ac_prev=srcdir ;;
21404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21405 ;;
21406 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21407 ac_prev=prefix ;;
21408 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21409 ;;
21410 *)
21411 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021412 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021413 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021414 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021415 esac
21416 done
21417
21418 # Always prepend --prefix to ensure using the same prefix
21419 # in subdir configurations.
21420 ac_arg="--prefix=$prefix"
21421 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021422 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021423 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021424 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021425
21426 ac_popdir=`pwd`
21427 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21428
21429 # Do not complain, so a configure script can configure whichever
21430 # parts of a large source tree are present.
21431 test -d "$srcdir/$ac_dir" || continue
21432
21433 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021434 echo "$as_me:$LINENO: $ac_msg" >&5
21435 echo "$ac_msg" >&6
21436 { as_dir="$ac_dir"
21437 case $as_dir in #(
21438 -*) as_dir=./$as_dir;;
21439 esac
21440 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21441 as_dirs=
21442 while :; do
21443 case $as_dir in #(
21444 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21445 *) as_qdir=$as_dir;;
21446 esac
21447 as_dirs="'$as_qdir' $as_dirs"
21448 as_dir=`$as_dirname -- "$as_dir" ||
21449$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21450 X"$as_dir" : 'X\(//\)[^/]' \| \
21451 X"$as_dir" : 'X\(//\)$' \| \
21452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21453echo X"$as_dir" |
21454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21455 s//\1/
21456 q
21457 }
21458 /^X\(\/\/\)[^/].*/{
21459 s//\1/
21460 q
21461 }
21462 /^X\(\/\/\)$/{
21463 s//\1/
21464 q
21465 }
21466 /^X\(\/\).*/{
21467 s//\1/
21468 q
21469 }
21470 s/.*/./; q'`
21471 test -d "$as_dir" && break
21472 done
21473 test -z "$as_dirs" || eval "mkdir $as_dirs"
21474 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21475echo "$as_me: error: cannot create directory $as_dir" >&2;}
21476 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021477 ac_builddir=.
21478
21479case "$ac_dir" in
21480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21481*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021482 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021483 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021484 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021485 case $ac_top_builddir_sub in
21486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21488 esac ;;
21489esac
21490ac_abs_top_builddir=$ac_pwd
21491ac_abs_builddir=$ac_pwd$ac_dir_suffix
21492# for backward compatibility:
21493ac_top_builddir=$ac_top_build_prefix
21494
21495case $srcdir in
21496 .) # We are building in place.
21497 ac_srcdir=.
21498 ac_top_srcdir=$ac_top_builddir_sub
21499 ac_abs_top_srcdir=$ac_pwd ;;
21500 [\\/]* | ?:[\\/]* ) # Absolute name.
21501 ac_srcdir=$srcdir$ac_dir_suffix;
21502 ac_top_srcdir=$srcdir
21503 ac_abs_top_srcdir=$srcdir ;;
21504 *) # Relative name.
21505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21506 ac_top_srcdir=$ac_top_build_prefix$srcdir
21507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21508esac
21509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21510
21511
21512 cd "$ac_dir"
21513
21514 # Check for guested configure; otherwise get Cygnus style configure.
21515 if test -f "$ac_srcdir/configure.gnu"; then
21516 ac_sub_configure=$ac_srcdir/configure.gnu
21517 elif test -f "$ac_srcdir/configure"; then
21518 ac_sub_configure=$ac_srcdir/configure
21519 elif test -f "$ac_srcdir/configure.in"; then
21520 # This should be Cygnus configure.
21521 ac_sub_configure=$ac_aux_dir/configure
21522 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021523 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21524echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021525 ac_sub_configure=
21526 fi
21527
21528 # The recursion is here.
21529 if test -n "$ac_sub_configure"; then
21530 # Make the cache file name correct relative to the subdirectory.
21531 case $cache_file in
21532 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21533 *) # Relative name.
21534 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21535 esac
21536
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021537 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21538echo "$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 +000021539 # The eval makes quoting arguments work.
21540 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21541 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021542 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21543echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21544 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021545 fi
21546
21547 cd "$ac_popdir"
21548 done
21549fi
21550