blob: 54bdf0cd1450fb99d32ea8be48152180b15dca68 [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
692TARGETS_TO_BUILD
693LLVM_ENUM_TARGETS
694LLVM_ENUM_ASM_PRINTERS
695LLVM_ENUM_ASM_PARSERS
696LLVM_ENUM_DISASSEMBLERS
697ENABLE_CBE_PRINTF_A
Daniel Dunbarf80d8f32010-02-23 10:00:49 +0000698CLANGPATH
699CLANGXXPATH
700ENABLE_BUILT_CLANG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000701OPTIMIZE_OPTION
702EXTRA_OPTIONS
703BINUTILS_INCDIR
704ENABLE_LLVMC_DYNAMIC
705ENABLE_LLVMC_DYNAMIC_PLUGINS
706CXX
707CXXFLAGS
708ac_ct_CXX
709NM
710ifGNUmake
711LN_S
712CMP
713CP
714DATE
715FIND
716MKDIR
717MV
718RANLIB
719AR
720RM
721SED
722TAR
723BINPWD
724GRAPHVIZ
725DOT
726FDP
727NEATO
728TWOPI
729CIRCO
730GV
731DOTTY
732PERL
733HAVE_PERL
734INSTALL_PROGRAM
735INSTALL_SCRIPT
736INSTALL_DATA
737BZIP2
738DOXYGEN
739GROFF
740GZIP
741POD2HTML
742POD2MAN
743RUNTEST
744TCLSH
745ZIP
746OCAMLC
747OCAMLOPT
748OCAMLDEP
749OCAMLDOC
750GAS
751INSTALL_LTDL_TRUE
752INSTALL_LTDL_FALSE
753CONVENIENCE_LTDL_TRUE
754CONVENIENCE_LTDL_FALSE
755LIBADD_DL
756LLVMGCCCOMMAND
757LLVMGXXCOMMAND
758LLVMGCC
759LLVMGXX
Daniel Dunbarf80d8f32010-02-23 10:00:49 +0000760LLVMCC_OPTION
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
763USE_UDIS86
764USE_OPROFILE
765HAVE_PTHREAD
766HUGE_VAL_SANITY
767MMAP_FILE
768LLVMCC1
769LLVMCC1PLUS
770LLVMGCCDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000771LLVMGCC_LANGS
772SHLIBEXT
773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
789LIBOBJS
790LTLIBOBJS'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000791ac_subst_files=''
792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
799CPP
800CXX
801CXXFLAGS
Edwin Törökc27310c2010-01-26 08:50:50 +0000802CCC'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000803ac_subdirs_all='projects/sample
804projects/privbracket
805projects/llvm-stacker
806projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000807projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000808projects/llvm-reopt
809projects/llvm-gcc
810projects/llvm-java
811projects/llvm-tv
812projects/llvm-poolalloc
813projects/poolalloc
814projects/llvm-kernel'
815
816# Initialize some variables set by options.
817ac_init_help=
818ac_init_version=false
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
861
862ac_prev=
863ac_dashdash=
864for ac_option
865do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *) ac_optarg=yes ;;
876 esac
877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000917 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000918 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000919 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
920 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
921 { (exit 1); exit 1; }; }
922 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
923 eval enable_$ac_feature=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000936 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000937 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +0000938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940 { (exit 1); exit 1; }; }
941 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942 eval enable_$ac_feature=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000943
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
952
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
956
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
963
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
968
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
974
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
981
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
986
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
991
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
998
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1003
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1010
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1015
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1019
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1023
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1027
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1036
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1041
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1048
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1055
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1072
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1077
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1082
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1086
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 ac_prev=sbindir ;;
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 | --sbi=* | --sb=*)
1091 sbindir=$ac_optarg ;;
1092
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1096 | --sha | --sh)
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 | --sha=* | --sh=*)
1102 sharedstatedir=$ac_optarg ;;
1103
1104 -site | --site | --sit)
1105 ac_prev=site ;;
1106 -site=* | --site=* | --sit=*)
1107 site=$ac_optarg ;;
1108
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 ac_prev=srcdir ;;
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1113
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1120
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1125
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 verbose=yes ;;
1128
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1131
1132 -with-* | --with-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001133 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001134 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001135 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1136 { echo "$as_me: error: invalid package name: $ac_package" >&2
1137 { (exit 1); exit 1; }; }
1138 ac_package=`echo $ac_package| sed 's/-/_/g'`
1139 eval with_$ac_package=\$ac_optarg ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001140
1141 -without-* | --without-*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001142 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001143 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package | sed 's/-/_/g'`
1148 eval with_$ac_package=no ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001168 -*) { echo "$as_me: error: unrecognized option: $ac_option
1169Try \`$0 --help' for more information." >&2
1170 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001176 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1178 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001184 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188 ;;
1189
1190 esac
1191done
1192
1193if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001195 { echo "$as_me: error: missing argument to $ac_option" >&2
1196 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001197fi
1198
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001199# Be sure to have absolute directory names.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001200for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1204do
1205 eval ac_val=\$$ac_var
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001210 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1211 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001225 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1229 fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
1238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001241 { echo "$as_me: error: Working directory cannot be determined" >&2
1242 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001243test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001244 { echo "$as_me: error: pwd does not report name of working directory" >&2
1245 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001246
1247
1248# Find the source files, if location was not specified.
1249if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001252 ac_confdir=`$as_dirname -- "$0" ||
1253$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$0" : 'X\(//\)[^/]' \| \
1255 X"$0" : 'X\(//\)$' \| \
1256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1257echo X"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)[^/].*/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\).*/{
1271 s//\1/
1272 q
1273 }
1274 s/.*/./; q'`
1275 srcdir=$ac_confdir
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 srcdir=..
1278 fi
1279else
1280 ac_srcdir_defaulted=no
1281fi
1282if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001284 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1285 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001286fi
1287ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288ac_abs_confdir=`(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001289 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1290 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001291 pwd)`
1292# When building in place, set srcdir=.
1293if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295fi
1296# Remove unnecessary trailing slashes from srcdir.
1297# Double slashes in file names in object file debugging info
1298# mess up M-x gdb in Emacs.
1299case $srcdir in
1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301esac
1302for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307done
1308
1309#
1310# Report the --help message.
1311#
1312if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001316\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001317
1318Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321VAR=VALUE. See below for descriptions of some of the useful variables.
1322
1323Defaults for the options are specified in brackets.
1324
1325Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
1336Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001338 [$ac_default_prefix]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001340 [PREFIX]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001341
1342By default, \`make install' will install all the files in
1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345for instance \`--prefix=\$HOME'.
1346
1347For better control, use the options below.
1348
1349Fine tuning of the installation directories:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001369_ACEOF
1370
1371 cat <<\_ACEOF
1372
1373System types:
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381 case $ac_init_help in
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001382 short | recursive ) echo "Configuration of llvm 2.7svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001383 esac
1384 cat <<\_ACEOF
1385
1386Optional Features:
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001389 --enable-optimized Compile with optimizations enabled (default is NO)
1390 --enable-profiling Compile with profiling enabled (default is NO)
1391 --enable-assertions Compile with assertion checks enabled (default is
1392 YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001393 --enable-expensive-checks
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001394 Compile with expensive debug checks enabled (default
1395 is NO)
1396 --enable-debug-runtime Build runtime libs with debug symbols (default is
1397 NO)
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00001398 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1399 optimization is on and YES if it's off)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001400 --enable-jit Enable Just In Time Compiling (default is YES)
1401 --enable-doxygen Build doxygen documentation (default is NO)
1402 --enable-threads Use threads if available (default is YES)
1403 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001404 is YES)
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00001405 --enable-targets Build specific host targets: all or
1406 target1,target2,... Valid targets are: host, x86,
1407 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1408 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1409 and cpp (default=all)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001410 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1411 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001412 --enable-bindings Build specific language bindings:
1413 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskin260af332010-02-09 23:03:44 +00001414 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001415 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1416 Win32)
1417 --enable-llvmc-dynamic-plugins
1418 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001419 --enable-ltdl-install install libltdl
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001420
1421Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1425 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001426 --with-llvmgcc Specify location of llvm-gcc driver (default
1427 searches PATH)
1428 --with-llvmgxx Specify location of llvm-g++ driver (default
1429 searches PATH)
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00001430 --with-clang Specify location of clang compiler (default is
1431 --with-built-clang)
1432 --with-built-clang Use the compiled Clang as the LLVM compiler
1433 (default=check)
Daniel Dunbarca58fd82009-11-04 04:32:50 +00001434 --with-optimize-option Select the compiler options to use for optimized
1435 builds
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001436 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 is stdlib)
Rafael Espindola354924d2009-11-12 05:46:09 +00001439 --with-c-include-dirs Colon separated list of directories clang will
1440 search for headers
Rafael Espindola3890bf02009-11-16 19:46:55 +00001441 --with-cxx-include-root Directory with the libstdc++ headers.
1442 --with-cxx-include-arch Architecture of the libstdc++ headers.
1443 --with-cxx-include-32bit-dir
1444 32 bit multilib dir.
1445 --with-cxx-include-64bit-dir
1446 64 bit multilib directory.
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001447 --with-binutils-include Specify path to binutils/include/ containing
1448 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001449 --with-tclinclude directory where tcl headers are
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00001450 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1451 clang, or none; default=check)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001452 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001455
1456Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001462 you have headers in a nonstandard directory <include dir>
1463 CPP C preprocessor
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
1470Report bugs to <llvmbugs@cs.uiuc.edu>.
1471_ACEOF
1472ac_status=$?
1473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001478 test -d "$ac_dir" || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001479 ac_builddir=.
1480
1481case "$ac_dir" in
1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001485 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 esac ;;
1491esac
1492ac_abs_top_builddir=$ac_pwd
1493ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494# for backward compatibility:
1495ac_top_builddir=$ac_top_build_prefix
1496
1497case $srcdir in
1498 .) # We are building in place.
1499 ac_srcdir=.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1506 *) # Relative name.
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510esac
1511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1521 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1525 done
1526fi
1527
1528test -n "$ac_init_help" && exit $ac_status
1529if $ac_init_version; then
1530 cat <<\_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001531llvm configure 2.7svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001532generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001533
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001534Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
1538
Tanya Lattner916a91122009-08-22 21:01:26 +00001539Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001540_ACEOF
1541 exit
1542fi
1543cat >config.log <<_ACEOF
1544This file contains any messages produced by compilers while
1545running configure, to aid debugging if configure makes a mistake.
1546
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001547It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001548generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001549
1550 $ $0 $@
1551
1552_ACEOF
1553exec 5>>config.log
1554{
1555cat <<_ASUNAME
1556## --------- ##
1557## Platform. ##
1558## --------- ##
1559
1560hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565
1566/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1568
1569/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1572/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1573/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1576
1577_ASUNAME
1578
1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001584 echo "PATH: $as_dir"
1585done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001586IFS=$as_save_IFS
1587
1588} >&5
1589
1590cat >&5 <<_ACEOF
1591
1592
1593## ----------- ##
1594## Core tests. ##
1595## ----------- ##
1596
1597_ACEOF
1598
1599
1600# Keep a trace of the command line.
1601# Strip out --no-create and --no-recursion so they do not pile up.
1602# Strip out --silent because we don't want to record it for future runs.
1603# Also quote any args containing shell meta-characters.
1604# Make two passes to allow for proper duplicate-argument suppression.
1605ac_configure_args=
1606ac_configure_args0=
1607ac_configure_args1=
1608ac_must_keep_next=false
1609for ac_pass in 1 2
1610do
1611 for ac_arg
1612 do
1613 case $ac_arg in
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1617 continue ;;
1618 *\'*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001620 esac
1621 case $ac_pass in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001623 2)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001625 if test $ac_must_keep_next = true; then
1626 ac_must_keep_next=false # Got value, back to normal.
1627 else
1628 case $ac_arg in
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635 esac
1636 ;;
1637 -* ) ac_must_keep_next=true ;;
1638 esac
1639 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001640 ac_configure_args="$ac_configure_args '$ac_arg'"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001641 ;;
1642 esac
1643 done
1644done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001645$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646$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 +00001647
1648# When interrupted or exit'd, cleanup temporary files, and complete
1649# config.log. We remove comments because anyway the quotes in there
1650# would cause problems or look ugly.
1651# WARNING: Use '\'' to represent an apostrophe within the trap.
1652# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1653trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1655 {
1656 echo
1657
1658 cat <<\_ASBOX
1659## ---------------- ##
1660## Cache variables. ##
1661## ---------------- ##
1662_ASBOX
1663 echo
1664 # The following way of writing the cache mishandles newlines in values,
1665(
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1668 case $ac_val in #(
1669 *${as_nl}*)
1670 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001673 esac
1674 case $ac_var in #(
1675 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001676 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001677 esac ;;
1678 esac
1679 done
1680 (set) 2>&1 |
1681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
1683 sed -n \
1684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686 ;; #(
1687 *)
1688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1689 ;;
1690 esac |
1691 sort
1692)
1693 echo
1694
1695 cat <<\_ASBOX
1696## ----------------- ##
1697## Output variables. ##
1698## ----------------- ##
1699_ASBOX
1700 echo
1701 for ac_var in $ac_subst_vars
1702 do
1703 eval ac_val=\$$ac_var
1704 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001706 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001707 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001708 done | sort
1709 echo
1710
1711 if test -n "$ac_subst_files"; then
1712 cat <<\_ASBOX
1713## ------------------- ##
1714## File substitutions. ##
1715## ------------------- ##
1716_ASBOX
1717 echo
1718 for ac_var in $ac_subst_files
1719 do
1720 eval ac_val=\$$ac_var
1721 case $ac_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001723 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001724 echo "$ac_var='\''$ac_val'\''"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001725 done | sort
1726 echo
1727 fi
1728
1729 if test -s confdefs.h; then
1730 cat <<\_ASBOX
1731## ----------- ##
1732## confdefs.h. ##
1733## ----------- ##
1734_ASBOX
1735 echo
1736 cat confdefs.h
1737 echo
1738 fi
1739 test "$ac_signal" != 0 &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001742 } >&5
1743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1745 exit $exit_status
1746' 0
1747for ac_signal in 1 2 13 15; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001749done
1750ac_signal=0
1751
1752# confdefs.h avoids OS command line length limits that DEFS can exceed.
1753rm -f -r conftest* confdefs.h
1754
1755# Predefined preprocessor variables.
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_NAME "$PACKAGE_NAME"
1759_ACEOF
1760
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001761
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1764_ACEOF
1765
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001766
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_VERSION "$PACKAGE_VERSION"
1769_ACEOF
1770
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001771
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_STRING "$PACKAGE_STRING"
1774_ACEOF
1775
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001776
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1779_ACEOF
1780
1781
1782# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001783# Prefer explicitly selected file to automatically selected ones.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001784if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001785 set x "$CONFIG_SITE"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001786elif test "x$prefix" != xNONE; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001788else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001791fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001792shift
1793for ac_site_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001794do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797echo "$as_me: loading site script $ac_site_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001798 sed 's/^/| /' "$ac_site_file" >&5
1799 . "$ac_site_file"
1800 fi
1801done
1802
1803if test -r "$cache_file"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808echo "$as_me: loading cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001809 case $cache_file in
1810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
1812 esac
1813 fi
1814else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816echo "$as_me: creating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001817 >$cache_file
1818fi
1819
1820# Check that the precious variables saved in the cache have kept the same
1821# value.
1822ac_cache_corrupted=false
1823for ac_var in $ac_precious_vars; do
1824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
1826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
1828 case $ac_old_set,$ac_new_set in
1829 set,)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001832 ac_cache_corrupted=: ;;
1833 ,set)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001836 ac_cache_corrupted=: ;;
1837 ,);;
1838 *)
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001847 fi;;
1848 esac
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1851 case $ac_new_val in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001853 *) ac_arg=$ac_var=$ac_new_val ;;
1854 esac
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001858 esac
1859 fi
1860done
1861if $ac_cache_corrupted; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001867fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001892
1893ac_ext=c
1894ac_cpp='$CPP $CPPFLAGS'
1895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
Tanya Lattner916a91122009-08-22 21:01:26 +00001901LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001902
1903
1904
1905
1906
1907
1908
1909ac_aux_dir=
1910for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001911 if test -f "$ac_dir/install-sh"; then
1912 ac_aux_dir=$ac_dir
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1914 break
1915 elif test -f "$ac_dir/install.sh"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1918 break
1919 elif test -f "$ac_dir/shtool"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1922 break
1923 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001924done
1925if test -z "$ac_aux_dir"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1927echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1928 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001929fi
1930
1931# These three variables are undocumented and unsupported,
1932# and are intended to be withdrawn in a future Autoconf release.
1933# They can cause serious problems if a builder's source tree is in a directory
1934# whose full name contains unusual characters.
1935ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1938
1939
1940
1941if test ${srcdir} != "." ; then
1942 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001943 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1944echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1945 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001946 fi
1947fi
1948
1949for i in `ls ${srcdir}/projects`
1950do
1951 if test -d ${srcdir}/projects/${i} ; then
1952 case ${i} in
1953 CVS) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001954 sample) subdirs="$subdirs projects/sample"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001955 ;;
1956 privbracket) subdirs="$subdirs projects/privbracket"
1957 ;;
1958 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1959 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00001960 # llvm-test is the old name of the test-suite, kept here for backwards
1961 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001962 llvm-test) subdirs="$subdirs projects/llvm-test"
1963 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00001964 test-suite) subdirs="$subdirs projects/test-suite"
1965 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001966 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1967;;
1968 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1969 ;;
1970 llvm-java) subdirs="$subdirs projects/llvm-java"
1971 ;;
1972 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1973 ;;
1974 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1975 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00001976 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001977 ;;
1978 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1979 ;;
1980 *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001981 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1982echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001983 ;;
1984 esac
1985 fi
1986done
1987
1988
1989# Make sure we can run config.sub.
1990$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001991 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1992echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1993 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001994
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00001995{ echo "$as_me:$LINENO: checking build system type" >&5
1996echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1997if test "${ac_cv_build+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001999else
2000 ac_build_alias=$build_alias
2001test "x$ac_build_alias" = x &&
2002 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2003test "x$ac_build_alias" = x &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002004 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2005echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2006 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002007ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002008 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2009echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2010 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002011
2012fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002013{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2014echo "${ECHO_T}$ac_cv_build" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002015case $ac_cv_build in
2016*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002017*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2018echo "$as_me: error: invalid value of canonical build" >&2;}
2019 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002020esac
2021build=$ac_cv_build
2022ac_save_IFS=$IFS; IFS='-'
2023set x $ac_cv_build
2024shift
2025build_cpu=$1
2026build_vendor=$2
2027shift; shift
2028# Remember, the first character of IFS is used to create $*,
2029# except with old shells:
2030build_os=$*
2031IFS=$ac_save_IFS
2032case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2033
2034
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002035{ echo "$as_me:$LINENO: checking host system type" >&5
2036echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2037if test "${ac_cv_host+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002039else
2040 if test "x$host_alias" = x; then
2041 ac_cv_host=$ac_cv_build
2042else
2043 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002044 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2045echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2046 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002047fi
2048
2049fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002050{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2051echo "${ECHO_T}$ac_cv_host" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002052case $ac_cv_host in
2053*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002054*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2055echo "$as_me: error: invalid value of canonical host" >&2;}
2056 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002057esac
2058host=$ac_cv_host
2059ac_save_IFS=$IFS; IFS='-'
2060set x $ac_cv_host
2061shift
2062host_cpu=$1
2063host_vendor=$2
2064shift; shift
2065# Remember, the first character of IFS is used to create $*,
2066# except with old shells:
2067host_os=$*
2068IFS=$ac_save_IFS
2069case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2070
2071
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002072{ echo "$as_me:$LINENO: checking target system type" >&5
2073echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2074if test "${ac_cv_target+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002076else
2077 if test "x$target_alias" = x; then
2078 ac_cv_target=$ac_cv_host
2079else
2080 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2082echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002084fi
2085
2086fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002087{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2088echo "${ECHO_T}$ac_cv_target" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002089case $ac_cv_target in
2090*-*-*) ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002091*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2092echo "$as_me: error: invalid value of canonical target" >&2;}
2093 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002094esac
2095target=$ac_cv_target
2096ac_save_IFS=$IFS; IFS='-'
2097set x $ac_cv_target
2098shift
2099target_cpu=$1
2100target_vendor=$2
2101shift; shift
2102# Remember, the first character of IFS is used to create $*,
2103# except with old shells:
2104target_os=$*
2105IFS=$ac_save_IFS
2106case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2107
2108
2109# The aliases save the names the user supplied, while $host etc.
2110# will get canonicalized.
2111test -n "$target_alias" &&
2112 test "$program_prefix$program_suffix$program_transform_name" = \
2113 NONENONEs,x,x, &&
2114 program_prefix=${target_alias}-
2115
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002116{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2117echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2118if test "${llvm_cv_os_type+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002120else
2121 case $host in
2122 *-*-aix*)
2123 llvm_cv_link_all_option="-Wl,--whole-archive"
2124 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2125 llvm_cv_os_type="AIX"
2126 llvm_cv_platform_type="Unix" ;;
2127 *-*-irix*)
2128 llvm_cv_link_all_option="-Wl,--whole-archive"
2129 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2130 llvm_cv_os_type="IRIX"
2131 llvm_cv_platform_type="Unix" ;;
2132 *-*-cygwin*)
2133 llvm_cv_link_all_option="-Wl,--whole-archive"
2134 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2135 llvm_cv_os_type="Cygwin"
2136 llvm_cv_platform_type="Unix" ;;
2137 *-*-darwin*)
2138 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002139 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002140 llvm_cv_os_type="Darwin"
2141 llvm_cv_platform_type="Unix" ;;
2142 *-*-freebsd*)
2143 llvm_cv_link_all_option="-Wl,--whole-archive"
2144 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2145 llvm_cv_os_type="FreeBSD"
2146 llvm_cv_platform_type="Unix" ;;
2147 *-*-openbsd*)
2148 llvm_cv_link_all_option="-Wl,--whole-archive"
2149 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2150 llvm_cv_os_type="OpenBSD"
2151 llvm_cv_platform_type="Unix" ;;
2152 *-*-netbsd*)
2153 llvm_cv_link_all_option="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2155 llvm_cv_os_type="NetBSD"
2156 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002157 *-*-dragonfly*)
2158 llvm_cv_link_all_option="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160 llvm_cv_os_type="DragonFly"
2161 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002162 *-*-hpux*)
2163 llvm_cv_link_all_option="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2165 llvm_cv_os_type="HP-UX"
2166 llvm_cv_platform_type="Unix" ;;
2167 *-*-interix*)
2168 llvm_cv_link_all_option="-Wl,--whole-archive"
2169 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2170 llvm_cv_os_type="Interix"
2171 llvm_cv_platform_type="Unix" ;;
2172 *-*-linux*)
2173 llvm_cv_link_all_option="-Wl,--whole-archive"
2174 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2175 llvm_cv_os_type="Linux"
2176 llvm_cv_platform_type="Unix" ;;
2177 *-*-solaris*)
2178 llvm_cv_link_all_option="-Wl,-z,allextract"
2179 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2180 llvm_cv_os_type="SunOS"
2181 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002182 *-*-auroraux*)
2183 llvm_cv_link_all_option="-Wl,-z,allextract"
2184 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2185 llvm_cv_os_type="AuroraUX"
2186 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002187 *-*-win32*)
2188 llvm_cv_link_all_option="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190 llvm_cv_os_type="Win32"
2191 llvm_cv_platform_type="Win32" ;;
2192 *-*-mingw*)
2193 llvm_cv_link_all_option="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195 llvm_cv_os_type="MingW"
2196 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002197 *-*-haiku*)
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="Haiku"
2201 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002202 *-unknown-eabi*)
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="Freestanding"
2206 llvm_cv_platform_type="Unix" ;;
2207 *-unknown-elf*)
2208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210 llvm_cv_os_type="Freestanding"
2211 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002212 *)
2213 llvm_cv_link_all_option=""
2214 llvm_cv_no_link_all_option=""
2215 llvm_cv_os_type="Unknown"
2216 llvm_cv_platform_type="Unknown" ;;
2217esac
2218fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002219{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2220echo "${ECHO_T}$llvm_cv_os_type" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002221
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002222{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2223echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2224if test "${llvm_cv_target_os_type+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002226else
2227 case $target in
2228 *-*-aix*)
2229 llvm_cv_target_os_type="AIX" ;;
2230 *-*-irix*)
2231 llvm_cv_target_os_type="IRIX" ;;
2232 *-*-cygwin*)
2233 llvm_cv_target_os_type="Cygwin" ;;
2234 *-*-darwin*)
2235 llvm_cv_target_os_type="Darwin" ;;
2236 *-*-freebsd*)
2237 llvm_cv_target_os_type="FreeBSD" ;;
2238 *-*-openbsd*)
2239 llvm_cv_target_os_type="OpenBSD" ;;
2240 *-*-netbsd*)
2241 llvm_cv_target_os_type="NetBSD" ;;
2242 *-*-dragonfly*)
2243 llvm_cv_target_os_type="DragonFly" ;;
2244 *-*-hpux*)
2245 llvm_cv_target_os_type="HP-UX" ;;
2246 *-*-interix*)
2247 llvm_cv_target_os_type="Interix" ;;
2248 *-*-linux*)
2249 llvm_cv_target_os_type="Linux" ;;
2250 *-*-solaris*)
2251 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghana635c3b2009-10-14 00:44:50 +00002252 *-*-auroraux*)
2253 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002254 *-*-win32*)
2255 llvm_cv_target_os_type="Win32" ;;
2256 *-*-mingw*)
2257 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +00002258 *-*-haiku*)
2259 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002260 *-unknown-eabi*)
2261 llvm_cv_target_os_type="Freestanding" ;;
2262 *)
2263 llvm_cv_target_os_type="Unknown" ;;
2264esac
2265fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002266{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2267echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002268
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002269if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002270 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2271echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2272 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002273fi
2274
2275OS=$llvm_cv_os_type
2276
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002277HOST_OS=$llvm_cv_os_type
2278
2279TARGET_OS=$llvm_cv_target_os_type
2280
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002281
2282LINKALL=$llvm_cv_link_all_option
2283
2284NOLINKALL=$llvm_cv_no_link_all_option
2285
2286
2287case $llvm_cv_platform_type in
2288 Unix)
2289
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002290cat >>confdefs.h <<\_ACEOF
2291#define LLVM_ON_UNIX 1
2292_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002293
2294 LLVM_ON_UNIX=1
2295
2296 LLVM_ON_WIN32=0
2297
2298 ;;
2299 Win32)
2300
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002301cat >>confdefs.h <<\_ACEOF
2302#define LLVM_ON_WIN32 1
2303_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002304
2305 LLVM_ON_UNIX=0
2306
2307 LLVM_ON_WIN32=1
2308
2309 ;;
2310esac
2311
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002312{ echo "$as_me:$LINENO: checking target architecture" >&5
2313echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2314if test "${llvm_cv_target_arch+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002316else
2317 case $target in
2318 i?86-*) llvm_cv_target_arch="x86" ;;
2319 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2320 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2321 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2322 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002323 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002324 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002325 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002326 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002327 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002328 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00002329 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002330 *) llvm_cv_target_arch="Unknown" ;;
2331esac
2332fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002333{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2334echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002335
2336if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002337 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2338echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002339fi
2340
Nick Lewyckyd2813d02009-09-29 05:48:51 +00002341# Determine the LLVM native architecture for the target
2342case "$llvm_cv_target_arch" in
2343 x86) LLVM_NATIVE_ARCH="X86" ;;
2344 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2345 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2346esac
2347
2348ARCH=$llvm_cv_target_arch
2349
2350
2351ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002352ac_cpp='$CPP $CPPFLAGS'
2353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2358set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2361if test "${ac_cv_prog_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002363else
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2366else
2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368for as_dir in $PATH
2369do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 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 +00002374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002376 break 2
2377 fi
2378done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002379done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002380IFS=$as_save_IFS
2381
2382fi
2383fi
2384CC=$ac_cv_prog_CC
2385if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002386 { echo "$as_me:$LINENO: result: $CC" >&5
2387echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002388else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002389 { echo "$as_me:$LINENO: result: no" >&5
2390echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002391fi
2392
2393
2394fi
2395if test -z "$ac_cv_prog_CC"; then
2396 ac_ct_CC=$CC
2397 # Extract the first word of "gcc", so it can be a program name with args.
2398set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002403else
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406else
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002414 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002416 break 2
2417 fi
2418done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002419done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002420IFS=$as_save_IFS
2421
2422fi
2423fi
2424ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002426 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2427echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002428else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002429 { echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002431fi
2432
2433 if test "x$ac_ct_CC" = x; then
2434 CC=""
2435 else
2436 case $cross_compiling:$ac_tool_warned in
2437yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002438{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2439whose name does not start with the host triplet. If you think this
2440configuration is useful to you, please write to autoconf@gnu.org." >&5
2441echo "$as_me: 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." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002444ac_tool_warned=yes ;;
2445esac
2446 CC=$ac_ct_CC
2447 fi
2448else
2449 CC="$ac_cv_prog_CC"
2450fi
2451
2452if test -z "$CC"; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2455set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002460else
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 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 +00002471 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002473 break 2
2474 fi
2475done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002476done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002477IFS=$as_save_IFS
2478
2479fi
2480fi
2481CC=$ac_cv_prog_CC
2482if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002483 { echo "$as_me:$LINENO: result: $CC" >&5
2484echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002485else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002486 { echo "$as_me:$LINENO: result: no" >&5
2487echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002488fi
2489
2490
2491 fi
2492fi
2493if test -z "$CC"; then
2494 # Extract the first word of "cc", so it can be a program name with args.
2495set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002500else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503else
2504 ac_prog_rejected=no
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 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 +00002512 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2513 ac_prog_rejected=yes
2514 continue
2515 fi
2516 ac_cv_prog_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002518 break 2
2519 fi
2520done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002521done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002522IFS=$as_save_IFS
2523
2524if test $ac_prog_rejected = yes; then
2525 # We found a bogon in the path, so make sure we never use it.
2526 set dummy $ac_cv_prog_CC
2527 shift
2528 if test $# != 0; then
2529 # We chose a different compiler from the bogus one.
2530 # However, it has the same basename, so the bogon will be chosen
2531 # first if we set CC to just the basename; use the full file name.
2532 shift
2533 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2534 fi
2535fi
2536fi
2537fi
2538CC=$ac_cv_prog_CC
2539if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002540 { echo "$as_me:$LINENO: result: $CC" >&5
2541echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002542else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002543 { echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002545fi
2546
2547
2548fi
2549if test -z "$CC"; then
2550 if test -n "$ac_tool_prefix"; then
2551 for ac_prog in cl.exe
2552 do
2553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557if test "${ac_cv_prog_CC+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002559else
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 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 +00002570 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002572 break 2
2573 fi
2574done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002575done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002576IFS=$as_save_IFS
2577
2578fi
2579fi
2580CC=$ac_cv_prog_CC
2581if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002582 { echo "$as_me:$LINENO: result: $CC" >&5
2583echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002584else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002585 { echo "$as_me:$LINENO: result: no" >&5
2586echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002587fi
2588
2589
2590 test -n "$CC" && break
2591 done
2592fi
2593if test -z "$CC"; then
2594 ac_ct_CC=$CC
2595 for ac_prog in cl.exe
2596do
2597 # Extract the first word of "$ac_prog", so it can be a program name with args.
2598set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002603else
2604 if test -n "$ac_ct_CC"; then
2605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 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 +00002614 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002616 break 2
2617 fi
2618done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002619done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002620IFS=$as_save_IFS
2621
2622fi
2623fi
2624ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002626 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2627echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002628else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002629 { echo "$as_me:$LINENO: result: no" >&5
2630echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002631fi
2632
2633
2634 test -n "$ac_ct_CC" && break
2635done
2636
2637 if test "x$ac_ct_CC" = x; then
2638 CC=""
2639 else
2640 case $cross_compiling:$ac_tool_warned in
2641yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002642{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2643whose name does not start with the host triplet. If you think this
2644configuration is useful to you, please write to autoconf@gnu.org." >&5
2645echo "$as_me: 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." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002648ac_tool_warned=yes ;;
2649esac
2650 CC=$ac_ct_CC
2651 fi
2652fi
2653
2654fi
2655
2656
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002657test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2658See \`config.log' for more details." >&5
2659echo "$as_me: error: no acceptable C compiler found in \$PATH
2660See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002662
2663# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002664echo "$as_me:$LINENO: checking for C compiler version" >&5
2665ac_compiler=`set X $ac_compile; echo $2`
2666{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002667case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002673 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676{ (ac_try="$ac_compiler -v >&5"
2677case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680esac
2681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler -v >&5") 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2686{ (ac_try="$ac_compiler -V >&5"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compiler -V >&5") 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002696
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002697cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h. */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002702/* end confdefs.h. */
2703
2704int
2705main ()
2706{
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002713ac_clean_files="$ac_clean_files a.out a.exe b.out"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002714# Try to create an executable without -o first, disregard a.out.
2715# It will help us diagnose broken compilers, and finding out an intuition
2716# of exeext.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002717{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2718echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2719ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720#
2721# List of possible output files, starting from the most likely.
2722# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2723# only as a last resort. b.out is created by i960 compilers.
2724ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2725#
2726# The IRIX 6 linker writes into existing files which may not be
2727# executable, retaining their permissions. Remove them first so a
2728# subsequent execution test works.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002729ac_rmfiles=
2730for ac_file in $ac_files
2731do
2732 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002734 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2735 esac
2736done
2737rm -f $ac_rmfiles
2738
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002739if { (ac_try="$ac_link_default"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002740case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002745 (eval "$ac_link_default") 2>&5
2746 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002749 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2750# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2751# in a Makefile. We should not override ac_cv_exeext if it was cached,
2752# so that the user can short-circuit this test for compilers unknown to
2753# Autoconf.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002754for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002755do
2756 test -f "$ac_file" || continue
2757 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002759 ;;
2760 [ab].out )
2761 # We found the default executable, but exeext='' is most
2762 # certainly right.
2763 break;;
2764 *.* )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002765 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002766 then :; else
2767 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2768 fi
2769 # We set ac_cv_exeext here because the later test for it is not
2770 # safe: cross compilers may not add the suffix if given an `-o'
2771 # argument, so we may need to know it at that point already.
2772 # Even if this section looks crufty: it has the advantage of
2773 # actually working.
2774 break;;
2775 * )
2776 break;;
2777 esac
2778done
2779test "$ac_cv_exeext" = no && ac_cv_exeext=
2780
2781else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002782 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002783sed 's/^/| /' conftest.$ac_ext >&5
2784
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002785{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2786See \`config.log' for more details." >&5
2787echo "$as_me: error: C compiler cannot create executables
2788See \`config.log' for more details." >&2;}
2789 { (exit 77); exit 77; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002790fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002791
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002792ac_exeext=$ac_cv_exeext
2793{ echo "$as_me:$LINENO: result: $ac_file" >&5
2794echo "${ECHO_T}$ac_file" >&6; }
2795
2796# Check that the compiler produces executables we can run. If not, either
2797# the compiler is broken, or we cross compile.
2798{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2799echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2800# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2801# If not cross compiling, check that we can run a simple program.
2802if test "$cross_compiling" != yes; then
2803 if { ac_try='./$ac_file'
2804 { (case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807esac
2808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_try") 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2813 cross_compiling=no
2814 else
2815 if test "$cross_compiling" = maybe; then
2816 cross_compiling=yes
2817 else
2818 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2819If you meant to cross compile, use \`--host'.
2820See \`config.log' for more details." >&5
2821echo "$as_me: error: cannot run C compiled programs.
2822If you meant to cross compile, use \`--host'.
2823See \`config.log' for more details." >&2;}
2824 { (exit 1); exit 1; }; }
2825 fi
2826 fi
2827fi
2828{ echo "$as_me:$LINENO: result: yes" >&5
2829echo "${ECHO_T}yes" >&6; }
2830
2831rm -f a.out a.exe conftest$ac_cv_exeext b.out
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002832ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002833# Check that the compiler produces executables we can run. If not, either
2834# the compiler is broken, or we cross compile.
2835{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2836echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2837{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2838echo "${ECHO_T}$cross_compiling" >&6; }
2839
2840{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2841echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2842if { (ac_try="$ac_link"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002843case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002848 (eval "$ac_link") 2>&5
2849 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2853# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2854# work properly (i.e., refer to `conftest.exe'), while it won't with
2855# `rm'.
2856for ac_file in conftest.exe conftest conftest.*; do
2857 test -f "$ac_file" || continue
2858 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2861 break;;
2862 * ) break;;
2863 esac
2864done
2865else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002866 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2867See \`config.log' for more details." >&5
2868echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2869See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002871fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002872
2873rm -f conftest$ac_cv_exeext
2874{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2875echo "${ECHO_T}$ac_cv_exeext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002876
2877rm -f conftest.$ac_ext
2878EXEEXT=$ac_cv_exeext
2879ac_exeext=$EXEEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002880{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2881echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2882if test "${ac_cv_objext+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00002884else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002885 cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002890/* end confdefs.h. */
2891
2892int
2893main ()
2894{
2895
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900rm -f conftest.o conftest.obj
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002901if { (ac_try="$ac_compile"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002907 (eval "$ac_compile") 2>&5
2908 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002911 for ac_file in conftest.o conftest.obj conftest.*; do
2912 test -f "$ac_file" || continue;
2913 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2916 break;;
2917 esac
2918done
2919else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002920 echo "$as_me: failed program was:" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002921sed 's/^/| /' conftest.$ac_ext >&5
2922
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002923{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2924See \`config.log' for more details." >&5
2925echo "$as_me: error: cannot compute suffix of object files: cannot compile
2926See \`config.log' for more details." >&2;}
2927 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002928fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002929
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002930rm -f conftest.$ac_cv_objext conftest.$ac_ext
2931fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002932{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2933echo "${ECHO_T}$ac_cv_objext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002934OBJEXT=$ac_cv_objext
2935ac_objext=$OBJEXT
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002936{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2937echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2938if test "${ac_cv_c_compiler_gnu+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002940else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002941 cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h. */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002946/* end confdefs.h. */
2947
2948int
2949main ()
2950{
2951#ifndef __GNUC__
2952 choke me
2953#endif
2954
2955 ;
2956 return 0;
2957}
2958_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002959rm -f conftest.$ac_objext
2960if { (ac_try="$ac_compile"
2961case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compile") 2>conftest.er1
2967 ac_status=$?
2968 grep -v '^ *+' conftest.er1 >conftest.err
2969 rm -f conftest.er1
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; } &&
2983 { ac_try='test -s conftest.$ac_objext'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002993 ac_compiler_gnu=yes
2994else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00002995 echo "$as_me: failed program was:" >&5
2996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002999fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003000
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002ac_cv_c_compiler_gnu=$ac_compiler_gnu
3003
3004fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003005{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3006echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3007GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003008ac_test_CFLAGS=${CFLAGS+set}
3009ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003010{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3011echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3012if test "${ac_cv_prog_cc_g+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003014else
3015 ac_save_c_werror_flag=$ac_c_werror_flag
3016 ac_c_werror_flag=yes
3017 ac_cv_prog_cc_g=no
3018 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003019 cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h. */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003024/* end confdefs.h. */
3025
3026int
3027main ()
3028{
3029
3030 ;
3031 return 0;
3032}
3033_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003034rm -f conftest.$ac_objext
3035if { (ac_try="$ac_compile"
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003068 ac_cv_prog_cc_g=yes
3069else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003070 echo "$as_me: failed program was:" >&5
3071sed 's/^/| /' conftest.$ac_ext >&5
3072
3073 CFLAGS=""
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003079/* end confdefs.h. */
3080
3081int
3082main ()
3083{
3084
3085 ;
3086 return 0;
3087}
3088_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003089rm -f conftest.$ac_objext
3090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
3108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3123 :
Edwin Törökc27310c2010-01-26 08:50:50 +00003124else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003125 echo "$as_me: failed program was:" >&5
3126sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003129 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003130 cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003135/* end confdefs.h. */
3136
3137int
3138main ()
3139{
3140
3141 ;
3142 return 0;
3143}
3144_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003145rm -f conftest.$ac_objext
3146if { (ac_try="$ac_compile"
3147case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003179 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003180else
3181 echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003185fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003186
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188fi
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
3194 ac_c_werror_flag=$ac_save_c_werror_flag
3195fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003196{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3197echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003198if test "$ac_test_CFLAGS" = set; then
3199 CFLAGS=$ac_save_CFLAGS
3200elif test $ac_cv_prog_cc_g = yes; then
3201 if test "$GCC" = yes; then
3202 CFLAGS="-g -O2"
3203 else
3204 CFLAGS="-g"
3205 fi
3206else
3207 if test "$GCC" = yes; then
3208 CFLAGS="-O2"
3209 else
3210 CFLAGS=
3211 fi
3212fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003213{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3214echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3215if test "${ac_cv_prog_cc_c89+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003217else
3218 ac_cv_prog_cc_c89=no
3219ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003220cat >conftest.$ac_ext <<_ACEOF
3221/* confdefs.h. */
3222_ACEOF
3223cat confdefs.h >>conftest.$ac_ext
3224cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003225/* end confdefs.h. */
3226#include <stdarg.h>
3227#include <stdio.h>
3228#include <sys/types.h>
3229#include <sys/stat.h>
3230/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3231struct buf { int x; };
3232FILE * (*rcsopen) (struct buf *, struct stat *, int);
3233static char *e (p, i)
3234 char **p;
3235 int i;
3236{
3237 return p[i];
3238}
3239static char *f (char * (*g) (char **, int), char **p, ...)
3240{
3241 char *s;
3242 va_list v;
3243 va_start (v,p);
3244 s = g (p, va_arg (v,int));
3245 va_end (v);
3246 return s;
3247}
3248
3249/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3250 function prototypes and stuff, but not '\xHH' hex character constants.
3251 These don't provoke an error unfortunately, instead are silently treated
3252 as 'x'. The following induces an error, until -std is added to get
3253 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3254 array size at least. It's necessary to write '\x00'==0 to get something
3255 that's true only with -std. */
3256int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3257
3258/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3259 inside strings and character constants. */
3260#define FOO(x) 'x'
3261int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3262
3263int test (int i, double x);
3264struct s1 {int (*f) (int a);};
3265struct s2 {int (*f) (double a);};
3266int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3267int argc;
3268char **argv;
3269int
3270main ()
3271{
3272return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3273 ;
3274 return 0;
3275}
3276_ACEOF
3277for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3278 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3279do
3280 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003281 rm -f conftest.$ac_objext
3282if { (ac_try="$ac_compile"
3283case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286esac
3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_compile") 2>conftest.er1
3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3296 { (case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299esac
3300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_try") 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest.$ac_objext'
3306 { (case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
3310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_try") 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003315 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003316else
3317 echo "$as_me: failed program was:" >&5
3318sed 's/^/| /' conftest.$ac_ext >&5
3319
3320
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003321fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003322
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003323rm -f core conftest.err conftest.$ac_objext
3324 test "x$ac_cv_prog_cc_c89" != "xno" && break
3325done
3326rm -f conftest.$ac_ext
3327CC=$ac_save_CC
3328
3329fi
3330# AC_CACHE_VAL
3331case "x$ac_cv_prog_cc_c89" in
3332 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003333 { echo "$as_me:$LINENO: result: none needed" >&5
3334echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003335 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003336 { echo "$as_me:$LINENO: result: unsupported" >&5
3337echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003338 *)
3339 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003340 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3341echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003342esac
3343
3344
3345ac_ext=c
3346ac_cpp='$CPP $CPPFLAGS'
3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350
3351
3352ac_ext=c
3353ac_cpp='$CPP $CPPFLAGS'
3354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003357{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3358echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003359# On Suns, sometimes $CPP names a directory.
3360if test -n "$CPP" && test -d "$CPP"; then
3361 CPP=
3362fi
3363if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003364 if test "${ac_cv_prog_CPP+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003366else
3367 # Double quotes because CPP needs to be expanded
3368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3369 do
3370 ac_preproc_ok=false
3371for ac_c_preproc_warn_flag in '' yes
3372do
3373 # Use a header file that comes with gcc, so configuring glibc
3374 # with a fresh cross-compiler works.
3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376 # <limits.h> exists even on freestanding compilers.
3377 # On the NeXT, cc -E runs the code through the compiler's parser,
3378 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003379 cat >conftest.$ac_ext <<_ACEOF
3380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003384/* end confdefs.h. */
3385#ifdef __STDC__
3386# include <limits.h>
3387#else
3388# include <assert.h>
3389#endif
3390 Syntax error
3391_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003392if { (ac_try="$ac_cpp conftest.$ac_ext"
3393case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396esac
3397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null; then
3405 if test -s conftest.err; then
3406 ac_cpp_err=$ac_c_preproc_warn_flag
3407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3408 else
3409 ac_cpp_err=
3410 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003411else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003412 ac_cpp_err=yes
3413fi
3414if test -z "$ac_cpp_err"; then
3415 :
3416else
3417 echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003420 # Broken: fails on valid input.
3421continue
3422fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003423
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003424rm -f conftest.err conftest.$ac_ext
3425
3426 # OK, works on sane cases. Now check whether nonexistent headers
3427 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003428 cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003433/* end confdefs.h. */
3434#include <ac_nonexistent.h>
3435_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003436if { (ac_try="$ac_cpp conftest.$ac_ext"
3437case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440esac
3441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } >/dev/null; then
3449 if test -s conftest.err; then
3450 ac_cpp_err=$ac_c_preproc_warn_flag
3451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452 else
3453 ac_cpp_err=
3454 fi
3455else
3456 ac_cpp_err=yes
3457fi
3458if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003459 # Broken: success on invalid input.
3460continue
3461else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003465 # Passes both tests.
3466ac_preproc_ok=:
3467break
3468fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003469
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003470rm -f conftest.err conftest.$ac_ext
3471
3472done
3473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003475if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003476 break
3477fi
3478
3479 done
3480 ac_cv_prog_CPP=$CPP
3481
3482fi
3483 CPP=$ac_cv_prog_CPP
3484else
3485 ac_cv_prog_CPP=$CPP
3486fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003487{ echo "$as_me:$LINENO: result: $CPP" >&5
3488echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003489ac_preproc_ok=false
3490for ac_c_preproc_warn_flag in '' yes
3491do
3492 # Use a header file that comes with gcc, so configuring glibc
3493 # with a fresh cross-compiler works.
3494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3495 # <limits.h> exists even on freestanding compilers.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003498 cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003503/* end confdefs.h. */
3504#ifdef __STDC__
3505# include <limits.h>
3506#else
3507# include <assert.h>
3508#endif
3509 Syntax error
3510_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003511if { (ac_try="$ac_cpp conftest.$ac_ext"
3512case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515esac
3516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev/null; then
3524 if test -s conftest.err; then
3525 ac_cpp_err=$ac_c_preproc_warn_flag
3526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527 else
3528 ac_cpp_err=
3529 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00003530else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003531 ac_cpp_err=yes
3532fi
3533if test -z "$ac_cpp_err"; then
3534 :
3535else
3536 echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003539 # Broken: fails on valid input.
3540continue
3541fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003542
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003543rm -f conftest.err conftest.$ac_ext
3544
3545 # OK, works on sane cases. Now check whether nonexistent headers
3546 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003547 cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003552/* end confdefs.h. */
3553#include <ac_nonexistent.h>
3554_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003555if { (ac_try="$ac_cpp conftest.$ac_ext"
3556case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559esac
3560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null; then
3568 if test -s conftest.err; then
3569 ac_cpp_err=$ac_c_preproc_warn_flag
3570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3571 else
3572 ac_cpp_err=
3573 fi
3574else
3575 ac_cpp_err=yes
3576fi
3577if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003578 # Broken: success on invalid input.
3579continue
3580else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003584 # Passes both tests.
3585ac_preproc_ok=:
3586break
3587fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003588
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003589rm -f conftest.err conftest.$ac_ext
3590
3591done
3592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003594if $ac_preproc_ok; then
3595 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003596else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3598See \`config.log' for more details." >&5
3599echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3600See \`config.log' for more details." >&2;}
3601 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003602fi
3603
3604ac_ext=c
3605ac_cpp='$CPP $CPPFLAGS'
3606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608ac_compiler_gnu=$ac_cv_c_compiler_gnu
3609
3610
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003611{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3612echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3613if test "${ac_cv_path_GREP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003615else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003616 # Extract the first word of "grep ggrep" to use in msg output
3617if test -z "$GREP"; then
3618set dummy grep ggrep; ac_prog_name=$2
3619if test "${ac_cv_path_GREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003622 ac_path_GREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003623# Loop through the user's path and test for each of PROGNAME-LIST
3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003625for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003629 for ac_prog in grep ggrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3633 # Check for GNU ac_path_GREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003634 # Check for GNU $ac_path_GREP
3635case `"$ac_path_GREP" --version 2>&1` in
3636*GNU*)
3637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3638*)
3639 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003640 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003641 while :
3642 do
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003646 echo 'GREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003649 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_GREP="$ac_path_GREP"
3653 ac_path_GREP_max=$ac_count
3654 fi
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3657 done
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659esac
3660
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003661
3662 $ac_path_GREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003663 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003664done
3665
3666done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003667IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003668
3669
3670fi
3671
3672GREP="$ac_cv_path_GREP"
3673if test -z "$GREP"; then
3674 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3675echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3676 { (exit 1); exit 1; }; }
3677fi
3678
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003679else
3680 ac_cv_path_GREP=$GREP
3681fi
3682
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003683
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003684fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003685{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3686echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003687 GREP="$ac_cv_path_GREP"
3688
3689
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003690{ echo "$as_me:$LINENO: checking for egrep" >&5
3691echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3692if test "${ac_cv_path_EGREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003694else
3695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3696 then ac_cv_path_EGREP="$GREP -E"
3697 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003698 # Extract the first word of "egrep" to use in msg output
3699if test -z "$EGREP"; then
3700set dummy egrep; ac_prog_name=$2
3701if test "${ac_cv_path_EGREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003704 ac_path_EGREP_found=false
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003705# Loop through the user's path and test for each of PROGNAME-LIST
3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003707for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3708do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003711 for ac_prog in egrep; do
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3714 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3715 # Check for GNU ac_path_EGREP and select it if it is found.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003716 # Check for GNU $ac_path_EGREP
3717case `"$ac_path_EGREP" --version 2>&1` in
3718*GNU*)
3719 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3720*)
3721 ac_count=0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003722 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003723 while :
3724 do
3725 cat "conftest.in" "conftest.in" >"conftest.tmp"
3726 mv "conftest.tmp" "conftest.in"
3727 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003728 echo 'EGREP' >> "conftest.nl"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003729 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003731 ac_count=`expr $ac_count + 1`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003732 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3733 # Best one so far, save it but keep looking for a better one
3734 ac_cv_path_EGREP="$ac_path_EGREP"
3735 ac_path_EGREP_max=$ac_count
3736 fi
3737 # 10*(2^10) chars as input seems more than enough
3738 test $ac_count -gt 10 && break
3739 done
3740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3741esac
3742
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003743
3744 $ac_path_EGREP_found && break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003745 done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003746done
3747
3748done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003749IFS=$as_save_IFS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003750
3751
3752fi
3753
3754EGREP="$ac_cv_path_EGREP"
3755if test -z "$EGREP"; then
3756 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3757echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3758 { (exit 1); exit 1; }; }
3759fi
3760
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003761else
3762 ac_cv_path_EGREP=$EGREP
3763fi
3764
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003765
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003766 fi
3767fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003768{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3769echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003770 EGREP="$ac_cv_path_EGREP"
3771
3772
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003773{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3774echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3775if test "${ac_cv_header_stdc+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003777else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003778 cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h. */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003783/* end confdefs.h. */
3784#include <stdlib.h>
3785#include <stdarg.h>
3786#include <string.h>
3787#include <float.h>
3788
3789int
3790main ()
3791{
3792
3793 ;
3794 return 0;
3795}
3796_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003797rm -f conftest.$ac_objext
3798if { (ac_try="$ac_compile"
3799case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802esac
3803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compile") 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3812 { (case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815esac
3816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817 (eval "$ac_try") 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest.$ac_objext'
3822 { (case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825esac
3826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_try") 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003831 ac_cv_header_stdc=yes
3832else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003833 echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003837fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003838
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840
3841if test $ac_cv_header_stdc = yes; then
3842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003843 cat >conftest.$ac_ext <<_ACEOF
3844/* confdefs.h. */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003848/* end confdefs.h. */
3849#include <string.h>
3850
3851_ACEOF
3852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003853 $EGREP "memchr" >/dev/null 2>&1; then
3854 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003855else
3856 ac_cv_header_stdc=no
3857fi
3858rm -f conftest*
3859
3860fi
3861
3862if test $ac_cv_header_stdc = yes; then
3863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003864 cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h. */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003869/* end confdefs.h. */
3870#include <stdlib.h>
3871
3872_ACEOF
3873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003874 $EGREP "free" >/dev/null 2>&1; then
3875 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003876else
3877 ac_cv_header_stdc=no
3878fi
3879rm -f conftest*
3880
3881fi
3882
3883if test $ac_cv_header_stdc = yes; then
3884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003885 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003886 :
3887else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003888 cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003893/* end confdefs.h. */
3894#include <ctype.h>
3895#include <stdlib.h>
3896#if ((' ' & 0x0FF) == 0x020)
3897# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3898# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3899#else
3900# define ISLOWER(c) \
3901 (('a' <= (c) && (c) <= 'i') \
3902 || ('j' <= (c) && (c) <= 'r') \
3903 || ('s' <= (c) && (c) <= 'z'))
3904# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3905#endif
3906
3907#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3908int
3909main ()
3910{
3911 int i;
3912 for (i = 0; i < 256; i++)
3913 if (XOR (islower (i), ISLOWER (i))
3914 || toupper (i) != TOUPPER (i))
3915 return 2;
3916 return 0;
3917}
3918_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003919rm -f conftest$ac_exeext
3920if { (ac_try="$ac_link"
3921case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924esac
3925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_link") 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3930 { (case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933esac
3934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_try") 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003940else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003941 echo "$as_me: program exited with status $ac_status" >&5
3942echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945( exit $ac_status )
3946ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003947fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003948rm -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 +00003949fi
3950
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003951
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003952fi
3953fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003954{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3955echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003956if test $ac_cv_header_stdc = yes; then
3957
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003958cat >>confdefs.h <<\_ACEOF
3959#define STDC_HEADERS 1
3960_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003961
3962fi
3963
3964# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003965
3966
3967
3968
3969
3970
3971
3972
3973
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003974for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3975 inttypes.h stdint.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00003976do
3977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3978{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
3983 cat >conftest.$ac_ext <<_ACEOF
3984/* confdefs.h. */
3985_ACEOF
3986cat confdefs.h >>conftest.$ac_ext
3987cat >>conftest.$ac_ext <<_ACEOF
3988/* end confdefs.h. */
3989$ac_includes_default
3990
3991#include <$ac_header>
3992_ACEOF
3993rm -f conftest.$ac_objext
3994if { (ac_try="$ac_compile"
3995case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998esac
3999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_compile") 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4008 { (case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011esac
4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_try") 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest.$ac_objext'
4018 { (case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021esac
4022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_try") 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 eval "$as_ac_Header=yes"
4028else
4029 echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 eval "$as_ac_Header=no"
4033fi
4034
4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036fi
4037ac_res=`eval echo '${'$as_ac_Header'}'`
4038 { echo "$as_me:$LINENO: result: $ac_res" >&5
4039echo "${ECHO_T}$ac_res" >&6; }
4040if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004041 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004043_ACEOF
4044
4045fi
4046
4047done
4048
4049
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004050{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4051echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4052if test "${ac_cv_c_bigendian+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004054else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004055 # See if sys/param.h defines the BYTE_ORDER macro.
4056cat >conftest.$ac_ext <<_ACEOF
4057/* confdefs.h. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004058_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004059cat confdefs.h >>conftest.$ac_ext
4060cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004061/* end confdefs.h. */
4062#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004063#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004064
4065int
4066main ()
4067{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004068#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4069 bogus endian macros
4070#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004071
4072 ;
4073 return 0;
4074}
4075_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004076rm -f conftest.$ac_objext
4077if { (ac_try="$ac_compile"
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004110 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004111cat >conftest.$ac_ext <<_ACEOF
4112/* confdefs.h. */
4113_ACEOF
4114cat confdefs.h >>conftest.$ac_ext
4115cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004116/* end confdefs.h. */
4117#include <sys/types.h>
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004118#include <sys/param.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004119
4120int
4121main ()
4122{
4123#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004124 not big endian
4125#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004126
4127 ;
4128 return 0;
4129}
4130_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004131rm -f conftest.$ac_objext
4132if { (ac_try="$ac_compile"
4133case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136esac
4137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004165 ac_cv_c_bigendian=yes
4166else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004167 echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00004169
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004170 ac_cv_c_bigendian=no
4171fi
4172
4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174else
4175 echo "$as_me: failed program was:" >&5
4176sed 's/^/| /' conftest.$ac_ext >&5
4177
4178 # It does not; compile a test program.
4179if test "$cross_compiling" = yes; then
4180 # try to guess the endianness by grepping values into an object file
4181 ac_cv_c_bigendian=unknown
4182 cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h. */
4188short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4189short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4190void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4191short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4192short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4193void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004194int
4195main ()
4196{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004197 _ascii (); _ebcdic ();
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004198 ;
4199 return 0;
4200}
4201_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004202rm -f conftest.$ac_objext
4203if { (ac_try="$ac_compile"
4204case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004237 ac_cv_c_bigendian=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004238fi
4239if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4240 if test "$ac_cv_c_bigendian" = unknown; then
4241 ac_cv_c_bigendian=no
4242 else
4243 # finding both strings is unlikely to happen, but who knows?
4244 ac_cv_c_bigendian=unknown
4245 fi
4246fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004247else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004248 echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004250
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004251
Edwin Törökc27310c2010-01-26 08:50:50 +00004252fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004253
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004256 cat >conftest.$ac_ext <<_ACEOF
4257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004261/* end confdefs.h. */
4262$ac_includes_default
4263int
4264main ()
4265{
4266
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004267 /* Are we little or big endian? From Harbison&Steele. */
4268 union
4269 {
4270 long int l;
4271 char c[sizeof (long int)];
4272 } u;
4273 u.l = 1;
4274 return u.c[sizeof (long int) - 1] == 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004275
4276 ;
4277 return 0;
4278}
4279_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004280rm -f conftest$ac_exeext
4281if { (ac_try="$ac_link"
4282case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_link") 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004300 ac_cv_c_bigendian=no
4301else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004302 echo "$as_me: program exited with status $ac_status" >&5
4303echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
4305
4306( exit $ac_status )
4307ac_cv_c_bigendian=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004308fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004309rm -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 +00004310fi
4311
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004312
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004313fi
4314
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316fi
4317{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4318echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4319case $ac_cv_c_bigendian in
4320 yes)
4321 ENDIAN=big
4322 ;;
4323 no)
4324 ENDIAN=little
4325 ;;
4326 *)
4327 { { echo "$as_me:$LINENO: error: unknown endianness
4328presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4329echo "$as_me: error: unknown endianness
4330presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4331 { (exit 1); exit 1; }; } ;;
4332esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004333
4334
4335if test "$cross_compiling" = yes; then
4336 LLVM_CROSS_COMPILING=1
4337
4338
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004339{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4340echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4341if test "${ac_cv_build_exeext+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004343else
4344 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4345 ac_cv_build_exeext=.exe
4346else
4347 ac_build_prefix=${build_alias}-
4348
4349 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4350set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4353if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004355else
4356 if test -n "$BUILD_CC"; then
4357 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4358else
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH
4361do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 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 +00004366 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004368 break 2
4369 fi
4370done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004371done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004372IFS=$as_save_IFS
4373
4374fi
4375fi
4376BUILD_CC=$ac_cv_prog_BUILD_CC
4377if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004378 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4379echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004380else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004381 { echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004383fi
4384
4385
4386 if test -z "$BUILD_CC"; then
4387 # Extract the first word of "gcc", so it can be a program name with args.
4388set dummy gcc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004393else
4394 if test -n "$BUILD_CC"; then
4395 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 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 +00004404 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004406 break 2
4407 fi
4408done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004409done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004410IFS=$as_save_IFS
4411
4412fi
4413fi
4414BUILD_CC=$ac_cv_prog_BUILD_CC
4415if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004416 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4417echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004418else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004419 { echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004421fi
4422
4423
4424 if test -z "$BUILD_CC"; then
4425 # Extract the first word of "cc", so it can be a program name with args.
4426set dummy cc; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004431else
4432 if test -n "$BUILD_CC"; then
4433 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4434else
4435 ac_prog_rejected=no
4436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH
4438do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 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 +00004443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4444 ac_prog_rejected=yes
4445 continue
4446 fi
4447 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004449 break 2
4450 fi
4451done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004452done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004453IFS=$as_save_IFS
4454
4455if test $ac_prog_rejected = yes; then
4456 # We found a bogon in the path, so make sure we never use it.
4457 set dummy $ac_cv_prog_BUILD_CC
4458 shift
4459 if test $# != 0; then
4460 # We chose a different compiler from the bogus one.
4461 # However, it has the same basename, so the bogon will be chosen
4462 # first if we set BUILD_CC to just the basename; use the full file name.
4463 shift
4464 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4465 fi
4466fi
4467fi
4468fi
4469BUILD_CC=$ac_cv_prog_BUILD_CC
4470if test -n "$BUILD_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004471 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4472echo "${ECHO_T}$BUILD_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004473else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004474 { echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004476fi
4477
4478
4479 fi
4480 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004481 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4482echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4483 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004484 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4485 rm -f conftest*
4486 echo 'int main () { return 0; }' > conftest.$ac_ext
4487 ac_cv_build_exeext=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004488 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004489 (eval $ac_build_link) 2>&5
4490 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004493 for file in conftest.*; do
4494 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004495 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004496 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4497 esac
4498 done
4499 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004500 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4501echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4502 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004503 fi
4504 rm -f conftest*
4505 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4506fi
4507fi
4508
4509BUILD_EXEEXT=""
4510test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004511{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4512echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004513ac_build_exeext=$BUILD_EXEEXT
4514
Jim Grosbache4c032e2008-10-02 22:56:44 +00004515 ac_build_prefix=${build_alias}-
4516 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4517set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004522else
4523 if test -n "$BUILD_CXX"; then
4524 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4525else
4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH
4528do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 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 +00004533 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004535 break 2
4536 fi
4537done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004538done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004539IFS=$as_save_IFS
4540
4541fi
4542fi
4543BUILD_CXX=$ac_cv_prog_BUILD_CXX
4544if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004545 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4546echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004547else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004548 { echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004550fi
4551
4552
4553 if test -z "$BUILD_CXX"; then
4554 # Extract the first word of "g++", so it can be a program name with args.
4555set dummy g++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004560else
4561 if test -n "$BUILD_CXX"; then
4562 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4563else
4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 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 +00004571 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004573 break 2
4574 fi
4575done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004576done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004577IFS=$as_save_IFS
4578
4579fi
4580fi
4581BUILD_CXX=$ac_cv_prog_BUILD_CXX
4582if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004583 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4584echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004585else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004586 { echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004588fi
4589
4590
4591 if test -z "$BUILD_CXX"; then
4592 # Extract the first word of "c++", so it can be a program name with args.
4593set dummy c++; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbache4c032e2008-10-02 22:56:44 +00004598else
4599 if test -n "$BUILD_CXX"; then
4600 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4601else
4602 ac_prog_rejected=no
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 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 +00004610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4611 ac_prog_rejected=yes
4612 continue
4613 fi
4614 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbache4c032e2008-10-02 22:56:44 +00004616 break 2
4617 fi
4618done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004619done
Jim Grosbache4c032e2008-10-02 22:56:44 +00004620IFS=$as_save_IFS
4621
4622if test $ac_prog_rejected = yes; then
4623 # We found a bogon in the path, so make sure we never use it.
4624 set dummy $ac_cv_prog_BUILD_CXX
4625 shift
4626 if test $# != 0; then
4627 # We chose a different compiler from the bogus one.
4628 # However, it has the same basename, so the bogon will be chosen
4629 # first if we set BUILD_CXX to just the basename; use the full file name.
4630 shift
4631 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4632 fi
4633fi
4634fi
4635fi
4636BUILD_CXX=$ac_cv_prog_BUILD_CXX
4637if test -n "$BUILD_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004638 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4639echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004640else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004641 { echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6; }
Jim Grosbache4c032e2008-10-02 22:56:44 +00004643fi
4644
4645
4646 fi
4647 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004648else
4649 LLVM_CROSS_COMPILING=0
4650
4651fi
4652
Nick Lewycky45f0f822009-04-10 05:18:27 +00004653if 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 +00004654 cvsbuild="yes"
4655 optimize="no"
4656 CVSBUILD=CVSBUILD=1
4657
4658else
4659 cvsbuild="no"
4660 optimize="yes"
4661fi
4662
4663
4664# Check whether --enable-optimized was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004665if test "${enable_optimized+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004666 enableval=$enable_optimized;
4667else
4668 enableval=$optimize
4669fi
4670
4671if test ${enableval} = "no" ; then
4672 ENABLE_OPTIMIZED=
4673
4674else
4675 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4676
4677fi
4678
David Greene19b1cbd2009-04-17 14:50:39 +00004679# Check whether --enable-profiling was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004680if test "${enable_profiling+set}" = set; then
David Greene19b1cbd2009-04-17 14:50:39 +00004681 enableval=$enable_profiling;
4682else
4683 enableval="no"
4684fi
4685
4686if test ${enableval} = "no" ; then
4687 ENABLE_PROFILING=
4688
4689else
4690 ENABLE_PROFILING=ENABLE_PROFILING=1
4691
4692fi
4693
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004694# Check whether --enable-assertions was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004695if test "${enable_assertions+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004696 enableval=$enable_assertions;
4697else
4698 enableval="yes"
4699fi
4700
4701if test ${enableval} = "yes" ; then
4702 DISABLE_ASSERTIONS=
4703
4704else
4705 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4706
4707fi
4708
4709# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004710if test "${enable_expensive_checks+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004711 enableval=$enable_expensive_checks;
4712else
4713 enableval="no"
4714fi
4715
4716if test ${enableval} = "yes" ; then
4717 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4718
4719 EXPENSIVE_CHECKS=yes
4720
4721else
4722 ENABLE_EXPENSIVE_CHECKS=
4723
4724 EXPENSIVE_CHECKS=no
4725
4726fi
4727
4728# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004729if test "${enable_debug_runtime+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004730 enableval=$enable_debug_runtime;
4731else
4732 enableval=no
4733fi
4734
4735if test ${enableval} = "no" ; then
4736 DEBUG_RUNTIME=
4737
4738else
4739 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4740
4741fi
4742
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004743# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004744if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004745 enableval=$enable_debug_symbols;
4746else
4747 enableval=no
4748fi
4749
4750if test ${enableval} = "no" ; then
4751 DEBUG_SYMBOLS=
4752
4753else
4754 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4755
4756fi
4757
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004758# Check whether --enable-jit was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004759if test "${enable_jit+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004760 enableval=$enable_jit;
4761else
4762 enableval=default
4763fi
4764
4765if test ${enableval} = "no"
4766then
4767 JIT=
4768
4769else
4770 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004771 x86) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004772 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004773 Sparc) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004774 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004775 PowerPC) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004776 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004777 x86_64) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004778 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004779 Alpha) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004780 ;;
Eric Christopher9ab1d2e2009-09-14 16:38:49 +00004781 ARM) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004782 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004783 Mips) TARGET_HAS_JIT=0
Tanya Lattner81915b12007-08-29 16:38:16 +00004784 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004785 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004786 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004787 XCore) TARGET_HAS_JIT=0
Richard Osborneab8167a2008-11-07 10:59:00 +00004788 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004789 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004790 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004791 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00004792 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004793 Blackfin) TARGET_HAS_JIT=0
4794 ;;
4795 *) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004796 ;;
4797 esac
4798fi
4799
4800# Check whether --enable-doxygen was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004801if test "${enable_doxygen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004802 enableval=$enable_doxygen;
4803else
4804 enableval=default
4805fi
4806
4807case "$enableval" in
4808 yes) ENABLE_DOXYGEN=1
4809 ;;
4810 no) ENABLE_DOXYGEN=0
4811 ;;
4812 default) ENABLE_DOXYGEN=0
4813 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004814 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4815echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4816 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004817esac
4818
4819# Check whether --enable-threads was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004820if test "${enable_threads+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004821 enableval=$enable_threads;
4822else
4823 enableval=default
4824fi
4825
4826case "$enableval" in
4827 yes) ENABLE_THREADS=1
4828 ;;
4829 no) ENABLE_THREADS=0
4830 ;;
4831 default) ENABLE_THREADS=1
4832 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4834echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4835 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004836esac
4837
Owen Anderson96237ec2009-05-19 22:18:56 +00004838cat >>confdefs.h <<_ACEOF
4839#define ENABLE_THREADS $ENABLE_THREADS
4840_ACEOF
4841
4842
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004843# Check whether --enable-pic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004844if test "${enable_pic+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004845 enableval=$enable_pic;
4846else
4847 enableval=default
4848fi
4849
4850case "$enableval" in
4851 yes) ENABLE_PIC=1
4852 ;;
4853 no) ENABLE_PIC=0
4854 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004855 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004856 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004857 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4858echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4859 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004860esac
4861
4862cat >>confdefs.h <<_ACEOF
4863#define ENABLE_PIC $ENABLE_PIC
4864_ACEOF
4865
4866
4867TARGETS_TO_BUILD=""
4868# Check whether --enable-targets was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004869if test "${enable_targets+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004870 enableval=$enable_targets;
4871else
4872 enableval=all
4873fi
4874
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004875if test "$enableval" = host-only ; then
4876 enableval=host
4877fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004878case "$enableval" in
Jakob Stoklund Olesenb62e9aa2009-08-02 17:32:37 +00004879 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 +00004880 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4881 case "$a_target" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004882 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4883 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4884 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4885 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4886 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4887 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4888 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4889 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4890 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4891 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4892 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4893 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4894 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4895 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4896 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4897 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004898 host) case "$llvm_cv_target_arch" in
4899 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4900 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4901 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4902 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4903 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4904 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4905 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4906 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4907 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4908 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4909 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikovc5cbb462010-01-05 20:45:43 +00004910 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004911 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004912 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4913echo "$as_me: error: Can not set target to build" >&2;}
4914 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00004915 esac ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004916 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4917echo "$as_me: error: Unrecognized target $a_target" >&2;}
4918 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004919 esac
4920 done
4921 ;;
4922esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004923TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4924
4925
Douglas Gregor13e13882009-06-17 00:43:20 +00004926# Determine whether we are building LLVM support for the native architecture.
4927# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4928for a_target in $TARGETS_TO_BUILD; do
4929 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00004930 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00004931
4932cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00004933#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00004934_ACEOF
4935
4936 fi
4937done
4938
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004939# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4940# target feature def files.
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004941LLVM_ENUM_TARGETS=""
4942LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004943LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004944LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004945for target_to_build in $TARGETS_TO_BUILD; do
4946 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4947 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4948 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4949 fi
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004950 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4951 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4952 fi
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004953 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4954 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4955 fi
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004956done
4957
4958
4959
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00004960
Daniel Dunbar0e18f262009-11-25 04:37:28 +00004961
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004962# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004963if test "${enable_cbe_printf_a+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004964 enableval=$enable_cbe_printf_a;
4965else
4966 enableval=default
4967fi
4968
4969case "$enableval" in
4970 yes) ENABLE_CBE_PRINTF_A=1
4971 ;;
4972 no) ENABLE_CBE_PRINTF_A=0
4973 ;;
4974 default) ENABLE_CBE_PRINTF_A=1
4975 ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4977echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004979esac
4980
4981cat >>confdefs.h <<_ACEOF
4982#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4983_ACEOF
4984
4985
4986
4987# Check whether --with-llvmgccdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004988if test "${with_llvmgccdir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004989 withval=$with_llvmgccdir;
4990else
4991 withval=default
4992fi
4993
4994case "$withval" in
4995 default) WITH_LLVMGCCDIR=default ;;
4996 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00004997 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4998echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4999 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005000esac
5001
5002
Devang Pateld84ba7b2007-12-04 22:54:47 +00005003# Check whether --with-llvmgcc was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005004if test "${with_llvmgcc+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005005 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5006 WITH_LLVMGCCDIR=""
5007fi
5008
5009
5010
5011# Check whether --with-llvmgxx was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005012if test "${with_llvmgxx+set}" = set; then
Devang Pateld84ba7b2007-12-04 22:54:47 +00005013 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5014 WITH_LLVMGCCDIR=""
5015fi
5016
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005017
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005018if test -n "$LLVMGCC"; then
5019 LLVMGCCCOMMAND="$LLVMGCC"
5020fi
5021
5022if test -n "$LLVMGXX"; then
5023 LLVMGXXCOMMAND="$LLVMGXX"
5024fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005025
5026if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005027 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5028echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5029 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005030fi
5031
5032if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005033 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5034echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5035 { (exit 1); exit 1; }; };
Devang Pateld84ba7b2007-12-04 22:54:47 +00005036fi
5037
5038
Daniel Dunbarf80d8f32010-02-23 10:00:49 +00005039# Check whether --with-clang was given.
5040if test "${with_clang+set}" = set; then
5041 withval=$with_clang;
5042else
5043 with_clang=default
5044fi
5045
5046
5047
5048# Check whether --with-built-clang was given.
5049if test "${with_built_clang+set}" = set; then
5050 withval=$with_built_clang;
5051else
5052 with_built_clang=check
5053fi
5054
5055
5056{ echo "$as_me:$LINENO: checking clang compiler" >&5
5057echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5058WITH_CLANGPATH=""
5059WITH_BUILT_CLANG=0
5060if test "$with_clang" != "default"; then
5061 WITH_CLANGPATH="$with_clang"
5062 if ! test -x "$WITH_CLANGPATH"; then
5063 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5064echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5065 { (exit 1); exit 1; }; }
5066 fi
5067elif test "$with_built_clang" = "yes"; then
5068 WITH_BUILT_CLANG=1
5069elif test "$with_built_clang" = "no"; then
5070 WITH_BUILT_CLANG=0
5071else
5072 if test "$with_built_clang" != "check"; then
5073 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5074echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5075 { (exit 1); exit 1; }; }
5076 fi
5077
5078 if test -f ${srcdir}/tools/clang/README.txt; then
5079 WITH_BUILT_CLANG=1
5080 fi
5081fi
5082
5083if ! test -z "$WITH_CLANGPATH"; then
5084 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5085echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5086 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5087elif test "$WITH_BUILT_CLANG" = "1"; then
5088 { echo "$as_me:$LINENO: result: built" >&5
5089echo "${ECHO_T}built" >&6; }
5090else
5091 { echo "$as_me:$LINENO: result: none" >&5
5092echo "${ECHO_T}none" >&6; }
5093fi
5094CLANGPATH=$WITH_CLANGPATH
5095
5096CLANGXXPATH=$WITH_CLANGXXPATH
5097
5098ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5099
5100
5101
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005102# Check whether --with-optimize-option was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005103if test "${with_optimize_option+set}" = set; then
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005104 withval=$with_optimize_option;
5105else
5106 withval=default
5107fi
5108
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005109{ echo "$as_me:$LINENO: checking optimization flags" >&5
5110echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005111case "$withval" in
5112 default)
5113 case "$llvm_cv_os_type" in
5114 MingW) optimize_option=-O3 ;;
5115 *) optimize_option=-O2 ;;
5116 esac ;;
5117 *) optimize_option="$withval" ;;
5118esac
5119OPTIMIZE_OPTION=$optimize_option
5120
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005121{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5122echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarca58fd82009-11-04 04:32:50 +00005123
5124
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005125# Check whether --with-extra-options was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005126if test "${with_extra_options+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005127 withval=$with_extra_options;
5128else
5129 withval=default
5130fi
5131
5132case "$withval" in
5133 default) EXTRA_OPTIONS= ;;
5134 *) EXTRA_OPTIONS=$withval ;;
5135esac
5136EXTRA_OPTIONS=$EXTRA_OPTIONS
5137
5138
Gordon Henriksen016ec472007-10-02 09:50:32 +00005139# Check whether --enable-bindings was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005140if test "${enable_bindings+set}" = set; then
Gordon Henriksen016ec472007-10-02 09:50:32 +00005141 enableval=$enable_bindings;
5142else
5143 enableval=default
5144fi
5145
5146BINDINGS_TO_BUILD=""
5147case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005148 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005149 all ) BINDINGS_TO_BUILD="ocaml" ;;
5150 none | no) BINDINGS_TO_BUILD="" ;;
5151 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5152 case "$a_binding" in
5153 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005154 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5155echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5156 { (exit 1); exit 1; }; } ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005157 esac
5158 done
5159 ;;
5160esac
5161
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005162
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005163# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005164if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005165 withval=$with_ocaml_libdir;
5166else
5167 withval=auto
5168fi
5169
5170case "$withval" in
5171 auto) with_ocaml_libdir="$withval" ;;
5172 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005173 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5174echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5175 { (exit 1); exit 1; }; } ;;
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005176esac
5177
5178
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005179# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005180if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola7363a6e2009-12-07 00:27:35 +00005181 withval=$with_c_include_dirs;
Rafael Espindola354924d2009-11-12 05:46:09 +00005182else
5183 withval=""
5184fi
5185
5186
5187cat >>confdefs.h <<_ACEOF
5188#define C_INCLUDE_DIRS "$withval"
5189_ACEOF
5190
5191
5192
Rafael Espindola3890bf02009-11-16 19:46:55 +00005193# Check whether --with-cxx-include-root was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005194if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005195 withval=$with_cxx_include_root;
5196else
5197 withval=""
5198fi
5199
5200
5201cat >>confdefs.h <<_ACEOF
5202#define CXX_INCLUDE_ROOT "$withval"
5203_ACEOF
5204
5205
5206
5207# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005208if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005209 withval=$with_cxx_include_arch;
5210else
5211 withval=""
5212fi
5213
5214
5215cat >>confdefs.h <<_ACEOF
5216#define CXX_INCLUDE_ARCH "$withval"
5217_ACEOF
5218
5219
5220
5221# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005222if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005223 withval=$with_cxx_include_32bit_dir;
5224else
5225 withval=""
5226fi
5227
5228
5229cat >>confdefs.h <<_ACEOF
5230#define CXX_INCLUDE_32BIT_DIR "$withval"
5231_ACEOF
5232
5233
5234
5235# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005236if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola3890bf02009-11-16 19:46:55 +00005237 withval=$with_cxx_include_64bit_dir;
5238else
5239 withval=""
5240fi
5241
5242
5243cat >>confdefs.h <<_ACEOF
5244#define CXX_INCLUDE_64BIT_DIR "$withval"
5245_ACEOF
5246
5247
5248
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005249# Check whether --with-binutils-include was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005250if test "${with_binutils_include+set}" = set; then
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005251 withval=$with_binutils_include;
5252else
5253 withval=default
5254fi
5255
5256case "$withval" in
5257 default) WITH_BINUTILS_INCDIR=default ;;
5258 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005259 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5260echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5261 { (exit 1); exit 1; }; } ;;
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005262esac
5263if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5264 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5265
5266 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5267 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005268 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5269echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5270 { (exit 1); exit 1; }; };
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005271 fi
5272fi
5273
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005274# Check whether --enable-libffi was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005275if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005276 enableval=$enable_libffi; case "$enableval" in
5277 yes) llvm_cv_enable_libffi="yes" ;;
5278 no) llvm_cv_enable_libffi="no" ;;
5279 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005280echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5281 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin260af332010-02-09 23:03:44 +00005282 esac
5283else
5284 llvm_cv_enable_libffi=no
5285fi
5286
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005287
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005288if test "$llvm_cv_os_type" = "Win32" ; then
5289 llvmc_dynamic="yes"
5290else
5291 llvmc_dynamic="no"
5292fi
5293
5294# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005295if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005296 enableval=$enable_llvmc_dynamic;
5297else
5298 enableval=$llvmc_dynamic
5299fi
5300
5301if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5302 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5303
5304else
5305 ENABLE_LLVMC_DYNAMIC=
5306
5307fi
5308
5309# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005310if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005311 enableval=$enable_llvmc_dynamic_plugins;
5312else
5313 enableval=yes
5314fi
5315
5316if test ${enableval} = "yes" ; then
5317 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5318
5319else
5320 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5321
5322fi
5323
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005324
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005325ac_ext=c
5326ac_cpp='$CPP $CPPFLAGS'
5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005330{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5331echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005332# On Suns, sometimes $CPP names a directory.
5333if test -n "$CPP" && test -d "$CPP"; then
5334 CPP=
5335fi
5336if test -z "$CPP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005337 if test "${ac_cv_prog_CPP+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005339else
5340 # Double quotes because CPP needs to be expanded
5341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5342 do
5343 ac_preproc_ok=false
5344for ac_c_preproc_warn_flag in '' yes
5345do
5346 # Use a header file that comes with gcc, so configuring glibc
5347 # with a fresh cross-compiler works.
5348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5349 # <limits.h> exists even on freestanding compilers.
5350 # On the NeXT, cc -E runs the code through the compiler's parser,
5351 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005352 cat >conftest.$ac_ext <<_ACEOF
5353/* confdefs.h. */
5354_ACEOF
5355cat confdefs.h >>conftest.$ac_ext
5356cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005357/* end confdefs.h. */
5358#ifdef __STDC__
5359# include <limits.h>
5360#else
5361# include <assert.h>
5362#endif
5363 Syntax error
5364_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005365if { (ac_try="$ac_cpp conftest.$ac_ext"
5366case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369esac
5370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } >/dev/null; then
5378 if test -s conftest.err; then
5379 ac_cpp_err=$ac_c_preproc_warn_flag
5380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5381 else
5382 ac_cpp_err=
5383 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005384else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005385 ac_cpp_err=yes
5386fi
5387if test -z "$ac_cpp_err"; then
5388 :
5389else
5390 echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005393 # Broken: fails on valid input.
5394continue
5395fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005396
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005397rm -f conftest.err conftest.$ac_ext
5398
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005401 cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h. */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005406/* end confdefs.h. */
5407#include <ac_nonexistent.h>
5408_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005409if { (ac_try="$ac_cpp conftest.$ac_ext"
5410case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413esac
5414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5416 ac_status=$?
5417 grep -v '^ *+' conftest.er1 >conftest.err
5418 rm -f conftest.er1
5419 cat conftest.err >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } >/dev/null; then
5422 if test -s conftest.err; then
5423 ac_cpp_err=$ac_c_preproc_warn_flag
5424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5425 else
5426 ac_cpp_err=
5427 fi
5428else
5429 ac_cpp_err=yes
5430fi
5431if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005432 # Broken: success on invalid input.
5433continue
5434else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005435 echo "$as_me: failed program was:" >&5
5436sed 's/^/| /' conftest.$ac_ext >&5
5437
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005438 # Passes both tests.
5439ac_preproc_ok=:
5440break
5441fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005442
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005443rm -f conftest.err conftest.$ac_ext
5444
5445done
5446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5447rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005448if $ac_preproc_ok; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005449 break
5450fi
5451
5452 done
5453 ac_cv_prog_CPP=$CPP
5454
5455fi
5456 CPP=$ac_cv_prog_CPP
5457else
5458 ac_cv_prog_CPP=$CPP
5459fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005460{ echo "$as_me:$LINENO: result: $CPP" >&5
5461echo "${ECHO_T}$CPP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005462ac_preproc_ok=false
5463for ac_c_preproc_warn_flag in '' yes
5464do
5465 # Use a header file that comes with gcc, so configuring glibc
5466 # with a fresh cross-compiler works.
5467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5468 # <limits.h> exists even on freestanding compilers.
5469 # On the NeXT, cc -E runs the code through the compiler's parser,
5470 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005471 cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h. */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005476/* end confdefs.h. */
5477#ifdef __STDC__
5478# include <limits.h>
5479#else
5480# include <assert.h>
5481#endif
5482 Syntax error
5483_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005484if { (ac_try="$ac_cpp conftest.$ac_ext"
5485case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488esac
5489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } >/dev/null; then
5497 if test -s conftest.err; then
5498 ac_cpp_err=$ac_c_preproc_warn_flag
5499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5500 else
5501 ac_cpp_err=
5502 fi
Edwin Törökc27310c2010-01-26 08:50:50 +00005503else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005504 ac_cpp_err=yes
5505fi
5506if test -z "$ac_cpp_err"; then
5507 :
5508else
5509 echo "$as_me: failed program was:" >&5
5510sed 's/^/| /' conftest.$ac_ext >&5
5511
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005512 # Broken: fails on valid input.
5513continue
5514fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005515
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005516rm -f conftest.err conftest.$ac_ext
5517
5518 # OK, works on sane cases. Now check whether nonexistent headers
5519 # can be detected and how.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005520 cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h. */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005525/* end confdefs.h. */
5526#include <ac_nonexistent.h>
5527_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005528if { (ac_try="$ac_cpp conftest.$ac_ext"
5529case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532esac
5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } >/dev/null; then
5541 if test -s conftest.err; then
5542 ac_cpp_err=$ac_c_preproc_warn_flag
5543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5544 else
5545 ac_cpp_err=
5546 fi
5547else
5548 ac_cpp_err=yes
5549fi
5550if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005551 # Broken: success on invalid input.
5552continue
5553else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005554 echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005557 # Passes both tests.
5558ac_preproc_ok=:
5559break
5560fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005561
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005562rm -f conftest.err conftest.$ac_ext
5563
5564done
5565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5566rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005567if $ac_preproc_ok; then
5568 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005569else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005570 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5571See \`config.log' for more details." >&5
5572echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5573See \`config.log' for more details." >&2;}
5574 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005575fi
5576
5577ac_ext=c
5578ac_cpp='$CPP $CPPFLAGS'
5579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581ac_compiler_gnu=$ac_cv_c_compiler_gnu
5582
5583ac_ext=c
5584ac_cpp='$CPP $CPPFLAGS'
5585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587ac_compiler_gnu=$ac_cv_c_compiler_gnu
5588if test -n "$ac_tool_prefix"; then
5589 for ac_prog in gcc
5590 do
5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5595if test "${ac_cv_prog_CC+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005597else
5598 if test -n "$CC"; then
5599 ac_cv_prog_CC="$CC" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 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 +00005608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005610 break 2
5611 fi
5612done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005613done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005614IFS=$as_save_IFS
5615
5616fi
5617fi
5618CC=$ac_cv_prog_CC
5619if test -n "$CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005620 { echo "$as_me:$LINENO: result: $CC" >&5
5621echo "${ECHO_T}$CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005622else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005623 { echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005625fi
5626
5627
5628 test -n "$CC" && break
5629 done
5630fi
5631if test -z "$CC"; then
5632 ac_ct_CC=$CC
5633 for ac_prog in gcc
5634do
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005641else
5642 if test -n "$ac_ct_CC"; then
5643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 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 +00005652 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005654 break 2
5655 fi
5656done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005657done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005658IFS=$as_save_IFS
5659
5660fi
5661fi
5662ac_ct_CC=$ac_cv_prog_ac_ct_CC
5663if test -n "$ac_ct_CC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005664 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5665echo "${ECHO_T}$ac_ct_CC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005666else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005667 { echo "$as_me:$LINENO: result: no" >&5
5668echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005669fi
5670
5671
5672 test -n "$ac_ct_CC" && break
5673done
5674
5675 if test "x$ac_ct_CC" = x; then
5676 CC=""
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005680{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5681whose name does not start with the host triplet. If you think this
5682configuration is useful to you, please write to autoconf@gnu.org." >&5
5683echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5684whose name does not start with the host triplet. If you think this
5685configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005686ac_tool_warned=yes ;;
5687esac
5688 CC=$ac_ct_CC
5689 fi
5690fi
5691
5692
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5694See \`config.log' for more details." >&5
5695echo "$as_me: error: no acceptable C compiler found in \$PATH
5696See \`config.log' for more details." >&2;}
5697 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005698
5699# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005700echo "$as_me:$LINENO: checking for C compiler version" >&5
5701ac_compiler=`set X $ac_compile; echo $2`
5702{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005703case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005709 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }
5712{ (ac_try="$ac_compiler -v >&5"
5713case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716esac
5717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_compiler -v >&5") 2>&5
5719 ac_status=$?
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }
5722{ (ac_try="$ac_compiler -V >&5"
5723case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726esac
5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compiler -V >&5") 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005732
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005733{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5734echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5735if test "${ac_cv_c_compiler_gnu+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005737else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005738 cat >conftest.$ac_ext <<_ACEOF
5739/* confdefs.h. */
5740_ACEOF
5741cat confdefs.h >>conftest.$ac_ext
5742cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005743/* end confdefs.h. */
5744
5745int
5746main ()
5747{
5748#ifndef __GNUC__
5749 choke me
5750#endif
5751
5752 ;
5753 return 0;
5754}
5755_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005756rm -f conftest.$ac_objext
5757if { (ac_try="$ac_compile"
5758case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761esac
5762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5771 { (case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774esac
5775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_try") 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784esac
5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_try") 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005790 ac_compiler_gnu=yes
5791else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005792 echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005796fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005797
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799ac_cv_c_compiler_gnu=$ac_compiler_gnu
5800
5801fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005802{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5803echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5804GCC=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005805ac_test_CFLAGS=${CFLAGS+set}
5806ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005807{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5808echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5809if test "${ac_cv_prog_cc_g+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005811else
5812 ac_save_c_werror_flag=$ac_c_werror_flag
5813 ac_c_werror_flag=yes
5814 ac_cv_prog_cc_g=no
5815 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005816 cat >conftest.$ac_ext <<_ACEOF
5817/* confdefs.h. */
5818_ACEOF
5819cat confdefs.h >>conftest.$ac_ext
5820cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005821/* end confdefs.h. */
5822
5823int
5824main ()
5825{
5826
5827 ;
5828 return 0;
5829}
5830_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005831rm -f conftest.$ac_objext
5832if { (ac_try="$ac_compile"
5833case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836esac
5837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_compile") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5846 { (case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849esac
5850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_try") 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (case "(($ac_try" in
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5859esac
5860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_try") 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005865 ac_cv_prog_cc_g=yes
5866else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005867 echo "$as_me: failed program was:" >&5
5868sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 CFLAGS=""
5871 cat >conftest.$ac_ext <<_ACEOF
5872/* confdefs.h. */
5873_ACEOF
5874cat confdefs.h >>conftest.$ac_ext
5875cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005876/* end confdefs.h. */
5877
5878int
5879main ()
5880{
5881
5882 ;
5883 return 0;
5884}
5885_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005886rm -f conftest.$ac_objext
5887if { (ac_try="$ac_compile"
5888case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891esac
5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } &&
5900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5901 { (case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904esac
5905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_try") 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; } &&
5910 { ac_try='test -s conftest.$ac_objext'
5911 { (case "(($ac_try" in
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5914esac
5915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_try") 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 :
Edwin Törökc27310c2010-01-26 08:50:50 +00005921else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005922 echo "$as_me: failed program was:" >&5
5923sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 ac_c_werror_flag=$ac_save_c_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005926 CFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005927 cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h. */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005932/* end confdefs.h. */
5933
5934int
5935main ()
5936{
5937
5938 ;
5939 return 0;
5940}
5941_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005942rm -f conftest.$ac_objext
5943if { (ac_try="$ac_compile"
5944case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compile") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960esac
5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005976 ac_cv_prog_cc_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005977else
5978 echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005982fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005983
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005986
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005989
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 ac_c_werror_flag=$ac_save_c_werror_flag
5992fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00005993{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5994echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005995if test "$ac_test_CFLAGS" = set; then
5996 CFLAGS=$ac_save_CFLAGS
5997elif test $ac_cv_prog_cc_g = yes; then
5998 if test "$GCC" = yes; then
5999 CFLAGS="-g -O2"
6000 else
6001 CFLAGS="-g"
6002 fi
6003else
6004 if test "$GCC" = yes; then
6005 CFLAGS="-O2"
6006 else
6007 CFLAGS=
6008 fi
6009fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006010{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6011echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6012if test "${ac_cv_prog_cc_c89+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006014else
6015 ac_cv_prog_cc_c89=no
6016ac_save_CC=$CC
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006017cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h. */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006022/* end confdefs.h. */
6023#include <stdarg.h>
6024#include <stdio.h>
6025#include <sys/types.h>
6026#include <sys/stat.h>
6027/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6028struct buf { int x; };
6029FILE * (*rcsopen) (struct buf *, struct stat *, int);
6030static char *e (p, i)
6031 char **p;
6032 int i;
6033{
6034 return p[i];
6035}
6036static char *f (char * (*g) (char **, int), char **p, ...)
6037{
6038 char *s;
6039 va_list v;
6040 va_start (v,p);
6041 s = g (p, va_arg (v,int));
6042 va_end (v);
6043 return s;
6044}
6045
6046/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6047 function prototypes and stuff, but not '\xHH' hex character constants.
6048 These don't provoke an error unfortunately, instead are silently treated
6049 as 'x'. The following induces an error, until -std is added to get
6050 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6051 array size at least. It's necessary to write '\x00'==0 to get something
6052 that's true only with -std. */
6053int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6054
6055/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6056 inside strings and character constants. */
6057#define FOO(x) 'x'
6058int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6059
6060int test (int i, double x);
6061struct s1 {int (*f) (int a);};
6062struct s2 {int (*f) (double a);};
6063int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6064int argc;
6065char **argv;
6066int
6067main ()
6068{
6069return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6070 ;
6071 return 0;
6072}
6073_ACEOF
6074for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6075 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6076do
6077 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006078 rm -f conftest.$ac_objext
6079if { (ac_try="$ac_compile"
6080case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6093 { (case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_try") 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106esac
6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_try") 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006112 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006113else
6114 echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006118fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006119
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006120rm -f core conftest.err conftest.$ac_objext
6121 test "x$ac_cv_prog_cc_c89" != "xno" && break
6122done
6123rm -f conftest.$ac_ext
6124CC=$ac_save_CC
6125
6126fi
6127# AC_CACHE_VAL
6128case "x$ac_cv_prog_cc_c89" in
6129 x)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006130 { echo "$as_me:$LINENO: result: none needed" >&5
6131echo "${ECHO_T}none needed" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006132 xno)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006133 { echo "$as_me:$LINENO: result: unsupported" >&5
6134echo "${ECHO_T}unsupported" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006135 *)
6136 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6138echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006139esac
6140
6141
6142ac_ext=c
6143ac_cpp='$CPP $CPPFLAGS'
6144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148ac_ext=cpp
6149ac_cpp='$CXXCPP $CPPFLAGS'
6150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6153if test -z "$CXX"; then
6154 if test -n "$CCC"; then
6155 CXX=$CCC
6156 else
6157 if test -n "$ac_tool_prefix"; then
6158 for ac_prog in g++
6159 do
6160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6164if test "${ac_cv_prog_CXX+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006166else
6167 if test -n "$CXX"; then
6168 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6169else
6170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171for as_dir in $PATH
6172do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 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 +00006177 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006179 break 2
6180 fi
6181done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006182done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006183IFS=$as_save_IFS
6184
6185fi
6186fi
6187CXX=$ac_cv_prog_CXX
6188if test -n "$CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006189 { echo "$as_me:$LINENO: result: $CXX" >&5
6190echo "${ECHO_T}$CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006191else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006192 { echo "$as_me:$LINENO: result: no" >&5
6193echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006194fi
6195
6196
6197 test -n "$CXX" && break
6198 done
6199fi
6200if test -z "$CXX"; then
6201 ac_ct_CXX=$CXX
6202 for ac_prog in g++
6203do
6204 # Extract the first word of "$ac_prog", so it can be a program name with args.
6205set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006210else
6211 if test -n "$ac_ct_CXX"; then
6212 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 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 +00006221 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006223 break 2
6224 fi
6225done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006226done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006227IFS=$as_save_IFS
6228
6229fi
6230fi
6231ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6232if test -n "$ac_ct_CXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006233 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6234echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006235else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006236 { echo "$as_me:$LINENO: result: no" >&5
6237echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006238fi
6239
6240
6241 test -n "$ac_ct_CXX" && break
6242done
6243
6244 if test "x$ac_ct_CXX" = x; then
6245 CXX="g++"
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006249{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6250whose name does not start with the host triplet. If you think this
6251configuration is useful to you, please write to autoconf@gnu.org." >&5
6252echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6253whose name does not start with the host triplet. If you think this
6254configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006255ac_tool_warned=yes ;;
6256esac
6257 CXX=$ac_ct_CXX
6258 fi
6259fi
6260
6261 fi
6262fi
6263# Provide some information about the compiler.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006264echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6265ac_compiler=`set X $ac_compile; echo $2`
6266{ (ac_try="$ac_compiler --version >&5"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006267case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compiler --version >&5") 2>&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006273 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }
6276{ (ac_try="$ac_compiler -v >&5"
6277case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compiler -v >&5") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6286{ (ac_try="$ac_compiler -V >&5"
6287case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compiler -V >&5") 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006296
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006297{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6298echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6299if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006301else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006302 cat >conftest.$ac_ext <<_ACEOF
6303/* confdefs.h. */
6304_ACEOF
6305cat confdefs.h >>conftest.$ac_ext
6306cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006307/* end confdefs.h. */
6308
6309int
6310main ()
6311{
6312#ifndef __GNUC__
6313 choke me
6314#endif
6315
6316 ;
6317 return 0;
6318}
6319_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006320rm -f conftest.$ac_objext
6321if { (ac_try="$ac_compile"
6322case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325esac
6326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_compile") 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6335 { (case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338esac
6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_try") 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; } &&
6344 { ac_try='test -s conftest.$ac_objext'
6345 { (case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348esac
6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_try") 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006354 ac_compiler_gnu=yes
6355else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006356 echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
6359 ac_compiler_gnu=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006360fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006361
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6364
6365fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006366{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6367echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6368GXX=`test $ac_compiler_gnu = yes && echo yes`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006369ac_test_CXXFLAGS=${CXXFLAGS+set}
6370ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006371{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6372echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6373if test "${ac_cv_prog_cxx_g+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006375else
6376 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6377 ac_cxx_werror_flag=yes
6378 ac_cv_prog_cxx_g=no
6379 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006380 cat >conftest.$ac_ext <<_ACEOF
6381/* confdefs.h. */
6382_ACEOF
6383cat confdefs.h >>conftest.$ac_ext
6384cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006385/* end confdefs.h. */
6386
6387int
6388main ()
6389{
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006395rm -f conftest.$ac_objext
6396if { (ac_try="$ac_compile"
6397case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400esac
6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6410 { (case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
6414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_try") 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423esac
6424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006429 ac_cv_prog_cxx_g=yes
6430else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006431 echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 CXXFLAGS=""
6435 cat >conftest.$ac_ext <<_ACEOF
6436/* confdefs.h. */
6437_ACEOF
6438cat confdefs.h >>conftest.$ac_ext
6439cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006440/* end confdefs.h. */
6441
6442int
6443main ()
6444{
6445
6446 ;
6447 return 0;
6448}
6449_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006450rm -f conftest.$ac_objext
6451if { (ac_try="$ac_compile"
6452case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455esac
6456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_compile") 2>conftest.er1
6458 ac_status=$?
6459 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6465 { (case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468esac
6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_try") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest.$ac_objext'
6475 { (case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478esac
6479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_try") 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6484 :
Edwin Törökc27310c2010-01-26 08:50:50 +00006485else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006486 echo "$as_me: failed program was:" >&5
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006490 CXXFLAGS="-g"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006491 cat >conftest.$ac_ext <<_ACEOF
6492/* confdefs.h. */
6493_ACEOF
6494cat confdefs.h >>conftest.$ac_ext
6495cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006496/* end confdefs.h. */
6497
6498int
6499main ()
6500{
6501
6502 ;
6503 return 0;
6504}
6505_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006506rm -f conftest.$ac_objext
6507if { (ac_try="$ac_compile"
6508case "(($ac_try" in
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6511esac
6512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_try") 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006540 ac_cv_prog_cxx_g=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006541else
6542 echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
6545
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006546fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006547
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006550
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006553
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6556fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006557{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6558echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006559if test "$ac_test_CXXFLAGS" = set; then
6560 CXXFLAGS=$ac_save_CXXFLAGS
6561elif test $ac_cv_prog_cxx_g = yes; then
6562 if test "$GXX" = yes; then
6563 CXXFLAGS="-g -O2"
6564 else
6565 CXXFLAGS="-g"
6566 fi
6567else
6568 if test "$GXX" = yes; then
6569 CXXFLAGS="-O2"
6570 else
6571 CXXFLAGS=
6572 fi
6573fi
6574ac_ext=c
6575ac_cpp='$CPP $CPPFLAGS'
6576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006580
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006581{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6582echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6583if test "${lt_cv_path_NM+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006585else
6586 if test -n "$NM"; then
6587 # Let the user override the test.
6588 lt_cv_path_NM="$NM"
6589else
6590 lt_nm_to_check="${ac_tool_prefix}nm"
6591 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6592 lt_nm_to_check="$lt_nm_to_check nm"
6593 fi
6594 for lt_tmp_nm in $lt_nm_to_check; do
6595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6596 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6597 IFS="$lt_save_ifs"
6598 test -z "$ac_dir" && ac_dir=.
6599 tmp_nm="$ac_dir/$lt_tmp_nm"
6600 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6601 # Check to see if the nm accepts a BSD-compat flag.
6602 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6603 # nm: unknown option "B" ignored
6604 # Tru64's nm complains that /dev/null is an invalid object file
6605 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6606 */dev/null* | *'Invalid file or object type'*)
6607 lt_cv_path_NM="$tmp_nm -B"
6608 break
6609 ;;
6610 *)
6611 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6612 */dev/null*)
6613 lt_cv_path_NM="$tmp_nm -p"
6614 break
6615 ;;
6616 *)
6617 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6618 continue # so that we can try to find one that supports BSD flags
6619 ;;
6620 esac
6621 ;;
6622 esac
6623 fi
6624 done
6625 IFS="$lt_save_ifs"
6626 done
6627 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6628fi
6629fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006630{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6631echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006632NM="$lt_cv_path_NM"
6633
6634
6635
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006636{ echo "$as_me:$LINENO: checking for GNU make" >&5
6637echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6638if test "${llvm_cv_gnu_make_command+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006640else
6641 llvm_cv_gnu_make_command=''
6642 for a in "$MAKE" make gmake gnumake ; do
6643 if test -z "$a" ; then continue ; fi ;
6644 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6645 then
6646 llvm_cv_gnu_make_command=$a ;
6647 break;
6648 fi
6649 done
6650fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006651{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6652echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006653 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6654 ifGNUmake='' ;
6655 else
6656 ifGNUmake='#' ;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006657 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6658echo "${ECHO_T}\"Not found\"" >&6; };
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006659 fi
6660
6661
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006662{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6663echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006664LN_S=$as_ln_s
6665if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006666 { echo "$as_me:$LINENO: result: yes" >&5
6667echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006668else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006669 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6670echo "${ECHO_T}no, using $LN_S" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006671fi
6672
6673# Extract the first word of "cmp", so it can be a program name with args.
6674set dummy cmp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677if test "${ac_cv_path_CMP+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006679else
6680 case $CMP in
6681 [\\/]* | ?:[\\/]*)
6682 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6683 ;;
6684 *)
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 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 +00006692 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006694 break 2
6695 fi
6696done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006697done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006698IFS=$as_save_IFS
6699
6700 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6701 ;;
6702esac
6703fi
6704CMP=$ac_cv_path_CMP
6705if test -n "$CMP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006706 { echo "$as_me:$LINENO: result: $CMP" >&5
6707echo "${ECHO_T}$CMP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006708else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006709 { echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006711fi
6712
6713
6714# Extract the first word of "cp", so it can be a program name with args.
6715set dummy cp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718if test "${ac_cv_path_CP+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006720else
6721 case $CP in
6722 [\\/]* | ?:[\\/]*)
6723 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6724 ;;
6725 *)
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 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 +00006733 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006735 break 2
6736 fi
6737done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006738done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006739IFS=$as_save_IFS
6740
6741 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6742 ;;
6743esac
6744fi
6745CP=$ac_cv_path_CP
6746if test -n "$CP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006747 { echo "$as_me:$LINENO: result: $CP" >&5
6748echo "${ECHO_T}$CP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006749else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006750 { echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006752fi
6753
6754
6755# Extract the first word of "date", so it can be a program name with args.
6756set dummy date; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759if test "${ac_cv_path_DATE+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006761else
6762 case $DATE in
6763 [\\/]* | ?:[\\/]*)
6764 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6765 ;;
6766 *)
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 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 +00006774 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006776 break 2
6777 fi
6778done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006779done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006780IFS=$as_save_IFS
6781
6782 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6783 ;;
6784esac
6785fi
6786DATE=$ac_cv_path_DATE
6787if test -n "$DATE"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006788 { echo "$as_me:$LINENO: result: $DATE" >&5
6789echo "${ECHO_T}$DATE" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006790else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006791 { echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006793fi
6794
6795
6796# Extract the first word of "find", so it can be a program name with args.
6797set dummy find; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800if test "${ac_cv_path_FIND+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006802else
6803 case $FIND in
6804 [\\/]* | ?:[\\/]*)
6805 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6806 ;;
6807 *)
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 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 +00006815 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006817 break 2
6818 fi
6819done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006820done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006821IFS=$as_save_IFS
6822
6823 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6824 ;;
6825esac
6826fi
6827FIND=$ac_cv_path_FIND
6828if test -n "$FIND"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006829 { echo "$as_me:$LINENO: result: $FIND" >&5
6830echo "${ECHO_T}$FIND" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006831else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006832 { echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006834fi
6835
6836
6837# Extract the first word of "grep", so it can be a program name with args.
6838set dummy grep; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841if test "${ac_cv_path_GREP+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006843else
6844 case $GREP in
6845 [\\/]* | ?:[\\/]*)
6846 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6847 ;;
6848 *)
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 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 +00006856 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006858 break 2
6859 fi
6860done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006861done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006862IFS=$as_save_IFS
6863
6864 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6865 ;;
6866esac
6867fi
6868GREP=$ac_cv_path_GREP
6869if test -n "$GREP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006870 { echo "$as_me:$LINENO: result: $GREP" >&5
6871echo "${ECHO_T}$GREP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006872else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006873 { echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006875fi
6876
6877
6878# Extract the first word of "mkdir", so it can be a program name with args.
6879set dummy mkdir; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882if test "${ac_cv_path_MKDIR+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006884else
6885 case $MKDIR in
6886 [\\/]* | ?:[\\/]*)
6887 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6888 ;;
6889 *)
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 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 +00006897 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006899 break 2
6900 fi
6901done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006902done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006903IFS=$as_save_IFS
6904
6905 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6906 ;;
6907esac
6908fi
6909MKDIR=$ac_cv_path_MKDIR
6910if test -n "$MKDIR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006911 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6912echo "${ECHO_T}$MKDIR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006913else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006914 { echo "$as_me:$LINENO: result: no" >&5
6915echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006916fi
6917
6918
6919# Extract the first word of "mv", so it can be a program name with args.
6920set dummy mv; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923if test "${ac_cv_path_MV+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006925else
6926 case $MV in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6929 ;;
6930 *)
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 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 +00006938 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006940 break 2
6941 fi
6942done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006943done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006944IFS=$as_save_IFS
6945
6946 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6947 ;;
6948esac
6949fi
6950MV=$ac_cv_path_MV
6951if test -n "$MV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006952 { echo "$as_me:$LINENO: result: $MV" >&5
6953echo "${ECHO_T}$MV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006954else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006955 { echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006957fi
6958
6959
6960if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6962set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965if test "${ac_cv_prog_RANLIB+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006967else
6968 if test -n "$RANLIB"; then
6969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 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 +00006978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006980 break 2
6981 fi
6982done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006983done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006984IFS=$as_save_IFS
6985
6986fi
6987fi
6988RANLIB=$ac_cv_prog_RANLIB
6989if test -n "$RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006990 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6991echo "${ECHO_T}$RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006992else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00006993 { echo "$as_me:$LINENO: result: no" >&5
6994echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006995fi
6996
6997
6998fi
6999if test -z "$ac_cv_prog_RANLIB"; then
7000 ac_ct_RANLIB=$RANLIB
7001 # Extract the first word of "ranlib", so it can be a program name with args.
7002set dummy ranlib; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007007else
7008 if test -n "$ac_ct_RANLIB"; then
7009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 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 +00007018 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007020 break 2
7021 fi
7022done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007023done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007024IFS=$as_save_IFS
7025
7026fi
7027fi
7028ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7029if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007030 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7031echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007032else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007033 { echo "$as_me:$LINENO: result: no" >&5
7034echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007035fi
7036
7037 if test "x$ac_ct_RANLIB" = x; then
7038 RANLIB=":"
7039 else
7040 case $cross_compiling:$ac_tool_warned in
7041yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007042{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7043whose name does not start with the host triplet. If you think this
7044configuration is useful to you, please write to autoconf@gnu.org." >&5
7045echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7046whose name does not start with the host triplet. If you think this
7047configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007048ac_tool_warned=yes ;;
7049esac
7050 RANLIB=$ac_ct_RANLIB
7051 fi
7052else
7053 RANLIB="$ac_cv_prog_RANLIB"
7054fi
7055
Edwin Törökc27310c2010-01-26 08:50:50 +00007056if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7058set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061if test "${ac_cv_prog_AR+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007063else
7064 if test -n "$AR"; then
7065 ac_cv_prog_AR="$AR" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 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 +00007074 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007076 break 2
7077 fi
7078done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007079done
Edwin Törökc27310c2010-01-26 08:50:50 +00007080IFS=$as_save_IFS
7081
7082fi
7083fi
7084AR=$ac_cv_prog_AR
7085if test -n "$AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007086 { echo "$as_me:$LINENO: result: $AR" >&5
7087echo "${ECHO_T}$AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007088else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007089 { echo "$as_me:$LINENO: result: no" >&5
7090echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007091fi
7092
7093
7094fi
7095if test -z "$ac_cv_prog_AR"; then
7096 ac_ct_AR=$AR
7097 # Extract the first word of "ar", so it can be a program name with args.
7098set dummy ar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Törökc27310c2010-01-26 08:50:50 +00007103else
7104 if test -n "$ac_ct_AR"; then
7105 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 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 +00007114 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Törökc27310c2010-01-26 08:50:50 +00007116 break 2
7117 fi
7118done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007119done
Edwin Törökc27310c2010-01-26 08:50:50 +00007120IFS=$as_save_IFS
7121
7122fi
7123fi
7124ac_ct_AR=$ac_cv_prog_ac_ct_AR
7125if test -n "$ac_ct_AR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007126 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7127echo "${ECHO_T}$ac_ct_AR" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007128else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007129 { echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6; }
Edwin Törökc27310c2010-01-26 08:50:50 +00007131fi
7132
7133 if test "x$ac_ct_AR" = x; then
7134 AR="false"
7135 else
7136 case $cross_compiling:$ac_tool_warned in
7137yes:)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007138{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7139whose name does not start with the host triplet. If you think this
7140configuration is useful to you, please write to autoconf@gnu.org." >&5
7141echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7142whose name does not start with the host triplet. If you think this
7143configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Edwin Törökc27310c2010-01-26 08:50:50 +00007144ac_tool_warned=yes ;;
7145esac
7146 AR=$ac_ct_AR
7147 fi
7148else
7149 AR="$ac_cv_prog_AR"
7150fi
7151
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007152# Extract the first word of "rm", so it can be a program name with args.
7153set dummy rm; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007154{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156if test "${ac_cv_path_RM+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007158else
7159 case $RM in
7160 [\\/]* | ?:[\\/]*)
7161 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7162 ;;
7163 *)
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 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 +00007171 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007173 break 2
7174 fi
7175done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007176done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007177IFS=$as_save_IFS
7178
7179 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7180 ;;
7181esac
7182fi
7183RM=$ac_cv_path_RM
7184if test -n "$RM"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007185 { echo "$as_me:$LINENO: result: $RM" >&5
7186echo "${ECHO_T}$RM" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007187else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007188 { echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007190fi
7191
7192
7193# Extract the first word of "sed", so it can be a program name with args.
7194set dummy sed; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197if test "${ac_cv_path_SED+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007199else
7200 case $SED in
7201 [\\/]* | ?:[\\/]*)
7202 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7203 ;;
7204 *)
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 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 +00007212 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007214 break 2
7215 fi
7216done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007217done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007218IFS=$as_save_IFS
7219
7220 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7221 ;;
7222esac
7223fi
7224SED=$ac_cv_path_SED
7225if test -n "$SED"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007226 { echo "$as_me:$LINENO: result: $SED" >&5
7227echo "${ECHO_T}$SED" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007228else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007229 { echo "$as_me:$LINENO: result: no" >&5
7230echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007231fi
7232
7233
7234# Extract the first word of "tar", so it can be a program name with args.
7235set dummy tar; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7238if test "${ac_cv_path_TAR+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007240else
7241 case $TAR in
7242 [\\/]* | ?:[\\/]*)
7243 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7244 ;;
7245 *)
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 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 +00007253 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007255 break 2
7256 fi
7257done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007258done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007259IFS=$as_save_IFS
7260
7261 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7262 ;;
7263esac
7264fi
7265TAR=$ac_cv_path_TAR
7266if test -n "$TAR"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007267 { echo "$as_me:$LINENO: result: $TAR" >&5
7268echo "${ECHO_T}$TAR" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007269else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007270 { echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007272fi
7273
7274
7275# Extract the first word of "pwd", so it can be a program name with args.
7276set dummy pwd; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279if test "${ac_cv_path_BINPWD+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007281else
7282 case $BINPWD in
7283 [\\/]* | ?:[\\/]*)
7284 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7285 ;;
7286 *)
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 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 +00007294 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007296 break 2
7297 fi
7298done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007299done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007300IFS=$as_save_IFS
7301
7302 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7303 ;;
7304esac
7305fi
7306BINPWD=$ac_cv_path_BINPWD
7307if test -n "$BINPWD"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007308 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7309echo "${ECHO_T}$BINPWD" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007310else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007311 { echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007313fi
7314
7315
7316
7317# Extract the first word of "Graphviz", so it can be a program name with args.
7318set dummy Graphviz; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7321if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007323else
7324 case $GRAPHVIZ in
7325 [\\/]* | ?:[\\/]*)
7326 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7327 ;;
7328 *)
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330for as_dir in $PATH
7331do
7332 IFS=$as_save_IFS
7333 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 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 +00007336 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007338 break 2
7339 fi
7340done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007341done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007342IFS=$as_save_IFS
7343
7344 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7345 ;;
7346esac
7347fi
7348GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7349if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007350 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7351echo "${ECHO_T}$GRAPHVIZ" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007352else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007353 { echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007355fi
7356
7357
7358if test "$GRAPHVIZ" != "echo Graphviz" ; then
7359
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007360cat >>confdefs.h <<\_ACEOF
7361#define HAVE_GRAPHVIZ 1
7362_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007363
7364 if test "$llvm_cv_os_type" = "MingW" ; then
7365 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7366 fi
7367
7368cat >>confdefs.h <<_ACEOF
7369#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7370_ACEOF
7371
7372fi
7373# Extract the first word of "dot", so it can be a program name with args.
7374set dummy dot; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377if test "${ac_cv_path_DOT+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007379else
7380 case $DOT in
7381 [\\/]* | ?:[\\/]*)
7382 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7383 ;;
7384 *)
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 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 +00007392 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007394 break 2
7395 fi
7396done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007397done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007398IFS=$as_save_IFS
7399
7400 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7401 ;;
7402esac
7403fi
7404DOT=$ac_cv_path_DOT
7405if test -n "$DOT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007406 { echo "$as_me:$LINENO: result: $DOT" >&5
7407echo "${ECHO_T}$DOT" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007408else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007409 { echo "$as_me:$LINENO: result: no" >&5
7410echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007411fi
7412
7413
7414if test "$DOT" != "echo dot" ; then
7415
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007416cat >>confdefs.h <<\_ACEOF
7417#define HAVE_DOT 1
7418_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007419
7420 if test "$llvm_cv_os_type" = "MingW" ; then
7421 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7422 fi
7423
7424cat >>confdefs.h <<_ACEOF
7425#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7426_ACEOF
7427
7428fi
David Greenedb740ef2009-07-09 17:16:26 +00007429# Extract the first word of "fdp", so it can be a program name with args.
7430set dummy fdp; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433if test "${ac_cv_path_FDP+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007435else
7436 case $FDP in
7437 [\\/]* | ?:[\\/]*)
7438 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7439 ;;
7440 *)
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 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 +00007448 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007450 break 2
7451 fi
7452done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007453done
David Greenedb740ef2009-07-09 17:16:26 +00007454IFS=$as_save_IFS
7455
7456 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7457 ;;
7458esac
7459fi
7460FDP=$ac_cv_path_FDP
7461if test -n "$FDP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007462 { echo "$as_me:$LINENO: result: $FDP" >&5
7463echo "${ECHO_T}$FDP" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007464else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007465 { echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007467fi
7468
7469
7470if test "$FDP" != "echo fdp" ; then
7471
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007472cat >>confdefs.h <<\_ACEOF
7473#define HAVE_FDP 1
7474_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007475
7476 if test "$llvm_cv_os_type" = "MingW" ; then
7477 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7478 fi
7479
7480cat >>confdefs.h <<_ACEOF
7481#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7482_ACEOF
7483
7484fi
7485# Extract the first word of "neato", so it can be a program name with args.
7486set dummy neato; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7489if test "${ac_cv_path_NEATO+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007491else
7492 case $NEATO in
7493 [\\/]* | ?:[\\/]*)
7494 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7495 ;;
7496 *)
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 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 +00007504 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007506 break 2
7507 fi
7508done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007509done
David Greenedb740ef2009-07-09 17:16:26 +00007510IFS=$as_save_IFS
7511
7512 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7513 ;;
7514esac
7515fi
7516NEATO=$ac_cv_path_NEATO
7517if test -n "$NEATO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007518 { echo "$as_me:$LINENO: result: $NEATO" >&5
7519echo "${ECHO_T}$NEATO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007520else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007521 { echo "$as_me:$LINENO: result: no" >&5
7522echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007523fi
7524
7525
7526if test "$NEATO" != "echo neato" ; then
7527
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007528cat >>confdefs.h <<\_ACEOF
7529#define HAVE_NEATO 1
7530_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007531
7532 if test "$llvm_cv_os_type" = "MingW" ; then
7533 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7534 fi
7535
7536cat >>confdefs.h <<_ACEOF
7537#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7538_ACEOF
7539
7540fi
7541# Extract the first word of "twopi", so it can be a program name with args.
7542set dummy twopi; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545if test "${ac_cv_path_TWOPI+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007547else
7548 case $TWOPI in
7549 [\\/]* | ?:[\\/]*)
7550 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7551 ;;
7552 *)
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenedb740ef2009-07-09 17:16:26 +00007560 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007562 break 2
7563 fi
7564done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007565done
David Greenedb740ef2009-07-09 17:16:26 +00007566IFS=$as_save_IFS
7567
7568 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7569 ;;
7570esac
7571fi
7572TWOPI=$ac_cv_path_TWOPI
7573if test -n "$TWOPI"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007574 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7575echo "${ECHO_T}$TWOPI" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007576else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007577 { echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007579fi
7580
7581
7582if test "$TWOPI" != "echo twopi" ; then
7583
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007584cat >>confdefs.h <<\_ACEOF
7585#define HAVE_TWOPI 1
7586_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007587
7588 if test "$llvm_cv_os_type" = "MingW" ; then
7589 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7590 fi
7591
7592cat >>confdefs.h <<_ACEOF
7593#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7594_ACEOF
7595
7596fi
7597# Extract the first word of "circo", so it can be a program name with args.
7598set dummy circo; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_CIRCO+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenedb740ef2009-07-09 17:16:26 +00007603else
7604 case $CIRCO in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 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 +00007616 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenedb740ef2009-07-09 17:16:26 +00007618 break 2
7619 fi
7620done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007621done
David Greenedb740ef2009-07-09 17:16:26 +00007622IFS=$as_save_IFS
7623
7624 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7625 ;;
7626esac
7627fi
7628CIRCO=$ac_cv_path_CIRCO
7629if test -n "$CIRCO"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007630 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7631echo "${ECHO_T}$CIRCO" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007632else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007633 { echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6; }
David Greenedb740ef2009-07-09 17:16:26 +00007635fi
7636
7637
7638if test "$CIRCO" != "echo circo" ; then
7639
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007640cat >>confdefs.h <<\_ACEOF
7641#define HAVE_CIRCO 1
7642_ACEOF
David Greenedb740ef2009-07-09 17:16:26 +00007643
7644 if test "$llvm_cv_os_type" = "MingW" ; then
7645 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7646 fi
7647
7648cat >>confdefs.h <<_ACEOF
7649#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7650_ACEOF
7651
7652fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007653for ac_prog in gv gsview32
7654do
7655 # Extract the first word of "$ac_prog", so it can be a program name with args.
7656set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659if test "${ac_cv_path_GV+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007661else
7662 case $GV in
7663 [\\/]* | ?:[\\/]*)
7664 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7665 ;;
7666 *)
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 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 +00007674 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007676 break 2
7677 fi
7678done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007679done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007680IFS=$as_save_IFS
7681
7682 ;;
7683esac
7684fi
7685GV=$ac_cv_path_GV
7686if test -n "$GV"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007687 { echo "$as_me:$LINENO: result: $GV" >&5
7688echo "${ECHO_T}$GV" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007689else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007690 { echo "$as_me:$LINENO: result: no" >&5
7691echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007692fi
7693
7694
7695 test -n "$GV" && break
7696done
7697test -n "$GV" || GV="echo gv"
7698
7699if test "$GV" != "echo gv" ; then
7700
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007701cat >>confdefs.h <<\_ACEOF
7702#define HAVE_GV 1
7703_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007704
7705 if test "$llvm_cv_os_type" = "MingW" ; then
7706 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7707 fi
7708
7709cat >>confdefs.h <<_ACEOF
7710#define LLVM_PATH_GV "$GV${EXEEXT}"
7711_ACEOF
7712
7713fi
7714# Extract the first word of "dotty", so it can be a program name with args.
7715set dummy dotty; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718if test "${ac_cv_path_DOTTY+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007720else
7721 case $DOTTY in
7722 [\\/]* | ?:[\\/]*)
7723 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7724 ;;
7725 *)
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 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 +00007733 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007735 break 2
7736 fi
7737done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007738done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007739IFS=$as_save_IFS
7740
7741 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7742 ;;
7743esac
7744fi
7745DOTTY=$ac_cv_path_DOTTY
7746if test -n "$DOTTY"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007747 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7748echo "${ECHO_T}$DOTTY" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007749else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007750 { echo "$as_me:$LINENO: result: no" >&5
7751echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007752fi
7753
7754
7755if test "$DOTTY" != "echo dotty" ; then
7756
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007757cat >>confdefs.h <<\_ACEOF
7758#define HAVE_DOTTY 1
7759_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007760
7761 if test "$llvm_cv_os_type" = "MingW" ; then
7762 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7763 fi
7764
7765cat >>confdefs.h <<_ACEOF
7766#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7767_ACEOF
7768
7769fi
7770
7771
7772# Extract the first word of "perl", so it can be a program name with args.
7773set dummy perl; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776if test "${ac_cv_path_PERL+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007778else
7779 case $PERL in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7782 ;;
7783 *)
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 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 +00007791 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007793 break 2
7794 fi
7795done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007796done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007797IFS=$as_save_IFS
7798
7799 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7800 ;;
7801esac
7802fi
7803PERL=$ac_cv_path_PERL
7804if test -n "$PERL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007805 { echo "$as_me:$LINENO: result: $PERL" >&5
7806echo "${ECHO_T}$PERL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007807else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007808 { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007810fi
7811
7812
7813if test "$PERL" != "none"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007814 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7815echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007816 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007817 { echo "$as_me:$LINENO: result: yes" >&5
7818echo "${ECHO_T}yes" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007819 else
7820 PERL=none
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007821 { echo "$as_me:$LINENO: result: not found" >&5
7822echo "${ECHO_T}not found" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007823 fi
7824fi
7825
7826
7827if test x"$PERL" = xnone; then
7828 HAVE_PERL=0
7829
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007830 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7831echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7832 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007833else
7834 HAVE_PERL=1
7835
7836fi
7837
7838# Find a good install program. We prefer a C program (faster),
7839# so one script is as good as another. But avoid the broken or
7840# incompatible versions:
7841# SysV /etc/install, /usr/sbin/install
7842# SunOS /usr/etc/install
7843# IRIX /sbin/install
7844# AIX /bin/install
7845# AmigaOS /C/install, which installs bootblocks on floppy discs
7846# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7847# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7848# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7849# OS/2's system install, which has a completely different semantic
7850# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007851{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7852echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007853if test -z "$INSTALL"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007854if test "${ac_cv_path_install+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007856else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007862 # Account for people who put trailing slashes in PATH elements.
7863case $as_dir/ in
7864 ./ | .// | /cC/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007866 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007867 /usr/ucb/* ) ;;
7868 *)
7869 # OSF1 and SCO ODT 3.0 have their own names for install.
7870 # Don't use installbsd from OSF since it installs stuff as root
7871 # by default.
7872 for ac_prog in ginstall scoinst install; do
7873 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007874 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 +00007875 if test $ac_prog = install &&
7876 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7877 # AIX install. It has an incompatible calling convention.
7878 :
7879 elif test $ac_prog = install &&
7880 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7881 # program-specific install script used by HP pwplus--don't use.
7882 :
7883 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7885 break 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007886 fi
7887 fi
7888 done
7889 done
7890 ;;
7891esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007892done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007893IFS=$as_save_IFS
7894
7895
7896fi
7897 if test "${ac_cv_path_install+set}" = set; then
7898 INSTALL=$ac_cv_path_install
7899 else
7900 # As a last resort, use the slow shell script. Don't cache a
7901 # value for INSTALL within a source directory, because that will
7902 # break other packages using the cache if that directory is
7903 # removed, or if the value is a relative name.
7904 INSTALL=$ac_install_sh
7905 fi
7906fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007907{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7908echo "${ECHO_T}$INSTALL" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007909
7910# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7911# It thinks the first close brace ends the variable substitution.
7912test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7913
7914test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7915
7916test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7917
7918
7919# Extract the first word of "bzip2", so it can be a program name with args.
7920set dummy bzip2; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923if test "${ac_cv_path_BZIP2+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007925else
7926 case $BZIP2 in
7927 [\\/]* | ?:[\\/]*)
7928 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7929 ;;
7930 *)
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 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 +00007938 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007940 break 2
7941 fi
7942done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007943done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007944IFS=$as_save_IFS
7945
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007946 ;;
7947esac
7948fi
7949BZIP2=$ac_cv_path_BZIP2
7950if test -n "$BZIP2"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007951 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7952echo "${ECHO_T}$BZIP2" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007953else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007954 { echo "$as_me:$LINENO: result: no" >&5
7955echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007956fi
7957
7958
7959# Extract the first word of "doxygen", so it can be a program name with args.
7960set dummy doxygen; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7963if test "${ac_cv_path_DOXYGEN+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007965else
7966 case $DOXYGEN in
7967 [\\/]* | ?:[\\/]*)
7968 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7969 ;;
7970 *)
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972for as_dir in $PATH
7973do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 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 +00007978 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007980 break 2
7981 fi
7982done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007983done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007984IFS=$as_save_IFS
7985
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007986 ;;
7987esac
7988fi
7989DOXYGEN=$ac_cv_path_DOXYGEN
7990if test -n "$DOXYGEN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007991 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7992echo "${ECHO_T}$DOXYGEN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007993else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00007994 { echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007996fi
7997
7998
7999# Extract the first word of "groff", so it can be a program name with args.
8000set dummy groff; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003if test "${ac_cv_path_GROFF+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008005else
8006 case $GROFF in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 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 +00008018 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008020 break 2
8021 fi
8022done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008023done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008024IFS=$as_save_IFS
8025
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008026 ;;
8027esac
8028fi
8029GROFF=$ac_cv_path_GROFF
8030if test -n "$GROFF"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008031 { echo "$as_me:$LINENO: result: $GROFF" >&5
8032echo "${ECHO_T}$GROFF" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008033else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008034 { echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008036fi
8037
8038
8039# Extract the first word of "gzip", so it can be a program name with args.
8040set dummy gzip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043if test "${ac_cv_path_GZIP+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008045else
8046 case $GZIP in
8047 [\\/]* | ?:[\\/]*)
8048 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8049 ;;
8050 *)
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 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 +00008058 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008060 break 2
8061 fi
8062done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008063done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008064IFS=$as_save_IFS
8065
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008066 ;;
8067esac
8068fi
8069GZIP=$ac_cv_path_GZIP
8070if test -n "$GZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008071 { echo "$as_me:$LINENO: result: $GZIP" >&5
8072echo "${ECHO_T}$GZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008073else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008074 { echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008076fi
8077
8078
8079# Extract the first word of "pod2html", so it can be a program name with args.
8080set dummy pod2html; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8083if test "${ac_cv_path_POD2HTML+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008085else
8086 case $POD2HTML in
8087 [\\/]* | ?:[\\/]*)
8088 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8089 ;;
8090 *)
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 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 +00008098 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008100 break 2
8101 fi
8102done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008103done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008104IFS=$as_save_IFS
8105
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008106 ;;
8107esac
8108fi
8109POD2HTML=$ac_cv_path_POD2HTML
8110if test -n "$POD2HTML"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008111 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8112echo "${ECHO_T}$POD2HTML" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008113else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008114 { echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008116fi
8117
8118
8119# Extract the first word of "pod2man", so it can be a program name with args.
8120set dummy pod2man; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8123if test "${ac_cv_path_POD2MAN+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008125else
8126 case $POD2MAN in
8127 [\\/]* | ?:[\\/]*)
8128 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8129 ;;
8130 *)
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 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 +00008138 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008140 break 2
8141 fi
8142done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008143done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008144IFS=$as_save_IFS
8145
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008146 ;;
8147esac
8148fi
8149POD2MAN=$ac_cv_path_POD2MAN
8150if test -n "$POD2MAN"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008151 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8152echo "${ECHO_T}$POD2MAN" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008153else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008154 { echo "$as_me:$LINENO: result: no" >&5
8155echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008156fi
8157
8158
8159# Extract the first word of "runtest", so it can be a program name with args.
8160set dummy runtest; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8163if test "${ac_cv_path_RUNTEST+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008165else
8166 case $RUNTEST in
8167 [\\/]* | ?:[\\/]*)
8168 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8169 ;;
8170 *)
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 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 +00008178 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008180 break 2
8181 fi
8182done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008183done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008184IFS=$as_save_IFS
8185
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008186 ;;
8187esac
8188fi
8189RUNTEST=$ac_cv_path_RUNTEST
8190if test -n "$RUNTEST"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008191 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8192echo "${ECHO_T}$RUNTEST" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008193else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008194 { echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008196fi
8197
8198
8199
8200no_itcl=true
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008201{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8202echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008203
8204# Check whether --with-tclinclude was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008205if test "${with_tclinclude+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008206 withval=$with_tclinclude; with_tclinclude=${withval}
8207else
8208 with_tclinclude=''
8209fi
8210
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008211if test "${ac_cv_path_tclsh+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008213else
8214
8215if test x"${with_tclinclude}" != x ; then
8216 if test -f ${with_tclinclude}/tclsh ; then
8217 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8218 elif test -f ${with_tclinclude}/src/tclsh ; then
8219 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8220 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008221 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8222echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8223 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008224 fi
8225fi
Edwin Törökc27310c2010-01-26 08:50:50 +00008226fi
8227
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008228
8229if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008230 { echo "$as_me:$LINENO: result: none" >&5
8231echo "${ECHO_T}none" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008232 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
8233do
8234 # Extract the first word of "$ac_prog", so it can be a program name with args.
8235set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238if test "${ac_cv_path_TCLSH+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008240else
8241 case $TCLSH in
8242 [\\/]* | ?:[\\/]*)
8243 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8244 ;;
8245 *)
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 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 +00008253 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008255 break 2
8256 fi
8257done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008258done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008259IFS=$as_save_IFS
8260
8261 ;;
8262esac
8263fi
8264TCLSH=$ac_cv_path_TCLSH
8265if test -n "$TCLSH"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008266 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8267echo "${ECHO_T}$TCLSH" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008268else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008269 { echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008271fi
8272
8273
8274 test -n "$TCLSH" && break
8275done
8276
8277 if test x"${TCLSH}" = x ; then
8278 ac_cv_path_tclsh='';
8279 else
8280 ac_cv_path_tclsh="${TCLSH}";
8281 fi
8282else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008283 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8284echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008285 TCLSH="${ac_cv_path_tclsh}"
8286
8287fi
8288
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008289# Extract the first word of "zip", so it can be a program name with args.
8290set dummy zip; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008291{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8293if test "${ac_cv_path_ZIP+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008295else
8296 case $ZIP in
8297 [\\/]* | ?:[\\/]*)
8298 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8299 ;;
8300 *)
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302for as_dir in $PATH
8303do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 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 +00008308 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008310 break 2
8311 fi
8312done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008313done
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008314IFS=$as_save_IFS
8315
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008316 ;;
8317esac
8318fi
8319ZIP=$ac_cv_path_ZIP
8320if test -n "$ZIP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008321 { echo "$as_me:$LINENO: result: $ZIP" >&5
8322echo "${ECHO_T}$ZIP" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008323else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008324 { echo "$as_me:$LINENO: result: no" >&5
8325echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008326fi
8327
8328
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008329for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008330do
8331 # Extract the first word of "$ac_prog", so it can be a program name with args.
8332set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8335if test "${ac_cv_path_OCAMLC+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008337else
8338 case $OCAMLC in
8339 [\\/]* | ?:[\\/]*)
8340 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8341 ;;
8342 *)
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344for as_dir in $PATH
8345do
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 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 +00008350 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008352 break 2
8353 fi
8354done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008355done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008356IFS=$as_save_IFS
8357
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008358 ;;
8359esac
8360fi
8361OCAMLC=$ac_cv_path_OCAMLC
8362if test -n "$OCAMLC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008363 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8364echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008365else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008366 { echo "$as_me:$LINENO: result: no" >&5
8367echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008368fi
8369
8370
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008371 test -n "$OCAMLC" && break
8372done
8373
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008374for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008375do
8376 # Extract the first word of "$ac_prog", so it can be a program name with args.
8377set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8380if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008382else
8383 case $OCAMLOPT in
8384 [\\/]* | ?:[\\/]*)
8385 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8386 ;;
8387 *)
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389for as_dir in $PATH
8390do
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 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 +00008395 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008397 break 2
8398 fi
8399done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008400done
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008401IFS=$as_save_IFS
8402
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008403 ;;
8404esac
8405fi
8406OCAMLOPT=$ac_cv_path_OCAMLOPT
8407if test -n "$OCAMLOPT"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008408 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8409echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008410else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008411 { echo "$as_me:$LINENO: result: no" >&5
8412echo "${ECHO_T}no" >&6; }
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008413fi
8414
8415
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008416 test -n "$OCAMLOPT" && break
8417done
8418
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008419for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008420do
8421 # Extract the first word of "$ac_prog", so it can be a program name with args.
8422set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8425if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008427else
8428 case $OCAMLDEP in
8429 [\\/]* | ?:[\\/]*)
8430 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8431 ;;
8432 *)
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434for as_dir in $PATH
8435do
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 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 +00008440 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008442 break 2
8443 fi
8444done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008445done
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008446IFS=$as_save_IFS
8447
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008448 ;;
8449esac
8450fi
8451OCAMLDEP=$ac_cv_path_OCAMLDEP
8452if test -n "$OCAMLDEP"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008453 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8454echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008455else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008456 { echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6; }
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008458fi
8459
8460
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008461 test -n "$OCAMLDEP" && break
8462done
8463
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008464for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008465do
8466 # Extract the first word of "$ac_prog", so it can be a program name with args.
8467set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008472else
8473 case $OCAMLDOC in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8476 ;;
8477 *)
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008485 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008487 break 2
8488 fi
8489done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008490done
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008491IFS=$as_save_IFS
8492
8493 ;;
8494esac
8495fi
8496OCAMLDOC=$ac_cv_path_OCAMLDOC
8497if test -n "$OCAMLDOC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008498 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8499echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008500else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008501 { echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6; }
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008503fi
8504
8505
8506 test -n "$OCAMLDOC" && break
8507done
8508
Edwin Török20176752008-10-22 09:56:27 +00008509for ac_prog in gas as
8510do
8511 # Extract the first word of "$ac_prog", so it can be a program name with args.
8512set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8515if test "${ac_cv_path_GAS+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
Edwin Török20176752008-10-22 09:56:27 +00008517else
8518 case $GAS in
8519 [\\/]* | ?:[\\/]*)
8520 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8521 ;;
8522 *)
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524for as_dir in $PATH
8525do
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 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 +00008530 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Edwin Török20176752008-10-22 09:56:27 +00008532 break 2
8533 fi
8534done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008535done
Edwin Török20176752008-10-22 09:56:27 +00008536IFS=$as_save_IFS
8537
8538 ;;
8539esac
8540fi
8541GAS=$ac_cv_path_GAS
8542if test -n "$GAS"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008543 { echo "$as_me:$LINENO: result: $GAS" >&5
8544echo "${ECHO_T}$GAS" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008545else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008546 { echo "$as_me:$LINENO: result: no" >&5
8547echo "${ECHO_T}no" >&6; }
Edwin Török20176752008-10-22 09:56:27 +00008548fi
8549
8550
8551 test -n "$GAS" && break
8552done
8553
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008554
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008555{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8556echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8557if test "${llvm_cv_link_use_r+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008559else
8560 ac_ext=c
8561ac_cpp='$CPP $CPPFLAGS'
8562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565
8566 oldcflags="$CFLAGS"
8567 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008568 cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h. */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008573/* end confdefs.h. */
8574
8575int
8576main ()
8577{
8578int main() { return 0; }
8579 ;
8580 return 0;
8581}
8582_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008583rm -f conftest.$ac_objext conftest$ac_exeext
8584if { (ac_try="$ac_link"
8585case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588esac
8589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_link") 2>conftest.er1
8591 ac_status=$?
8592 grep -v '^ *+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8598 { (case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601esac
8602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_try") 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611esac
8612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008617 llvm_cv_link_use_r=yes
8618else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008619 echo "$as_me: failed program was:" >&5
8620sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 llvm_cv_link_use_r=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008623fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008624
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008625rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008626 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008627 CFLAGS="$oldcflags"
8628 ac_ext=c
8629ac_cpp='$CPP $CPPFLAGS'
8630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632ac_compiler_gnu=$ac_cv_c_compiler_gnu
8633
8634
8635fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008636{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8637echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008638if test "$llvm_cv_link_use_r" = yes ; then
8639
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008640cat >>confdefs.h <<\_ACEOF
8641#define HAVE_LINK_R 1
8642_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008643
8644 fi
8645
8646
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008647{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8648echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8649if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky6eab6652009-03-05 08:20:44 +00008651else
8652 ac_ext=c
8653ac_cpp='$CPP $CPPFLAGS'
8654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656ac_compiler_gnu=$ac_cv_c_compiler_gnu
8657
8658 oldcflags="$CFLAGS"
8659 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008660 cat >conftest.$ac_ext <<_ACEOF
8661/* confdefs.h. */
8662_ACEOF
8663cat confdefs.h >>conftest.$ac_ext
8664cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008665/* end confdefs.h. */
8666
8667int
8668main ()
8669{
8670int main() { return 0; }
8671 ;
8672 return 0;
8673}
8674_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008675rm -f conftest.$ac_objext conftest$ac_exeext
8676if { (ac_try="$ac_link"
8677case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680esac
8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_link") 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8690 { (case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693esac
8694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_try") 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try='test -s conftest$ac_exeext'
8700 { (case "(($ac_try" in
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8703esac
8704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_try") 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008709 llvm_cv_link_use_export_dynamic=yes
8710else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008711 echo "$as_me: failed program was:" >&5
8712sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 llvm_cv_link_use_export_dynamic=no
Nick Lewycky6eab6652009-03-05 08:20:44 +00008715fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008716
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008717rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008718 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky6eab6652009-03-05 08:20:44 +00008719 CFLAGS="$oldcflags"
8720 ac_ext=c
8721ac_cpp='$CPP $CPPFLAGS'
8722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724ac_compiler_gnu=$ac_cv_c_compiler_gnu
8725
8726
8727fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008728{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8729echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky6eab6652009-03-05 08:20:44 +00008730if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8731
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008732cat >>confdefs.h <<\_ACEOF
8733#define HAVE_LINK_EXPORT_DYNAMIC 1
8734_ACEOF
Nick Lewycky6eab6652009-03-05 08:20:44 +00008735
8736 fi
8737
8738
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008739
8740
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008741{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8742echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8743if test "${ac_cv_c_const+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008745else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008746 cat >conftest.$ac_ext <<_ACEOF
8747/* confdefs.h. */
8748_ACEOF
8749cat confdefs.h >>conftest.$ac_ext
8750cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008751/* end confdefs.h. */
8752
8753int
8754main ()
8755{
8756/* FIXME: Include the comments suggested by Paul. */
8757#ifndef __cplusplus
8758 /* Ultrix mips cc rejects this. */
8759 typedef int charset[2];
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008760 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008761 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008762 char const *const *ccp;
8763 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008764 /* NEC SVR4.0.2 mips cc rejects this. */
8765 struct point {int x, y;};
8766 static struct point const zero = {0,0};
8767 /* AIX XL C 1.02.0.0 rejects this.
8768 It does not let you subtract one const X* pointer from another in
8769 an arm of an if-expression whose if-part is not a constant
8770 expression */
8771 const char *g = "string";
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008772 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008773 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008774 ++ccp;
8775 p = (char**) ccp;
8776 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008777 { /* SCO 3.2v4 cc rejects this. */
8778 char *t;
8779 char const *s = 0 ? (char *) 0 : (char const *) 0;
8780
8781 *t++ = 0;
8782 if (s) return 0;
8783 }
8784 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8785 int x[] = {25, 17};
8786 const int *foo = &x[0];
8787 ++foo;
8788 }
8789 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8790 typedef const int *iptr;
8791 iptr p = 0;
8792 ++p;
8793 }
8794 { /* AIX XL C 1.02.0.0 rejects this saying
8795 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8796 struct s { int j; const int *ap[3]; };
8797 struct s *b; b->j = 5;
8798 }
8799 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8800 const int foo = 10;
8801 if (!foo) return 0;
8802 }
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008803 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008804#endif
8805
8806 ;
8807 return 0;
8808}
8809_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008810rm -f conftest.$ac_objext
8811if { (ac_try="$ac_compile"
8812case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815esac
8816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_compile") 2>conftest.er1
8818 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8825 { (case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8828esac
8829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_try") 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try='test -s conftest.$ac_objext'
8835 { (case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8838esac
8839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_try") 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008844 ac_cv_c_const=yes
8845else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008846 echo "$as_me: failed program was:" >&5
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
8849 ac_cv_c_const=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008850fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008851
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008854{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8855echo "${ECHO_T}$ac_cv_c_const" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008856if test $ac_cv_c_const = no; then
8857
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008858cat >>confdefs.h <<\_ACEOF
8859#define const
8860_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008861
8862fi
8863
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008864
8865
8866
8867
8868
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008869ac_header_dirent=no
8870for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008871 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8872{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8873echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008876else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008877 cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h. */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008882/* end confdefs.h. */
8883#include <sys/types.h>
8884#include <$ac_hdr>
8885
8886int
8887main ()
8888{
8889if ((DIR *) 0)
8890return 0;
8891 ;
8892 return 0;
8893}
8894_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008895rm -f conftest.$ac_objext
8896if { (ac_try="$ac_compile"
8897case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900esac
8901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913esac
8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest.$ac_objext'
8920 { (case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923esac
8924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_try") 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008929 eval "$as_ac_Header=yes"
8930else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008931 echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008935fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008936
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008939ac_res=`eval echo '${'$as_ac_Header'}'`
8940 { echo "$as_me:$LINENO: result: $ac_res" >&5
8941echo "${ECHO_T}$ac_res" >&6; }
8942if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008943 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008944#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008945_ACEOF
8946
8947ac_header_dirent=$ac_hdr; break
8948fi
8949
8950done
8951# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8952if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008953 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8954echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8955if test "${ac_cv_search_opendir+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008957else
8958 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008959cat >conftest.$ac_ext <<_ACEOF
8960/* confdefs.h. */
8961_ACEOF
8962cat confdefs.h >>conftest.$ac_ext
8963cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008964/* end confdefs.h. */
8965
8966/* Override any GCC internal prototype to avoid an error.
8967 Use char because int might match the return type of a GCC
8968 builtin and then its argument prototype would still apply. */
8969#ifdef __cplusplus
8970extern "C"
8971#endif
8972char opendir ();
8973int
8974main ()
8975{
8976return opendir ();
8977 ;
8978 return 0;
8979}
8980_ACEOF
8981for ac_lib in '' dir; do
8982 if test -z "$ac_lib"; then
8983 ac_res="none required"
8984 else
8985 ac_res=-l$ac_lib
8986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8987 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00008988 rm -f conftest.$ac_objext conftest$ac_exeext
8989if { (ac_try="$ac_link"
8990case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993esac
8994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_link") 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (case "(($ac_try" in
9004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9006esac
9007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_try") 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016esac
9017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009022 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009023else
9024 echo "$as_me: failed program was:" >&5
9025sed 's/^/| /' conftest.$ac_ext >&5
9026
9027
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009028fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009029
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009030rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009031 conftest$ac_exeext
9032 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009033 break
9034fi
9035done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009036if test "${ac_cv_search_opendir+set}" = set; then
9037 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009038else
9039 ac_cv_search_opendir=no
9040fi
9041rm conftest.$ac_ext
9042LIBS=$ac_func_search_save_LIBS
9043fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009044{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9045echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009046ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009047if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9049
9050fi
9051
9052else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009053 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9054echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9055if test "${ac_cv_search_opendir+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009057else
9058 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009059cat >conftest.$ac_ext <<_ACEOF
9060/* confdefs.h. */
9061_ACEOF
9062cat confdefs.h >>conftest.$ac_ext
9063cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009064/* end confdefs.h. */
9065
9066/* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
9069#ifdef __cplusplus
9070extern "C"
9071#endif
9072char opendir ();
9073int
9074main ()
9075{
9076return opendir ();
9077 ;
9078 return 0;
9079}
9080_ACEOF
9081for ac_lib in '' x; do
9082 if test -z "$ac_lib"; then
9083 ac_res="none required"
9084 else
9085 ac_res=-l$ac_lib
9086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9087 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009088 rm -f conftest.$ac_objext conftest$ac_exeext
9089if { (ac_try="$ac_link"
9090case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9093esac
9094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_link") 2>conftest.er1
9096 ac_status=$?
9097 grep -v '^ *+' conftest.er1 >conftest.err
9098 rm -f conftest.er1
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9103 { (case "(($ac_try" in
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9106esac
9107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_try") 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try='test -s conftest$ac_exeext'
9113 { (case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_try") 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009122 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009123else
9124 echo "$as_me: failed program was:" >&5
9125sed 's/^/| /' conftest.$ac_ext >&5
9126
9127
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009128fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009129
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009130rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009131 conftest$ac_exeext
9132 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009133 break
9134fi
9135done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009136if test "${ac_cv_search_opendir+set}" = set; then
9137 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009138else
9139 ac_cv_search_opendir=no
9140fi
9141rm conftest.$ac_ext
9142LIBS=$ac_func_search_save_LIBS
9143fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009144{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9145echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009146ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009147if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9149
9150fi
9151
9152fi
9153
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009154
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009155for ac_header in dlfcn.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009156do
9157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163fi
9164ac_res=`eval echo '${'$as_ac_Header'}'`
9165 { echo "$as_me:$LINENO: result: $ac_res" >&5
9166echo "${ECHO_T}$ac_res" >&6; }
9167else
9168 # Is the header compilable?
9169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9171cat >conftest.$ac_ext <<_ACEOF
9172/* confdefs.h. */
9173_ACEOF
9174cat confdefs.h >>conftest.$ac_ext
9175cat >>conftest.$ac_ext <<_ACEOF
9176/* end confdefs.h. */
9177$ac_includes_default
9178#include <$ac_header>
9179_ACEOF
9180rm -f conftest.$ac_objext
9181if { (ac_try="$ac_compile"
9182case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185esac
9186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_compile") 2>conftest.er1
9188 ac_status=$?
9189 grep -v '^ *+' conftest.er1 >conftest.err
9190 rm -f conftest.er1
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9195 { (case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198esac
9199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_try") 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest.$ac_objext'
9205 { (case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9208esac
9209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_try") 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_header_compiler=yes
9215else
9216 echo "$as_me: failed program was:" >&5
9217sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_header_compiler=no
9220fi
9221
9222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9224echo "${ECHO_T}$ac_header_compiler" >&6; }
9225
9226# Is the header present?
9227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235#include <$ac_header>
9236_ACEOF
9237if { (ac_try="$ac_cpp conftest.$ac_ext"
9238case "(($ac_try" in
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9241esac
9242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9244 ac_status=$?
9245 grep -v '^ *+' conftest.er1 >conftest.err
9246 rm -f conftest.er1
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } >/dev/null; then
9250 if test -s conftest.err; then
9251 ac_cpp_err=$ac_c_preproc_warn_flag
9252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9253 else
9254 ac_cpp_err=
9255 fi
9256else
9257 ac_cpp_err=yes
9258fi
9259if test -z "$ac_cpp_err"; then
9260 ac_header_preproc=yes
9261else
9262 echo "$as_me: failed program was:" >&5
9263sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 ac_header_preproc=no
9266fi
9267
9268rm -f conftest.err conftest.$ac_ext
9269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9270echo "${ECHO_T}$ac_header_preproc" >&6; }
9271
9272# So? What about this header?
9273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9274 yes:no: )
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9279 ac_header_preproc=yes
9280 ;;
9281 no:yes:* )
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9294 ( cat <<\_ASBOX
9295## ----------------------------------- ##
9296## Report this to llvmbugs@cs.uiuc.edu ##
9297## ----------------------------------- ##
9298_ASBOX
9299 ) | sed "s/^/$as_me: WARNING: /" >&2
9300 ;;
9301esac
9302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306else
9307 eval "$as_ac_Header=\$ac_header_preproc"
9308fi
9309ac_res=`eval echo '${'$as_ac_Header'}'`
9310 { echo "$as_me:$LINENO: result: $ac_res" >&5
9311echo "${ECHO_T}$ac_res" >&6; }
9312
9313fi
9314if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009315 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009317_ACEOF
9318
9319fi
9320
9321done
9322
9323# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009324if test "${enable_ltdl_install+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009325 enableval=$enable_ltdl_install;
9326fi
9327
9328
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009329
9330
9331if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009332 INSTALL_LTDL_TRUE=
9333 INSTALL_LTDL_FALSE='#'
9334else
9335 INSTALL_LTDL_TRUE='#'
9336 INSTALL_LTDL_FALSE=
9337fi
9338
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009339
9340
9341if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009342 CONVENIENCE_LTDL_TRUE=
9343 CONVENIENCE_LTDL_FALSE='#'
9344else
9345 CONVENIENCE_LTDL_TRUE='#'
9346 CONVENIENCE_LTDL_FALSE=
9347fi
9348
9349
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009350{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9351echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009352library_names_spec=
9353libname_spec='lib$name'
9354soname_spec=
9355shrext_cmds=".so"
9356postinstall_cmds=
9357postuninstall_cmds=
9358finish_cmds=
9359finish_eval=
9360shlibpath_var=
9361shlibpath_overrides_runpath=unknown
9362version_type=none
9363dynamic_linker="$host_os ld.so"
9364sys_lib_dlsearch_path_spec="/lib /usr/lib"
9365if test "$GCC" = yes; then
9366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9367 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9368 # if the path contains ";" then we assume it to be the separator
9369 # otherwise default to the standard path separator (i.e. ":") - it is
9370 # assumed that no part of a normal pathname contains ";" but that should
9371 # okay in the real world where ";" in dirpaths is itself problematic.
9372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9373 else
9374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9375 fi
9376else
9377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9378fi
9379need_lib_prefix=unknown
9380hardcode_into_libs=no
9381
9382# when you set need_version to no, make sure it does not cause -set_version
9383# flags to be left without arguments
9384need_version=unknown
9385
9386case $host_os in
9387aix3*)
9388 version_type=linux
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9390 shlibpath_var=LIBPATH
9391
9392 # AIX 3 has no versioning support, so we append a major version to the name.
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 ;;
9395
9396aix4* | aix5*)
9397 version_type=linux
9398 need_lib_prefix=no
9399 need_version=no
9400 hardcode_into_libs=yes
9401 if test "$host_cpu" = ia64; then
9402 # AIX 5 supports IA64
9403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 else
9406 # With GCC up to 2.95.x, collect2 would create an import file
9407 # for dependence libraries. The import file would start with
9408 # the line `#! .'. This would cause the generated library to
9409 # depend on `.', always an invalid library. This was fixed in
9410 # development snapshots of GCC prior to 3.0.
9411 case $host_os in
9412 aix4 | aix4.[01] | aix4.[01].*)
9413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9414 echo ' yes '
9415 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9416 :
9417 else
9418 can_build_shared=no
9419 fi
9420 ;;
9421 esac
9422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9423 # soname into executable. Probably we can add versioning support to
9424 # collect2, so additional links can be useful in future.
9425 if test "$aix_use_runtimelinking" = yes; then
9426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9427 # instead of lib<name>.a to let people know that these are not
9428 # typical AIX shared libraries.
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430 else
9431 # We preserve .a as extension for shared libraries through AIX4.2
9432 # and later when we are not doing run time linking.
9433 library_names_spec='${libname}${release}.a $libname.a'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 fi
9436 shlibpath_var=LIBPATH
9437 fi
9438 ;;
9439
9440amigaos*)
9441 library_names_spec='$libname.ixlibrary $libname.a'
9442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9443 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'
9444 ;;
9445
9446beos*)
9447 library_names_spec='${libname}${shared_ext}'
9448 dynamic_linker="$host_os ld.so"
9449 shlibpath_var=LIBRARY_PATH
9450 ;;
9451
9452bsdi[45]*)
9453 version_type=linux
9454 need_version=no
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9461 # the default ld.so.conf also contains /usr/contrib/lib and
9462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9463 # libtool to hard-code these into programs
9464 ;;
9465
9466cygwin* | mingw* | pw32*)
9467 version_type=windows
9468 shrext_cmds=".dll"
9469 need_version=no
9470 need_lib_prefix=no
9471
9472 case $GCC,$host_os in
9473 yes,cygwin* | yes,mingw* | yes,pw32*)
9474 library_names_spec='$libname.dll.a'
9475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9476 postinstall_cmds='base_file=`basename \${file}`~
9477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9478 dldir=$destdir/`dirname \$dlpath`~
9479 test -d \$dldir || mkdir -p \$dldir~
9480 $install_prog $dir/$dlname \$dldir/$dlname~
9481 chmod a+x \$dldir/$dlname'
9482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9483 dlpath=$dir/\$dldll~
9484 $rm \$dlpath'
9485 shlibpath_overrides_runpath=yes
9486
9487 case $host_os in
9488 cygwin*)
9489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9491 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9492 ;;
9493 mingw*)
9494 # MinGW DLLs use traditional 'lib' prefix
9495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9496 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9497 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9498 # It is most probably a Windows format PATH printed by
9499 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9500 # path with ; separators, and with drive letters. We can handle the
9501 # drive letters (cygwin fileutils understands them), so leave them,
9502 # especially as we might pass files found there to a mingw objdump,
9503 # which wouldn't understand a cygwinified path. Ahh.
9504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9505 else
9506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9507 fi
9508 ;;
9509 pw32*)
9510 # pw32 DLLs use 'pw' prefix rather than 'lib'
9511 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9512 ;;
9513 esac
9514 ;;
9515
9516 *)
9517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9518 ;;
9519 esac
9520 dynamic_linker='Win32 ld.exe'
9521 # FIXME: first we should search . and the directory the executable is in
9522 shlibpath_var=PATH
9523 ;;
9524
9525darwin* | rhapsody*)
9526 dynamic_linker="$host_os dyld"
9527 version_type=darwin
9528 need_lib_prefix=no
9529 need_version=no
9530 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9531 soname_spec='${libname}${release}${major}$shared_ext'
9532 shlibpath_overrides_runpath=yes
9533 shlibpath_var=DYLD_LIBRARY_PATH
9534 shrext_cmds='.dylib'
9535 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9536 if test "$GCC" = yes; then
9537 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"`
9538 else
9539 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9540 fi
9541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9542 ;;
9543
9544dgux*)
9545 version_type=linux
9546 need_lib_prefix=no
9547 need_version=no
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 ;;
9552
9553freebsd1*)
9554 dynamic_linker=no
9555 ;;
9556
9557kfreebsd*-gnu)
9558 version_type=linux
9559 need_lib_prefix=no
9560 need_version=no
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 shlibpath_overrides_runpath=no
9565 hardcode_into_libs=yes
9566 dynamic_linker='GNU ld.so'
9567 ;;
9568
9569freebsd* | dragonfly*)
9570 # DragonFly does not have aout. When/if they implement a new
9571 # versioning mechanism, adjust this.
9572 if test -x /usr/bin/objformat; then
9573 objformat=`/usr/bin/objformat`
9574 else
9575 case $host_os in
9576 freebsd[123]*) objformat=aout ;;
9577 *) objformat=elf ;;
9578 esac
9579 fi
9580 version_type=freebsd-$objformat
9581 case $version_type in
9582 freebsd-elf*)
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9584 need_version=no
9585 need_lib_prefix=no
9586 ;;
9587 freebsd-*)
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9589 need_version=yes
9590 ;;
9591 esac
9592 shlibpath_var=LD_LIBRARY_PATH
9593 case $host_os in
9594 freebsd2*)
9595 shlibpath_overrides_runpath=yes
9596 ;;
9597 freebsd3.[01]* | freebsdelf3.[01]*)
9598 shlibpath_overrides_runpath=yes
9599 hardcode_into_libs=yes
9600 ;;
9601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9603 shlibpath_overrides_runpath=no
9604 hardcode_into_libs=yes
9605 ;;
9606 freebsd*) # from 4.6 on
9607 shlibpath_overrides_runpath=yes
9608 hardcode_into_libs=yes
9609 ;;
9610 esac
9611 ;;
9612
9613gnu*)
9614 version_type=linux
9615 need_lib_prefix=no
9616 need_version=no
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 hardcode_into_libs=yes
9621 ;;
9622
9623hpux9* | hpux10* | hpux11*)
9624 # Give a soname corresponding to the major version so that dld.sl refuses to
9625 # link against other versions.
9626 version_type=sunos
9627 need_lib_prefix=no
9628 need_version=no
9629 case $host_cpu in
9630 ia64*)
9631 shrext_cmds='.so'
9632 hardcode_into_libs=yes
9633 dynamic_linker="$host_os dld.so"
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637 soname_spec='${libname}${release}${shared_ext}$major'
9638 if test "X$HPUX_IA64_MODE" = X32; then
9639 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9640 else
9641 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9642 fi
9643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9644 ;;
9645 hppa*64*)
9646 shrext_cmds='.sl'
9647 hardcode_into_libs=yes
9648 dynamic_linker="$host_os dld.sl"
9649 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9655 ;;
9656 *)
9657 shrext_cmds='.sl'
9658 dynamic_linker="$host_os dld.sl"
9659 shlibpath_var=SHLIB_PATH
9660 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 ;;
9664 esac
9665 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9666 postinstall_cmds='chmod 555 $lib'
9667 ;;
9668
9669interix3*)
9670 version_type=linux
9671 need_lib_prefix=no
9672 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 shlibpath_overrides_runpath=no
9678 hardcode_into_libs=yes
9679 ;;
9680
9681irix5* | irix6* | nonstopux*)
9682 case $host_os in
9683 nonstopux*) version_type=nonstopux ;;
9684 *)
9685 if test "$lt_cv_prog_gnu_ld" = yes; then
9686 version_type=linux
9687 else
9688 version_type=irix
9689 fi ;;
9690 esac
9691 need_lib_prefix=no
9692 need_version=no
9693 soname_spec='${libname}${release}${shared_ext}$major'
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9695 case $host_os in
9696 irix5* | nonstopux*)
9697 libsuff= shlibsuff=
9698 ;;
9699 *)
9700 case $LD in # libtool.m4 will add one of these switches to LD
9701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9702 libsuff= shlibsuff= libmagic=32-bit;;
9703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9704 libsuff=32 shlibsuff=N32 libmagic=N32;;
9705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9706 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9707 *) libsuff= shlibsuff= libmagic=never-match;;
9708 esac
9709 ;;
9710 esac
9711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9712 shlibpath_overrides_runpath=no
9713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9715 hardcode_into_libs=yes
9716 ;;
9717
9718# No shared lib support for Linux oldld, aout, or coff.
9719linux*oldld* | linux*aout* | linux*coff*)
9720 dynamic_linker=no
9721 ;;
9722
9723# This must be Linux ELF.
9724linux*)
9725 version_type=linux
9726 need_lib_prefix=no
9727 need_version=no
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 shlibpath_overrides_runpath=no
9733 # This implies no fast_install, which is unacceptable.
9734 # Some rework will be needed to allow for fast_install
9735 # before this can be enabled.
9736 hardcode_into_libs=yes
9737
9738 # Append ld.so.conf contents to the search path
9739 if test -f /etc/ld.so.conf; then
9740 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' ' '`
9741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9742 fi
9743
9744 # We used to test for /lib/ld.so.1 and disable shared libraries on
9745 # powerpc, because MkLinux only supported shared libraries with the
9746 # GNU dynamic linker. Since this was broken with cross compilers,
9747 # most powerpc-linux boxes support dynamic linking these days and
9748 # people can always --disable-shared, the test was removed, and we
9749 # assume the GNU/Linux dynamic linker is in use.
9750 dynamic_linker='GNU/Linux ld.so'
9751 ;;
9752
9753knetbsd*-gnu)
9754 version_type=linux
9755 need_lib_prefix=no
9756 need_version=no
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 shlibpath_overrides_runpath=no
9761 hardcode_into_libs=yes
9762 dynamic_linker='GNU ld.so'
9763 ;;
9764
9765netbsd*)
9766 version_type=sunos
9767 need_lib_prefix=no
9768 need_version=no
9769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9772 dynamic_linker='NetBSD (a.out) ld.so'
9773 else
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 dynamic_linker='NetBSD ld.elf_so'
9777 fi
9778 shlibpath_var=LD_LIBRARY_PATH
9779 shlibpath_overrides_runpath=yes
9780 hardcode_into_libs=yes
9781 ;;
9782
9783newsos6)
9784 version_type=linux
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 shlibpath_var=LD_LIBRARY_PATH
9787 shlibpath_overrides_runpath=yes
9788 ;;
9789
9790nto-qnx*)
9791 version_type=linux
9792 need_lib_prefix=no
9793 need_version=no
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 shlibpath_overrides_runpath=yes
9798 ;;
9799
9800openbsd*)
9801 version_type=sunos
9802 sys_lib_dlsearch_path_spec="/usr/lib"
9803 need_lib_prefix=no
9804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9805 case $host_os in
9806 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9807 *) need_version=no ;;
9808 esac
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9811 shlibpath_var=LD_LIBRARY_PATH
9812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9813 case $host_os in
9814 openbsd2.[89] | openbsd2.[89].*)
9815 shlibpath_overrides_runpath=no
9816 ;;
9817 *)
9818 shlibpath_overrides_runpath=yes
9819 ;;
9820 esac
9821 else
9822 shlibpath_overrides_runpath=yes
9823 fi
9824 ;;
9825
9826os2*)
9827 libname_spec='$name'
9828 shrext_cmds=".dll"
9829 need_lib_prefix=no
9830 library_names_spec='$libname${shared_ext} $libname.a'
9831 dynamic_linker='OS/2 ld.exe'
9832 shlibpath_var=LIBPATH
9833 ;;
9834
9835osf3* | osf4* | osf5*)
9836 version_type=osf
9837 need_lib_prefix=no
9838 need_version=no
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 shlibpath_var=LD_LIBRARY_PATH
9842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9844 ;;
9845
9846solaris*)
9847 version_type=linux
9848 need_lib_prefix=no
9849 need_version=no
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=yes
9854 hardcode_into_libs=yes
9855 # ldd complains unless libraries are executable
9856 postinstall_cmds='chmod +x $lib'
9857 ;;
9858
9859sunos4*)
9860 version_type=sunos
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 shlibpath_overrides_runpath=yes
9865 if test "$with_gnu_ld" = yes; then
9866 need_lib_prefix=no
9867 fi
9868 need_version=yes
9869 ;;
9870
9871sysv4 | sysv4.3*)
9872 version_type=linux
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874 soname_spec='${libname}${release}${shared_ext}$major'
9875 shlibpath_var=LD_LIBRARY_PATH
9876 case $host_vendor in
9877 sni)
9878 shlibpath_overrides_runpath=no
9879 need_lib_prefix=no
9880 export_dynamic_flag_spec='${wl}-Blargedynsym'
9881 runpath_var=LD_RUN_PATH
9882 ;;
9883 siemens)
9884 need_lib_prefix=no
9885 ;;
9886 motorola)
9887 need_lib_prefix=no
9888 need_version=no
9889 shlibpath_overrides_runpath=no
9890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9891 ;;
9892 esac
9893 ;;
9894
9895sysv4*MP*)
9896 if test -d /usr/nec ;then
9897 version_type=linux
9898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9899 soname_spec='$libname${shared_ext}.$major'
9900 shlibpath_var=LD_LIBRARY_PATH
9901 fi
9902 ;;
9903
9904sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9905 version_type=freebsd-elf
9906 need_lib_prefix=no
9907 need_version=no
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 hardcode_into_libs=yes
9912 if test "$with_gnu_ld" = yes; then
9913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9914 shlibpath_overrides_runpath=no
9915 else
9916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9917 shlibpath_overrides_runpath=yes
9918 case $host_os in
9919 sco3.2v5*)
9920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9921 ;;
9922 esac
9923 fi
9924 sys_lib_dlsearch_path_spec='/usr/lib'
9925 ;;
9926
9927uts4*)
9928 version_type=linux
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 ;;
9933
9934*)
9935 dynamic_linker=no
9936 ;;
9937esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009938{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9939echo "${ECHO_T}$dynamic_linker" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009940test "$dynamic_linker" = no && can_build_shared=no
9941
9942variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9943if test "$GCC" = yes; then
9944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9945fi
9946
9947
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009948{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9949echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9950if test "${libltdl_cv_shlibext+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009952else
9953
9954module=yes
9955eval libltdl_cv_shlibext=$shrext_cmds
9956
9957fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009958{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9959echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009960if test -n "$libltdl_cv_shlibext"; then
9961
9962cat >>confdefs.h <<_ACEOF
9963#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9964_ACEOF
9965
9966fi
9967
9968
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009969{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9970echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9971if test "${libltdl_cv_shlibpath_var+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009973else
9974 libltdl_cv_shlibpath_var="$shlibpath_var"
9975fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009976{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9977echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009978if test -n "$libltdl_cv_shlibpath_var"; then
9979
9980cat >>confdefs.h <<_ACEOF
9981#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9982_ACEOF
9983
9984fi
9985
9986
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009987{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9988echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9989if test "${libltdl_cv_sys_search_path+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009991else
9992 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9993fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +00009994{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9995echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009996if test -n "$libltdl_cv_sys_search_path"; then
9997 sys_search_path=
9998 for dir in $libltdl_cv_sys_search_path; do
9999 if test -z "$sys_search_path"; then
10000 sys_search_path="$dir"
10001 else
10002 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10003 fi
10004 done
10005
10006cat >>confdefs.h <<_ACEOF
10007#define LTDL_SYSSEARCHPATH "$sys_search_path"
10008_ACEOF
10009
10010fi
10011
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010012{ echo "$as_me:$LINENO: checking for objdir" >&5
10013echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10014if test "${libltdl_cv_objdir+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010016else
10017 libltdl_cv_objdir="$objdir"
10018 if test -n "$objdir"; then
10019 :
10020 else
10021 rm -f .libs 2>/dev/null
10022 mkdir .libs 2>/dev/null
10023 if test -d .libs; then
10024 libltdl_cv_objdir=.libs
10025 else
10026 # MS-DOS does not allow filenames that begin with a dot.
10027 libltdl_cv_objdir=_libs
10028 fi
10029 rmdir .libs 2>/dev/null
10030 fi
10031
10032fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010033{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10034echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010035
10036cat >>confdefs.h <<_ACEOF
10037#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10038_ACEOF
10039
10040
10041
10042
10043
10044
10045# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010046{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10047echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10048if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010050else
10051
10052# These are sane defaults that work on at least a few old systems.
10053# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10054
10055# Character class describing NM global symbol codes.
10056symcode='[BCDEGRST]'
10057
10058# Regexp to match symbols that can be accessed directly from C.
10059sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10060
10061# Transform an extracted symbol line into a proper C declaration
10062lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10063
10064# Transform an extracted symbol line into symbol name and symbol address
10065lt_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'"
10066
10067# Define system-specific variables.
10068case $host_os in
10069aix*)
10070 symcode='[BCDT]'
10071 ;;
10072cygwin* | mingw* | pw32*)
10073 symcode='[ABCDGISTW]'
10074 ;;
10075hpux*) # Its linker distinguishes data from code symbols
10076 if test "$host_cpu" = ia64; then
10077 symcode='[ABCDEGRST]'
10078 fi
10079 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10080 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'"
10081 ;;
10082linux*)
10083 if test "$host_cpu" = ia64; then
10084 symcode='[ABCDGIRSTW]'
10085 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10086 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'"
10087 fi
10088 ;;
10089irix* | nonstopux*)
10090 symcode='[BCDEGRST]'
10091 ;;
10092osf*)
10093 symcode='[BCDEGQRST]'
10094 ;;
10095solaris*)
10096 symcode='[BDRT]'
10097 ;;
10098sco3.2v5*)
10099 symcode='[DT]'
10100 ;;
10101sysv4.2uw2*)
10102 symcode='[DT]'
10103 ;;
10104sysv5* | sco5v6* | unixware* | OpenUNIX*)
10105 symcode='[ABDT]'
10106 ;;
10107sysv4)
10108 symcode='[DFNSTU]'
10109 ;;
10110esac
10111
10112# Handle CRLF in mingw tool chain
10113opt_cr=
10114case $build_os in
10115mingw*)
10116 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10117 ;;
10118esac
10119
10120# If we're using GNU nm, then use its standard symbol codes.
10121case `$NM -V 2>&1` in
10122*GNU* | *'with BFD'*)
10123 symcode='[ABCDGIRSTW]' ;;
10124esac
10125
10126# Try without a prefix undercore, then with it.
10127for ac_symprfx in "" "_"; do
10128
10129 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10130 symxfrm="\\1 $ac_symprfx\\2 \\2"
10131
10132 # Write the raw and C identifiers.
10133 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10134
10135 # Check to see that the pipe works correctly.
10136 pipe_works=no
10137
10138 rm -f conftest*
10139 cat > conftest.$ac_ext <<EOF
10140#ifdef __cplusplus
10141extern "C" {
10142#endif
10143char nm_test_var;
10144void nm_test_func(){}
10145#ifdef __cplusplus
10146}
10147#endif
10148int main(){nm_test_var='a';nm_test_func();return(0);}
10149EOF
10150
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010152 (eval $ac_compile) 2>&5
10153 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010156 # Now try to grab the symbols.
10157 nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010158 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 +000010159 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10160 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && test -s "$nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010163 # Try sorting and uniquifying the output.
10164 if sort "$nlist" | uniq > "$nlist"T; then
10165 mv -f "$nlist"T "$nlist"
10166 else
10167 rm -f "$nlist"T
10168 fi
10169
10170 # Make sure that we snagged all the symbols we need.
10171 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10172 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10173 cat <<EOF > conftest.$ac_ext
10174#ifdef __cplusplus
10175extern "C" {
10176#endif
10177
10178EOF
10179 # Now generate the symbol file.
10180 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10181
10182 cat <<EOF >> conftest.$ac_ext
10183#if defined (__STDC__) && __STDC__
10184# define lt_ptr_t void *
10185#else
10186# define lt_ptr_t char *
10187# define const
10188#endif
10189
10190/* The mapping between symbol names and symbols. */
10191const struct {
10192 const char *name;
10193 lt_ptr_t address;
10194}
10195lt_preloaded_symbols[] =
10196{
10197EOF
10198 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10199 cat <<\EOF >> conftest.$ac_ext
10200 {0, (lt_ptr_t) 0}
10201};
10202
10203#ifdef __cplusplus
10204}
10205#endif
10206EOF
10207 # Now try linking the two files.
10208 mv conftest.$ac_objext conftstm.$ac_objext
10209 lt_save_LIBS="$LIBS"
10210 lt_save_CFLAGS="$CFLAGS"
10211 LIBS="conftstm.$ac_objext"
10212 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010214 (eval $ac_link) 2>&5
10215 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010218 pipe_works=yes
10219 fi
10220 LIBS="$lt_save_LIBS"
10221 CFLAGS="$lt_save_CFLAGS"
10222 else
10223 echo "cannot find nm_test_func in $nlist" >&5
10224 fi
10225 else
10226 echo "cannot find nm_test_var in $nlist" >&5
10227 fi
10228 else
10229 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10230 fi
10231 else
10232 echo "$progname: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 fi
10235 rm -f conftest* conftst*
10236
10237 # Do not use the global_symbol_pipe unless it works.
10238 if test "$pipe_works" = yes; then
10239 break
10240 else
10241 lt_cv_sys_global_symbol_pipe=
10242 fi
10243done
10244
10245fi
10246
10247if test -z "$lt_cv_sys_global_symbol_pipe"; then
10248 lt_cv_sys_global_symbol_to_cdecl=
10249fi
10250if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010251 { echo "$as_me:$LINENO: result: failed" >&5
10252echo "${ECHO_T}failed" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010253else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010254 { echo "$as_me:$LINENO: result: ok" >&5
10255echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010256fi
10257
10258
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010259{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10260echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10261if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010263else
10264 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10265 libltdl_cv_preloaded_symbols=yes
10266 else
10267 libltdl_cv_preloaded_symbols=no
10268 fi
10269
10270fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010271{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10272echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010273if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10274
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010275cat >>confdefs.h <<\_ACEOF
10276#define HAVE_PRELOADED_SYMBOLS 1
10277_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010278
10279fi
10280
10281LIBADD_DL=
10282
10283ac_ext=c
10284ac_cpp='$CPP $CPPFLAGS'
10285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10287ac_compiler_gnu=$ac_cv_c_compiler_gnu
10288
10289
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010290{ echo "$as_me:$LINENO: checking for shl_load" >&5
10291echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10292if test "${ac_cv_func_shl_load+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295 cat >conftest.$ac_ext <<_ACEOF
10296/* confdefs.h. */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h. */
10301/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10303#define shl_load innocuous_shl_load
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010304
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010305/* System header to define __stub macros and hopefully few prototypes,
10306 which can conflict with char shl_load (); below.
10307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308 <limits.h> exists even on freestanding compilers. */
10309
10310#ifdef __STDC__
10311# include <limits.h>
10312#else
10313# include <assert.h>
10314#endif
10315
10316#undef shl_load
10317
10318/* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324char shl_load ();
10325/* The GNU C library defines this for functions which it implements
10326 to always fail with ENOSYS. Some functions are actually named
10327 something starting with __ and the normal name is an alias. */
10328#if defined __stub_shl_load || defined __stub___shl_load
10329choke me
10330#endif
10331
10332int
10333main ()
10334{
10335return shl_load ();
10336 ;
10337 return 0;
10338}
10339_ACEOF
10340rm -f conftest.$ac_objext conftest$ac_exeext
10341if { (ac_try="$ac_link"
10342case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345esac
10346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_link") 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355 { (case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358esac
10359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_try") 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest$ac_exeext'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368esac
10369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 ac_cv_func_shl_load=yes
10375else
10376 echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379 ac_cv_func_shl_load=no
10380fi
10381
10382rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384fi
10385{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10386echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10387if test $ac_cv_func_shl_load = yes; then
10388
10389cat >>confdefs.h <<\_ACEOF
10390#define HAVE_SHL_LOAD 1
10391_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010392
10393else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010394 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10395echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10396if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010398else
10399 ac_check_lib_save_LIBS=$LIBS
10400LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010401cat >conftest.$ac_ext <<_ACEOF
10402/* confdefs.h. */
10403_ACEOF
10404cat confdefs.h >>conftest.$ac_ext
10405cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010406/* end confdefs.h. */
10407
10408/* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10411#ifdef __cplusplus
10412extern "C"
10413#endif
10414char shl_load ();
10415int
10416main ()
10417{
10418return shl_load ();
10419 ;
10420 return 0;
10421}
10422_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010423rm -f conftest.$ac_objext conftest$ac_exeext
10424if { (ac_try="$ac_link"
10425case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428esac
10429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_link") 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438 { (case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10441esac
10442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_try") 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try='test -s conftest$ac_exeext'
10448 { (case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451esac
10452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_try") 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010457 ac_cv_lib_dld_shl_load=yes
10458else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010459 echo "$as_me: failed program was:" >&5
10460sed 's/^/| /' conftest.$ac_ext >&5
10461
10462 ac_cv_lib_dld_shl_load=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010463fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010464
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010465rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010466 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010467LIBS=$ac_check_lib_save_LIBS
10468fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010469{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10470echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10471if test $ac_cv_lib_dld_shl_load = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010472
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010473cat >>confdefs.h <<\_ACEOF
10474#define HAVE_SHL_LOAD 1
10475_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010476
10477 LIBADD_DL="$LIBADD_DL -ldld"
10478else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010479 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10480echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10481if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010483else
10484 ac_check_lib_save_LIBS=$LIBS
10485LIBS="-ldl $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010486cat >conftest.$ac_ext <<_ACEOF
10487/* confdefs.h. */
10488_ACEOF
10489cat confdefs.h >>conftest.$ac_ext
10490cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010491/* end confdefs.h. */
10492
10493/* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10496#ifdef __cplusplus
10497extern "C"
10498#endif
10499char dlopen ();
10500int
10501main ()
10502{
10503return dlopen ();
10504 ;
10505 return 0;
10506}
10507_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010508rm -f conftest.$ac_objext conftest$ac_exeext
10509if { (ac_try="$ac_link"
10510case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513esac
10514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_link") 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10523 { (case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526esac
10527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_try") 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; } &&
10532 { ac_try='test -s conftest$ac_exeext'
10533 { (case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536esac
10537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_try") 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010542 ac_cv_lib_dl_dlopen=yes
10543else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010544 echo "$as_me: failed program was:" >&5
10545sed 's/^/| /' conftest.$ac_ext >&5
10546
10547 ac_cv_lib_dl_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010548fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010549
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010550rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010551 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010552LIBS=$ac_check_lib_save_LIBS
10553fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010554{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10555echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10556if test $ac_cv_lib_dl_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010557
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010558cat >>confdefs.h <<\_ACEOF
10559#define HAVE_LIBDL 1
10560_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010561
10562 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10563else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010564 cat >conftest.$ac_ext <<_ACEOF
10565/* confdefs.h. */
10566_ACEOF
10567cat confdefs.h >>conftest.$ac_ext
10568cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010569/* end confdefs.h. */
10570#if HAVE_DLFCN_H
10571# include <dlfcn.h>
10572#endif
10573
10574int
10575main ()
10576{
10577dlopen(0, 0);
10578 ;
10579 return 0;
10580}
10581_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010582rm -f conftest.$ac_objext conftest$ac_exeext
10583if { (ac_try="$ac_link"
10584case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587esac
10588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_link") 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10597 { (case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600esac
10601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_try") 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest$ac_exeext'
10607 { (case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610esac
10611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_try") 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010616
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010617cat >>confdefs.h <<\_ACEOF
10618#define HAVE_LIBDL 1
10619_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010620 libltdl_cv_func_dlopen="yes"
10621else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010622 echo "$as_me: failed program was:" >&5
10623sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10626echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10627if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010629else
10630 ac_check_lib_save_LIBS=$LIBS
10631LIBS="-lsvld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010632cat >conftest.$ac_ext <<_ACEOF
10633/* confdefs.h. */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010637/* end confdefs.h. */
10638
10639/* Override any GCC internal prototype to avoid an error.
10640 Use char because int might match the return type of a GCC
10641 builtin and then its argument prototype would still apply. */
10642#ifdef __cplusplus
10643extern "C"
10644#endif
10645char dlopen ();
10646int
10647main ()
10648{
10649return dlopen ();
10650 ;
10651 return 0;
10652}
10653_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010654rm -f conftest.$ac_objext conftest$ac_exeext
10655if { (ac_try="$ac_link"
10656case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10659esac
10660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661 (eval "$ac_link") 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10669 { (case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672esac
10673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_try") 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682esac
10683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_try") 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010688 ac_cv_lib_svld_dlopen=yes
10689else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010690 echo "$as_me: failed program was:" >&5
10691sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 ac_cv_lib_svld_dlopen=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010694fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010695
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010696rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010697 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010698LIBS=$ac_check_lib_save_LIBS
10699fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010700{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10701echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10702if test $ac_cv_lib_svld_dlopen = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010703
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010704cat >>confdefs.h <<\_ACEOF
10705#define HAVE_LIBDL 1
10706_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010707
10708 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10709else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010710 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10711echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10712if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010714else
10715 ac_check_lib_save_LIBS=$LIBS
10716LIBS="-ldld $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010717cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h. */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010722/* end confdefs.h. */
10723
10724/* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10727#ifdef __cplusplus
10728extern "C"
10729#endif
10730char dld_link ();
10731int
10732main ()
10733{
10734return dld_link ();
10735 ;
10736 return 0;
10737}
10738_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010739rm -f conftest.$ac_objext conftest$ac_exeext
10740if { (ac_try="$ac_link"
10741case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_link") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
10753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10754 { (case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757esac
10758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_try") 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest$ac_exeext'
10764 { (case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767esac
10768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_try") 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010773 ac_cv_lib_dld_dld_link=yes
10774else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010775 echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
10777
10778 ac_cv_lib_dld_dld_link=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010779fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010780
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010781rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010782 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010783LIBS=$ac_check_lib_save_LIBS
10784fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010785{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10786echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10787if test $ac_cv_lib_dld_dld_link = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010788
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010789cat >>confdefs.h <<\_ACEOF
10790#define HAVE_DLD 1
10791_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010792
10793 LIBADD_DL="$LIBADD_DL -ldld"
10794else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010795 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10796echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10797if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800 cat >conftest.$ac_ext <<_ACEOF
10801/* confdefs.h. */
10802_ACEOF
10803cat confdefs.h >>conftest.$ac_ext
10804cat >>conftest.$ac_ext <<_ACEOF
10805/* end confdefs.h. */
10806/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10808#define _dyld_func_lookup innocuous__dyld_func_lookup
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010809
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010810/* System header to define __stub macros and hopefully few prototypes,
10811 which can conflict with char _dyld_func_lookup (); below.
10812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10813 <limits.h> exists even on freestanding compilers. */
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010814
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010815#ifdef __STDC__
10816# include <limits.h>
10817#else
10818# include <assert.h>
10819#endif
10820
10821#undef _dyld_func_lookup
10822
10823/* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
10826#ifdef __cplusplus
10827extern "C"
10828#endif
10829char _dyld_func_lookup ();
10830/* The GNU C library defines this for functions which it implements
10831 to always fail with ENOSYS. Some functions are actually named
10832 something starting with __ and the normal name is an alias. */
10833#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10834choke me
10835#endif
10836
10837int
10838main ()
10839{
10840return _dyld_func_lookup ();
10841 ;
10842 return 0;
10843}
10844_ACEOF
10845rm -f conftest.$ac_objext conftest$ac_exeext
10846if { (ac_try="$ac_link"
10847case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850esac
10851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_link") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10860 { (case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863esac
10864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_try") 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest$ac_exeext'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_func__dyld_func_lookup=yes
10880else
10881 echo "$as_me: failed program was:" >&5
10882sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_cv_func__dyld_func_lookup=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010885fi
10886
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010887rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010888 conftest$ac_exeext conftest.$ac_ext
10889fi
10890{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10891echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10892if test $ac_cv_func__dyld_func_lookup = yes; then
10893
10894cat >>confdefs.h <<\_ACEOF
10895#define HAVE_DYLD 1
10896_ACEOF
10897
10898fi
10899
10900
10901fi
10902
10903
10904fi
10905
10906
10907fi
10908
10909rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010911
10912fi
10913
10914
10915fi
10916
10917
10918fi
10919
10920
10921if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10922then
10923 lt_save_LIBS="$LIBS"
10924 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000010925
10926for ac_func in dlerror
10927do
10928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10929{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10931if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933else
10934 cat >conftest.$ac_ext <<_ACEOF
10935/* confdefs.h. */
10936_ACEOF
10937cat confdefs.h >>conftest.$ac_ext
10938cat >>conftest.$ac_ext <<_ACEOF
10939/* end confdefs.h. */
10940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10942#define $ac_func innocuous_$ac_func
10943
10944/* System header to define __stub macros and hopefully few prototypes,
10945 which can conflict with char $ac_func (); below.
10946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10947 <limits.h> exists even on freestanding compilers. */
10948
10949#ifdef __STDC__
10950# include <limits.h>
10951#else
10952# include <assert.h>
10953#endif
10954
10955#undef $ac_func
10956
10957/* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10960#ifdef __cplusplus
10961extern "C"
10962#endif
10963char $ac_func ();
10964/* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967#if defined __stub_$ac_func || defined __stub___$ac_func
10968choke me
10969#endif
10970
10971int
10972main ()
10973{
10974return $ac_func ();
10975 ;
10976 return 0;
10977}
10978_ACEOF
10979rm -f conftest.$ac_objext conftest$ac_exeext
10980if { (ac_try="$ac_link"
10981case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984esac
10985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_link") 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10994 { (case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997esac
10998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_try") 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest$ac_exeext'
11004 { (case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11007esac
11008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_try") 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 eval "$as_ac_var=yes"
11014else
11015 echo "$as_me: failed program was:" >&5
11016sed 's/^/| /' conftest.$ac_ext >&5
11017
11018 eval "$as_ac_var=no"
11019fi
11020
11021rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11023fi
11024ac_res=`eval echo '${'$as_ac_var'}'`
11025 { echo "$as_me:$LINENO: result: $ac_res" >&5
11026echo "${ECHO_T}$ac_res" >&6; }
11027if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011028 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011030_ACEOF
11031
11032fi
11033done
11034
11035 LIBS="$lt_save_LIBS"
11036fi
11037ac_ext=c
11038ac_cpp='$CPP $CPPFLAGS'
11039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11041ac_compiler_gnu=$ac_cv_c_compiler_gnu
11042
11043
11044
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011045{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11046echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11047if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011049else
11050 ac_cv_sys_symbol_underscore=no
11051 cat > conftest.$ac_ext <<EOF
11052void nm_test_func(){}
11053int main(){nm_test_func;return 0;}
11054EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011056 (eval $ac_compile) 2>&5
11057 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011060 # Now try to grab the symbols.
11061 ac_nlist=conftest.nm
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011062 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 +000011063 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11064 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && test -s "$ac_nlist"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011067 # See whether the symbols have a leading underscore.
11068 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11069 ac_cv_sys_symbol_underscore=yes
11070 else
11071 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11072 :
11073 else
11074 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11075 fi
11076 fi
11077 else
11078 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11079 fi
11080 else
11081 echo "configure: failed program was:" >&5
11082 cat conftest.c >&5
11083 fi
11084 rm -rf conftest*
11085
11086fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011087{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11088echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011089
11090
11091if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11092 if test x"$libltdl_cv_func_dlopen" = xyes ||
11093 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011094 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11095echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11096if test "${libltdl_cv_need_uscore+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011098else
11099 libltdl_cv_need_uscore=unknown
11100 save_LIBS="$LIBS"
11101 LIBS="$LIBS $LIBADD_DL"
11102 if test "$cross_compiling" = yes; then :
11103 libltdl_cv_need_uscore=cross
11104else
11105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11106 lt_status=$lt_dlunknown
11107 cat > conftest.$ac_ext <<EOF
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000011108#line 11108 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011109#include "confdefs.h"
11110
11111#if HAVE_DLFCN_H
11112#include <dlfcn.h>
11113#endif
11114
11115#include <stdio.h>
11116
11117#ifdef RTLD_GLOBAL
11118# define LT_DLGLOBAL RTLD_GLOBAL
11119#else
11120# ifdef DL_GLOBAL
11121# define LT_DLGLOBAL DL_GLOBAL
11122# else
11123# define LT_DLGLOBAL 0
11124# endif
11125#endif
11126
11127/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11128 find out it does not work in some platform. */
11129#ifndef LT_DLLAZY_OR_NOW
11130# ifdef RTLD_LAZY
11131# define LT_DLLAZY_OR_NOW RTLD_LAZY
11132# else
11133# ifdef DL_LAZY
11134# define LT_DLLAZY_OR_NOW DL_LAZY
11135# else
11136# ifdef RTLD_NOW
11137# define LT_DLLAZY_OR_NOW RTLD_NOW
11138# else
11139# ifdef DL_NOW
11140# define LT_DLLAZY_OR_NOW DL_NOW
11141# else
11142# define LT_DLLAZY_OR_NOW 0
11143# endif
11144# endif
11145# endif
11146# endif
11147#endif
11148
11149#ifdef __cplusplus
11150extern "C" void exit (int);
11151#endif
11152
11153void fnord() { int i=42;}
11154int main ()
11155{
11156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11157 int status = $lt_dlunknown;
11158
11159 if (self)
11160 {
11161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11162 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11163 /* dlclose (self); */
11164 }
11165 else
11166 puts (dlerror ());
11167
11168 exit (status);
11169}
11170EOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011172 (eval $ac_link) 2>&5
11173 ac_status=$?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011176 (./conftest; exit; ) >&5 2>/dev/null
11177 lt_status=$?
11178 case x$lt_status in
11179 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11180 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11181 x$lt_dlunknown|x*) ;;
11182 esac
11183 else :
11184 # compilation failed
11185
11186 fi
11187fi
11188rm -fr conftest*
11189
11190 LIBS="$save_LIBS"
11191
11192fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011193{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11194echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011195 fi
11196fi
11197
11198if test x"$libltdl_cv_need_uscore" = xyes; then
11199
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011200cat >>confdefs.h <<\_ACEOF
11201#define NEED_USCORE 1
11202_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011203
11204fi
11205
11206
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011207{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11208echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11209if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011211else
11212 # PORTME does your system automatically load deplibs for dlopen?
11213 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11214 # For now, we just catch OSes we know something about -- in the
11215 # future, we'll try test this programmatically.
11216 libltdl_cv_sys_dlopen_deplibs=unknown
11217 case "$host_os" in
11218 aix3*|aix4.1.*|aix4.2.*)
11219 # Unknown whether this is true for these versions of AIX, but
11220 # we want this `case' here to explicitly catch those versions.
11221 libltdl_cv_sys_dlopen_deplibs=unknown
11222 ;;
11223 aix[45]*)
11224 libltdl_cv_sys_dlopen_deplibs=yes
11225 ;;
11226 darwin*)
11227 # Assuming the user has installed a libdl from somewhere, this is true
11228 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11229 libltdl_cv_sys_dlopen_deplibs=yes
11230 ;;
11231 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11232 # GNU and its variants, using gnu ld.so (Glibc)
11233 libltdl_cv_sys_dlopen_deplibs=yes
11234 ;;
11235 hpux10*|hpux11*)
11236 libltdl_cv_sys_dlopen_deplibs=yes
11237 ;;
11238 interix*)
11239 libltdl_cv_sys_dlopen_deplibs=yes
11240 ;;
11241 irix[12345]*|irix6.[01]*)
11242 # Catch all versions of IRIX before 6.2, and indicate that we don't
11243 # know how it worked for any of those versions.
11244 libltdl_cv_sys_dlopen_deplibs=unknown
11245 ;;
11246 irix*)
11247 # The case above catches anything before 6.2, and it's known that
11248 # at 6.2 and later dlopen does load deplibs.
11249 libltdl_cv_sys_dlopen_deplibs=yes
11250 ;;
11251 netbsd*)
11252 libltdl_cv_sys_dlopen_deplibs=yes
11253 ;;
11254 openbsd*)
11255 libltdl_cv_sys_dlopen_deplibs=yes
11256 ;;
11257 osf[1234]*)
11258 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11259 # it did *not* use an RPATH in a shared library to find objects the
11260 # library depends on, so we explictly say `no'.
11261 libltdl_cv_sys_dlopen_deplibs=no
11262 ;;
11263 osf5.0|osf5.0a|osf5.1)
11264 # dlopen *does* load deplibs and with the right loader patch applied
11265 # it even uses RPATH in a shared library to search for shared objects
11266 # that the library depends on, but there's no easy way to know if that
11267 # patch is installed. Since this is the case, all we can really
11268 # say is unknown -- it depends on the patch being installed. If
11269 # it is, this changes to `yes'. Without it, it would be `no'.
11270 libltdl_cv_sys_dlopen_deplibs=unknown
11271 ;;
11272 osf*)
11273 # the two cases above should catch all versions of osf <= 5.1. Read
11274 # the comments above for what we know about them.
11275 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11276 # is used to find them so we can finally say `yes'.
11277 libltdl_cv_sys_dlopen_deplibs=yes
11278 ;;
11279 solaris*)
11280 libltdl_cv_sys_dlopen_deplibs=yes
11281 ;;
11282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11283 libltdl_cv_sys_dlopen_deplibs=yes
11284 ;;
11285 esac
11286
11287fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011288{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11289echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011290if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11291
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011292cat >>confdefs.h <<\_ACEOF
11293#define LTDL_DLOPEN_DEPLIBS 1
11294_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011295
11296fi
11297
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011298
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011299for ac_header in argz.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011300do
11301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307fi
11308ac_res=`eval echo '${'$as_ac_Header'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310echo "${ECHO_T}$ac_res" >&6; }
11311else
11312 # Is the header compilable?
11313{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11315cat >conftest.$ac_ext <<_ACEOF
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
11321$ac_includes_default
11322#include <$ac_header>
11323_ACEOF
11324rm -f conftest.$ac_objext
11325if { (ac_try="$ac_compile"
11326case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_compile") 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339 { (case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342esac
11343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_try") 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest.$ac_objext'
11349 { (case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352esac
11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_try") 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 ac_header_compiler=yes
11359else
11360 echo "$as_me: failed program was:" >&5
11361sed 's/^/| /' conftest.$ac_ext >&5
11362
11363 ac_header_compiler=no
11364fi
11365
11366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11367{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11368echo "${ECHO_T}$ac_header_compiler" >&6; }
11369
11370# Is the header present?
11371{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11373cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379#include <$ac_header>
11380_ACEOF
11381if { (ac_try="$ac_cpp conftest.$ac_ext"
11382case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11385esac
11386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } >/dev/null; then
11394 if test -s conftest.err; then
11395 ac_cpp_err=$ac_c_preproc_warn_flag
11396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11397 else
11398 ac_cpp_err=
11399 fi
11400else
11401 ac_cpp_err=yes
11402fi
11403if test -z "$ac_cpp_err"; then
11404 ac_header_preproc=yes
11405else
11406 echo "$as_me: failed program was:" >&5
11407sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_header_preproc=no
11410fi
11411
11412rm -f conftest.err conftest.$ac_ext
11413{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11414echo "${ECHO_T}$ac_header_preproc" >&6; }
11415
11416# So? What about this header?
11417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11418 yes:no: )
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11420echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11422echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11423 ac_header_preproc=yes
11424 ;;
11425 no:yes:* )
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11429echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11431echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11433echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11437echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11438 ( cat <<\_ASBOX
11439## ----------------------------------- ##
11440## Report this to llvmbugs@cs.uiuc.edu ##
11441## ----------------------------------- ##
11442_ASBOX
11443 ) | sed "s/^/$as_me: WARNING: /" >&2
11444 ;;
11445esac
11446{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450else
11451 eval "$as_ac_Header=\$ac_header_preproc"
11452fi
11453ac_res=`eval echo '${'$as_ac_Header'}'`
11454 { echo "$as_me:$LINENO: result: $ac_res" >&5
11455echo "${ECHO_T}$ac_res" >&6; }
11456
11457fi
11458if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011459 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011461_ACEOF
11462
11463fi
11464
11465done
11466
11467
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011468{ echo "$as_me:$LINENO: checking for error_t" >&5
11469echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11470if test "${ac_cv_type_error_t+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11472else
11473 cat >conftest.$ac_ext <<_ACEOF
11474/* confdefs.h. */
11475_ACEOF
11476cat confdefs.h >>conftest.$ac_ext
11477cat >>conftest.$ac_ext <<_ACEOF
11478/* end confdefs.h. */
11479#if HAVE_ARGZ_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011480# include <argz.h>
11481#endif
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011482
11483typedef error_t ac__type_new_;
11484int
11485main ()
11486{
11487if ((ac__type_new_ *) 0)
11488 return 0;
11489if (sizeof (ac__type_new_))
11490 return 0;
11491 ;
11492 return 0;
11493}
11494_ACEOF
11495rm -f conftest.$ac_objext
11496if { (ac_try="$ac_compile"
11497case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500esac
11501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_compile") 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11510 { (case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11513esac
11514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_try") 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; } &&
11519 { ac_try='test -s conftest.$ac_objext'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; }; then
11529 ac_cv_type_error_t=yes
11530else
11531 echo "$as_me: failed program was:" >&5
11532sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 ac_cv_type_error_t=no
11535fi
11536
11537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538fi
11539{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11540echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11541if test $ac_cv_type_error_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011542
11543cat >>confdefs.h <<_ACEOF
11544#define HAVE_ERROR_T 1
11545_ACEOF
11546
11547
11548else
11549
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011550cat >>confdefs.h <<\_ACEOF
11551#define error_t int
11552_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011553
11554fi
11555
11556
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011557
11558
11559
11560
11561
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011562for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011563do
11564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11565{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570 cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11578#define $ac_func innocuous_$ac_func
11579
11580/* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char $ac_func (); below.
11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583 <limits.h> exists even on freestanding compilers. */
11584
11585#ifdef __STDC__
11586# include <limits.h>
11587#else
11588# include <assert.h>
11589#endif
11590
11591#undef $ac_func
11592
11593/* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599char $ac_func ();
11600/* The GNU C library defines this for functions which it implements
11601 to always fail with ENOSYS. Some functions are actually named
11602 something starting with __ and the normal name is an alias. */
11603#if defined __stub_$ac_func || defined __stub___$ac_func
11604choke me
11605#endif
11606
11607int
11608main ()
11609{
11610return $ac_func ();
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext conftest$ac_exeext
11616if { (ac_try="$ac_link"
11617case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620esac
11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11630 { (case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11633esac
11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_try") 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest$ac_exeext'
11640 { (case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11643esac
11644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645 (eval "$ac_try") 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 eval "$as_ac_var=yes"
11650else
11651 echo "$as_me: failed program was:" >&5
11652sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 eval "$as_ac_var=no"
11655fi
11656
11657rm -f core conftest.err conftest.$ac_objext \
11658 conftest$ac_exeext conftest.$ac_ext
11659fi
11660ac_res=`eval echo '${'$as_ac_var'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662echo "${ECHO_T}$ac_res" >&6; }
11663if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011664 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011666_ACEOF
11667
11668fi
11669done
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011690
11691
11692
11693
11694
11695
11696
11697
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011698for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11699 stdio.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011700do
11701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707fi
11708ac_res=`eval echo '${'$as_ac_Header'}'`
11709 { echo "$as_me:$LINENO: result: $ac_res" >&5
11710echo "${ECHO_T}$ac_res" >&6; }
11711else
11712 # Is the header compilable?
11713{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11715cat >conftest.$ac_ext <<_ACEOF
11716/* confdefs.h. */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h. */
11721$ac_includes_default
11722#include <$ac_header>
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (ac_try="$ac_compile"
11726case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729esac
11730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_compile") 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11739 { (case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742esac
11743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_try") 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try='test -s conftest.$ac_objext'
11749 { (case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752esac
11753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_try") 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 ac_header_compiler=yes
11759else
11760 echo "$as_me: failed program was:" >&5
11761sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 ac_header_compiler=no
11764fi
11765
11766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11768echo "${ECHO_T}$ac_header_compiler" >&6; }
11769
11770# Is the header present?
11771{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11772echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11773cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779#include <$ac_header>
11780_ACEOF
11781if { (ac_try="$ac_cpp conftest.$ac_ext"
11782case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785esac
11786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } >/dev/null; then
11794 if test -s conftest.err; then
11795 ac_cpp_err=$ac_c_preproc_warn_flag
11796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11797 else
11798 ac_cpp_err=
11799 fi
11800else
11801 ac_cpp_err=yes
11802fi
11803if test -z "$ac_cpp_err"; then
11804 ac_header_preproc=yes
11805else
11806 echo "$as_me: failed program was:" >&5
11807sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 ac_header_preproc=no
11810fi
11811
11812rm -f conftest.err conftest.$ac_ext
11813{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11814echo "${ECHO_T}$ac_header_preproc" >&6; }
11815
11816# So? What about this header?
11817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11818 yes:no: )
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11820echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11822echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11823 ac_header_preproc=yes
11824 ;;
11825 no:yes:* )
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11829echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11831echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11833echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11837echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11838 ( cat <<\_ASBOX
11839## ----------------------------------- ##
11840## Report this to llvmbugs@cs.uiuc.edu ##
11841## ----------------------------------- ##
11842_ASBOX
11843 ) | sed "s/^/$as_me: WARNING: /" >&2
11844 ;;
11845esac
11846{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850else
11851 eval "$as_ac_Header=\$ac_header_preproc"
11852fi
11853ac_res=`eval echo '${'$as_ac_Header'}'`
11854 { echo "$as_me:$LINENO: result: $ac_res" >&5
11855echo "${ECHO_T}$ac_res" >&6; }
11856
11857fi
11858if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011859 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011860#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011861_ACEOF
11862
11863fi
11864
11865done
11866
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011867
11868
11869
11870
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011871for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000011872do
11873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11879fi
11880ac_res=`eval echo '${'$as_ac_Header'}'`
11881 { echo "$as_me:$LINENO: result: $ac_res" >&5
11882echo "${ECHO_T}$ac_res" >&6; }
11883else
11884 # Is the header compilable?
11885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11887cat >conftest.$ac_ext <<_ACEOF
11888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
11893$ac_includes_default
11894#include <$ac_header>
11895_ACEOF
11896rm -f conftest.$ac_objext
11897if { (ac_try="$ac_compile"
11898case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901esac
11902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_compile") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11911 { (case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914esac
11915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_try") 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest.$ac_objext'
11921 { (case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11924esac
11925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_try") 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_header_compiler=yes
11931else
11932 echo "$as_me: failed program was:" >&5
11933sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 ac_header_compiler=no
11936fi
11937
11938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11940echo "${ECHO_T}$ac_header_compiler" >&6; }
11941
11942# Is the header present?
11943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11945cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951#include <$ac_header>
11952_ACEOF
11953if { (ac_try="$ac_cpp conftest.$ac_ext"
11954case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957esac
11958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } >/dev/null; then
11966 if test -s conftest.err; then
11967 ac_cpp_err=$ac_c_preproc_warn_flag
11968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11969 else
11970 ac_cpp_err=
11971 fi
11972else
11973 ac_cpp_err=yes
11974fi
11975if test -z "$ac_cpp_err"; then
11976 ac_header_preproc=yes
11977else
11978 echo "$as_me: failed program was:" >&5
11979sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 ac_header_preproc=no
11982fi
11983
11984rm -f conftest.err conftest.$ac_ext
11985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11986echo "${ECHO_T}$ac_header_preproc" >&6; }
11987
11988# So? What about this header?
11989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11990 yes:no: )
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11995 ac_header_preproc=yes
11996 ;;
11997 no:yes:* )
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12001echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12005echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12010 ( cat <<\_ASBOX
12011## ----------------------------------- ##
12012## Report this to llvmbugs@cs.uiuc.edu ##
12013## ----------------------------------- ##
12014_ASBOX
12015 ) | sed "s/^/$as_me: WARNING: /" >&2
12016 ;;
12017esac
12018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023 eval "$as_ac_Header=\$ac_header_preproc"
12024fi
12025ac_res=`eval echo '${'$as_ac_Header'}'`
12026 { echo "$as_me:$LINENO: result: $ac_res" >&5
12027echo "${ECHO_T}$ac_res" >&6; }
12028
12029fi
12030if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012031 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012033_ACEOF
12034
12035fi
12036
12037done
12038
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012039
12040
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012041for ac_header in string.h strings.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012042do
12043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049fi
12050ac_res=`eval echo '${'$as_ac_Header'}'`
12051 { echo "$as_me:$LINENO: result: $ac_res" >&5
12052echo "${ECHO_T}$ac_res" >&6; }
12053else
12054 # Is the header compilable?
12055{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12057cat >conftest.$ac_ext <<_ACEOF
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
12063$ac_includes_default
12064#include <$ac_header>
12065_ACEOF
12066rm -f conftest.$ac_objext
12067if { (ac_try="$ac_compile"
12068case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071esac
12072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_compile") 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12084esac
12085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094esac
12095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_try") 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_header_compiler=yes
12101else
12102 echo "$as_me: failed program was:" >&5
12103sed 's/^/| /' conftest.$ac_ext >&5
12104
12105 ac_header_compiler=no
12106fi
12107
12108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12110echo "${ECHO_T}$ac_header_compiler" >&6; }
12111
12112# Is the header present?
12113{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12115cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
12121#include <$ac_header>
12122_ACEOF
12123if { (ac_try="$ac_cpp conftest.$ac_ext"
12124case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127esac
12128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } >/dev/null; then
12136 if test -s conftest.err; then
12137 ac_cpp_err=$ac_c_preproc_warn_flag
12138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12139 else
12140 ac_cpp_err=
12141 fi
12142else
12143 ac_cpp_err=yes
12144fi
12145if test -z "$ac_cpp_err"; then
12146 ac_header_preproc=yes
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 ac_header_preproc=no
12152fi
12153
12154rm -f conftest.err conftest.$ac_ext
12155{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12156echo "${ECHO_T}$ac_header_preproc" >&6; }
12157
12158# So? What about this header?
12159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12160 yes:no: )
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12165 ac_header_preproc=yes
12166 ;;
12167 no:yes:* )
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12180 ( cat <<\_ASBOX
12181## ----------------------------------- ##
12182## Report this to llvmbugs@cs.uiuc.edu ##
12183## ----------------------------------- ##
12184_ASBOX
12185 ) | sed "s/^/$as_me: WARNING: /" >&2
12186 ;;
12187esac
12188{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193 eval "$as_ac_Header=\$ac_header_preproc"
12194fi
12195ac_res=`eval echo '${'$as_ac_Header'}'`
12196 { echo "$as_me:$LINENO: result: $ac_res" >&5
12197echo "${ECHO_T}$ac_res" >&6; }
12198
12199fi
12200if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012201 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012203_ACEOF
12204 break
12205fi
12206
12207done
12208
12209
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012210
12211
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012212for ac_func in strchr index
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012213do
12214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220 cat >conftest.$ac_ext <<_ACEOF
12221/* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
12226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12228#define $ac_func innocuous_$ac_func
12229
12230/* System header to define __stub macros and hopefully few prototypes,
12231 which can conflict with char $ac_func (); below.
12232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233 <limits.h> exists even on freestanding compilers. */
12234
12235#ifdef __STDC__
12236# include <limits.h>
12237#else
12238# include <assert.h>
12239#endif
12240
12241#undef $ac_func
12242
12243/* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246#ifdef __cplusplus
12247extern "C"
12248#endif
12249char $ac_func ();
12250/* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253#if defined __stub_$ac_func || defined __stub___$ac_func
12254choke me
12255#endif
12256
12257int
12258main ()
12259{
12260return $ac_func ();
12261 ;
12262 return 0;
12263}
12264_ACEOF
12265rm -f conftest.$ac_objext conftest$ac_exeext
12266if { (ac_try="$ac_link"
12267case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270esac
12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283esac
12284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest$ac_exeext'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293esac
12294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 eval "$as_ac_var=yes"
12300else
12301 echo "$as_me: failed program was:" >&5
12302sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 eval "$as_ac_var=no"
12305fi
12306
12307rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309fi
12310ac_res=`eval echo '${'$as_ac_var'}'`
12311 { echo "$as_me:$LINENO: result: $ac_res" >&5
12312echo "${ECHO_T}$ac_res" >&6; }
12313if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012314 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012316_ACEOF
12317 break
12318fi
12319done
12320
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012321
12322
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012323for ac_func in strrchr rindex
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012324do
12325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330else
12331 cat >conftest.$ac_ext <<_ACEOF
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
12336/* end confdefs.h. */
12337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12339#define $ac_func innocuous_$ac_func
12340
12341/* System header to define __stub macros and hopefully few prototypes,
12342 which can conflict with char $ac_func (); below.
12343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344 <limits.h> exists even on freestanding compilers. */
12345
12346#ifdef __STDC__
12347# include <limits.h>
12348#else
12349# include <assert.h>
12350#endif
12351
12352#undef $ac_func
12353
12354/* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12357#ifdef __cplusplus
12358extern "C"
12359#endif
12360char $ac_func ();
12361/* The GNU C library defines this for functions which it implements
12362 to always fail with ENOSYS. Some functions are actually named
12363 something starting with __ and the normal name is an alias. */
12364#if defined __stub_$ac_func || defined __stub___$ac_func
12365choke me
12366#endif
12367
12368int
12369main ()
12370{
12371return $ac_func ();
12372 ;
12373 return 0;
12374}
12375_ACEOF
12376rm -f conftest.$ac_objext conftest$ac_exeext
12377if { (ac_try="$ac_link"
12378case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_link") 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394esac
12395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_try") 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404esac
12405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_try") 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 eval "$as_ac_var=yes"
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 eval "$as_ac_var=no"
12416fi
12417
12418rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420fi
12421ac_res=`eval echo '${'$as_ac_var'}'`
12422 { echo "$as_me:$LINENO: result: $ac_res" >&5
12423echo "${ECHO_T}$ac_res" >&6; }
12424if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012425 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012427_ACEOF
12428 break
12429fi
12430done
12431
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012432
12433
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012434for ac_func in memcpy bcopy
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012435do
12436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441else
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12450#define $ac_func innocuous_$ac_func
12451
12452/* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char $ac_func (); below.
12454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 <limits.h> exists even on freestanding compilers. */
12456
12457#ifdef __STDC__
12458# include <limits.h>
12459#else
12460# include <assert.h>
12461#endif
12462
12463#undef $ac_func
12464
12465/* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12468#ifdef __cplusplus
12469extern "C"
12470#endif
12471char $ac_func ();
12472/* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
12475#if defined __stub_$ac_func || defined __stub___$ac_func
12476choke me
12477#endif
12478
12479int
12480main ()
12481{
12482return $ac_func ();
12483 ;
12484 return 0;
12485}
12486_ACEOF
12487rm -f conftest.$ac_objext conftest$ac_exeext
12488if { (ac_try="$ac_link"
12489case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492esac
12493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505esac
12506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12515esac
12516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 eval "$as_ac_var=yes"
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 eval "$as_ac_var=no"
12527fi
12528
12529rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531fi
12532ac_res=`eval echo '${'$as_ac_var'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534echo "${ECHO_T}$ac_res" >&6; }
12535if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012536 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012538_ACEOF
12539 break
12540fi
12541done
12542
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012543
12544
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012545for ac_func in memmove strcmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012546do
12547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12548{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12550if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552else
12553 cat >conftest.$ac_ext <<_ACEOF
12554/* confdefs.h. */
12555_ACEOF
12556cat confdefs.h >>conftest.$ac_ext
12557cat >>conftest.$ac_ext <<_ACEOF
12558/* end confdefs.h. */
12559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12561#define $ac_func innocuous_$ac_func
12562
12563/* System header to define __stub macros and hopefully few prototypes,
12564 which can conflict with char $ac_func (); below.
12565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12566 <limits.h> exists even on freestanding compilers. */
12567
12568#ifdef __STDC__
12569# include <limits.h>
12570#else
12571# include <assert.h>
12572#endif
12573
12574#undef $ac_func
12575
12576/* Override any GCC internal prototype to avoid an error.
12577 Use char because int might match the return type of a GCC
12578 builtin and then its argument prototype would still apply. */
12579#ifdef __cplusplus
12580extern "C"
12581#endif
12582char $ac_func ();
12583/* The GNU C library defines this for functions which it implements
12584 to always fail with ENOSYS. Some functions are actually named
12585 something starting with __ and the normal name is an alias. */
12586#if defined __stub_$ac_func || defined __stub___$ac_func
12587choke me
12588#endif
12589
12590int
12591main ()
12592{
12593return $ac_func ();
12594 ;
12595 return 0;
12596}
12597_ACEOF
12598rm -f conftest.$ac_objext conftest$ac_exeext
12599if { (ac_try="$ac_link"
12600case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616esac
12617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest$ac_exeext'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626esac
12627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 eval "$as_ac_var=yes"
12633else
12634 echo "$as_me: failed program was:" >&5
12635sed 's/^/| /' conftest.$ac_ext >&5
12636
12637 eval "$as_ac_var=no"
12638fi
12639
12640rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642fi
12643ac_res=`eval echo '${'$as_ac_var'}'`
12644 { echo "$as_me:$LINENO: result: $ac_res" >&5
12645echo "${ECHO_T}$ac_res" >&6; }
12646if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012647 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012649_ACEOF
12650
12651fi
12652done
12653
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012654
12655
12656
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012657for ac_func in closedir opendir readdir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012658do
12659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12660{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12662if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664else
12665 cat >conftest.$ac_ext <<_ACEOF
12666/* confdefs.h. */
12667_ACEOF
12668cat confdefs.h >>conftest.$ac_ext
12669cat >>conftest.$ac_ext <<_ACEOF
12670/* end confdefs.h. */
12671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12673#define $ac_func innocuous_$ac_func
12674
12675/* System header to define __stub macros and hopefully few prototypes,
12676 which can conflict with char $ac_func (); below.
12677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12678 <limits.h> exists even on freestanding compilers. */
12679
12680#ifdef __STDC__
12681# include <limits.h>
12682#else
12683# include <assert.h>
12684#endif
12685
12686#undef $ac_func
12687
12688/* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12691#ifdef __cplusplus
12692extern "C"
12693#endif
12694char $ac_func ();
12695/* The GNU C library defines this for functions which it implements
12696 to always fail with ENOSYS. Some functions are actually named
12697 something starting with __ and the normal name is an alias. */
12698#if defined __stub_$ac_func || defined __stub___$ac_func
12699choke me
12700#endif
12701
12702int
12703main ()
12704{
12705return $ac_func ();
12706 ;
12707 return 0;
12708}
12709_ACEOF
12710rm -f conftest.$ac_objext conftest$ac_exeext
12711if { (ac_try="$ac_link"
12712case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715esac
12716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_link") 2>conftest.er1
12718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728esac
12729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_try") 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest$ac_exeext'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738esac
12739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 eval "$as_ac_var=yes"
12745else
12746 echo "$as_me: failed program was:" >&5
12747sed 's/^/| /' conftest.$ac_ext >&5
12748
12749 eval "$as_ac_var=no"
12750fi
12751
12752rm -f core conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12754fi
12755ac_res=`eval echo '${'$as_ac_var'}'`
12756 { echo "$as_me:$LINENO: result: $ac_res" >&5
12757echo "${ECHO_T}$ac_res" >&6; }
12758if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012759 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012760#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012761_ACEOF
12762
12763fi
12764done
12765
12766
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000012767
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012768if test "$WITH_LLVMGCCDIR" = "default" ; then
12769 LLVMGCC="llvm-gcc${EXEEXT}"
12770 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012771 LLVMGCCCOMMAND="$LLVMGCC"
12772 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012773 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12774
12775 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12776
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012777 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12778set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12781if test "${ac_cv_path_LLVMGCC+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012783else
12784 case $LLVMGCC in
12785 [\\/]* | ?:[\\/]*)
12786 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12787 ;;
12788 *)
12789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790for as_dir in $PATH
12791do
12792 IFS=$as_save_IFS
12793 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012794 for ac_exec_ext in '' $ac_executable_extensions; do
12795 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 +000012796 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012798 break 2
12799 fi
12800done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012801done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012802IFS=$as_save_IFS
12803
12804 ;;
12805esac
12806fi
12807LLVMGCC=$ac_cv_path_LLVMGCC
12808if test -n "$LLVMGCC"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012809 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12810echo "${ECHO_T}$LLVMGCC" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012811else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012812 { echo "$as_me:$LINENO: result: no" >&5
12813echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012814fi
12815
12816
12817 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12818set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12821if test "${ac_cv_path_LLVMGXX+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012823else
12824 case $LLVMGXX in
12825 [\\/]* | ?:[\\/]*)
12826 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12827 ;;
12828 *)
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830for as_dir in $PATH
12831do
12832 IFS=$as_save_IFS
12833 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012834 for ac_exec_ext in '' $ac_executable_extensions; do
12835 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 +000012836 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012838 break 2
12839 fi
12840done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012841done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012842IFS=$as_save_IFS
12843
12844 ;;
12845esac
12846fi
12847LLVMGXX=$ac_cv_path_LLVMGXX
12848if test -n "$LLVMGXX"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012849 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12850echo "${ECHO_T}$LLVMGXX" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012851else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012852 { echo "$as_me:$LINENO: result: no" >&5
12853echo "${ECHO_T}no" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012854fi
12855
12856
12857else
Devang Pateld84ba7b2007-12-04 22:54:47 +000012858 if test -z "$LLVMGCC"; then
12859 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012860 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012861 fi
12862 if test -z "$LLVMGXX"; then
12863 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012864 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000012865 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012866
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012867 LLVMGCC=$LLVMGCC
12868
12869 LLVMGXX=$LLVMGXX
12870
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012871 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12872
12873 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12874
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012875fi
12876
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000012877
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000012878# Check whether --with-llvmcc was given.
12879if test "${with_llvmcc+set}" = set; then
12880 withval=$with_llvmcc;
12881else
12882 with_llvmcc=check
12883fi
12884
12885{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12886echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12887if test "$with_llvmcc" != "check"; then
12888 if (test "$with_llvmcc" != "llvm-gcc" &&
12889 test "$with_llvmcc" != "clang" &&
12890 test "$with_llvmcc" != "none"); then
12891 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12892echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12893 { (exit 1); exit 1; }; }
12894 fi
12895 WITH_LLVMCC="$with_llvmcc"
12896elif test -n "$LLVMGCC"; then
12897 WITH_LLVMCC=llvm-gcc
12898elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12899 WITH_LLVMCC=clang
12900else
12901 WITH_LLVMCC=none
12902fi
12903{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12904echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12905LLVMCC_OPTION=$WITH_LLVMCC
12906
12907
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012908{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12909echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012910
12911ICC=no
12912IXX=no
12913case $CC in
12914 icc*|icpc*)
12915 ICC=yes
12916 IXX=yes
12917 ;;
12918 *)
12919 ;;
12920esac
12921
12922if test "$GCC" != "yes" && test "$ICC" != "yes"
12923then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012924 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12925echo "$as_me: error: gcc|icc required but not found" >&2;}
12926 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012927fi
12928
12929if test "$GXX" != "yes" && test "$IXX" != "yes"
12930then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012931 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12932echo "$as_me: error: g++|icc required but not found" >&2;}
12933 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012934fi
12935
12936if test "$GCC" = "yes"
12937then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012938 cat >conftest.$ac_ext <<_ACEOF
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012939#if !defined(__GNUC__) || __GNUC__ < 3
12940#error Unsupported GCC version
12941#endif
12942
12943_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012944rm -f conftest.$ac_objext
12945if { (ac_try="$ac_compile"
12946case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12949esac
12950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_compile") 2>conftest.er1
12952 ac_status=$?
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12959 { (case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962esac
12963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_try") 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest.$ac_objext'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972esac
12973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12978 :
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012979else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012980 echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
12983 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12984echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12985 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012986fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012987
Chris Lattnerf0ddba82008-02-05 19:43:53 +000012988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012989fi
12990
12991if test -z "$llvm_cv_gnu_make_command"
12992then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012993 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12994echo "$as_me: error: GNU Make required but not found" >&2;}
12995 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012996fi
12997
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000012998{ echo "$as_me:$LINENO: result: ok" >&5
12999echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013000
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013001{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13002echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000013003NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13004
13005NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13006
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013007{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13008echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerougec3f1ce92009-10-26 20:00:35 +000013009
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000013010
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013011
13012{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13013echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13014if test "${ac_cv_lib_m_sin+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013016else
13017 ac_check_lib_save_LIBS=$LIBS
13018LIBS="-lm $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013019cat >conftest.$ac_ext <<_ACEOF
13020/* confdefs.h. */
13021_ACEOF
13022cat confdefs.h >>conftest.$ac_ext
13023cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013024/* end confdefs.h. */
13025
13026/* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13029#ifdef __cplusplus
13030extern "C"
13031#endif
13032char sin ();
13033int
13034main ()
13035{
13036return sin ();
13037 ;
13038 return 0;
13039}
13040_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013041rm -f conftest.$ac_objext conftest$ac_exeext
13042if { (ac_try="$ac_link"
13043case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046esac
13047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_link") 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13056 { (case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_try") 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069esac
13070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_try") 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013075 ac_cv_lib_m_sin=yes
13076else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013077 echo "$as_me: failed program was:" >&5
13078sed 's/^/| /' conftest.$ac_ext >&5
13079
13080 ac_cv_lib_m_sin=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013081fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013082
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013083rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013084 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013085LIBS=$ac_check_lib_save_LIBS
13086fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013087{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13088echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13089if test $ac_cv_lib_m_sin = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013090 cat >>confdefs.h <<_ACEOF
13091#define HAVE_LIBM 1
13092_ACEOF
13093
13094 LIBS="-lm $LIBS"
13095
13096fi
13097
13098if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013099
13100{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13101echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13102if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013104else
13105 ac_check_lib_save_LIBS=$LIBS
13106LIBS="-limagehlp $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013107cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013112/* end confdefs.h. */
13113
13114
13115int
13116main ()
13117{
13118return main ();
13119 ;
13120 return 0;
13121}
13122_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013123rm -f conftest.$ac_objext conftest$ac_exeext
13124if { (ac_try="$ac_link"
13125case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13128esac
13129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141esac
13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13151esac
13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013157 ac_cv_lib_imagehlp_main=yes
13158else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 ac_cv_lib_imagehlp_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013163fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013164
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013165rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013166 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013167LIBS=$ac_check_lib_save_LIBS
13168fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013169{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13170echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13171if test $ac_cv_lib_imagehlp_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013172 cat >>confdefs.h <<_ACEOF
13173#define HAVE_LIBIMAGEHLP 1
13174_ACEOF
13175
13176 LIBS="-limagehlp $LIBS"
13177
13178fi
13179
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013180
13181{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13182echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13183if test "${ac_cv_lib_psapi_main+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013185else
13186 ac_check_lib_save_LIBS=$LIBS
13187LIBS="-lpsapi $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013188cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013193/* end confdefs.h. */
13194
13195
13196int
13197main ()
13198{
13199return main ();
13200 ;
13201 return 0;
13202}
13203_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013204rm -f conftest.$ac_objext conftest$ac_exeext
13205if { (ac_try="$ac_link"
13206case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209esac
13210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_link") 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13219 { (case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_try") 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; } &&
13228 { ac_try='test -s conftest$ac_exeext'
13229 { (case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13232esac
13233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_try") 2>&5
13235 ac_status=$?
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013238 ac_cv_lib_psapi_main=yes
13239else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013240 echo "$as_me: failed program was:" >&5
13241sed 's/^/| /' conftest.$ac_ext >&5
13242
13243 ac_cv_lib_psapi_main=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013244fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013245
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013246rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013247 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013248LIBS=$ac_check_lib_save_LIBS
13249fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013250{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13251echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13252if test $ac_cv_lib_psapi_main = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013253 cat >>confdefs.h <<_ACEOF
13254#define HAVE_LIBPSAPI 1
13255_ACEOF
13256
13257 LIBS="-lpsapi $LIBS"
13258
13259fi
13260
13261fi
13262
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013263{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13264echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13265if test "${ac_cv_search_dlopen+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013267else
13268 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013269cat >conftest.$ac_ext <<_ACEOF
13270/* confdefs.h. */
13271_ACEOF
13272cat confdefs.h >>conftest.$ac_ext
13273cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013274/* end confdefs.h. */
13275
13276/* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13279#ifdef __cplusplus
13280extern "C"
13281#endif
13282char dlopen ();
13283int
13284main ()
13285{
13286return dlopen ();
13287 ;
13288 return 0;
13289}
13290_ACEOF
13291for ac_lib in '' dl; do
13292 if test -z "$ac_lib"; then
13293 ac_res="none required"
13294 else
13295 ac_res=-l$ac_lib
13296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13297 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013298 rm -f conftest.$ac_objext conftest$ac_exeext
13299if { (ac_try="$ac_link"
13300case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303esac
13304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_link") 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13313 { (case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13316esac
13317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_try") 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest$ac_exeext'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326esac
13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013332 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013333else
13334 echo "$as_me: failed program was:" >&5
13335sed 's/^/| /' conftest.$ac_ext >&5
13336
13337
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013338fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013339
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013340rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013341 conftest$ac_exeext
13342 if test "${ac_cv_search_dlopen+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013343 break
13344fi
13345done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013346if test "${ac_cv_search_dlopen+set}" = set; then
13347 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013348else
13349 ac_cv_search_dlopen=no
13350fi
13351rm conftest.$ac_ext
13352LIBS=$ac_func_search_save_LIBS
13353fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013354{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13355echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013356ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013357if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13359
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013360cat >>confdefs.h <<\_ACEOF
13361#define HAVE_DLOPEN 1
13362_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013363
13364else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013365 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13366echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013367fi
13368
13369
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013370if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013371 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13372echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13373if test "${ac_cv_search_ffi_call+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky0235b622009-02-04 06:27:44 +000013375else
Nick Lewycky6c58a402009-04-13 04:26:27 +000013376 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013377cat >conftest.$ac_ext <<_ACEOF
13378/* confdefs.h. */
13379_ACEOF
13380cat confdefs.h >>conftest.$ac_ext
13381cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000013382/* end confdefs.h. */
13383
13384/* Override any GCC internal prototype to avoid an error.
13385 Use char because int might match the return type of a GCC
13386 builtin and then its argument prototype would still apply. */
13387#ifdef __cplusplus
13388extern "C"
13389#endif
13390char ffi_call ();
13391int
13392main ()
13393{
13394return ffi_call ();
13395 ;
13396 return 0;
13397}
13398_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013399for ac_lib in '' ffi; do
13400 if test -z "$ac_lib"; then
13401 ac_res="none required"
13402 else
13403 ac_res=-l$ac_lib
13404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13405 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013406 rm -f conftest.$ac_objext conftest$ac_exeext
13407if { (ac_try="$ac_link"
13408case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411esac
13412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_link") 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13424esac
13425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest$ac_exeext'
13431 { (case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13434esac
13435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_try") 2>&5
13437 ac_status=$?
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013440 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013441else
13442 echo "$as_me: failed program was:" >&5
13443sed 's/^/| /' conftest.$ac_ext >&5
13444
13445
Nick Lewycky0235b622009-02-04 06:27:44 +000013446fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013447
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013448rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013449 conftest$ac_exeext
13450 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013451 break
Nick Lewycky0235b622009-02-04 06:27:44 +000013452fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000013453done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013454if test "${ac_cv_search_ffi_call+set}" = set; then
13455 :
Nick Lewycky6c58a402009-04-13 04:26:27 +000013456else
13457 ac_cv_search_ffi_call=no
13458fi
13459rm conftest.$ac_ext
13460LIBS=$ac_func_search_save_LIBS
13461fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013462{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13463echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky6c58a402009-04-13 04:26:27 +000013464ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013465if test "$ac_res" != no; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000013466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13467
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013468cat >>confdefs.h <<\_ACEOF
13469#define HAVE_FFI_CALL 1
13470_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000013471
Nick Lewycky0235b622009-02-04 06:27:44 +000013472else
Jeffrey Yasskin260af332010-02-09 23:03:44 +000013473 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13474echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13475 { (exit 1); exit 1; }; }
Nick Lewycky0235b622009-02-04 06:27:44 +000013476fi
13477
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000013478fi
Nick Lewycky0235b622009-02-04 06:27:44 +000013479
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013480{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13481echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13482if test "${ac_cv_search_mallinfo+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013484else
13485 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013486cat >conftest.$ac_ext <<_ACEOF
13487/* confdefs.h. */
13488_ACEOF
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013491/* end confdefs.h. */
13492
13493/* Override any GCC internal prototype to avoid an error.
13494 Use char because int might match the return type of a GCC
13495 builtin and then its argument prototype would still apply. */
13496#ifdef __cplusplus
13497extern "C"
13498#endif
13499char mallinfo ();
13500int
13501main ()
13502{
13503return mallinfo ();
13504 ;
13505 return 0;
13506}
13507_ACEOF
13508for ac_lib in '' malloc; do
13509 if test -z "$ac_lib"; then
13510 ac_res="none required"
13511 else
13512 ac_res=-l$ac_lib
13513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13514 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013515 rm -f conftest.$ac_objext conftest$ac_exeext
13516if { (ac_try="$ac_link"
13517case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_link") 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13530 { (case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13533esac
13534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_try") 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest$ac_exeext'
13540 { (case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13543esac
13544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_try") 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013549 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013550else
13551 echo "$as_me: failed program was:" >&5
13552sed 's/^/| /' conftest.$ac_ext >&5
13553
13554
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013555fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013556
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013557rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013558 conftest$ac_exeext
13559 if test "${ac_cv_search_mallinfo+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013560 break
13561fi
13562done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013563if test "${ac_cv_search_mallinfo+set}" = set; then
13564 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013565else
13566 ac_cv_search_mallinfo=no
13567fi
13568rm conftest.$ac_ext
13569LIBS=$ac_func_search_save_LIBS
13570fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013571{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13572echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013573ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013574if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13576
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013577cat >>confdefs.h <<\_ACEOF
13578#define HAVE_MALLINFO 1
13579_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013580
13581fi
13582
13583
13584if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013585
13586{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13587echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13588if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013590else
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013591 ac_check_lib_save_LIBS=$LIBS
13592LIBS="-lpthread $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013593cat >conftest.$ac_ext <<_ACEOF
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013598/* end confdefs.h. */
13599
13600/* Override any GCC internal prototype to avoid an error.
13601 Use char because int might match the return type of a GCC
13602 builtin and then its argument prototype would still apply. */
13603#ifdef __cplusplus
13604extern "C"
13605#endif
13606char pthread_mutex_init ();
13607int
13608main ()
13609{
13610return pthread_mutex_init ();
13611 ;
13612 return 0;
13613}
13614_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013615rm -f conftest.$ac_objext conftest$ac_exeext
13616if { (ac_try="$ac_link"
13617case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_link") 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13630 { (case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13633esac
13634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_try") 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; } &&
13639 { ac_try='test -s conftest$ac_exeext'
13640 { (case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_try") 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013649 ac_cv_lib_pthread_pthread_mutex_init=yes
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013650else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013651 echo "$as_me: failed program was:" >&5
13652sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 ac_cv_lib_pthread_pthread_mutex_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013655fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013656
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013657rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013658 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013659LIBS=$ac_check_lib_save_LIBS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013660fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013661{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13662echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13663if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013664 cat >>confdefs.h <<_ACEOF
13665#define HAVE_LIBPTHREAD 1
Edward O'Callaghan8cd10be2009-10-13 01:01:38 +000013666_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013667
Edward O'Callaghanf6934772009-10-14 11:12:33 +000013668 LIBS="-lpthread $LIBS"
13669
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013670fi
13671
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013672 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13673echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13674if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013676else
13677 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013678cat >conftest.$ac_ext <<_ACEOF
13679/* confdefs.h. */
13680_ACEOF
13681cat confdefs.h >>conftest.$ac_ext
13682cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013683/* end confdefs.h. */
13684
13685/* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13688#ifdef __cplusplus
13689extern "C"
13690#endif
13691char pthread_mutex_lock ();
13692int
13693main ()
13694{
13695return pthread_mutex_lock ();
13696 ;
13697 return 0;
13698}
13699_ACEOF
13700for ac_lib in '' pthread; do
13701 if test -z "$ac_lib"; then
13702 ac_res="none required"
13703 else
13704 ac_res=-l$ac_lib
13705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13706 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013707 rm -f conftest.$ac_objext conftest$ac_exeext
13708if { (ac_try="$ac_link"
13709case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_link") 2>conftest.er1
13715 ac_status=$?
13716 grep -v '^ *+' conftest.er1 >conftest.err
13717 rm -f conftest.er1
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13722 { (case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13725esac
13726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_try") 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest$ac_exeext'
13732 { (case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735esac
13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_try") 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013741 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013742else
13743 echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013747fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013748
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013749rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013750 conftest$ac_exeext
13751 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013752 break
13753fi
13754done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013755if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13756 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013757else
13758 ac_cv_search_pthread_mutex_lock=no
13759fi
13760rm conftest.$ac_ext
13761LIBS=$ac_func_search_save_LIBS
13762fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013763{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13764echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013765ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013766if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13768
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013769cat >>confdefs.h <<\_ACEOF
13770#define HAVE_PTHREAD_MUTEX_LOCK 1
13771_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013772
13773fi
13774
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013775 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13776echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13777if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson23c36602009-06-16 18:20:20 +000013779else
13780 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013781cat >conftest.$ac_ext <<_ACEOF
13782/* confdefs.h. */
13783_ACEOF
13784cat confdefs.h >>conftest.$ac_ext
13785cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013786/* end confdefs.h. */
13787
13788/* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13791#ifdef __cplusplus
13792extern "C"
13793#endif
13794char pthread_rwlock_init ();
13795int
13796main ()
13797{
13798return pthread_rwlock_init ();
13799 ;
13800 return 0;
13801}
13802_ACEOF
13803for ac_lib in '' pthread; do
13804 if test -z "$ac_lib"; then
13805 ac_res="none required"
13806 else
13807 ac_res=-l$ac_lib
13808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13809 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013810 rm -f conftest.$ac_objext conftest$ac_exeext
13811if { (ac_try="$ac_link"
13812case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815esac
13816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_link") 2>conftest.er1
13818 ac_status=$?
13819 grep -v '^ *+' conftest.er1 >conftest.err
13820 rm -f conftest.er1
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13825 { (case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828esac
13829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_try") 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest$ac_exeext'
13835 { (case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13838esac
13839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_try") 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
Owen Anderson23c36602009-06-16 18:20:20 +000013844 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013845else
13846 echo "$as_me: failed program was:" >&5
13847sed 's/^/| /' conftest.$ac_ext >&5
13848
13849
Owen Anderson23c36602009-06-16 18:20:20 +000013850fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013851
Owen Anderson23c36602009-06-16 18:20:20 +000013852rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013853 conftest$ac_exeext
13854 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Anderson23c36602009-06-16 18:20:20 +000013855 break
13856fi
13857done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013858if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13859 :
Owen Anderson23c36602009-06-16 18:20:20 +000013860else
13861 ac_cv_search_pthread_rwlock_init=no
13862fi
13863rm conftest.$ac_ext
13864LIBS=$ac_func_search_save_LIBS
13865fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013866{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13867echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Anderson23c36602009-06-16 18:20:20 +000013868ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013869if test "$ac_res" != no; then
Owen Anderson23c36602009-06-16 18:20:20 +000013870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13871
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013872cat >>confdefs.h <<\_ACEOF
13873#define HAVE_PTHREAD_RWLOCK_INIT 1
13874_ACEOF
Owen Anderson23c36602009-06-16 18:20:20 +000013875
13876fi
13877
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013878 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13879echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13880if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersoncc135af2009-06-25 23:10:26 +000013882else
13883 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013884cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000013889/* end confdefs.h. */
13890
13891/* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13894#ifdef __cplusplus
13895extern "C"
13896#endif
13897char pthread_getspecific ();
13898int
13899main ()
13900{
13901return pthread_getspecific ();
13902 ;
13903 return 0;
13904}
13905_ACEOF
13906for ac_lib in '' pthread; do
13907 if test -z "$ac_lib"; then
13908 ac_res="none required"
13909 else
13910 ac_res=-l$ac_lib
13911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13912 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013913 rm -f conftest.$ac_objext conftest$ac_exeext
13914if { (ac_try="$ac_link"
13915case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13918esac
13919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_link") 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931esac
13932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941esac
13942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013947 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013948else
13949 echo "$as_me: failed program was:" >&5
13950sed 's/^/| /' conftest.$ac_ext >&5
13951
13952
Owen Andersoncc135af2009-06-25 23:10:26 +000013953fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013954
Owen Andersoncc135af2009-06-25 23:10:26 +000013955rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013956 conftest$ac_exeext
13957 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013958 break
13959fi
13960done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013961if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13962 :
Owen Andersoncc135af2009-06-25 23:10:26 +000013963else
13964 ac_cv_search_pthread_getspecific=no
13965fi
13966rm conftest.$ac_ext
13967LIBS=$ac_func_search_save_LIBS
13968fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013969{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13970echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Andersoncc135af2009-06-25 23:10:26 +000013971ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013972if test "$ac_res" != no; then
Owen Andersoncc135af2009-06-25 23:10:26 +000013973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13974
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013975cat >>confdefs.h <<\_ACEOF
13976#define HAVE_PTHREAD_GETSPECIFIC 1
13977_ACEOF
Owen Andersoncc135af2009-06-25 23:10:26 +000013978
13979fi
13980
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013981fi
13982
13983
13984# Check whether --with-udis86 was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013985if test "${with_udis86+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013986 withval=$with_udis86;
13987 USE_UDIS86=1
13988
13989 case "$withval" in
13990 /usr/lib|yes) ;;
13991 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13992 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000013993
13994{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13995echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13996if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013998else
13999 ac_check_lib_save_LIBS=$LIBS
14000LIBS="-ludis86 $LIBS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014001cat >conftest.$ac_ext <<_ACEOF
14002/* confdefs.h. */
14003_ACEOF
14004cat confdefs.h >>conftest.$ac_ext
14005cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014006/* end confdefs.h. */
14007
14008/* Override any GCC internal prototype to avoid an error.
14009 Use char because int might match the return type of a GCC
14010 builtin and then its argument prototype would still apply. */
14011#ifdef __cplusplus
14012extern "C"
14013#endif
14014char ud_init ();
14015int
14016main ()
14017{
14018return ud_init ();
14019 ;
14020 return 0;
14021}
14022_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014023rm -f conftest.$ac_objext conftest$ac_exeext
14024if { (ac_try="$ac_link"
14025case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028esac
14029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_link") 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14038 { (case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14041esac
14042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_try") 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest$ac_exeext'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051esac
14052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014057 ac_cv_lib_udis86_ud_init=yes
14058else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014059 echo "$as_me: failed program was:" >&5
14060sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_cv_lib_udis86_ud_init=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014063fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014064
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014065rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014066 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014067LIBS=$ac_check_lib_save_LIBS
14068fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014069{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14070echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14071if test $ac_cv_lib_udis86_ud_init = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014072 cat >>confdefs.h <<_ACEOF
14073#define HAVE_LIBUDIS86 1
14074_ACEOF
14075
14076 LIBS="-ludis86 $LIBS"
14077
14078else
14079
14080 echo "Error! You need to have libudis86 around."
14081 exit -1
14082
14083fi
14084
14085
14086else
14087 USE_UDIS86=0
14088
14089fi
14090
14091
14092cat >>confdefs.h <<_ACEOF
14093#define USE_UDIS86 $USE_UDIS86
14094_ACEOF
14095
14096
14097
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014098# Check whether --with-oprofile was given.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014099if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014100 withval=$with_oprofile;
14101 USE_OPROFILE=1
14102
14103 case "$withval" in
14104 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014105 no) llvm_cv_oppath=
14106 USE_OPROFILE=0
14107 ;;
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014108 *) llvm_cv_oppath="${withval}/lib/oprofile"
14109 CPPFLAGS="-I${withval}/include";;
14110 esac
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014111 if test -n "$llvm_cv_oppath" ; then
14112 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014113 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14114echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14115if test "${ac_cv_search_bfd_init+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014117else
14118 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014119cat >conftest.$ac_ext <<_ACEOF
14120/* confdefs.h. */
14121_ACEOF
14122cat confdefs.h >>conftest.$ac_ext
14123cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014124/* end confdefs.h. */
14125
14126/* Override any GCC internal prototype to avoid an error.
14127 Use char because int might match the return type of a GCC
14128 builtin and then its argument prototype would still apply. */
14129#ifdef __cplusplus
14130extern "C"
14131#endif
14132char bfd_init ();
14133int
14134main ()
14135{
14136return bfd_init ();
14137 ;
14138 return 0;
14139}
14140_ACEOF
14141for ac_lib in '' bfd; do
14142 if test -z "$ac_lib"; then
14143 ac_res="none required"
14144 else
14145 ac_res=-l$ac_lib
14146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14147 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014148 rm -f conftest.$ac_objext conftest$ac_exeext
14149if { (ac_try="$ac_link"
14150case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153esac
14154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_link") 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14163 { (case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166esac
14167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_try") 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest$ac_exeext'
14173 { (case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176esac
14177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_try") 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014182 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014183else
14184 echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014188fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014189
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014190rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014191 conftest$ac_exeext
14192 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014193 break
14194fi
14195done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014196if test "${ac_cv_search_bfd_init+set}" = set; then
14197 :
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014198else
14199 ac_cv_search_bfd_init=no
14200fi
14201rm conftest.$ac_ext
14202LIBS=$ac_func_search_save_LIBS
14203fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014204{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14205echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014206ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014207if test "$ac_res" != no; then
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14209
14210fi
14211
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014212 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14213echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14214if test "${ac_cv_search_op_open_agent+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014216else
14217 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014218cat >conftest.$ac_ext <<_ACEOF
14219/* confdefs.h. */
14220_ACEOF
14221cat confdefs.h >>conftest.$ac_ext
14222cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014223/* end confdefs.h. */
14224
14225/* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14228#ifdef __cplusplus
14229extern "C"
14230#endif
14231char op_open_agent ();
14232int
14233main ()
14234{
14235return op_open_agent ();
14236 ;
14237 return 0;
14238}
14239_ACEOF
14240for ac_lib in '' opagent; do
14241 if test -z "$ac_lib"; then
14242 ac_res="none required"
14243 else
14244 ac_res=-l$ac_lib
14245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14246 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014247 rm -f conftest.$ac_objext conftest$ac_exeext
14248if { (ac_try="$ac_link"
14249case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252esac
14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_link") 2>conftest.er1
14255 ac_status=$?
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
14261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265esac
14266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; } &&
14271 { ac_try='test -s conftest$ac_exeext'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14275esac
14276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014281 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014282else
14283 echo "$as_me: failed program was:" >&5
14284sed 's/^/| /' conftest.$ac_ext >&5
14285
14286
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014287fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014288
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014289rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014290 conftest$ac_exeext
14291 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014292 break
14293fi
14294done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014295if test "${ac_cv_search_op_open_agent+set}" = set; then
14296 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014297else
14298 ac_cv_search_op_open_agent=no
14299fi
14300rm conftest.$ac_ext
14301LIBS=$ac_func_search_save_LIBS
14302fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014303{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14304echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014305ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014306if test "$ac_res" != no; then
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14308
14309else
14310
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014311 echo "Error! You need to have libopagent around."
14312 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014313
14314fi
14315
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014316 if test "${ac_cv_header_opagent_h+set}" = set; then
14317 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14318echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14319if test "${ac_cv_header_opagent_h+set}" = set; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14321fi
14322{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14323echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14324else
14325 # Is the header compilable?
14326{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14327echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14328cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334$ac_includes_default
14335#include <opagent.h>
14336_ACEOF
14337rm -f conftest.$ac_objext
14338if { (ac_try="$ac_compile"
14339case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14342esac
14343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_compile") 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14355esac
14356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest.$ac_objext'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14365esac
14366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_header_compiler=yes
14372else
14373 echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014375
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014376 ac_header_compiler=no
14377fi
14378
14379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14381echo "${ECHO_T}$ac_header_compiler" >&6; }
14382
14383# Is the header present?
14384{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14385echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14386cat >conftest.$ac_ext <<_ACEOF
14387/* confdefs.h. */
14388_ACEOF
14389cat confdefs.h >>conftest.$ac_ext
14390cat >>conftest.$ac_ext <<_ACEOF
14391/* end confdefs.h. */
14392#include <opagent.h>
14393_ACEOF
14394if { (ac_try="$ac_cpp conftest.$ac_ext"
14395case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14398esac
14399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev/null; then
14407 if test -s conftest.err; then
14408 ac_cpp_err=$ac_c_preproc_warn_flag
14409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14410 else
14411 ac_cpp_err=
14412 fi
14413else
14414 ac_cpp_err=yes
14415fi
14416if test -z "$ac_cpp_err"; then
14417 ac_header_preproc=yes
14418else
14419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 ac_header_preproc=no
14423fi
14424
14425rm -f conftest.err conftest.$ac_ext
14426{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14427echo "${ECHO_T}$ac_header_preproc" >&6; }
14428
14429# So? What about this header?
14430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14431 yes:no: )
14432 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14433echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14435echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14436 ac_header_preproc=yes
14437 ;;
14438 no:yes:* )
14439 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14440echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14442echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14444echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14446echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14448echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14450echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14451 ( cat <<\_ASBOX
14452## ----------------------------------- ##
14453## Report this to llvmbugs@cs.uiuc.edu ##
14454## ----------------------------------- ##
14455_ASBOX
14456 ) | sed "s/^/$as_me: WARNING: /" >&2
14457 ;;
14458esac
14459{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14460echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14461if test "${ac_cv_header_opagent_h+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463else
14464 ac_cv_header_opagent_h=$ac_header_preproc
14465fi
14466{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14467echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14468
14469fi
14470if test $ac_cv_header_opagent_h = yes; then
14471 :
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014472else
14473
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014474 echo "Error! You need to have opagent.h around."
14475 exit -1
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014476
14477fi
14478
14479
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014480 fi
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014481
14482else
14483
Jeffrey Yasskined8f6832009-10-07 23:22:42 +000014484 USE_OPROFILE=0
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014485
14486
14487fi
14488
14489
14490cat >>confdefs.h <<_ACEOF
14491#define USE_OPROFILE $USE_OPROFILE
14492_ACEOF
14493
14494
14495
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014496
14497
14498
14499
14500
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014501ac_header_dirent=no
14502for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014503 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14504{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14505echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014508else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014509 cat >conftest.$ac_ext <<_ACEOF
14510/* confdefs.h. */
14511_ACEOF
14512cat confdefs.h >>conftest.$ac_ext
14513cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014514/* end confdefs.h. */
14515#include <sys/types.h>
14516#include <$ac_hdr>
14517
14518int
14519main ()
14520{
14521if ((DIR *) 0)
14522return 0;
14523 ;
14524 return 0;
14525}
14526_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014527rm -f conftest.$ac_objext
14528if { (ac_try="$ac_compile"
14529case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532esac
14533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_compile") 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545esac
14546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555esac
14556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_try") 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014561 eval "$as_ac_Header=yes"
14562else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014563 echo "$as_me: failed program was:" >&5
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 eval "$as_ac_Header=no"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014567fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014568
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014571ac_res=`eval echo '${'$as_ac_Header'}'`
14572 { echo "$as_me:$LINENO: result: $ac_res" >&5
14573echo "${ECHO_T}$ac_res" >&6; }
14574if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014575 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014576#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014577_ACEOF
14578
14579ac_header_dirent=$ac_hdr; break
14580fi
14581
14582done
14583# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14584if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014585 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14586echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14587if test "${ac_cv_search_opendir+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014589else
14590 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014591cat >conftest.$ac_ext <<_ACEOF
14592/* confdefs.h. */
14593_ACEOF
14594cat confdefs.h >>conftest.$ac_ext
14595cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014596/* end confdefs.h. */
14597
14598/* Override any GCC internal prototype to avoid an error.
14599 Use char because int might match the return type of a GCC
14600 builtin and then its argument prototype would still apply. */
14601#ifdef __cplusplus
14602extern "C"
14603#endif
14604char opendir ();
14605int
14606main ()
14607{
14608return opendir ();
14609 ;
14610 return 0;
14611}
14612_ACEOF
14613for ac_lib in '' dir; do
14614 if test -z "$ac_lib"; then
14615 ac_res="none required"
14616 else
14617 ac_res=-l$ac_lib
14618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14619 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014620 rm -f conftest.$ac_objext conftest$ac_exeext
14621if { (ac_try="$ac_link"
14622case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14625esac
14626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_link") 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638esac
14639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try='test -s conftest$ac_exeext'
14645 { (case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14648esac
14649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650 (eval "$ac_try") 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014654 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014655else
14656 echo "$as_me: failed program was:" >&5
14657sed 's/^/| /' conftest.$ac_ext >&5
14658
14659
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014660fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014661
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014662rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014663 conftest$ac_exeext
14664 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014665 break
14666fi
14667done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014668if test "${ac_cv_search_opendir+set}" = set; then
14669 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014670else
14671 ac_cv_search_opendir=no
14672fi
14673rm conftest.$ac_ext
14674LIBS=$ac_func_search_save_LIBS
14675fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014676{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14677echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014678ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014679if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14681
14682fi
14683
14684else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014685 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14686echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14687if test "${ac_cv_search_opendir+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014689else
14690 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014691cat >conftest.$ac_ext <<_ACEOF
14692/* confdefs.h. */
14693_ACEOF
14694cat confdefs.h >>conftest.$ac_ext
14695cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014696/* end confdefs.h. */
14697
14698/* Override any GCC internal prototype to avoid an error.
14699 Use char because int might match the return type of a GCC
14700 builtin and then its argument prototype would still apply. */
14701#ifdef __cplusplus
14702extern "C"
14703#endif
14704char opendir ();
14705int
14706main ()
14707{
14708return opendir ();
14709 ;
14710 return 0;
14711}
14712_ACEOF
14713for ac_lib in '' x; do
14714 if test -z "$ac_lib"; then
14715 ac_res="none required"
14716 else
14717 ac_res=-l$ac_lib
14718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14719 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014720 rm -f conftest.$ac_objext conftest$ac_exeext
14721if { (ac_try="$ac_link"
14722case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725esac
14726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_link") 2>conftest.er1
14728 ac_status=$?
14729 grep -v '^ *+' conftest.er1 >conftest.err
14730 rm -f conftest.er1
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14735 { (case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14738esac
14739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_try") 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; } &&
14744 { ac_try='test -s conftest$ac_exeext'
14745 { (case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14748esac
14749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_try") 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014754 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014755else
14756 echo "$as_me: failed program was:" >&5
14757sed 's/^/| /' conftest.$ac_ext >&5
14758
14759
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014760fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014761
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014762rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014763 conftest$ac_exeext
14764 if test "${ac_cv_search_opendir+set}" = set; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014765 break
14766fi
14767done
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014768if test "${ac_cv_search_opendir+set}" = set; then
14769 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014770else
14771 ac_cv_search_opendir=no
14772fi
14773rm conftest.$ac_ext
14774LIBS=$ac_func_search_save_LIBS
14775fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014776{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14777echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014778ac_res=$ac_cv_search_opendir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014779if test "$ac_res" != no; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14781
14782fi
14783
14784fi
14785
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014786{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14787echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14788if test "${ac_cv_header_mmap_anon+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014790else
14791 ac_ext=c
14792ac_cpp='$CPP $CPPFLAGS'
14793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14795ac_compiler_gnu=$ac_cv_c_compiler_gnu
14796
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014797 cat >conftest.$ac_ext <<_ACEOF
14798/* confdefs.h. */
14799_ACEOF
14800cat confdefs.h >>conftest.$ac_ext
14801cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014802/* end confdefs.h. */
14803#include <sys/mman.h>
14804#include <unistd.h>
14805#include <fcntl.h>
14806int
14807main ()
14808{
14809mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14810 ;
14811 return 0;
14812}
14813_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014814rm -f conftest.$ac_objext
14815if { (ac_try="$ac_compile"
14816case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14819esac
14820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_compile") 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14829 { (case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832esac
14833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_try") 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest.$ac_objext'
14839 { (case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14842esac
14843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_try") 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014848 ac_cv_header_mmap_anon=yes
14849else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014850 echo "$as_me: failed program was:" >&5
14851sed 's/^/| /' conftest.$ac_ext >&5
14852
14853 ac_cv_header_mmap_anon=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014854fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014855
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 ac_ext=c
14858ac_cpp='$CPP $CPPFLAGS'
14859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14861ac_compiler_gnu=$ac_cv_c_compiler_gnu
14862
14863
14864fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014865{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14866echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014867if test "$ac_cv_header_mmap_anon" = yes; then
14868
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014869cat >>confdefs.h <<\_ACEOF
14870#define HAVE_MMAP_ANONYMOUS 1
14871_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014872
14873fi
14874
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014875{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14876echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14877if test "${ac_cv_header_stat_broken+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014879else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014880 cat >conftest.$ac_ext <<_ACEOF
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014885/* end confdefs.h. */
14886#include <sys/types.h>
14887#include <sys/stat.h>
14888
14889#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014890# if S_ISBLK (S_IFDIR)
14891You lose.
14892# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014893#endif
14894
14895#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014896# if S_ISBLK (S_IFCHR)
14897You lose.
14898# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014899#endif
14900
14901#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014902# if S_ISLNK (S_IFREG)
14903You lose.
14904# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014905#endif
14906
14907#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014908# if S_ISSOCK (S_IFREG)
14909You lose.
14910# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014911#endif
14912
14913_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14915 $EGREP "You lose" >/dev/null 2>&1; then
Edwin Törökc27310c2010-01-26 08:50:50 +000014916 ac_cv_header_stat_broken=yes
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014917else
14918 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000014919fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014920rm -f conftest*
14921
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014922fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014923{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14924echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014925if test $ac_cv_header_stat_broken = yes; then
14926
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014927cat >>confdefs.h <<\_ACEOF
14928#define STAT_MACROS_BROKEN 1
14929_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014930
14931fi
14932
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014933{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14934echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14935if test "${ac_cv_header_stdc+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014937else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014938 cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014943/* end confdefs.h. */
14944#include <stdlib.h>
14945#include <stdarg.h>
14946#include <string.h>
14947#include <float.h>
14948
14949int
14950main ()
14951{
14952
14953 ;
14954 return 0;
14955}
14956_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014957rm -f conftest.$ac_objext
14958if { (ac_try="$ac_compile"
14959case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962esac
14963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_compile") 2>conftest.er1
14965 ac_status=$?
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14972 { (case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975esac
14976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_try") 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985esac
14986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_try") 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014991 ac_cv_header_stdc=yes
14992else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014993 echo "$as_me: failed program was:" >&5
14994sed 's/^/| /' conftest.$ac_ext >&5
14995
14996 ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014997fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000014998
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000
15001if test $ac_cv_header_stdc = yes; then
15002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015003 cat >conftest.$ac_ext <<_ACEOF
15004/* confdefs.h. */
15005_ACEOF
15006cat confdefs.h >>conftest.$ac_ext
15007cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015008/* end confdefs.h. */
15009#include <string.h>
15010
15011_ACEOF
15012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015013 $EGREP "memchr" >/dev/null 2>&1; then
15014 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015015else
15016 ac_cv_header_stdc=no
15017fi
15018rm -f conftest*
15019
15020fi
15021
15022if test $ac_cv_header_stdc = yes; then
15023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015024 cat >conftest.$ac_ext <<_ACEOF
15025/* confdefs.h. */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015029/* end confdefs.h. */
15030#include <stdlib.h>
15031
15032_ACEOF
15033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015034 $EGREP "free" >/dev/null 2>&1; then
15035 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015036else
15037 ac_cv_header_stdc=no
15038fi
15039rm -f conftest*
15040
15041fi
15042
15043if test $ac_cv_header_stdc = yes; then
15044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015045 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015046 :
15047else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015048 cat >conftest.$ac_ext <<_ACEOF
15049/* confdefs.h. */
15050_ACEOF
15051cat confdefs.h >>conftest.$ac_ext
15052cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015053/* end confdefs.h. */
15054#include <ctype.h>
15055#include <stdlib.h>
15056#if ((' ' & 0x0FF) == 0x020)
15057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15059#else
15060# define ISLOWER(c) \
15061 (('a' <= (c) && (c) <= 'i') \
15062 || ('j' <= (c) && (c) <= 'r') \
15063 || ('s' <= (c) && (c) <= 'z'))
15064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15065#endif
15066
15067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15068int
15069main ()
15070{
15071 int i;
15072 for (i = 0; i < 256; i++)
15073 if (XOR (islower (i), ISLOWER (i))
15074 || toupper (i) != TOUPPER (i))
15075 return 2;
15076 return 0;
15077}
15078_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015079rm -f conftest$ac_exeext
15080if { (ac_try="$ac_link"
15081case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084esac
15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_link") 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15090 { (case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093esac
15094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_try") 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015100else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015101 echo "$as_me: program exited with status $ac_status" >&5
15102echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105( exit $ac_status )
15106ac_cv_header_stdc=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015107fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015108rm -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 +000015109fi
15110
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015111
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015112fi
15113fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015114{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15115echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015116if test $ac_cv_header_stdc = yes; then
15117
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015118cat >>confdefs.h <<\_ACEOF
15119#define STDC_HEADERS 1
15120_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015121
15122fi
15123
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015124{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15125echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15126if test "${ac_cv_header_sys_wait_h+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015128else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015129 cat >conftest.$ac_ext <<_ACEOF
15130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015134/* end confdefs.h. */
15135#include <sys/types.h>
15136#include <sys/wait.h>
15137#ifndef WEXITSTATUS
15138# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15139#endif
15140#ifndef WIFEXITED
15141# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15142#endif
15143
15144int
15145main ()
15146{
15147 int s;
15148 wait (&s);
15149 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15150 ;
15151 return 0;
15152}
15153_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015154rm -f conftest.$ac_objext
15155if { (ac_try="$ac_compile"
15156case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159esac
15160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172esac
15173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15182esac
15183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015188 ac_cv_header_sys_wait_h=yes
15189else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193 ac_cv_header_sys_wait_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015194fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015195
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15197fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015198{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15199echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015200if test $ac_cv_header_sys_wait_h = yes; then
15201
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015202cat >>confdefs.h <<\_ACEOF
15203#define HAVE_SYS_WAIT_H 1
15204_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015205
15206fi
15207
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015208{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15209echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15210if test "${ac_cv_header_time+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015212else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015213 cat >conftest.$ac_ext <<_ACEOF
15214/* confdefs.h. */
15215_ACEOF
15216cat confdefs.h >>conftest.$ac_ext
15217cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015218/* end confdefs.h. */
15219#include <sys/types.h>
15220#include <sys/time.h>
15221#include <time.h>
15222
15223int
15224main ()
15225{
15226if ((struct tm *) 0)
15227return 0;
15228 ;
15229 return 0;
15230}
15231_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015232rm -f conftest.$ac_objext
15233if { (ac_try="$ac_compile"
15234case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15237esac
15238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_compile") 2>conftest.er1
15240 ac_status=$?
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
15246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15247 { (case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15250esac
15251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_try") 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; } &&
15256 { ac_try='test -s conftest.$ac_objext'
15257 { (case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260esac
15261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_try") 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015266 ac_cv_header_time=yes
15267else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015268 echo "$as_me: failed program was:" >&5
15269sed 's/^/| /' conftest.$ac_ext >&5
15270
15271 ac_cv_header_time=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015272fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015273
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15275fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015276{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15277echo "${ECHO_T}$ac_cv_header_time" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015278if test $ac_cv_header_time = yes; then
15279
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015280cat >>confdefs.h <<\_ACEOF
15281#define TIME_WITH_SYS_TIME 1
15282_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015283
15284fi
15285
15286
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015287
15288
15289
15290
15291
15292
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015293for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015294do
15295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301fi
15302ac_res=`eval echo '${'$as_ac_Header'}'`
15303 { echo "$as_me:$LINENO: result: $ac_res" >&5
15304echo "${ECHO_T}$ac_res" >&6; }
15305else
15306 # Is the header compilable?
15307{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15309cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315$ac_includes_default
15316#include <$ac_header>
15317_ACEOF
15318rm -f conftest.$ac_objext
15319if { (ac_try="$ac_compile"
15320case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15323esac
15324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_compile") 2>conftest.er1
15326 ac_status=$?
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -f conftest.er1
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15333 { (case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336esac
15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346esac
15347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_try") 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 ac_header_compiler=yes
15353else
15354 echo "$as_me: failed program was:" >&5
15355sed 's/^/| /' conftest.$ac_ext >&5
15356
15357 ac_header_compiler=no
15358fi
15359
15360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15362echo "${ECHO_T}$ac_header_compiler" >&6; }
15363
15364# Is the header present?
15365{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15366echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15367cat >conftest.$ac_ext <<_ACEOF
15368/* confdefs.h. */
15369_ACEOF
15370cat confdefs.h >>conftest.$ac_ext
15371cat >>conftest.$ac_ext <<_ACEOF
15372/* end confdefs.h. */
15373#include <$ac_header>
15374_ACEOF
15375if { (ac_try="$ac_cpp conftest.$ac_ext"
15376case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15379esac
15380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15382 ac_status=$?
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } >/dev/null; then
15388 if test -s conftest.err; then
15389 ac_cpp_err=$ac_c_preproc_warn_flag
15390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15391 else
15392 ac_cpp_err=
15393 fi
15394else
15395 ac_cpp_err=yes
15396fi
15397if test -z "$ac_cpp_err"; then
15398 ac_header_preproc=yes
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 ac_header_preproc=no
15404fi
15405
15406rm -f conftest.err conftest.$ac_ext
15407{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15408echo "${ECHO_T}$ac_header_preproc" >&6; }
15409
15410# So? What about this header?
15411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15412 yes:no: )
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15417 ac_header_preproc=yes
15418 ;;
15419 no:yes:* )
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15432 ( cat <<\_ASBOX
15433## ----------------------------------- ##
15434## Report this to llvmbugs@cs.uiuc.edu ##
15435## ----------------------------------- ##
15436_ASBOX
15437 ) | sed "s/^/$as_me: WARNING: /" >&2
15438 ;;
15439esac
15440{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444else
15445 eval "$as_ac_Header=\$ac_header_preproc"
15446fi
15447ac_res=`eval echo '${'$as_ac_Header'}'`
15448 { echo "$as_me:$LINENO: result: $ac_res" >&5
15449echo "${ECHO_T}$ac_res" >&6; }
15450
15451fi
15452if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015453 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015455_ACEOF
15456
15457fi
15458
15459done
15460
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015461
15462
15463
15464
15465
15466
Douglas Gregor6230bee2009-05-18 17:21:34 +000015467for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015468do
15469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475fi
15476ac_res=`eval echo '${'$as_ac_Header'}'`
15477 { echo "$as_me:$LINENO: result: $ac_res" >&5
15478echo "${ECHO_T}$ac_res" >&6; }
15479else
15480 # Is the header compilable?
15481{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15483cat >conftest.$ac_ext <<_ACEOF
15484/* confdefs.h. */
15485_ACEOF
15486cat confdefs.h >>conftest.$ac_ext
15487cat >>conftest.$ac_ext <<_ACEOF
15488/* end confdefs.h. */
15489$ac_includes_default
15490#include <$ac_header>
15491_ACEOF
15492rm -f conftest.$ac_objext
15493if { (ac_try="$ac_compile"
15494case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_compile") 2>conftest.er1
15500 ac_status=$?
15501 grep -v '^ *+' conftest.er1 >conftest.err
15502 rm -f conftest.er1
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15507 { (case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15510esac
15511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_try") 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } &&
15516 { ac_try='test -s conftest.$ac_objext'
15517 { (case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15520esac
15521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_try") 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_header_compiler=yes
15527else
15528 echo "$as_me: failed program was:" >&5
15529sed 's/^/| /' conftest.$ac_ext >&5
15530
15531 ac_header_compiler=no
15532fi
15533
15534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536echo "${ECHO_T}$ac_header_compiler" >&6; }
15537
15538# Is the header present?
15539{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15541cat >conftest.$ac_ext <<_ACEOF
15542/* confdefs.h. */
15543_ACEOF
15544cat confdefs.h >>conftest.$ac_ext
15545cat >>conftest.$ac_ext <<_ACEOF
15546/* end confdefs.h. */
15547#include <$ac_header>
15548_ACEOF
15549if { (ac_try="$ac_cpp conftest.$ac_ext"
15550case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15553esac
15554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15556 ac_status=$?
15557 grep -v '^ *+' conftest.er1 >conftest.err
15558 rm -f conftest.er1
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } >/dev/null; then
15562 if test -s conftest.err; then
15563 ac_cpp_err=$ac_c_preproc_warn_flag
15564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15565 else
15566 ac_cpp_err=
15567 fi
15568else
15569 ac_cpp_err=yes
15570fi
15571if test -z "$ac_cpp_err"; then
15572 ac_header_preproc=yes
15573else
15574 echo "$as_me: failed program was:" >&5
15575sed 's/^/| /' conftest.$ac_ext >&5
15576
15577 ac_header_preproc=no
15578fi
15579
15580rm -f conftest.err conftest.$ac_ext
15581{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15582echo "${ECHO_T}$ac_header_preproc" >&6; }
15583
15584# So? What about this header?
15585case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15586 yes:no: )
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15590echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15591 ac_header_preproc=yes
15592 ;;
15593 no:yes:* )
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15595echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15597echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15599echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15601echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15603echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15605echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15606 ( cat <<\_ASBOX
15607## ----------------------------------- ##
15608## Report this to llvmbugs@cs.uiuc.edu ##
15609## ----------------------------------- ##
15610_ASBOX
15611 ) | sed "s/^/$as_me: WARNING: /" >&2
15612 ;;
15613esac
15614{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618else
15619 eval "$as_ac_Header=\$ac_header_preproc"
15620fi
15621ac_res=`eval echo '${'$as_ac_Header'}'`
15622 { echo "$as_me:$LINENO: result: $ac_res" >&5
15623echo "${ECHO_T}$ac_res" >&6; }
15624
15625fi
15626if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015627 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015629_ACEOF
15630
15631fi
15632
15633done
15634
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015635
15636
Douglas Gregor6230bee2009-05-18 17:21:34 +000015637for ac_header in utime.h windows.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015638do
15639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645fi
15646ac_res=`eval echo '${'$as_ac_Header'}'`
15647 { echo "$as_me:$LINENO: result: $ac_res" >&5
15648echo "${ECHO_T}$ac_res" >&6; }
15649else
15650 # Is the header compilable?
15651{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15653cat >conftest.$ac_ext <<_ACEOF
15654/* confdefs.h. */
15655_ACEOF
15656cat confdefs.h >>conftest.$ac_ext
15657cat >>conftest.$ac_ext <<_ACEOF
15658/* end confdefs.h. */
15659$ac_includes_default
15660#include <$ac_header>
15661_ACEOF
15662rm -f conftest.$ac_objext
15663if { (ac_try="$ac_compile"
15664case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15667esac
15668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_compile") 2>conftest.er1
15670 ac_status=$?
15671 grep -v '^ *+' conftest.er1 >conftest.err
15672 rm -f conftest.er1
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15677 { (case "(($ac_try" in
15678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679 *) ac_try_echo=$ac_try;;
15680esac
15681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682 (eval "$ac_try") 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15690esac
15691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_try") 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_header_compiler=yes
15697else
15698 echo "$as_me: failed program was:" >&5
15699sed 's/^/| /' conftest.$ac_ext >&5
15700
15701 ac_header_compiler=no
15702fi
15703
15704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15706echo "${ECHO_T}$ac_header_compiler" >&6; }
15707
15708# Is the header present?
15709{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15711cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717#include <$ac_header>
15718_ACEOF
15719if { (ac_try="$ac_cpp conftest.$ac_ext"
15720case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15723esac
15724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15726 ac_status=$?
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } >/dev/null; then
15732 if test -s conftest.err; then
15733 ac_cpp_err=$ac_c_preproc_warn_flag
15734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15735 else
15736 ac_cpp_err=
15737 fi
15738else
15739 ac_cpp_err=yes
15740fi
15741if test -z "$ac_cpp_err"; then
15742 ac_header_preproc=yes
15743else
15744 echo "$as_me: failed program was:" >&5
15745sed 's/^/| /' conftest.$ac_ext >&5
15746
15747 ac_header_preproc=no
15748fi
15749
15750rm -f conftest.err conftest.$ac_ext
15751{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15752echo "${ECHO_T}$ac_header_preproc" >&6; }
15753
15754# So? What about this header?
15755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15756 yes:no: )
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15761 ac_header_preproc=yes
15762 ;;
15763 no:yes:* )
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15776 ( cat <<\_ASBOX
15777## ----------------------------------- ##
15778## Report this to llvmbugs@cs.uiuc.edu ##
15779## ----------------------------------- ##
15780_ASBOX
15781 ) | sed "s/^/$as_me: WARNING: /" >&2
15782 ;;
15783esac
15784{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15788else
15789 eval "$as_ac_Header=\$ac_header_preproc"
15790fi
15791ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793echo "${ECHO_T}$ac_res" >&6; }
15794
15795fi
15796if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000015797 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000015799_ACEOF
15800
15801fi
15802
15803done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015804
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015805
15806
15807
15808
Reid Spencer096a8142007-08-17 05:45:26 +000015809for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015810do
15811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817fi
15818ac_res=`eval echo '${'$as_ac_Header'}'`
15819 { echo "$as_me:$LINENO: result: $ac_res" >&5
15820echo "${ECHO_T}$ac_res" >&6; }
15821else
15822 # Is the header compilable?
15823{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15824echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15825cat >conftest.$ac_ext <<_ACEOF
15826/* confdefs.h. */
15827_ACEOF
15828cat confdefs.h >>conftest.$ac_ext
15829cat >>conftest.$ac_ext <<_ACEOF
15830/* end confdefs.h. */
15831$ac_includes_default
15832#include <$ac_header>
15833_ACEOF
15834rm -f conftest.$ac_objext
15835if { (ac_try="$ac_compile"
15836case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15839esac
15840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_compile") 2>conftest.er1
15842 ac_status=$?
15843 grep -v '^ *+' conftest.er1 >conftest.err
15844 rm -f conftest.er1
15845 cat conftest.err >&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15849 { (case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15852esac
15853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_try") 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try='test -s conftest.$ac_objext'
15859 { (case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15862esac
15863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_try") 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_header_compiler=yes
15869else
15870 echo "$as_me: failed program was:" >&5
15871sed 's/^/| /' conftest.$ac_ext >&5
15872
15873 ac_header_compiler=no
15874fi
15875
15876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15878echo "${ECHO_T}$ac_header_compiler" >&6; }
15879
15880# Is the header present?
15881{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15883cat >conftest.$ac_ext <<_ACEOF
15884/* confdefs.h. */
15885_ACEOF
15886cat confdefs.h >>conftest.$ac_ext
15887cat >>conftest.$ac_ext <<_ACEOF
15888/* end confdefs.h. */
15889#include <$ac_header>
15890_ACEOF
15891if { (ac_try="$ac_cpp conftest.$ac_ext"
15892case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15895esac
15896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15898 ac_status=$?
15899 grep -v '^ *+' conftest.er1 >conftest.err
15900 rm -f conftest.er1
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } >/dev/null; then
15904 if test -s conftest.err; then
15905 ac_cpp_err=$ac_c_preproc_warn_flag
15906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15907 else
15908 ac_cpp_err=
15909 fi
15910else
15911 ac_cpp_err=yes
15912fi
15913if test -z "$ac_cpp_err"; then
15914 ac_header_preproc=yes
15915else
15916 echo "$as_me: failed program was:" >&5
15917sed 's/^/| /' conftest.$ac_ext >&5
15918
15919 ac_header_preproc=no
15920fi
15921
15922rm -f conftest.err conftest.$ac_ext
15923{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15924echo "${ECHO_T}$ac_header_preproc" >&6; }
15925
15926# So? What about this header?
15927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15928 yes:no: )
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15930echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15932echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15933 ac_header_preproc=yes
15934 ;;
15935 no:yes:* )
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15937echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15939echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15941echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15943echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15945echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15947echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15948 ( cat <<\_ASBOX
15949## ----------------------------------- ##
15950## Report this to llvmbugs@cs.uiuc.edu ##
15951## ----------------------------------- ##
15952_ASBOX
15953 ) | sed "s/^/$as_me: WARNING: /" >&2
15954 ;;
15955esac
15956{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15960else
15961 eval "$as_ac_Header=\$ac_header_preproc"
15962fi
15963ac_res=`eval echo '${'$as_ac_Header'}'`
15964 { echo "$as_me:$LINENO: result: $ac_res" >&5
15965echo "${ECHO_T}$ac_res" >&6; }
15966
15967fi
15968if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015969 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015971_ACEOF
15972
15973fi
15974
15975done
15976
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015977
15978
15979
15980
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000015981for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000015982do
15983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989fi
15990ac_res=`eval echo '${'$as_ac_Header'}'`
15991 { echo "$as_me:$LINENO: result: $ac_res" >&5
15992echo "${ECHO_T}$ac_res" >&6; }
15993else
15994 # Is the header compilable?
15995{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15997cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003$ac_includes_default
16004#include <$ac_header>
16005_ACEOF
16006rm -f conftest.$ac_objext
16007if { (ac_try="$ac_compile"
16008case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16011esac
16012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_compile") 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16021 { (case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024esac
16025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_try") 2>&5
16027 ac_status=$?
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; } &&
16030 { ac_try='test -s conftest.$ac_objext'
16031 { (case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16034esac
16035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_try") 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_header_compiler=yes
16041else
16042 echo "$as_me: failed program was:" >&5
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045 ac_header_compiler=no
16046fi
16047
16048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16050echo "${ECHO_T}$ac_header_compiler" >&6; }
16051
16052# Is the header present?
16053{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16055cat >conftest.$ac_ext <<_ACEOF
16056/* confdefs.h. */
16057_ACEOF
16058cat confdefs.h >>conftest.$ac_ext
16059cat >>conftest.$ac_ext <<_ACEOF
16060/* end confdefs.h. */
16061#include <$ac_header>
16062_ACEOF
16063if { (ac_try="$ac_cpp conftest.$ac_ext"
16064case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067esac
16068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev/null; then
16076 if test -s conftest.err; then
16077 ac_cpp_err=$ac_c_preproc_warn_flag
16078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16079 else
16080 ac_cpp_err=
16081 fi
16082else
16083 ac_cpp_err=yes
16084fi
16085if test -z "$ac_cpp_err"; then
16086 ac_header_preproc=yes
16087else
16088 echo "$as_me: failed program was:" >&5
16089sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_header_preproc=no
16092fi
16093
16094rm -f conftest.err conftest.$ac_ext
16095{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096echo "${ECHO_T}$ac_header_preproc" >&6; }
16097
16098# So? What about this header?
16099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 yes:no: )
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16105 ac_header_preproc=yes
16106 ;;
16107 no:yes:* )
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16120 ( cat <<\_ASBOX
16121## ----------------------------------- ##
16122## Report this to llvmbugs@cs.uiuc.edu ##
16123## ----------------------------------- ##
16124_ASBOX
16125 ) | sed "s/^/$as_me: WARNING: /" >&2
16126 ;;
16127esac
16128{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132else
16133 eval "$as_ac_Header=\$ac_header_preproc"
16134fi
16135ac_res=`eval echo '${'$as_ac_Header'}'`
16136 { echo "$as_me:$LINENO: result: $ac_res" >&5
16137echo "${ECHO_T}$ac_res" >&6; }
16138
16139fi
16140if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016141 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016143_ACEOF
16144
16145fi
16146
16147done
16148
16149if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016150
16151for ac_header in pthread.h
16152do
16153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16159fi
16160ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162echo "${ECHO_T}$ac_res" >&6; }
16163else
16164 # Is the header compilable?
16165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16167cat >conftest.$ac_ext <<_ACEOF
16168/* confdefs.h. */
16169_ACEOF
16170cat confdefs.h >>conftest.$ac_ext
16171cat >>conftest.$ac_ext <<_ACEOF
16172/* end confdefs.h. */
16173$ac_includes_default
16174#include <$ac_header>
16175_ACEOF
16176rm -f conftest.$ac_objext
16177if { (ac_try="$ac_compile"
16178case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181esac
16182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_compile") 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191 { (case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16194esac
16195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_try") 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; } &&
16200 { ac_try='test -s conftest.$ac_objext'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16204esac
16205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_header_compiler=yes
16211else
16212 echo "$as_me: failed program was:" >&5
16213sed 's/^/| /' conftest.$ac_ext >&5
16214
16215 ac_header_compiler=no
16216fi
16217
16218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220echo "${ECHO_T}$ac_header_compiler" >&6; }
16221
16222# Is the header present?
16223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16225cat >conftest.$ac_ext <<_ACEOF
16226/* confdefs.h. */
16227_ACEOF
16228cat confdefs.h >>conftest.$ac_ext
16229cat >>conftest.$ac_ext <<_ACEOF
16230/* end confdefs.h. */
16231#include <$ac_header>
16232_ACEOF
16233if { (ac_try="$ac_cpp conftest.$ac_ext"
16234case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16237esac
16238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } >/dev/null; then
16246 if test -s conftest.err; then
16247 ac_cpp_err=$ac_c_preproc_warn_flag
16248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16249 else
16250 ac_cpp_err=
16251 fi
16252else
16253 ac_cpp_err=yes
16254fi
16255if test -z "$ac_cpp_err"; then
16256 ac_header_preproc=yes
16257else
16258 echo "$as_me: failed program was:" >&5
16259sed 's/^/| /' conftest.$ac_ext >&5
16260
16261 ac_header_preproc=no
16262fi
16263
16264rm -f conftest.err conftest.$ac_ext
16265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16266echo "${ECHO_T}$ac_header_preproc" >&6; }
16267
16268# So? What about this header?
16269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16270 yes:no: )
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16275 ac_header_preproc=yes
16276 ;;
16277 no:yes:* )
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16290 ( cat <<\_ASBOX
16291## ----------------------------------- ##
16292## Report this to llvmbugs@cs.uiuc.edu ##
16293## ----------------------------------- ##
16294_ASBOX
16295 ) | sed "s/^/$as_me: WARNING: /" >&2
16296 ;;
16297esac
16298{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302else
16303 eval "$as_ac_Header=\$ac_header_preproc"
16304fi
16305ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result: $ac_res" >&5
16307echo "${ECHO_T}$ac_res" >&6; }
16308
16309fi
16310if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer096a8142007-08-17 05:45:26 +000016311 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer096a8142007-08-17 05:45:26 +000016313_ACEOF
16314 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016315
16316else
16317 HAVE_PTHREAD=0
16318
16319fi
16320
Reid Spencer096a8142007-08-17 05:45:26 +000016321done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016322
16323else
16324 HAVE_PTHREAD=0
16325
16326fi
16327
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016328if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016329
16330
16331for ac_header in ffi.h ffi/ffi.h
16332do
16333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16339fi
16340ac_res=`eval echo '${'$as_ac_Header'}'`
16341 { echo "$as_me:$LINENO: result: $ac_res" >&5
16342echo "${ECHO_T}$ac_res" >&6; }
16343else
16344 # Is the header compilable?
16345{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16347cat >conftest.$ac_ext <<_ACEOF
16348/* confdefs.h. */
16349_ACEOF
16350cat confdefs.h >>conftest.$ac_ext
16351cat >>conftest.$ac_ext <<_ACEOF
16352/* end confdefs.h. */
16353$ac_includes_default
16354#include <$ac_header>
16355_ACEOF
16356rm -f conftest.$ac_objext
16357if { (ac_try="$ac_compile"
16358case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16361esac
16362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_compile") 2>conftest.er1
16364 ac_status=$?
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16371 { (case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16374esac
16375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_try") 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } &&
16380 { ac_try='test -s conftest.$ac_objext'
16381 { (case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16384esac
16385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_try") 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 ac_header_compiler=yes
16391else
16392 echo "$as_me: failed program was:" >&5
16393sed 's/^/| /' conftest.$ac_ext >&5
16394
16395 ac_header_compiler=no
16396fi
16397
16398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16400echo "${ECHO_T}$ac_header_compiler" >&6; }
16401
16402# Is the header present?
16403{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16405cat >conftest.$ac_ext <<_ACEOF
16406/* confdefs.h. */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h. */
16411#include <$ac_header>
16412_ACEOF
16413if { (ac_try="$ac_cpp conftest.$ac_ext"
16414case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417esac
16418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16420 ac_status=$?
16421 grep -v '^ *+' conftest.er1 >conftest.err
16422 rm -f conftest.er1
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } >/dev/null; then
16426 if test -s conftest.err; then
16427 ac_cpp_err=$ac_c_preproc_warn_flag
16428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16429 else
16430 ac_cpp_err=
16431 fi
16432else
16433 ac_cpp_err=yes
16434fi
16435if test -z "$ac_cpp_err"; then
16436 ac_header_preproc=yes
16437else
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_header_preproc=no
16442fi
16443
16444rm -f conftest.err conftest.$ac_ext
16445{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446echo "${ECHO_T}$ac_header_preproc" >&6; }
16447
16448# So? What about this header?
16449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16450 yes:no: )
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455 ac_header_preproc=yes
16456 ;;
16457 no:yes:* )
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16470 ( cat <<\_ASBOX
16471## ----------------------------------- ##
16472## Report this to llvmbugs@cs.uiuc.edu ##
16473## ----------------------------------- ##
16474_ASBOX
16475 ) | sed "s/^/$as_me: WARNING: /" >&2
16476 ;;
16477esac
16478{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482else
16483 eval "$as_ac_Header=\$ac_header_preproc"
16484fi
16485ac_res=`eval echo '${'$as_ac_Header'}'`
16486 { echo "$as_me:$LINENO: result: $ac_res" >&5
16487echo "${ECHO_T}$ac_res" >&6; }
16488
16489fi
16490if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky0235b622009-02-04 06:27:44 +000016491 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky0235b622009-02-04 06:27:44 +000016493_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000016494
16495fi
16496
16497done
16498
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000016499fi
Nick Lewycky0235b622009-02-04 06:27:44 +000016500
Nick Lewycky5d713ec2009-01-20 00:52:24 +000016501
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016502
Edwin Törökc27310c2010-01-26 08:50:50 +000016503
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016504 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16505echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16506if test "${ac_cv_huge_val_sanity+set}" = set; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016508else
16509
16510 ac_ext=cpp
16511ac_cpp='$CXXCPP $CPPFLAGS'
16512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16515
16516 CXXFLAGS=-pedantic
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016517 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016518 ac_cv_huge_val_sanity=yes
16519else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016520 cat >conftest.$ac_ext <<_ACEOF
16521/* confdefs.h. */
16522_ACEOF
16523cat confdefs.h >>conftest.$ac_ext
16524cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016525/* end confdefs.h. */
16526#include <math.h>
16527int
16528main ()
16529{
16530double x = HUGE_VAL; return x != x;
16531 ;
16532 return 0;
16533}
16534_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016535rm -f conftest$ac_exeext
16536if { (ac_try="$ac_link"
16537case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540esac
16541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_link") 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549esac
16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016555 ac_cv_huge_val_sanity=yes
16556else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016557 echo "$as_me: program exited with status $ac_status" >&5
16558echo "$as_me: failed program was:" >&5
16559sed 's/^/| /' conftest.$ac_ext >&5
16560
16561( exit $ac_status )
16562ac_cv_huge_val_sanity=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016563fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016564rm -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 +000016565fi
16566
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016567
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016568 ac_ext=c
16569ac_cpp='$CPP $CPPFLAGS'
16570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16572ac_compiler_gnu=$ac_cv_c_compiler_gnu
16573
16574
16575fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016576{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16577echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016578 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16579
16580
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016581{ echo "$as_me:$LINENO: checking for pid_t" >&5
16582echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16583if test "${ac_cv_type_pid_t+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16585else
16586 cat >conftest.$ac_ext <<_ACEOF
16587/* confdefs.h. */
16588_ACEOF
16589cat confdefs.h >>conftest.$ac_ext
16590cat >>conftest.$ac_ext <<_ACEOF
16591/* end confdefs.h. */
16592$ac_includes_default
16593typedef pid_t ac__type_new_;
16594int
16595main ()
16596{
16597if ((ac__type_new_ *) 0)
16598 return 0;
16599if (sizeof (ac__type_new_))
16600 return 0;
16601 ;
16602 return 0;
16603}
16604_ACEOF
16605rm -f conftest.$ac_objext
16606if { (ac_try="$ac_compile"
16607case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16610esac
16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_compile") 2>conftest.er1
16613 ac_status=$?
16614 grep -v '^ *+' conftest.er1 >conftest.err
16615 rm -f conftest.er1
16616 cat conftest.err >&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16620 { (case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623esac
16624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_try") 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try='test -s conftest.$ac_objext'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16633esac
16634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_cv_type_pid_t=yes
16640else
16641 echo "$as_me: failed program was:" >&5
16642sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016643
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016644 ac_cv_type_pid_t=no
16645fi
16646
16647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648fi
16649{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16650echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16651if test $ac_cv_type_pid_t = yes; then
16652 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016653else
16654
16655cat >>confdefs.h <<_ACEOF
16656#define pid_t int
16657_ACEOF
16658
16659fi
16660
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016661{ echo "$as_me:$LINENO: checking for size_t" >&5
16662echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16663if test "${ac_cv_type_size_t+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16665else
16666 cat >conftest.$ac_ext <<_ACEOF
16667/* confdefs.h. */
16668_ACEOF
16669cat confdefs.h >>conftest.$ac_ext
16670cat >>conftest.$ac_ext <<_ACEOF
16671/* end confdefs.h. */
16672$ac_includes_default
16673typedef size_t ac__type_new_;
16674int
16675main ()
16676{
16677if ((ac__type_new_ *) 0)
16678 return 0;
16679if (sizeof (ac__type_new_))
16680 return 0;
16681 ;
16682 return 0;
16683}
16684_ACEOF
16685rm -f conftest.$ac_objext
16686if { (ac_try="$ac_compile"
16687case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16690esac
16691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_compile") 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700 { (case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703esac
16704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_try") 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest.$ac_objext'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_cv_type_size_t=yes
16720else
16721 echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016723
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016724 ac_cv_type_size_t=no
16725fi
16726
16727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728fi
16729{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16730echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16731if test $ac_cv_type_size_t = yes; then
16732 :
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016733else
16734
16735cat >>confdefs.h <<_ACEOF
16736#define size_t unsigned int
16737_ACEOF
16738
16739fi
16740
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016741
16742cat >>confdefs.h <<_ACEOF
Edwin Törökc27310c2010-01-26 08:50:50 +000016743#define RETSIGTYPE void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016744_ACEOF
16745
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016746{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16747echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16748if test "${ac_cv_struct_tm+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016750else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016751 cat >conftest.$ac_ext <<_ACEOF
16752/* confdefs.h. */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016756/* end confdefs.h. */
16757#include <sys/types.h>
16758#include <time.h>
16759
16760int
16761main ()
16762{
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016763struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016764 ;
16765 return 0;
16766}
16767_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016768rm -f conftest.$ac_objext
16769if { (ac_try="$ac_compile"
16770case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16773esac
16774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_compile") 2>conftest.er1
16776 ac_status=$?
16777 grep -v '^ *+' conftest.er1 >conftest.err
16778 rm -f conftest.er1
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16786esac
16787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16796esac
16797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_try") 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016802 ac_cv_struct_tm=time.h
16803else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016804 echo "$as_me: failed program was:" >&5
16805sed 's/^/| /' conftest.$ac_ext >&5
16806
16807 ac_cv_struct_tm=sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016808fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016809
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016812{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16813echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016814if test $ac_cv_struct_tm = sys/time.h; then
16815
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016816cat >>confdefs.h <<\_ACEOF
16817#define TM_IN_SYS_TIME 1
16818_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016819
16820fi
16821
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016822{ echo "$as_me:$LINENO: checking for int64_t" >&5
16823echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16824if test "${ac_cv_type_int64_t+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16826else
16827 cat >conftest.$ac_ext <<_ACEOF
16828/* confdefs.h. */
16829_ACEOF
16830cat confdefs.h >>conftest.$ac_ext
16831cat >>conftest.$ac_ext <<_ACEOF
16832/* end confdefs.h. */
16833$ac_includes_default
16834typedef int64_t ac__type_new_;
16835int
16836main ()
16837{
16838if ((ac__type_new_ *) 0)
16839 return 0;
16840if (sizeof (ac__type_new_))
16841 return 0;
16842 ;
16843 return 0;
16844}
16845_ACEOF
16846rm -f conftest.$ac_objext
16847if { (ac_try="$ac_compile"
16848case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16851esac
16852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853 (eval "$ac_compile") 2>conftest.er1
16854 ac_status=$?
16855 grep -v '^ *+' conftest.er1 >conftest.err
16856 rm -f conftest.er1
16857 cat conftest.err >&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864esac
16865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_try") 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest.$ac_objext'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16874esac
16875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880 ac_cv_type_int64_t=yes
16881else
16882 echo "$as_me: failed program was:" >&5
16883sed 's/^/| /' conftest.$ac_ext >&5
16884
16885 ac_cv_type_int64_t=no
16886fi
16887
16888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889fi
16890{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16891echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16892if test $ac_cv_type_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016893
16894cat >>confdefs.h <<_ACEOF
16895#define HAVE_INT64_T 1
16896_ACEOF
16897
16898
16899else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016900 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16901echo "$as_me: error: Type int64_t required but not found" >&2;}
16902 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016903fi
16904
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016905{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16906echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16907if test "${ac_cv_type_uint64_t+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909else
16910 cat >conftest.$ac_ext <<_ACEOF
16911/* confdefs.h. */
16912_ACEOF
16913cat confdefs.h >>conftest.$ac_ext
16914cat >>conftest.$ac_ext <<_ACEOF
16915/* end confdefs.h. */
16916$ac_includes_default
16917typedef uint64_t ac__type_new_;
16918int
16919main ()
16920{
16921if ((ac__type_new_ *) 0)
16922 return 0;
16923if (sizeof (ac__type_new_))
16924 return 0;
16925 ;
16926 return 0;
16927}
16928_ACEOF
16929rm -f conftest.$ac_objext
16930if { (ac_try="$ac_compile"
16931case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934esac
16935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_compile") 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947esac
16948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957esac
16958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_cv_type_uint64_t=yes
16964else
16965 echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
16968 ac_cv_type_uint64_t=no
16969fi
16970
16971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972fi
16973{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16974echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16975if test $ac_cv_type_uint64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016976
16977cat >>confdefs.h <<_ACEOF
16978#define HAVE_UINT64_T 1
16979_ACEOF
16980
16981
16982else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000016983 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16984echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16985if test "${ac_cv_type_u_int64_t+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 cat >conftest.$ac_ext <<_ACEOF
16989/* confdefs.h. */
16990_ACEOF
16991cat confdefs.h >>conftest.$ac_ext
16992cat >>conftest.$ac_ext <<_ACEOF
16993/* end confdefs.h. */
16994$ac_includes_default
16995typedef u_int64_t ac__type_new_;
16996int
16997main ()
16998{
16999if ((ac__type_new_ *) 0)
17000 return 0;
17001if (sizeof (ac__type_new_))
17002 return 0;
17003 ;
17004 return 0;
17005}
17006_ACEOF
17007rm -f conftest.$ac_objext
17008if { (ac_try="$ac_compile"
17009case "(($ac_try" in
17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17012esac
17013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014 (eval "$ac_compile") 2>conftest.er1
17015 ac_status=$?
17016 grep -v '^ *+' conftest.er1 >conftest.err
17017 rm -f conftest.er1
17018 cat conftest.err >&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } &&
17021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17025esac
17026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
17032 { (case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035esac
17036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_try") 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_cv_type_u_int64_t=yes
17042else
17043 echo "$as_me: failed program was:" >&5
17044sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 ac_cv_type_u_int64_t=no
17047fi
17048
17049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17050fi
17051{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17052echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17053if test $ac_cv_type_u_int64_t = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017054
17055cat >>confdefs.h <<_ACEOF
17056#define HAVE_U_INT64_T 1
17057_ACEOF
17058
17059
17060else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017061 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17062echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17063 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017064fi
17065
17066fi
17067
17068
17069
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017070
17071
17072
17073
17074
17075
17076
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017077for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017078do
17079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17080{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17082if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17084else
17085 cat >conftest.$ac_ext <<_ACEOF
17086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
17091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17093#define $ac_func innocuous_$ac_func
17094
17095/* System header to define __stub macros and hopefully few prototypes,
17096 which can conflict with char $ac_func (); below.
17097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098 <limits.h> exists even on freestanding compilers. */
17099
17100#ifdef __STDC__
17101# include <limits.h>
17102#else
17103# include <assert.h>
17104#endif
17105
17106#undef $ac_func
17107
17108/* Override any GCC internal prototype to avoid an error.
17109 Use char because int might match the return type of a GCC
17110 builtin and then its argument prototype would still apply. */
17111#ifdef __cplusplus
17112extern "C"
17113#endif
17114char $ac_func ();
17115/* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118#if defined __stub_$ac_func || defined __stub___$ac_func
17119choke me
17120#endif
17121
17122int
17123main ()
17124{
17125return $ac_func ();
17126 ;
17127 return 0;
17128}
17129_ACEOF
17130rm -f conftest.$ac_objext conftest$ac_exeext
17131if { (ac_try="$ac_link"
17132case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17135esac
17136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_link") 2>conftest.er1
17138 ac_status=$?
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17145 { (case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17148esac
17149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_try") 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try='test -s conftest$ac_exeext'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158esac
17159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 eval "$as_ac_var=yes"
17165else
17166 echo "$as_me: failed program was:" >&5
17167sed 's/^/| /' conftest.$ac_ext >&5
17168
17169 eval "$as_ac_var=no"
17170fi
17171
17172rm -f core conftest.err conftest.$ac_objext \
17173 conftest$ac_exeext conftest.$ac_ext
17174fi
17175ac_res=`eval echo '${'$as_ac_var'}'`
17176 { echo "$as_me:$LINENO: result: $ac_res" >&5
17177echo "${ECHO_T}$ac_res" >&6; }
17178if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017179 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017181_ACEOF
17182
17183fi
17184done
17185
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017186
17187
17188
17189
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017190for ac_func in powf fmodf strtof round
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017191do
17192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197else
17198 cat >conftest.$ac_ext <<_ACEOF
17199/* confdefs.h. */
17200_ACEOF
17201cat confdefs.h >>conftest.$ac_ext
17202cat >>conftest.$ac_ext <<_ACEOF
17203/* end confdefs.h. */
17204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17206#define $ac_func innocuous_$ac_func
17207
17208/* System header to define __stub macros and hopefully few prototypes,
17209 which can conflict with char $ac_func (); below.
17210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17211 <limits.h> exists even on freestanding compilers. */
17212
17213#ifdef __STDC__
17214# include <limits.h>
17215#else
17216# include <assert.h>
17217#endif
17218
17219#undef $ac_func
17220
17221/* Override any GCC internal prototype to avoid an error.
17222 Use char because int might match the return type of a GCC
17223 builtin and then its argument prototype would still apply. */
17224#ifdef __cplusplus
17225extern "C"
17226#endif
17227char $ac_func ();
17228/* The GNU C library defines this for functions which it implements
17229 to always fail with ENOSYS. Some functions are actually named
17230 something starting with __ and the normal name is an alias. */
17231#if defined __stub_$ac_func || defined __stub___$ac_func
17232choke me
17233#endif
17234
17235int
17236main ()
17237{
17238return $ac_func ();
17239 ;
17240 return 0;
17241}
17242_ACEOF
17243rm -f conftest.$ac_objext conftest$ac_exeext
17244if { (ac_try="$ac_link"
17245case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17248esac
17249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_link") 2>conftest.er1
17251 ac_status=$?
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
17257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17258 { (case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261esac
17262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_try") 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest$ac_exeext'
17268 { (case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271esac
17272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_try") 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 eval "$as_ac_var=yes"
17278else
17279 echo "$as_me: failed program was:" >&5
17280sed 's/^/| /' conftest.$ac_ext >&5
17281
17282 eval "$as_ac_var=no"
17283fi
17284
17285rm -f core conftest.err conftest.$ac_objext \
17286 conftest$ac_exeext conftest.$ac_ext
17287fi
17288ac_res=`eval echo '${'$as_ac_var'}'`
17289 { echo "$as_me:$LINENO: result: $ac_res" >&5
17290echo "${ECHO_T}$ac_res" >&6; }
17291if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017292 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017294_ACEOF
17295
17296fi
17297done
17298
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017299
17300
17301
17302
17303
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017304for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017305do
17306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17307{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17309if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17311else
17312 cat >conftest.$ac_ext <<_ACEOF
17313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
17318/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17320#define $ac_func innocuous_$ac_func
17321
17322/* System header to define __stub macros and hopefully few prototypes,
17323 which can conflict with char $ac_func (); below.
17324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325 <limits.h> exists even on freestanding compilers. */
17326
17327#ifdef __STDC__
17328# include <limits.h>
17329#else
17330# include <assert.h>
17331#endif
17332
17333#undef $ac_func
17334
17335/* Override any GCC internal prototype to avoid an error.
17336 Use char because int might match the return type of a GCC
17337 builtin and then its argument prototype would still apply. */
17338#ifdef __cplusplus
17339extern "C"
17340#endif
17341char $ac_func ();
17342/* The GNU C library defines this for functions which it implements
17343 to always fail with ENOSYS. Some functions are actually named
17344 something starting with __ and the normal name is an alias. */
17345#if defined __stub_$ac_func || defined __stub___$ac_func
17346choke me
17347#endif
17348
17349int
17350main ()
17351{
17352return $ac_func ();
17353 ;
17354 return 0;
17355}
17356_ACEOF
17357rm -f conftest.$ac_objext conftest$ac_exeext
17358if { (ac_try="$ac_link"
17359case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362esac
17363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_link") 2>conftest.er1
17365 ac_status=$?
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17375esac
17376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest$ac_exeext'
17382 { (case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17385esac
17386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_try") 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 eval "$as_ac_var=yes"
17392else
17393 echo "$as_me: failed program was:" >&5
17394sed 's/^/| /' conftest.$ac_ext >&5
17395
17396 eval "$as_ac_var=no"
17397fi
17398
17399rm -f core conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17401fi
17402ac_res=`eval echo '${'$as_ac_var'}'`
17403 { echo "$as_me:$LINENO: result: $ac_res" >&5
17404echo "${ECHO_T}$ac_res" >&6; }
17405if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017406 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017407#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017408_ACEOF
17409
17410fi
17411done
17412
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017413
17414
17415
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017416for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017417do
17418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17419{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17421if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17423else
17424 cat >conftest.$ac_ext <<_ACEOF
17425/* confdefs.h. */
17426_ACEOF
17427cat confdefs.h >>conftest.$ac_ext
17428cat >>conftest.$ac_ext <<_ACEOF
17429/* end confdefs.h. */
17430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17432#define $ac_func innocuous_$ac_func
17433
17434/* System header to define __stub macros and hopefully few prototypes,
17435 which can conflict with char $ac_func (); below.
17436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17437 <limits.h> exists even on freestanding compilers. */
17438
17439#ifdef __STDC__
17440# include <limits.h>
17441#else
17442# include <assert.h>
17443#endif
17444
17445#undef $ac_func
17446
17447/* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17450#ifdef __cplusplus
17451extern "C"
17452#endif
17453char $ac_func ();
17454/* The GNU C library defines this for functions which it implements
17455 to always fail with ENOSYS. Some functions are actually named
17456 something starting with __ and the normal name is an alias. */
17457#if defined __stub_$ac_func || defined __stub___$ac_func
17458choke me
17459#endif
17460
17461int
17462main ()
17463{
17464return $ac_func ();
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469rm -f conftest.$ac_objext conftest$ac_exeext
17470if { (ac_try="$ac_link"
17471case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474esac
17475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_link") 2>conftest.er1
17477 ac_status=$?
17478 grep -v '^ *+' conftest.er1 >conftest.err
17479 rm -f conftest.er1
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } &&
17483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17484 { (case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487esac
17488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_try") 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest$ac_exeext'
17494 { (case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17497esac
17498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499 (eval "$ac_try") 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 eval "$as_ac_var=yes"
17504else
17505 echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 eval "$as_ac_var=no"
17509fi
17510
17511rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513fi
17514ac_res=`eval echo '${'$as_ac_var'}'`
17515 { echo "$as_me:$LINENO: result: $ac_res" >&5
17516echo "${ECHO_T}$ac_res" >&6; }
17517if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017518 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017520_ACEOF
17521
17522fi
17523done
17524
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017525
17526
17527
17528
17529
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017530for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017531do
17532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17533{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17535if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537else
17538 cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h. */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h. */
17544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17546#define $ac_func innocuous_$ac_func
17547
17548/* System header to define __stub macros and hopefully few prototypes,
17549 which can conflict with char $ac_func (); below.
17550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17551 <limits.h> exists even on freestanding compilers. */
17552
17553#ifdef __STDC__
17554# include <limits.h>
17555#else
17556# include <assert.h>
17557#endif
17558
17559#undef $ac_func
17560
17561/* Override any GCC internal prototype to avoid an error.
17562 Use char because int might match the return type of a GCC
17563 builtin and then its argument prototype would still apply. */
17564#ifdef __cplusplus
17565extern "C"
17566#endif
17567char $ac_func ();
17568/* The GNU C library defines this for functions which it implements
17569 to always fail with ENOSYS. Some functions are actually named
17570 something starting with __ and the normal name is an alias. */
17571#if defined __stub_$ac_func || defined __stub___$ac_func
17572choke me
17573#endif
17574
17575int
17576main ()
17577{
17578return $ac_func ();
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext conftest$ac_exeext
17584if { (ac_try="$ac_link"
17585case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588esac
17589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17591 ac_status=$?
17592 grep -v '^ *+' conftest.er1 >conftest.err
17593 rm -f conftest.er1
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601esac
17602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; } &&
17607 { ac_try='test -s conftest$ac_exeext'
17608 { (case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611esac
17612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_try") 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 eval "$as_ac_var=yes"
17618else
17619 echo "$as_me: failed program was:" >&5
17620sed 's/^/| /' conftest.$ac_ext >&5
17621
17622 eval "$as_ac_var=no"
17623fi
17624
17625rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627fi
17628ac_res=`eval echo '${'$as_ac_var'}'`
17629 { echo "$as_me:$LINENO: result: $ac_res" >&5
17630echo "${ECHO_T}$ac_res" >&6; }
17631if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017632 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000017634_ACEOF
17635
17636fi
17637done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017638
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017639
17640
17641
17642
Jeffrey Yasskin41a338b2009-09-25 21:07:20 +000017643for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017644do
17645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17646{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17648if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650else
17651 cat >conftest.$ac_ext <<_ACEOF
17652/* confdefs.h. */
17653_ACEOF
17654cat confdefs.h >>conftest.$ac_ext
17655cat >>conftest.$ac_ext <<_ACEOF
17656/* end confdefs.h. */
17657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17659#define $ac_func innocuous_$ac_func
17660
17661/* System header to define __stub macros and hopefully few prototypes,
17662 which can conflict with char $ac_func (); below.
17663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17664 <limits.h> exists even on freestanding compilers. */
17665
17666#ifdef __STDC__
17667# include <limits.h>
17668#else
17669# include <assert.h>
17670#endif
17671
17672#undef $ac_func
17673
17674/* Override any GCC internal prototype to avoid an error.
17675 Use char because int might match the return type of a GCC
17676 builtin and then its argument prototype would still apply. */
17677#ifdef __cplusplus
17678extern "C"
17679#endif
17680char $ac_func ();
17681/* The GNU C library defines this for functions which it implements
17682 to always fail with ENOSYS. Some functions are actually named
17683 something starting with __ and the normal name is an alias. */
17684#if defined __stub_$ac_func || defined __stub___$ac_func
17685choke me
17686#endif
17687
17688int
17689main ()
17690{
17691return $ac_func ();
17692 ;
17693 return 0;
17694}
17695_ACEOF
17696rm -f conftest.$ac_objext conftest$ac_exeext
17697if { (ac_try="$ac_link"
17698case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17701esac
17702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_link") 2>conftest.er1
17704 ac_status=$?
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17711 { (case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17714esac
17715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_try") 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest$ac_exeext'
17721 { (case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17724esac
17725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_try") 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 eval "$as_ac_var=yes"
17731else
17732 echo "$as_me: failed program was:" >&5
17733sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 eval "$as_ac_var=no"
17736fi
17737
17738rm -f core conftest.err conftest.$ac_objext \
17739 conftest$ac_exeext conftest.$ac_ext
17740fi
17741ac_res=`eval echo '${'$as_ac_var'}'`
17742 { echo "$as_me:$LINENO: result: $ac_res" >&5
17743echo "${ECHO_T}$ac_res" >&6; }
17744if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017745 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017747_ACEOF
17748
17749fi
17750done
17751
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017752
17753
17754
17755
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017756for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017757do
17758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17759{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763else
17764 cat >conftest.$ac_ext <<_ACEOF
17765/* confdefs.h. */
17766_ACEOF
17767cat confdefs.h >>conftest.$ac_ext
17768cat >>conftest.$ac_ext <<_ACEOF
17769/* end confdefs.h. */
17770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17772#define $ac_func innocuous_$ac_func
17773
17774/* System header to define __stub macros and hopefully few prototypes,
17775 which can conflict with char $ac_func (); below.
17776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777 <limits.h> exists even on freestanding compilers. */
17778
17779#ifdef __STDC__
17780# include <limits.h>
17781#else
17782# include <assert.h>
17783#endif
17784
17785#undef $ac_func
17786
17787/* Override any GCC internal prototype to avoid an error.
17788 Use char because int might match the return type of a GCC
17789 builtin and then its argument prototype would still apply. */
17790#ifdef __cplusplus
17791extern "C"
17792#endif
17793char $ac_func ();
17794/* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797#if defined __stub_$ac_func || defined __stub___$ac_func
17798choke me
17799#endif
17800
17801int
17802main ()
17803{
17804return $ac_func ();
17805 ;
17806 return 0;
17807}
17808_ACEOF
17809rm -f conftest.$ac_objext conftest$ac_exeext
17810if { (ac_try="$ac_link"
17811case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17814esac
17815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_link") 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827esac
17828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest$ac_exeext'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837esac
17838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 eval "$as_ac_var=yes"
17844else
17845 echo "$as_me: failed program was:" >&5
17846sed 's/^/| /' conftest.$ac_ext >&5
17847
17848 eval "$as_ac_var=no"
17849fi
17850
17851rm -f core conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17853fi
17854ac_res=`eval echo '${'$as_ac_var'}'`
17855 { echo "$as_me:$LINENO: result: $ac_res" >&5
17856echo "${ECHO_T}$ac_res" >&6; }
17857if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017858 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017860_ACEOF
17861
17862fi
17863done
17864
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017865
17866
17867
17868
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017869for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017870do
17871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17872{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17874if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876else
17877 cat >conftest.$ac_ext <<_ACEOF
17878/* confdefs.h. */
17879_ACEOF
17880cat confdefs.h >>conftest.$ac_ext
17881cat >>conftest.$ac_ext <<_ACEOF
17882/* end confdefs.h. */
17883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17885#define $ac_func innocuous_$ac_func
17886
17887/* System header to define __stub macros and hopefully few prototypes,
17888 which can conflict with char $ac_func (); below.
17889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17890 <limits.h> exists even on freestanding compilers. */
17891
17892#ifdef __STDC__
17893# include <limits.h>
17894#else
17895# include <assert.h>
17896#endif
17897
17898#undef $ac_func
17899
17900/* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17903#ifdef __cplusplus
17904extern "C"
17905#endif
17906char $ac_func ();
17907/* The GNU C library defines this for functions which it implements
17908 to always fail with ENOSYS. Some functions are actually named
17909 something starting with __ and the normal name is an alias. */
17910#if defined __stub_$ac_func || defined __stub___$ac_func
17911choke me
17912#endif
17913
17914int
17915main ()
17916{
17917return $ac_func ();
17918 ;
17919 return 0;
17920}
17921_ACEOF
17922rm -f conftest.$ac_objext conftest$ac_exeext
17923if { (ac_try="$ac_link"
17924case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17927esac
17928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_link") 2>conftest.er1
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940esac
17941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest$ac_exeext'
17947 { (case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17950esac
17951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_try") 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 eval "$as_ac_var=yes"
17957else
17958 echo "$as_me: failed program was:" >&5
17959sed 's/^/| /' conftest.$ac_ext >&5
17960
17961 eval "$as_ac_var=no"
17962fi
17963
17964rm -f core conftest.err conftest.$ac_objext \
17965 conftest$ac_exeext conftest.$ac_ext
17966fi
17967ac_res=`eval echo '${'$as_ac_var'}'`
17968 { echo "$as_me:$LINENO: result: $ac_res" >&5
17969echo "${ECHO_T}$ac_res" >&6; }
17970if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017971 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017973_ACEOF
17974
17975fi
17976done
17977
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017978{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17979echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17980if test "${llvm_cv_c_printf_a+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017982else
17983 ac_ext=c
17984ac_cpp='$CPP $CPPFLAGS'
17985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17987ac_compiler_gnu=$ac_cv_c_compiler_gnu
17988
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017989 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017990 llvmac_cv_c_printf_a=no
17991else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017992 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017993
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000017994 /* confdefs.h. */
17995_ACEOF
17996cat confdefs.h >>conftest.$ac_ext
17997cat >>conftest.$ac_ext <<_ACEOF
17998/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000017999
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018000#include <stdio.h>
18001#include <stdlib.h>
18002
18003int
18004main ()
18005{
18006
18007volatile double A, B;
18008char Buffer[100];
18009A = 1;
18010A /= 10.0;
18011sprintf(Buffer, "%a", A);
18012B = atof(Buffer);
18013if (A != B)
18014 return (1);
18015if (A != 0x1.999999999999ap-4)
18016 return (1);
18017return (0);
18018 ;
18019 return 0;
18020}
18021_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018022rm -f conftest$ac_exeext
18023if { (ac_try="$ac_link"
18024case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027esac
18028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_link") 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036esac
18037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
18039 ac_status=$?
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018042 llvm_cv_c_printf_a=yes
18043else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018044 echo "$as_me: program exited with status $ac_status" >&5
18045echo "$as_me: failed program was:" >&5
18046sed 's/^/| /' conftest.$ac_ext >&5
18047
18048( exit $ac_status )
18049llvmac_cv_c_printf_a=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018050fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018051rm -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 +000018052fi
18053
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018054
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018055 ac_ext=c
18056ac_cpp='$CPP $CPPFLAGS'
18057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18059ac_compiler_gnu=$ac_cv_c_compiler_gnu
18060
18061fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018062{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18063echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018064 if test "$llvm_cv_c_printf_a" = "yes"; then
18065
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018066cat >>confdefs.h <<\_ACEOF
18067#define HAVE_PRINTF_A 1
18068_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018069
18070 fi
18071
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018072
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018073{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18074echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18075if test "${ac_cv_func_rand48+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018077else
18078 ac_ext=cpp
18079ac_cpp='$CXXCPP $CPPFLAGS'
18080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18083
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018084 cat >conftest.$ac_ext <<_ACEOF
18085/* confdefs.h. */
18086_ACEOF
18087cat confdefs.h >>conftest.$ac_ext
18088cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018089/* end confdefs.h. */
18090#include <stdlib.h>
18091int
18092main ()
18093{
18094srand48(0);lrand48();drand48();
18095 ;
18096 return 0;
18097}
18098_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018099rm -f conftest.$ac_objext
18100if { (ac_try="$ac_compile"
18101case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_compile") 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117esac
18118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest.$ac_objext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127esac
18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018133 ac_cv_func_rand48=yes
18134else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018135 echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138 ac_cv_func_rand48=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018139fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018140
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18142 ac_ext=c
18143ac_cpp='$CPP $CPPFLAGS'
18144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146ac_compiler_gnu=$ac_cv_c_compiler_gnu
18147
18148fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018149{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18150echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018151
18152if test "$ac_cv_func_rand48" = "yes" ; then
18153
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018154cat >>confdefs.h <<\_ACEOF
18155#define HAVE_RAND48 1
18156_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018157
18158fi
18159
18160
Edwin Törökc27310c2010-01-26 08:50:50 +000018161
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018162{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18163echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18164if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018166else
18167 ac_ext=cpp
18168ac_cpp='$CXXCPP $CPPFLAGS'
18169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18172
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018173 cat >conftest.$ac_ext <<_ACEOF
18174/* confdefs.h. */
18175_ACEOF
18176cat confdefs.h >>conftest.$ac_ext
18177cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018178/* end confdefs.h. */
18179#include <math.h>
18180int
18181main ()
18182{
18183float f; isnan(f);
18184 ;
18185 return 0;
18186}
18187_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018188rm -f conftest.$ac_objext
18189if { (ac_try="$ac_compile"
18190case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193esac
18194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_compile") 2>conftest.er1
18196 ac_status=$?
18197 grep -v '^ *+' conftest.er1 >conftest.err
18198 rm -f conftest.er1
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
18202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18203 { (case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18206esac
18207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_try") 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; } &&
18212 { ac_try='test -s conftest.$ac_objext'
18213 { (case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18216esac
18217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018222 ac_cv_func_isnan_in_math_h=yes
18223else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018224 echo "$as_me: failed program was:" >&5
18225sed 's/^/| /' conftest.$ac_ext >&5
18226
18227 ac_cv_func_isnan_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018228fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018229
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231 ac_ext=c
18232ac_cpp='$CPP $CPPFLAGS'
18233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235ac_compiler_gnu=$ac_cv_c_compiler_gnu
18236
18237fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018238{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18239echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018240
18241
18242if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18243
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018244cat >>confdefs.h <<\_ACEOF
18245#define HAVE_ISNAN_IN_MATH_H 1
18246_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018247
18248fi
18249
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018250{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18251echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18252if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018254else
18255 ac_ext=cpp
18256ac_cpp='$CXXCPP $CPPFLAGS'
18257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18260
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018261 cat >conftest.$ac_ext <<_ACEOF
18262/* confdefs.h. */
18263_ACEOF
18264cat confdefs.h >>conftest.$ac_ext
18265cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018266/* end confdefs.h. */
18267#include <cmath>
18268int
18269main ()
18270{
18271float f; isnan(f);
18272 ;
18273 return 0;
18274}
18275_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018276rm -f conftest.$ac_objext
18277if { (ac_try="$ac_compile"
18278case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281esac
18282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_compile") 2>conftest.er1
18284 ac_status=$?
18285 grep -v '^ *+' conftest.er1 >conftest.err
18286 rm -f conftest.er1
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294esac
18295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest.$ac_objext'
18301 { (case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18304esac
18305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_try") 2>&5
18307 ac_status=$?
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018310 ac_cv_func_isnan_in_cmath=yes
18311else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018312 echo "$as_me: failed program was:" >&5
18313sed 's/^/| /' conftest.$ac_ext >&5
18314
18315 ac_cv_func_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018316fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018317
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 ac_ext=c
18320ac_cpp='$CPP $CPPFLAGS'
18321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323ac_compiler_gnu=$ac_cv_c_compiler_gnu
18324
18325fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018326{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18327echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018328
18329if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18330
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018331cat >>confdefs.h <<\_ACEOF
18332#define HAVE_ISNAN_IN_CMATH 1
18333_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018334
18335fi
18336
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018337{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18338echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18339if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018341else
18342 ac_ext=cpp
18343ac_cpp='$CXXCPP $CPPFLAGS'
18344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18347
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018348 cat >conftest.$ac_ext <<_ACEOF
18349/* confdefs.h. */
18350_ACEOF
18351cat confdefs.h >>conftest.$ac_ext
18352cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018353/* end confdefs.h. */
18354#include <cmath>
18355int
18356main ()
18357{
18358float f; std::isnan(f);
18359 ;
18360 return 0;
18361}
18362_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018363rm -f conftest.$ac_objext
18364if { (ac_try="$ac_compile"
18365case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18368esac
18369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_compile") 2>conftest.er1
18371 ac_status=$?
18372 grep -v '^ *+' conftest.er1 >conftest.err
18373 rm -f conftest.er1
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
18377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18381esac
18382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18391esac
18392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018397 ac_cv_func_std_isnan_in_cmath=yes
18398else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018399 echo "$as_me: failed program was:" >&5
18400sed 's/^/| /' conftest.$ac_ext >&5
18401
18402 ac_cv_func_std_isnan_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018403fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018404
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 ac_ext=c
18407ac_cpp='$CPP $CPPFLAGS'
18408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18410ac_compiler_gnu=$ac_cv_c_compiler_gnu
18411
18412fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018413{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18414echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018415
18416if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18417
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018418cat >>confdefs.h <<\_ACEOF
18419#define HAVE_STD_ISNAN_IN_CMATH 1
18420_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018421
18422fi
18423
18424
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018425{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18426echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18427if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018429else
18430 ac_ext=cpp
18431ac_cpp='$CXXCPP $CPPFLAGS'
18432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18435
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018436 cat >conftest.$ac_ext <<_ACEOF
18437/* confdefs.h. */
18438_ACEOF
18439cat confdefs.h >>conftest.$ac_ext
18440cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018441/* end confdefs.h. */
18442#include <math.h>
18443int
18444main ()
18445{
18446float f; isinf(f);
18447 ;
18448 return 0;
18449}
18450_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018451rm -f conftest.$ac_objext
18452if { (ac_try="$ac_compile"
18453case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456esac
18457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_compile") 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18466 { (case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18469esac
18470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18471 (eval "$ac_try") 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
18476 { (case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479esac
18480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_try") 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018485 ac_cv_func_isinf_in_math_h=yes
18486else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018487 echo "$as_me: failed program was:" >&5
18488sed 's/^/| /' conftest.$ac_ext >&5
18489
18490 ac_cv_func_isinf_in_math_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018491fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018492
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18494 ac_ext=c
18495ac_cpp='$CPP $CPPFLAGS'
18496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18498ac_compiler_gnu=$ac_cv_c_compiler_gnu
18499
18500fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018501{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18502echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018503
18504if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18505
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018506cat >>confdefs.h <<\_ACEOF
18507#define HAVE_ISINF_IN_MATH_H 1
18508_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018509
18510fi
18511
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018512{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18513echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18514if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018516else
18517 ac_ext=cpp
18518ac_cpp='$CXXCPP $CPPFLAGS'
18519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18522
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018523 cat >conftest.$ac_ext <<_ACEOF
18524/* confdefs.h. */
18525_ACEOF
18526cat confdefs.h >>conftest.$ac_ext
18527cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018528/* end confdefs.h. */
18529#include <cmath>
18530int
18531main ()
18532{
18533float f; isinf(f);
18534 ;
18535 return 0;
18536}
18537_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018538rm -f conftest.$ac_objext
18539if { (ac_try="$ac_compile"
18540case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18543esac
18544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_compile") 2>conftest.er1
18546 ac_status=$?
18547 grep -v '^ *+' conftest.er1 >conftest.err
18548 rm -f conftest.er1
18549 cat conftest.err >&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } &&
18552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18553 { (case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556esac
18557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_try") 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; } &&
18562 { ac_try='test -s conftest.$ac_objext'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18566esac
18567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018572 ac_cv_func_isinf_in_cmath=yes
18573else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018574 echo "$as_me: failed program was:" >&5
18575sed 's/^/| /' conftest.$ac_ext >&5
18576
18577 ac_cv_func_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018578fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018579
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18581 ac_ext=c
18582ac_cpp='$CPP $CPPFLAGS'
18583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585ac_compiler_gnu=$ac_cv_c_compiler_gnu
18586
18587fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018588{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18589echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018590
18591if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18592
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018593cat >>confdefs.h <<\_ACEOF
18594#define HAVE_ISINF_IN_CMATH 1
18595_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018596
18597fi
18598
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018599{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18600echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18601if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018603else
18604 ac_ext=cpp
18605ac_cpp='$CXXCPP $CPPFLAGS'
18606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18609
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018610 cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h. */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018615/* end confdefs.h. */
18616#include <cmath>
18617int
18618main ()
18619{
18620float f; std::isinf(f)}
18621 ;
18622 return 0;
18623}
18624_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018625rm -f conftest.$ac_objext
18626if { (ac_try="$ac_compile"
18627case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18630esac
18631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_compile") 2>conftest.er1
18633 ac_status=$?
18634 grep -v '^ *+' conftest.er1 >conftest.err
18635 rm -f conftest.er1
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18640 { (case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18643esac
18644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_try") 2>&5
18646 ac_status=$?
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; } &&
18649 { ac_try='test -s conftest.$ac_objext'
18650 { (case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18653esac
18654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_try") 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018659 ac_cv_func_std_isinf_in_cmath=yes
18660else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018661 echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664 ac_cv_func_std_isinf_in_cmath=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018665fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018666
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18668 ac_ext=c
18669ac_cpp='$CPP $CPPFLAGS'
18670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18672ac_compiler_gnu=$ac_cv_c_compiler_gnu
18673
18674fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018675{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18676echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018677
18678if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18679
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018680cat >>confdefs.h <<\_ACEOF
18681#define HAVE_STD_ISINF_IN_CMATH 1
18682_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018683
18684fi
18685
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018686{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18687echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18688if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018690else
18691 ac_ext=cpp
18692ac_cpp='$CXXCPP $CPPFLAGS'
18693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18696
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018697 cat >conftest.$ac_ext <<_ACEOF
18698/* confdefs.h. */
18699_ACEOF
18700cat confdefs.h >>conftest.$ac_ext
18701cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018702/* end confdefs.h. */
18703#include <ieeefp.h>
18704int
18705main ()
18706{
18707float f; finite(f);
18708 ;
18709 return 0;
18710}
18711_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018712rm -f conftest.$ac_objext
18713if { (ac_try="$ac_compile"
18714case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18717esac
18718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_compile") 2>conftest.er1
18720 ac_status=$?
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_try") 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest.$ac_objext'
18737 { (case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18740esac
18741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_try") 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018746 ac_cv_func_finite_in_ieeefp_h=yes
18747else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018748 echo "$as_me: failed program was:" >&5
18749sed 's/^/| /' conftest.$ac_ext >&5
18750
18751 ac_cv_func_finite_in_ieeefp_h=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018752fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018753
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18755 ac_ext=c
18756ac_cpp='$CPP $CPPFLAGS'
18757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18759ac_compiler_gnu=$ac_cv_c_compiler_gnu
18760
18761fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018762{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18763echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018764
18765if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18766
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018767cat >>confdefs.h <<\_ACEOF
18768#define HAVE_FINITE_IN_IEEEFP_H 1
18769_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018770
18771fi
18772
18773
18774
18775if test "$llvm_cv_platform_type" = "Unix" ; then
18776
18777
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018778for ac_header in stdlib.h unistd.h
18779do
18780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18786fi
18787ac_res=`eval echo '${'$as_ac_Header'}'`
18788 { echo "$as_me:$LINENO: result: $ac_res" >&5
18789echo "${ECHO_T}$ac_res" >&6; }
18790else
18791 # Is the header compilable?
18792{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18794cat >conftest.$ac_ext <<_ACEOF
18795/* confdefs.h. */
18796_ACEOF
18797cat confdefs.h >>conftest.$ac_ext
18798cat >>conftest.$ac_ext <<_ACEOF
18799/* end confdefs.h. */
18800$ac_includes_default
18801#include <$ac_header>
18802_ACEOF
18803rm -f conftest.$ac_objext
18804if { (ac_try="$ac_compile"
18805case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808esac
18809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_compile") 2>conftest.er1
18811 ac_status=$?
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18821esac
18822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_try") 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 ac_header_compiler=yes
18838else
18839 echo "$as_me: failed program was:" >&5
18840sed 's/^/| /' conftest.$ac_ext >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018841
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018842 ac_header_compiler=no
18843fi
18844
18845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18847echo "${ECHO_T}$ac_header_compiler" >&6; }
18848
18849# Is the header present?
18850{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18852cat >conftest.$ac_ext <<_ACEOF
18853/* confdefs.h. */
18854_ACEOF
18855cat confdefs.h >>conftest.$ac_ext
18856cat >>conftest.$ac_ext <<_ACEOF
18857/* end confdefs.h. */
18858#include <$ac_header>
18859_ACEOF
18860if { (ac_try="$ac_cpp conftest.$ac_ext"
18861case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18864esac
18865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18867 ac_status=$?
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } >/dev/null; then
18873 if test -s conftest.err; then
18874 ac_cpp_err=$ac_c_preproc_warn_flag
18875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18876 else
18877 ac_cpp_err=
18878 fi
18879else
18880 ac_cpp_err=yes
18881fi
18882if test -z "$ac_cpp_err"; then
18883 ac_header_preproc=yes
18884else
18885 echo "$as_me: failed program was:" >&5
18886sed 's/^/| /' conftest.$ac_ext >&5
18887
18888 ac_header_preproc=no
18889fi
18890
18891rm -f conftest.err conftest.$ac_ext
18892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18893echo "${ECHO_T}$ac_header_preproc" >&6; }
18894
18895# So? What about this header?
18896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18897 yes:no: )
18898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18902 ac_header_preproc=yes
18903 ;;
18904 no:yes:* )
18905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18917 ( cat <<\_ASBOX
18918## ----------------------------------- ##
18919## Report this to llvmbugs@cs.uiuc.edu ##
18920## ----------------------------------- ##
18921_ASBOX
18922 ) | sed "s/^/$as_me: WARNING: /" >&2
18923 ;;
18924esac
18925{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18929else
18930 eval "$as_ac_Header=\$ac_header_preproc"
18931fi
18932ac_res=`eval echo '${'$as_ac_Header'}'`
18933 { echo "$as_me:$LINENO: result: $ac_res" >&5
18934echo "${ECHO_T}$ac_res" >&6; }
18935
18936fi
18937if test `eval echo '${'$as_ac_Header'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018938 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018940_ACEOF
18941
18942fi
18943
18944done
18945
18946
18947for ac_func in getpagesize
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000018948do
18949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18950{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18952if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18954else
18955 cat >conftest.$ac_ext <<_ACEOF
18956/* confdefs.h. */
18957_ACEOF
18958cat confdefs.h >>conftest.$ac_ext
18959cat >>conftest.$ac_ext <<_ACEOF
18960/* end confdefs.h. */
18961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18963#define $ac_func innocuous_$ac_func
18964
18965/* System header to define __stub macros and hopefully few prototypes,
18966 which can conflict with char $ac_func (); below.
18967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18968 <limits.h> exists even on freestanding compilers. */
18969
18970#ifdef __STDC__
18971# include <limits.h>
18972#else
18973# include <assert.h>
18974#endif
18975
18976#undef $ac_func
18977
18978/* Override any GCC internal prototype to avoid an error.
18979 Use char because int might match the return type of a GCC
18980 builtin and then its argument prototype would still apply. */
18981#ifdef __cplusplus
18982extern "C"
18983#endif
18984char $ac_func ();
18985/* The GNU C library defines this for functions which it implements
18986 to always fail with ENOSYS. Some functions are actually named
18987 something starting with __ and the normal name is an alias. */
18988#if defined __stub_$ac_func || defined __stub___$ac_func
18989choke me
18990#endif
18991
18992int
18993main ()
18994{
18995return $ac_func ();
18996 ;
18997 return 0;
18998}
18999_ACEOF
19000rm -f conftest.$ac_objext conftest$ac_exeext
19001if { (ac_try="$ac_link"
19002case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005esac
19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>conftest.er1
19008 ac_status=$?
19009 grep -v '^ *+' conftest.er1 >conftest.err
19010 rm -f conftest.er1
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19015 { (case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018esac
19019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_try") 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; } &&
19024 { ac_try='test -s conftest$ac_exeext'
19025 { (case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19028esac
19029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_try") 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 eval "$as_ac_var=yes"
19035else
19036 echo "$as_me: failed program was:" >&5
19037sed 's/^/| /' conftest.$ac_ext >&5
19038
19039 eval "$as_ac_var=no"
19040fi
19041
19042rm -f core conftest.err conftest.$ac_objext \
19043 conftest$ac_exeext conftest.$ac_ext
19044fi
19045ac_res=`eval echo '${'$as_ac_var'}'`
19046 { echo "$as_me:$LINENO: result: $ac_res" >&5
19047echo "${ECHO_T}$ac_res" >&6; }
19048if test `eval echo '${'$as_ac_var'}'` = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019049 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019051_ACEOF
19052
19053fi
19054done
19055
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019056{ echo "$as_me:$LINENO: checking for working mmap" >&5
19057echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19058if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019060else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019061 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019062 ac_cv_func_mmap_fixed_mapped=no
19063else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019064 cat >conftest.$ac_ext <<_ACEOF
19065/* confdefs.h. */
19066_ACEOF
19067cat confdefs.h >>conftest.$ac_ext
19068cat >>conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019069/* end confdefs.h. */
19070$ac_includes_default
19071/* malloc might have been renamed as rpl_malloc. */
19072#undef malloc
19073
19074/* Thanks to Mike Haertel and Jim Avera for this test.
19075 Here is a matrix of mmap possibilities:
19076 mmap private not fixed
19077 mmap private fixed at somewhere currently unmapped
19078 mmap private fixed at somewhere already mapped
19079 mmap shared not fixed
19080 mmap shared fixed at somewhere currently unmapped
19081 mmap shared fixed at somewhere already mapped
19082 For private mappings, we should verify that changes cannot be read()
19083 back from the file, nor mmap's back from the file at a different
19084 address. (There have been systems where private was not correctly
19085 implemented like the infamous i386 svr4.0, and systems where the
19086 VM page cache was not coherent with the file system buffer cache
19087 like early versions of FreeBSD and possibly contemporary NetBSD.)
19088 For shared mappings, we should conversely verify that changes get
19089 propagated back to all the places they're supposed to be.
19090
19091 Grep wants private fixed already mapped.
19092 The main things grep needs to know about mmap are:
19093 * does it exist and is it safe to write into the mmap'd area
19094 * how to use it (BSD variants) */
19095
19096#include <fcntl.h>
19097#include <sys/mman.h>
19098
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019099#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019100char *malloc ();
19101#endif
19102
19103/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019104#if !HAVE_GETPAGESIZE
19105/* Assume that all systems that can run configure have sys/param.h. */
19106# if !HAVE_SYS_PARAM_H
19107# define HAVE_SYS_PARAM_H 1
19108# endif
19109
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019110# ifdef _SC_PAGESIZE
19111# define getpagesize() sysconf(_SC_PAGESIZE)
19112# else /* no _SC_PAGESIZE */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019113# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019114# include <sys/param.h>
19115# ifdef EXEC_PAGESIZE
19116# define getpagesize() EXEC_PAGESIZE
19117# else /* no EXEC_PAGESIZE */
19118# ifdef NBPG
19119# define getpagesize() NBPG * CLSIZE
19120# ifndef CLSIZE
19121# define CLSIZE 1
19122# endif /* no CLSIZE */
19123# else /* no NBPG */
19124# ifdef NBPC
19125# define getpagesize() NBPC
19126# else /* no NBPC */
19127# ifdef PAGESIZE
19128# define getpagesize() PAGESIZE
19129# endif /* PAGESIZE */
19130# endif /* no NBPC */
19131# endif /* no NBPG */
19132# endif /* no EXEC_PAGESIZE */
19133# else /* no HAVE_SYS_PARAM_H */
19134# define getpagesize() 8192 /* punt totally */
19135# endif /* no HAVE_SYS_PARAM_H */
19136# endif /* no _SC_PAGESIZE */
19137
19138#endif /* no HAVE_GETPAGESIZE */
19139
19140int
19141main ()
19142{
19143 char *data, *data2, *data3;
19144 int i, pagesize;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019145 int fd;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019146
19147 pagesize = getpagesize ();
19148
19149 /* First, make a file with some known garbage in it. */
19150 data = (char *) malloc (pagesize);
19151 if (!data)
19152 return 1;
19153 for (i = 0; i < pagesize; ++i)
19154 *(data + i) = rand ();
19155 umask (0);
19156 fd = creat ("conftest.mmap", 0600);
19157 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019158 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019159 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019160 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019161 close (fd);
19162
19163 /* Next, try to mmap the file at a fixed address which already has
19164 something else allocated at it. If we can, also make sure that
19165 we see the same garbage. */
19166 fd = open ("conftest.mmap", O_RDWR);
19167 if (fd < 0)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019168 return 1;
19169 data2 = (char *) malloc (2 * pagesize);
19170 if (!data2)
19171 return 1;
19172 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019173 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19174 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019175 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019176 for (i = 0; i < pagesize; ++i)
19177 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019178 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019179
19180 /* Finally, make sure that changes to the mapped area do not
19181 percolate back to the file as seen by read(). (This is a bug on
19182 some variants of i386 svr4.0.) */
19183 for (i = 0; i < pagesize; ++i)
19184 *(data2 + i) = *(data2 + i) + 1;
19185 data3 = (char *) malloc (pagesize);
19186 if (!data3)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019187 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019188 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019189 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019190 for (i = 0; i < pagesize; ++i)
19191 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019192 return 1;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019193 close (fd);
19194 return 0;
19195}
19196_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019197rm -f conftest$ac_exeext
19198if { (ac_try="$ac_link"
19199case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_link") 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211esac
19212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019217 ac_cv_func_mmap_fixed_mapped=yes
19218else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019219 echo "$as_me: program exited with status $ac_status" >&5
19220echo "$as_me: failed program was:" >&5
19221sed 's/^/| /' conftest.$ac_ext >&5
19222
19223( exit $ac_status )
19224ac_cv_func_mmap_fixed_mapped=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019225fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019226rm -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 +000019227fi
19228
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019229
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019230fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019231{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19232echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019233if test $ac_cv_func_mmap_fixed_mapped = yes; then
19234
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019235cat >>confdefs.h <<\_ACEOF
19236#define HAVE_MMAP 1
19237_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019238
19239fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019240rm -f conftest.mmap
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019241
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019242 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19243echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19244if test "${ac_cv_func_mmap_file+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019246else
19247 ac_ext=c
19248ac_cpp='$CPP $CPPFLAGS'
19249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251ac_compiler_gnu=$ac_cv_c_compiler_gnu
19252
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019253 if test "$cross_compiling" = yes; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019254 ac_cv_func_mmap_file=no
19255else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019256 cat >conftest.$ac_ext <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019257
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019258 /* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
Edwin Törökc27310c2010-01-26 08:50:50 +000019263
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019264#include <sys/types.h>
19265#include <sys/mman.h>
19266#include <fcntl.h>
19267
19268int
19269main ()
19270{
19271
19272 int fd;
19273 fd = creat ("foo",0777);
19274 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19275 unlink ("foo");
19276 return (fd != (int) MAP_FAILED);
19277 ;
19278 return 0;
19279}
19280_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019281rm -f conftest$ac_exeext
19282if { (ac_try="$ac_link"
19283case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286esac
19287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_link") 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19292 { (case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19295esac
19296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_try") 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019301 ac_cv_func_mmap_file=yes
19302else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019303 echo "$as_me: program exited with status $ac_status" >&5
19304echo "$as_me: failed program was:" >&5
19305sed 's/^/| /' conftest.$ac_ext >&5
19306
19307( exit $ac_status )
19308ac_cv_func_mmap_file=no
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019309fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019310rm -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 +000019311fi
19312
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019313
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019314 ac_ext=c
19315ac_cpp='$CPP $CPPFLAGS'
19316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19318ac_compiler_gnu=$ac_cv_c_compiler_gnu
19319
19320
19321fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019322{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19323echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019324if test "$ac_cv_func_mmap_file" = yes; then
19325
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019326cat >>confdefs.h <<\_ACEOF
19327#define HAVE_MMAP_FILE
19328_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019329
19330 MMAP_FILE=yes
19331
19332fi
19333
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019334 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19335echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19336if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019338else
19339 if test "$llvm_cv_os_type" = "Interix" ; then
19340 ac_cv_need_dev_zero_for_mmap=yes
19341 else
19342 ac_cv_need_dev_zero_for_mmap=no
19343 fi
19344
19345fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019346{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19347echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019348if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19349
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019350cat >>confdefs.h <<\_ACEOF
19351#define NEED_DEV_ZERO_FOR_MMAP 1
19352_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019353
19354fi
19355
19356 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19357 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019358 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19359echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019360 fi
19361 if test "$ac_cv_func_mmap_file" = "no"
19362 then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019363 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19364echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019365 fi
19366fi
19367
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019368{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19369echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19370cat >conftest.$ac_ext <<_ACEOF
19371/* confdefs.h. */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000019375/* end confdefs.h. */
19376int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000019377 volatile unsigned long val = 1;
19378 __sync_synchronize();
19379 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000019380 __sync_add_and_fetch(&val, 1);
19381 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000019382 return 0;
19383 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019384
19385_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019386rm -f conftest.$ac_objext conftest$ac_exeext
19387if { (ac_try="$ac_link"
19388case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391esac
19392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_link") 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
19400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19401 { (case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19404esac
19405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_try") 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } &&
19410 { ac_try='test -s conftest$ac_exeext'
19411 { (case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414esac
19415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_try") 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19420 { echo "$as_me:$LINENO: result: yes" >&5
19421echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000019422
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019423cat >>confdefs.h <<\_ACEOF
19424#define LLVM_MULTITHREADED 1
19425_ACEOF
Owen Anderson96237ec2009-05-19 22:18:56 +000019426
Owen Andersonff0f88e2009-05-18 23:58:51 +000019427else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019428 echo "$as_me: failed program was:" >&5
19429sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000019430
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019431 { echo "$as_me:$LINENO: result: no" >&5
19432echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000019433
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019434cat >>confdefs.h <<\_ACEOF
19435#define LLVM_MULTITHREADED 0
19436_ACEOF
19437
19438 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19439echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000019440fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019441
Owen Andersonff0f88e2009-05-18 23:58:51 +000019442rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019443 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000019444
19445
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019446
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019447if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019448 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19449echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19450if test "${llvm_cv_linux_mixed+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019452else
19453 ac_ext=c
19454ac_cpp='$CPP $CPPFLAGS'
19455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_c_compiler_gnu
19458
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019459 cat >conftest.$ac_ext <<_ACEOF
19460/* confdefs.h. */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019464/* end confdefs.h. */
19465#ifndef __x86_64__
19466 error: Not x86-64 even if uname says so!
19467 #endif
19468
19469int
19470main ()
19471{
19472
19473 ;
19474 return 0;
19475}
19476_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019477rm -f conftest.$ac_objext
19478if { (ac_try="$ac_compile"
19479case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19482esac
19483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_compile") 2>conftest.er1
19485 ac_status=$?
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
19491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19492 { (case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495esac
19496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_try") 2>&5
19498 ac_status=$?
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; } &&
19501 { ac_try='test -s conftest.$ac_objext'
19502 { (case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505esac
19506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_try") 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019511 llvm_cv_linux_mixed=no
19512else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019513 echo "$as_me: failed program was:" >&5
19514sed 's/^/| /' conftest.$ac_ext >&5
19515
19516 llvm_cv_linux_mixed=yes
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019517fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019518
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19520 ac_ext=c
19521ac_cpp='$CPP $CPPFLAGS'
19522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19524ac_compiler_gnu=$ac_cv_c_compiler_gnu
19525
19526
19527fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019528{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19529echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky5c2dc212009-09-29 06:18:23 +000019530
19531 if test "$llvm_cv_linux_mixed" = "yes"; then
19532 llvm_cv_target_arch="x86"
19533 ARCH="x86"
19534 fi
19535fi
19536
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019537
Reid Spencer59c09b32007-07-30 20:13:24 +000019538for ac_func in __dso_handle
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019539do
19540as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19541{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19543if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19545else
19546 cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h. */
19548_ACEOF
19549cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF
19551/* end confdefs.h. */
19552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19554#define $ac_func innocuous_$ac_func
19555
19556/* System header to define __stub macros and hopefully few prototypes,
19557 which can conflict with char $ac_func (); below.
19558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19559 <limits.h> exists even on freestanding compilers. */
19560
19561#ifdef __STDC__
19562# include <limits.h>
19563#else
19564# include <assert.h>
19565#endif
19566
19567#undef $ac_func
19568
19569/* Override any GCC internal prototype to avoid an error.
19570 Use char because int might match the return type of a GCC
19571 builtin and then its argument prototype would still apply. */
19572#ifdef __cplusplus
19573extern "C"
19574#endif
19575char $ac_func ();
19576/* The GNU C library defines this for functions which it implements
19577 to always fail with ENOSYS. Some functions are actually named
19578 something starting with __ and the normal name is an alias. */
19579#if defined __stub_$ac_func || defined __stub___$ac_func
19580choke me
19581#endif
19582
19583int
19584main ()
19585{
19586return $ac_func ();
19587 ;
19588 return 0;
19589}
19590_ACEOF
19591rm -f conftest.$ac_objext conftest$ac_exeext
19592if { (ac_try="$ac_link"
19593case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596esac
19597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_link") 2>conftest.er1
19599 ac_status=$?
19600 grep -v '^ *+' conftest.er1 >conftest.err
19601 rm -f conftest.er1
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19606 { (case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19609esac
19610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_try") 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest$ac_exeext'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 eval "$as_ac_var=yes"
19626else
19627 echo "$as_me: failed program was:" >&5
19628sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 eval "$as_ac_var=no"
19631fi
19632
19633rm -f core conftest.err conftest.$ac_objext \
19634 conftest$ac_exeext conftest.$ac_ext
19635fi
19636ac_res=`eval echo '${'$as_ac_var'}'`
19637 { echo "$as_me:$LINENO: result: $ac_res" >&5
19638echo "${ECHO_T}$ac_res" >&6; }
19639if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer59c09b32007-07-30 20:13:24 +000019640 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer59c09b32007-07-30 20:13:24 +000019642_ACEOF
19643
19644fi
19645done
19646
19647
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019648{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19649echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19650if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019652else
19653 llvm_cv_llvmgcc_sanity="no"
19654if test -x "$LLVMGCC" ; then
19655 cp /dev/null conftest.c
19656 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19657 grep 'target datalayout =' > /dev/null 2>&1
19658 if test $? -eq 0 ; then
19659 llvm_cv_llvmgcc_sanity="yes"
19660 fi
19661 rm conftest.c
19662fi
19663fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019664{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19665echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019666
19667if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019668 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19669echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019670 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19671 LLVMCC1=$llvmcc1path
19672
19673 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19674 LLVMCC1PLUS=$llvmcc1pluspath
19675
19676 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19677 LLVMGCCDIR=$llvmgccdir
19678
Tanya Lattner9894c2c2008-10-07 22:21:03 +000019679 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019680 LLVMGCC_LANGS=$llvmgcclangs
19681
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019682 { echo "$as_me:$LINENO: result: ok" >&5
19683echo "${ECHO_T}ok" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019684fi
19685
19686SHLIBEXT=$libltdl_cv_shlibext
19687
19688
19689# Translate the various configuration directories and other basic
19690# information into substitutions that will end up in Makefile.config.in
19691# that these configured values can be used by the makefiles
19692if test "${prefix}" = "NONE" ; then
19693 prefix="/usr/local"
19694fi
19695eval LLVM_PREFIX="${prefix}";
19696eval LLVM_BINDIR="${prefix}/bin";
19697eval LLVM_LIBDIR="${prefix}/lib";
19698eval LLVM_DATADIR="${prefix}/share/llvm";
19699eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19700eval LLVM_ETCDIR="${prefix}/etc/llvm";
19701eval LLVM_INCLUDEDIR="${prefix}/include";
19702eval LLVM_INFODIR="${prefix}/info";
19703eval LLVM_MANDIR="${prefix}/man";
19704LLVM_CONFIGTIME=`date`
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716# Place the various directores into the config.h file as #defines so that we
19717# can know about the installation paths within LLVM.
19718
19719cat >>confdefs.h <<_ACEOF
19720#define LLVM_PREFIX "$LLVM_PREFIX"
19721_ACEOF
19722
19723
19724cat >>confdefs.h <<_ACEOF
19725#define LLVM_BINDIR "$LLVM_BINDIR"
19726_ACEOF
19727
19728
19729cat >>confdefs.h <<_ACEOF
19730#define LLVM_LIBDIR "$LLVM_LIBDIR"
19731_ACEOF
19732
19733
19734cat >>confdefs.h <<_ACEOF
19735#define LLVM_DATADIR "$LLVM_DATADIR"
19736_ACEOF
19737
19738
19739cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000019740#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019741_ACEOF
19742
19743
19744cat >>confdefs.h <<_ACEOF
19745#define LLVM_ETCDIR "$LLVM_ETCDIR"
19746_ACEOF
19747
19748
19749cat >>confdefs.h <<_ACEOF
19750#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19751_ACEOF
19752
19753
19754cat >>confdefs.h <<_ACEOF
19755#define LLVM_INFODIR "$LLVM_INFODIR"
19756_ACEOF
19757
19758
19759cat >>confdefs.h <<_ACEOF
19760#define LLVM_MANDIR "$LLVM_MANDIR"
19761_ACEOF
19762
19763
19764cat >>confdefs.h <<_ACEOF
19765#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19766_ACEOF
19767
19768
Eric Christopher8b274472007-12-01 00:34:39 +000019769cat >>confdefs.h <<_ACEOF
19770#define LLVM_HOSTTRIPLE "$host"
19771_ACEOF
19772
19773
Gordon Henriksen016ec472007-10-02 09:50:32 +000019774# Determine which bindings to build.
19775if test "$BINDINGS_TO_BUILD" = auto ; then
19776 BINDINGS_TO_BUILD=""
19777 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19778 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19779 fi
19780fi
19781BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19782
19783
19784# This isn't really configurey, but it avoids having to repeat the list in
19785# other files.
19786ALL_BINDINGS=ocaml
19787
19788
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019789# Do any work necessary to ensure that bindings have what they need.
19790binding_prereqs_failed=0
19791for a_binding in $BINDINGS_TO_BUILD ; do
19792 case "$a_binding" in
19793 ocaml)
19794 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019795 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19796echo "$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 +000019797 binding_prereqs_failed=1
19798 fi
19799 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019800 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19801echo "$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 +000019802 binding_prereqs_failed=1
19803 fi
19804 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019805 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19806echo "$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 +000019807 fi
19808 if test "x$with_ocaml_libdir" != xauto ; then
19809 OCAML_LIBDIR=$with_ocaml_libdir
19810
19811 else
19812 ocaml_stdlib="`"$OCAMLC" -where`"
19813 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19814 then
19815 # ocaml stdlib is beneath our prefix; use stdlib
19816 OCAML_LIBDIR=$ocaml_stdlib
19817
19818 else
19819 # ocaml stdlib is outside our prefix; use libdir/ocaml
19820 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19821
19822 fi
19823 fi
19824 ;;
19825 esac
19826done
19827if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019828 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19829echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19830 { (exit 1); exit 1; }; }
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019831fi
19832
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019833{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19834echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19835if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019837else
19838 ac_ext=cpp
19839ac_cpp='$CXXCPP $CPPFLAGS'
19840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19843
19844 oldcxxflags="$CXXFLAGS"
19845 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019846 cat >conftest.$ac_ext <<_ACEOF
19847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019851/* end confdefs.h. */
19852
19853int
19854main ()
19855{
19856
19857 ;
19858 return 0;
19859}
19860_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019861rm -f conftest.$ac_objext
19862if { (ac_try="$ac_compile"
19863case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19866esac
19867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_compile") 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19876 { (case "(($ac_try" in
19877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19879esac
19880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881 (eval "$ac_try") 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest.$ac_objext'
19886 { (case "(($ac_try" in
19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19889esac
19890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891 (eval "$ac_try") 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019895 llvm_cv_cxx_visibility_inlines_hidden=yes
19896else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019897 echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
19900 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019901fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019902
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19904 CXXFLAGS="$oldcxxflags"
19905 ac_ext=c
19906ac_cpp='$CPP $CPPFLAGS'
19907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909ac_compiler_gnu=$ac_cv_c_compiler_gnu
19910
19911
19912fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000019913{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19914echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000019915if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19916 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19917
19918else
19919 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19920
19921fi
19922
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019923
Nick Lewycky6eab6652009-03-05 08:20:44 +000019924if test "$llvm_cv_link_use_r" = "yes" ; then
19925 RPATH="-Wl,-R"
19926else
19927 RPATH="-Wl,-rpath"
19928fi
19929
19930
19931if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19932 RDYNAMIC="-Wl,-export-dynamic"
19933else
19934 RDYNAMIC=""
19935fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000019936
19937
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019938
19939ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19940
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000019941ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19942
19943ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19944
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000019945ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19946
Daniel Dunbar0e18f262009-11-25 04:37:28 +000019947ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19948
Chandler Carruth1ec7df12009-10-26 01:35:46 +000019949ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019950
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019951
19952ac_config_files="$ac_config_files Makefile.config"
19953
19954
19955ac_config_files="$ac_config_files llvm.spec"
19956
19957
19958ac_config_files="$ac_config_files docs/doxygen.cfg"
19959
19960
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000019961ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19962
19963
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019964ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19965
19966
19967ac_config_commands="$ac_config_commands setup"
19968
19969ac_config_commands="$ac_config_commands Makefile"
19970
19971
19972ac_config_commands="$ac_config_commands Makefile.common"
19973
19974
19975ac_config_commands="$ac_config_commands examples/Makefile"
19976
19977
19978ac_config_commands="$ac_config_commands lib/Makefile"
19979
19980
19981ac_config_commands="$ac_config_commands runtime/Makefile"
19982
19983
19984ac_config_commands="$ac_config_commands test/Makefile"
19985
19986
19987ac_config_commands="$ac_config_commands test/Makefile.tests"
19988
19989
Bill Wendling9b9833f2009-01-04 23:12:30 +000019990ac_config_commands="$ac_config_commands unittests/Makefile"
19991
19992
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019993ac_config_commands="$ac_config_commands tools/Makefile"
19994
19995
19996ac_config_commands="$ac_config_commands utils/Makefile"
19997
19998
19999ac_config_commands="$ac_config_commands projects/Makefile"
20000
20001
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000020002ac_config_commands="$ac_config_commands bindings/Makefile"
20003
20004
20005ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20006
20007
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020008
20009cat >confcache <<\_ACEOF
20010# This file is a shell script that caches the results of configure
20011# tests run on this system so they can be shared between configure
20012# scripts and configure runs, see configure's option --config-cache.
20013# It is not useful on other systems. If it contains results you don't
20014# want to keep, you may remove or edit it.
20015#
20016# config.status only pays attention to the cache file if you give it
20017# the --recheck option to rerun configure.
20018#
20019# `ac_cv_env_foo' variables (set or unset) will be overridden when
20020# loading this file, other *unset* `ac_cv_foo' will be assigned the
20021# following values.
20022
20023_ACEOF
20024
20025# The following way of writing the cache mishandles newlines in values,
20026# but we know of no workaround that is simple, portable, and efficient.
20027# So, we kill variables containing newlines.
20028# Ultrix sh set writes to stderr and can't be redirected directly,
20029# and sets the high bit in the cache file unless we assign to the vars.
20030(
20031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20032 eval ac_val=\$$ac_var
20033 case $ac_val in #(
20034 *${as_nl}*)
20035 case $ac_var in #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020036 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20037echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020038 esac
20039 case $ac_var in #(
20040 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020041 *) $as_unset $ac_var ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020042 esac ;;
20043 esac
20044 done
20045
20046 (set) 2>&1 |
20047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20048 *${as_nl}ac_space=\ *)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020049 # `set' does not quote correctly, so add quotes (double-quote
20050 # substitution turns \\\\ into \\, and sed turns \\ into \).
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020051 sed -n \
20052 "s/'/'\\\\''/g;
20053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20054 ;; #(
20055 *)
20056 # `set' quotes correctly as required by POSIX, so do not add quotes.
20057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20058 ;;
20059 esac |
20060 sort
20061) |
20062 sed '
20063 /^ac_cv_env_/b end
20064 t clear
20065 :clear
20066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20067 t end
20068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20069 :end' >>confcache
20070if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20071 if test -w "$cache_file"; then
20072 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020073 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20074echo "$as_me: updating cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020075 cat confcache >$cache_file
20076 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020077 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20078echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020079 fi
20080fi
20081rm -f confcache
20082
20083test "x$prefix" = xNONE && prefix=$ac_default_prefix
20084# Let make expand exec_prefix.
20085test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20086
20087DEFS=-DHAVE_CONFIG_H
20088
20089ac_libobjs=
20090ac_ltlibobjs=
20091for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20092 # 1. Remove the extension, and $U if already installed.
20093 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020094 ac_i=`echo "$ac_i" | sed "$ac_script"`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020095 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20096 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020097 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20098 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020099done
20100LIBOBJS=$ac_libobjs
20101
20102LTLIBOBJS=$ac_ltlibobjs
20103
20104
20105if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020106 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20107Usually this means the macro was only invoked conditionally." >&5
20108echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20109Usually this means the macro was only invoked conditionally." >&2;}
20110 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020111fi
20112if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020113 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20114Usually this means the macro was only invoked conditionally." >&5
20115echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20116Usually this means the macro was only invoked conditionally." >&2;}
20117 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020118fi
20119
20120: ${CONFIG_STATUS=./config.status}
20121ac_clean_files_save=$ac_clean_files
20122ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020123{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20124echo "$as_me: creating $CONFIG_STATUS" >&6;}
20125cat >$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020126#! $SHELL
20127# Generated by $as_me.
20128# Run this file to recreate the current configuration.
20129# Compiler output produced by configure, useful for debugging
20130# configure, is in config.log if it exists.
20131
20132debug=false
20133ac_cs_recheck=false
20134ac_cs_silent=false
20135SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020136_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020137
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020138cat >>$CONFIG_STATUS <<\_ACEOF
20139## --------------------- ##
20140## M4sh Initialization. ##
20141## --------------------- ##
20142
20143# Be Bourne compatible
20144if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020145 emulate sh
20146 NULLCMD=:
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020147 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020148 # is contrary to our usage. Disable this feature.
20149 alias -g '${1+"$@"}'='"$@"'
20150 setopt NO_GLOB_SUBST
20151else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020152 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020153fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020154BIN_SH=xpg4; export BIN_SH # for Tru64
20155DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020156
20157
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020158# PATH needs CR
20159# Avoid depending upon Character Ranges.
20160as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20161as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20162as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20163as_cr_digits='0123456789'
20164as_cr_alnum=$as_cr_Letters$as_cr_digits
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020165
20166# The user is always right.
20167if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020168 echo "#! /bin/sh" >conf$$.sh
20169 echo "exit 0" >>conf$$.sh
20170 chmod +x conf$$.sh
20171 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20172 PATH_SEPARATOR=';'
20173 else
20174 PATH_SEPARATOR=:
20175 fi
20176 rm -f conf$$.sh
20177fi
20178
20179# Support unset when possible.
20180if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20181 as_unset=unset
20182else
20183 as_unset=false
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020184fi
20185
20186
20187# IFS
20188# We need space, tab and new line, in precisely that order. Quoting is
20189# there to prevent editors from complaining about space-tab.
20190# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20191# splitting by setting IFS to empty value.)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020192as_nl='
20193'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020194IFS=" "" $as_nl"
20195
20196# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020197case $0 in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020198 *[\\/]* ) as_myself=$0 ;;
20199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20200for as_dir in $PATH
20201do
20202 IFS=$as_save_IFS
20203 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20205done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020206IFS=$as_save_IFS
20207
20208 ;;
20209esac
20210# We did not find ourselves, most probably we were run as `sh COMMAND'
20211# in which case we are not to be found in the path.
20212if test "x$as_myself" = x; then
20213 as_myself=$0
20214fi
20215if test ! -f "$as_myself"; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020216 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20217 { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020218fi
20219
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020220# Work around bugs in pre-3.0 UWIN ksh.
20221for as_var in ENV MAIL MAILPATH
20222do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020223done
20224PS1='$ '
20225PS2='> '
20226PS4='+ '
20227
20228# NLS nuisances.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020229for as_var in \
20230 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20231 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20232 LC_TELEPHONE LC_TIME
20233do
20234 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20235 eval $as_var=C; export $as_var
20236 else
20237 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Edwin Törökc27310c2010-01-26 08:50:50 +000020238 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020239done
Edwin Törökc27310c2010-01-26 08:50:50 +000020240
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020241# Required to use basename.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020242if expr a : '\(a\)' >/dev/null 2>&1 &&
20243 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20244 as_expr=expr
20245else
20246 as_expr=false
20247fi
20248
20249if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20250 as_basename=basename
20251else
20252 as_basename=false
20253fi
20254
20255
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020256# Name of the executable.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020257as_me=`$as_basename -- "$0" ||
20258$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20259 X"$0" : 'X\(//\)$' \| \
20260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020261echo X/"$0" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020262 sed '/^.*\/\([^/][^/]*\)\/*$/{
20263 s//\1/
20264 q
20265 }
20266 /^X\/\(\/\/\)$/{
20267 s//\1/
20268 q
20269 }
20270 /^X\/\(\/\).*/{
20271 s//\1/
20272 q
20273 }
20274 s/.*/./; q'`
20275
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020276# CDPATH.
20277$as_unset CDPATH
20278
20279
20280
20281 as_lineno_1=$LINENO
20282 as_lineno_2=$LINENO
20283 test "x$as_lineno_1" != "x$as_lineno_2" &&
20284 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20285
20286 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20287 # uniformly replaced by the line number. The first 'sed' inserts a
20288 # line-number line after each line using $LINENO; the second 'sed'
20289 # does the real work. The second script uses 'N' to pair each
20290 # line-number line with the line containing $LINENO, and appends
20291 # trailing '-' during substitution so that $LINENO is not a special
20292 # case at line end.
20293 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20294 # scripts with optimization help from Paolo Bonzini. Blame Lee
20295 # E. McMahon (1931-1989) for sed's syntax. :-)
20296 sed -n '
20297 p
20298 /[$]LINENO/=
20299 ' <$as_myself |
20300 sed '
20301 s/[$]LINENO.*/&-/
20302 t lineno
20303 b
20304 :lineno
20305 N
20306 :loop
20307 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20308 t loop
20309 s/-\n.*//
20310 ' >$as_me.lineno &&
20311 chmod +x "$as_me.lineno" ||
20312 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20313 { (exit 1); exit 1; }; }
20314
20315 # Don't try to exec as it changes $[0], causing all sort of problems
20316 # (the dirname of $[0] is not the place where we might find the
20317 # original and so on. Autoconf is especially sensitive to this).
20318 . "./$as_me.lineno"
20319 # Exit status is that of the last command.
20320 exit
20321}
20322
20323
20324if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20325 as_dirname=dirname
20326else
20327 as_dirname=false
20328fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020329
20330ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020331case `echo -n x` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020332-n*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020333 case `echo 'x\c'` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020335 *) ECHO_C='\c';;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020336 esac;;
20337*)
20338 ECHO_N='-n';;
20339esac
20340
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020341if expr a : '\(a\)' >/dev/null 2>&1 &&
20342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20343 as_expr=expr
20344else
20345 as_expr=false
20346fi
20347
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020348rm -f conf$$ conf$$.exe conf$$.file
20349if test -d conf$$.dir; then
20350 rm -f conf$$.dir/conf$$.file
20351else
20352 rm -f conf$$.dir
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020353 mkdir conf$$.dir
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020354fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020355echo >conf$$.file
20356if ln -s conf$$.file conf$$ 2>/dev/null; then
20357 as_ln_s='ln -s'
20358 # ... but there are two gotchas:
20359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20361 # In both cases, we have to default to `cp -p'.
20362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020363 as_ln_s='cp -p'
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020364elif ln conf$$.file conf$$ 2>/dev/null; then
20365 as_ln_s=ln
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020366else
20367 as_ln_s='cp -p'
20368fi
20369rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20370rmdir conf$$.dir 2>/dev/null
20371
20372if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020373 as_mkdir_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020374else
20375 test -d ./-p && rmdir ./-p
20376 as_mkdir_p=false
20377fi
20378
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020379# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20380# systems may use methods other than mode bits to determine executability.
20381cat >conf$$.file <<_ASEOF
20382#! /bin/sh
20383exit 0
20384_ASEOF
20385chmod +x conf$$.file
20386if test -x conf$$.file >/dev/null 2>&1; then
20387 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020388else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020389 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020390fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020391rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020392
20393# Sed expression to map a string onto a valid CPP name.
20394as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20395
20396# Sed expression to map a string onto a valid variable name.
20397as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20398
20399
20400exec 6>&1
20401
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020402# Save the log message, to keep $[0] and so on meaningful, and to
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020403# report actual input values of CONFIG_FILES etc. instead of their
20404# values after options handling.
20405ac_log="
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000020406This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020407generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020408
20409 CONFIG_FILES = $CONFIG_FILES
20410 CONFIG_HEADERS = $CONFIG_HEADERS
20411 CONFIG_LINKS = $CONFIG_LINKS
20412 CONFIG_COMMANDS = $CONFIG_COMMANDS
20413 $ $0 $@
20414
20415on `(hostname || uname -n) 2>/dev/null | sed 1q`
20416"
20417
20418_ACEOF
20419
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020420cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020421# Files that config.status was made for.
20422config_files="$ac_config_files"
20423config_headers="$ac_config_headers"
20424config_commands="$ac_config_commands"
20425
20426_ACEOF
20427
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020428cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020429ac_cs_usage="\
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020430\`$as_me' instantiates files from templates according to the
20431current configuration.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020432
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020433Usage: $0 [OPTIONS] [FILE]...
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020434
20435 -h, --help print this help, then exit
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020436 -V, --version print version number, then exit
20437 -q, --quiet do not print progress messages
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020438 -d, --debug don't remove temporary files
20439 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020440 --file=FILE[:TEMPLATE]
20441 instantiate the configuration file FILE
20442 --header=FILE[:TEMPLATE]
20443 instantiate the configuration header FILE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020444
20445Configuration files:
20446$config_files
20447
20448Configuration headers:
20449$config_headers
20450
20451Configuration commands:
20452$config_commands
20453
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020454Report bugs to <bug-autoconf@gnu.org>."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020455
20456_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020457cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020458ac_cs_version="\\
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000020459llvm config.status 2.7svn
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020460configured by $0, generated by GNU Autoconf 2.60,
20461 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020462
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020463Copyright (C) 2006 Free Software Foundation, Inc.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020464This config.status script is free software; the Free Software Foundation
20465gives unlimited permission to copy, distribute and modify it."
20466
20467ac_pwd='$ac_pwd'
20468srcdir='$srcdir'
20469INSTALL='$INSTALL'
20470_ACEOF
20471
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020472cat >>$CONFIG_STATUS <<\_ACEOF
20473# If no file are specified by the user, then we need to provide default
20474# value. By we need to know if files were specified by the user.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020475ac_need_defaults=:
20476while test $# != 0
20477do
20478 case $1 in
20479 --*=*)
20480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20482 ac_shift=:
20483 ;;
20484 *)
20485 ac_option=$1
20486 ac_optarg=$2
20487 ac_shift=shift
20488 ;;
20489 esac
20490
20491 case $ac_option in
20492 # Handling of the options.
20493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20494 ac_cs_recheck=: ;;
20495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020496 echo "$ac_cs_version"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020497 --debug | --debu | --deb | --de | --d | -d )
20498 debug=: ;;
20499 --file | --fil | --fi | --f )
20500 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020501 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020502 ac_need_defaults=false;;
20503 --header | --heade | --head | --hea )
20504 $ac_shift
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020505 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020506 ac_need_defaults=false;;
20507 --he | --h)
20508 # Conflict between --help and --header
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020509 { echo "$as_me: error: ambiguous option: $1
20510Try \`$0 --help' for more information." >&2
20511 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020512 --help | --hel | -h )
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020513 echo "$ac_cs_usage"; exit ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20515 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20516 ac_cs_silent=: ;;
20517
20518 # This is an error.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020519 -*) { echo "$as_me: error: unrecognized option: $1
20520Try \`$0 --help' for more information." >&2
20521 { (exit 1); exit 1; }; } ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020522
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020523 *) ac_config_targets="$ac_config_targets $1"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020524 ac_need_defaults=false ;;
20525
20526 esac
20527 shift
20528done
20529
20530ac_configure_extra_args=
20531
20532if $ac_cs_silent; then
20533 exec 6>/dev/null
20534 ac_configure_extra_args="$ac_configure_extra_args --silent"
20535fi
20536
20537_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020538cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020539if \$ac_cs_recheck; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020540 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20541 CONFIG_SHELL=$SHELL
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020542 export CONFIG_SHELL
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020543 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020544fi
20545
20546_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020547cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020548exec 5>>config.log
20549{
20550 echo
20551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20552## Running $as_me. ##
20553_ASBOX
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020554 echo "$ac_log"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020555} >&5
20556
20557_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020558cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020559#
20560# INIT-COMMANDS
20561#
20562llvm_src="${srcdir}"
20563
20564_ACEOF
20565
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020566cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020567
20568# Handling of arguments.
20569for ac_config_target in $ac_config_targets
20570do
20571 case $ac_config_target in
20572 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000020573 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20574 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000020575 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar0e18f262009-11-25 04:37:28 +000020576 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth1ec7df12009-10-26 01:35:46 +000020577 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020578 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20579 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20580 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000020581 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020582 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20583 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20584 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20585 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20586 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20587 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20588 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20589 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20590 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000020591 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020592 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20593 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20594 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000020595 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20596 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020597
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020598 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20599echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20600 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020601 esac
20602done
20603
20604
20605# If the user did not use the arguments to specify the items to instantiate,
20606# then the envvar interface is used. Set only those that are not.
20607# We use the long form for the default assignment because of an extremely
20608# bizarre bug on SunOS 4.1.3.
20609if $ac_need_defaults; then
20610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20611 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20612 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20613fi
20614
20615# Have a temporary directory for convenience. Make it in the build tree
20616# simply because there is no reason against having it here, and in addition,
20617# creating and moving files from /tmp can sometimes cause problems.
20618# Hook for its removal unless debugging.
20619# Note that there is a small window in which the directory will not be cleaned:
20620# after its creation but before its name has been assigned to `$tmp'.
20621$debug ||
20622{
20623 tmp=
20624 trap 'exit_status=$?
20625 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20626' 0
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020627 trap '{ (exit 1); exit 1; }' 1 2 13 15
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020628}
20629# Create a (secure) tmp directory for tmp files.
20630
20631{
20632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20633 test -n "$tmp" && test -d "$tmp"
20634} ||
20635{
20636 tmp=./conf$$-$RANDOM
20637 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020638} ||
20639{
20640 echo "$me: cannot create a temporary directory in ." >&2
20641 { (exit 1); exit 1; }
20642}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020643
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020644#
20645# Set up the sed scripts for CONFIG_FILES section.
20646#
20647
20648# No need to generate the scripts if there are no CONFIG_FILES.
20649# This happens for instance when ./config.status config.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020650if test -n "$CONFIG_FILES"; then
20651
20652_ACEOF
20653
20654
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020655
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020656ac_delim='%!_!# '
20657for ac_last_try in false false false false false :; do
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020658 cat >conf$$subs.sed <<_ACEOF
20659SHELL!$SHELL$ac_delim
20660PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20661PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20662PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20663PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20664PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20665PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20666exec_prefix!$exec_prefix$ac_delim
20667prefix!$prefix$ac_delim
20668program_transform_name!$program_transform_name$ac_delim
20669bindir!$bindir$ac_delim
20670sbindir!$sbindir$ac_delim
20671libexecdir!$libexecdir$ac_delim
20672datarootdir!$datarootdir$ac_delim
20673datadir!$datadir$ac_delim
20674sysconfdir!$sysconfdir$ac_delim
20675sharedstatedir!$sharedstatedir$ac_delim
20676localstatedir!$localstatedir$ac_delim
20677includedir!$includedir$ac_delim
20678oldincludedir!$oldincludedir$ac_delim
20679docdir!$docdir$ac_delim
20680infodir!$infodir$ac_delim
20681htmldir!$htmldir$ac_delim
20682dvidir!$dvidir$ac_delim
20683pdfdir!$pdfdir$ac_delim
20684psdir!$psdir$ac_delim
20685libdir!$libdir$ac_delim
20686localedir!$localedir$ac_delim
20687mandir!$mandir$ac_delim
20688DEFS!$DEFS$ac_delim
20689ECHO_C!$ECHO_C$ac_delim
20690ECHO_N!$ECHO_N$ac_delim
20691ECHO_T!$ECHO_T$ac_delim
20692LIBS!$LIBS$ac_delim
20693build_alias!$build_alias$ac_delim
20694host_alias!$host_alias$ac_delim
20695target_alias!$target_alias$ac_delim
20696LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20697subdirs!$subdirs$ac_delim
20698build!$build$ac_delim
20699build_cpu!$build_cpu$ac_delim
20700build_vendor!$build_vendor$ac_delim
20701build_os!$build_os$ac_delim
20702host!$host$ac_delim
20703host_cpu!$host_cpu$ac_delim
20704host_vendor!$host_vendor$ac_delim
20705host_os!$host_os$ac_delim
20706target!$target$ac_delim
20707target_cpu!$target_cpu$ac_delim
20708target_vendor!$target_vendor$ac_delim
20709target_os!$target_os$ac_delim
20710OS!$OS$ac_delim
20711HOST_OS!$HOST_OS$ac_delim
20712TARGET_OS!$TARGET_OS$ac_delim
20713LINKALL!$LINKALL$ac_delim
20714NOLINKALL!$NOLINKALL$ac_delim
20715LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20716LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20717ARCH!$ARCH$ac_delim
20718ENDIAN!$ENDIAN$ac_delim
20719CC!$CC$ac_delim
20720CFLAGS!$CFLAGS$ac_delim
20721LDFLAGS!$LDFLAGS$ac_delim
20722CPPFLAGS!$CPPFLAGS$ac_delim
20723ac_ct_CC!$ac_ct_CC$ac_delim
20724EXEEXT!$EXEEXT$ac_delim
20725OBJEXT!$OBJEXT$ac_delim
20726CPP!$CPP$ac_delim
20727GREP!$GREP$ac_delim
20728EGREP!$EGREP$ac_delim
20729LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20730BUILD_CC!$BUILD_CC$ac_delim
20731BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20732BUILD_CXX!$BUILD_CXX$ac_delim
20733CVSBUILD!$CVSBUILD$ac_delim
20734ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20735ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20736DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20737ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20738EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20739DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20740DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20741JIT!$JIT$ac_delim
20742TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20743ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20744ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20745ENABLE_PIC!$ENABLE_PIC$ac_delim
20746TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20747LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20748LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20749LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20750LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20751ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000020752CLANGPATH!$CLANGPATH$ac_delim
20753CLANGXXPATH!$CLANGXXPATH$ac_delim
20754ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020755OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020756_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020757
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020758 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020759 break
20760 elif $ac_last_try; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020761 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20762echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20763 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020764 else
20765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20766 fi
20767done
20768
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020769ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20770if test -n "$ac_eof"; then
20771 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20772 ac_eof=`expr $ac_eof + 1`
20773fi
20774
20775cat >>$CONFIG_STATUS <<_ACEOF
20776cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20777/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020778_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020779sed '
20780s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20781s/^/s,@/; s/!/@,|#_!!_#|/
20782:n
20783t n
20784s/'"$ac_delim"'$/,g/; t
20785s/$/\\/; p
20786N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20787' >>$CONFIG_STATUS <conf$$subs.sed
20788rm -f conf$$subs.sed
20789cat >>$CONFIG_STATUS <<_ACEOF
20790CEOF$ac_eof
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020791_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020792
20793
20794ac_delim='%!_!# '
20795for ac_last_try in false false false false false :; do
20796 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000020797EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20798BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20799ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020800ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20801CXX!$CXX$ac_delim
20802CXXFLAGS!$CXXFLAGS$ac_delim
20803ac_ct_CXX!$ac_ct_CXX$ac_delim
20804NM!$NM$ac_delim
20805ifGNUmake!$ifGNUmake$ac_delim
20806LN_S!$LN_S$ac_delim
20807CMP!$CMP$ac_delim
20808CP!$CP$ac_delim
20809DATE!$DATE$ac_delim
20810FIND!$FIND$ac_delim
20811MKDIR!$MKDIR$ac_delim
20812MV!$MV$ac_delim
20813RANLIB!$RANLIB$ac_delim
20814AR!$AR$ac_delim
20815RM!$RM$ac_delim
20816SED!$SED$ac_delim
20817TAR!$TAR$ac_delim
20818BINPWD!$BINPWD$ac_delim
20819GRAPHVIZ!$GRAPHVIZ$ac_delim
20820DOT!$DOT$ac_delim
20821FDP!$FDP$ac_delim
20822NEATO!$NEATO$ac_delim
20823TWOPI!$TWOPI$ac_delim
20824CIRCO!$CIRCO$ac_delim
20825GV!$GV$ac_delim
20826DOTTY!$DOTTY$ac_delim
20827PERL!$PERL$ac_delim
20828HAVE_PERL!$HAVE_PERL$ac_delim
20829INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20830INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20831INSTALL_DATA!$INSTALL_DATA$ac_delim
20832BZIP2!$BZIP2$ac_delim
20833DOXYGEN!$DOXYGEN$ac_delim
20834GROFF!$GROFF$ac_delim
20835GZIP!$GZIP$ac_delim
20836POD2HTML!$POD2HTML$ac_delim
20837POD2MAN!$POD2MAN$ac_delim
20838RUNTEST!$RUNTEST$ac_delim
20839TCLSH!$TCLSH$ac_delim
20840ZIP!$ZIP$ac_delim
20841OCAMLC!$OCAMLC$ac_delim
20842OCAMLOPT!$OCAMLOPT$ac_delim
20843OCAMLDEP!$OCAMLDEP$ac_delim
20844OCAMLDOC!$OCAMLDOC$ac_delim
20845GAS!$GAS$ac_delim
20846INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20847INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20848CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20849CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20850LIBADD_DL!$LIBADD_DL$ac_delim
20851LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20852LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20853LLVMGCC!$LLVMGCC$ac_delim
20854LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000020855LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020856NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20857NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20858USE_UDIS86!$USE_UDIS86$ac_delim
20859USE_OPROFILE!$USE_OPROFILE$ac_delim
20860HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20861HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20862MMAP_FILE!$MMAP_FILE$ac_delim
20863LLVMCC1!$LLVMCC1$ac_delim
20864LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20865LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020866LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20867SHLIBEXT!$SHLIBEXT$ac_delim
20868LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20869LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20870LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20871LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20872LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20873LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20874LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20875LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20876LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20877LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20878BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20879ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20880OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20881ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20882RPATH!$RPATH$ac_delim
20883RDYNAMIC!$RDYNAMIC$ac_delim
20884LIBOBJS!$LIBOBJS$ac_delim
20885LTLIBOBJS!$LTLIBOBJS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020886_ACEOF
20887
Daniel Dunbarf80d8f32010-02-23 10:00:49 +000020888 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020889 break
20890 elif $ac_last_try; then
20891 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20892echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20893 { (exit 1); exit 1; }; }
20894 else
20895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20896 fi
20897done
20898
20899ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20900if test -n "$ac_eof"; then
20901 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20902 ac_eof=`expr $ac_eof + 1`
20903fi
20904
20905cat >>$CONFIG_STATUS <<_ACEOF
20906cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20907/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20908_ACEOF
20909sed '
20910s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20911s/^/s,@/; s/!/@,|#_!!_#|/
20912:n
20913t n
20914s/'"$ac_delim"'$/,g/; t
20915s/$/\\/; p
20916N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20917' >>$CONFIG_STATUS <conf$$subs.sed
20918rm -f conf$$subs.sed
20919cat >>$CONFIG_STATUS <<_ACEOF
20920:end
20921s/|#_!!_#|//g
20922CEOF$ac_eof
20923_ACEOF
20924
20925
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020926# VPATH may cause trouble with some makes, so we remove $(srcdir),
20927# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20928# trailing colons and then remove the whole line if VPATH becomes empty
20929# (actually we leave an empty line to preserve line numbers).
20930if test "x$srcdir" = x.; then
20931 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20932s/:*\$(srcdir):*/:/
20933s/:*\${srcdir}:*/:/
20934s/:*@srcdir@:*/:/
20935s/^\([^=]*=[ ]*\):*/\1/
20936s/:*$//
20937s/^[^=]*=[ ]*$//
20938}'
20939fi
20940
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020941cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020942fi # test -n "$CONFIG_FILES"
20943
20944
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020945for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020946do
20947 case $ac_tag in
20948 :[FHLC]) ac_mode=$ac_tag; continue;;
20949 esac
20950 case $ac_mode$ac_tag in
20951 :[FHL]*:*);;
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020952 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20953echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20954 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020955 :[FH]-) ac_tag=-:-;;
20956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20957 esac
20958 ac_save_IFS=$IFS
20959 IFS=:
20960 set x $ac_tag
20961 IFS=$ac_save_IFS
20962 shift
20963 ac_file=$1
20964 shift
20965
20966 case $ac_mode in
20967 :L) ac_source=$1;;
20968 :[FH])
20969 ac_file_inputs=
20970 for ac_f
20971 do
20972 case $ac_f in
20973 -) ac_f="$tmp/stdin";;
20974 *) # Look for the file first in the build tree, then in the source tree
20975 # (if the path is not absolute). The absolute path cannot be DOS-style,
20976 # because $ac_f cannot contain `:'.
20977 test -f "$ac_f" ||
20978 case $ac_f in
20979 [\\/$]*) false;;
20980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20981 esac ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020982 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20983echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20984 { (exit 1); exit 1; }; };;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020985 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020986 ac_file_inputs="$ac_file_inputs $ac_f"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020987 done
20988
20989 # Let's still pretend it is `configure' which instantiates (i.e., don't
20990 # use $as_me), people would be surprised to read:
20991 # /* config.h. Generated by config.status. */
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020992 configure_input="Generated from "`IFS=:
20993 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020994 if test x"$ac_file" != x-; then
20995 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000020996 { echo "$as_me:$LINENO: creating $ac_file" >&5
20997echo "$as_me: creating $ac_file" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020998 fi
20999
21000 case $ac_tag in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021001 *:-:* | *:-) cat >"$tmp/stdin";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021002 esac
21003 ;;
21004 esac
21005
21006 ac_dir=`$as_dirname -- "$ac_file" ||
21007$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008 X"$ac_file" : 'X\(//\)[^/]' \| \
21009 X"$ac_file" : 'X\(//\)$' \| \
21010 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021011echo X"$ac_file" |
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21013 s//\1/
21014 q
21015 }
21016 /^X\(\/\/\)[^/].*/{
21017 s//\1/
21018 q
21019 }
21020 /^X\(\/\/\)$/{
21021 s//\1/
21022 q
21023 }
21024 /^X\(\/\).*/{
21025 s//\1/
21026 q
21027 }
21028 s/.*/./; q'`
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021029 { as_dir="$ac_dir"
21030 case $as_dir in #(
21031 -*) as_dir=./$as_dir;;
21032 esac
21033 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21034 as_dirs=
21035 while :; do
21036 case $as_dir in #(
21037 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21038 *) as_qdir=$as_dir;;
21039 esac
21040 as_dirs="'$as_qdir' $as_dirs"
21041 as_dir=`$as_dirname -- "$as_dir" ||
21042$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21043 X"$as_dir" : 'X\(//\)[^/]' \| \
21044 X"$as_dir" : 'X\(//\)$' \| \
21045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21046echo X"$as_dir" |
21047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21048 s//\1/
21049 q
21050 }
21051 /^X\(\/\/\)[^/].*/{
21052 s//\1/
21053 q
21054 }
21055 /^X\(\/\/\)$/{
21056 s//\1/
21057 q
21058 }
21059 /^X\(\/\).*/{
21060 s//\1/
21061 q
21062 }
21063 s/.*/./; q'`
21064 test -d "$as_dir" && break
21065 done
21066 test -z "$as_dirs" || eval "mkdir $as_dirs"
21067 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21068echo "$as_me: error: cannot create directory $as_dir" >&2;}
21069 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021070 ac_builddir=.
21071
21072case "$ac_dir" in
21073.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21074*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021076 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021077 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021078 case $ac_top_builddir_sub in
21079 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21080 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21081 esac ;;
21082esac
21083ac_abs_top_builddir=$ac_pwd
21084ac_abs_builddir=$ac_pwd$ac_dir_suffix
21085# for backward compatibility:
21086ac_top_builddir=$ac_top_build_prefix
21087
21088case $srcdir in
21089 .) # We are building in place.
21090 ac_srcdir=.
21091 ac_top_srcdir=$ac_top_builddir_sub
21092 ac_abs_top_srcdir=$ac_pwd ;;
21093 [\\/]* | ?:[\\/]* ) # Absolute name.
21094 ac_srcdir=$srcdir$ac_dir_suffix;
21095 ac_top_srcdir=$srcdir
21096 ac_abs_top_srcdir=$srcdir ;;
21097 *) # Relative name.
21098 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21099 ac_top_srcdir=$ac_top_build_prefix$srcdir
21100 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21101esac
21102ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21103
21104
21105 case $ac_mode in
21106 :F)
21107 #
21108 # CONFIG_FILE
21109 #
21110
21111 case $INSTALL in
21112 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21113 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21114 esac
21115_ACEOF
21116
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021117cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021118# If the template does not know about datarootdir, expand it.
21119# FIXME: This hack should be removed a few years after 2.60.
21120ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021121
21122case `sed -n '/datarootdir/ {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021123 p
21124 q
21125}
21126/@datadir@/p
21127/@docdir@/p
21128/@infodir@/p
21129/@localedir@/p
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021130/@mandir@/p
21131' $ac_file_inputs` in
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021132*datarootdir*) ac_datarootdir_seen=yes;;
21133*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021134 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21135echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021136_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021137cat >>$CONFIG_STATUS <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021138 ac_datarootdir_hack='
21139 s&@datadir@&$datadir&g
21140 s&@docdir@&$docdir&g
21141 s&@infodir@&$infodir&g
21142 s&@localedir@&$localedir&g
21143 s&@mandir@&$mandir&g
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021144 s&\\\${datarootdir}&$datarootdir&g' ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021145esac
21146_ACEOF
21147
21148# Neutralize VPATH when `$srcdir' = `.'.
21149# Shell code in configure.ac might set extrasub.
21150# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021151cat >>$CONFIG_STATUS <<_ACEOF
21152 sed "$ac_vpsub
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021153$extrasub
21154_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021155cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021156:t
21157/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021158s&@configure_input@&$configure_input&;t t
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021159s&@top_builddir@&$ac_top_builddir_sub&;t t
21160s&@srcdir@&$ac_srcdir&;t t
21161s&@abs_srcdir@&$ac_abs_srcdir&;t t
21162s&@top_srcdir@&$ac_top_srcdir&;t t
21163s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21164s&@builddir@&$ac_builddir&;t t
21165s&@abs_builddir@&$ac_abs_builddir&;t t
21166s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21167s&@INSTALL@&$ac_INSTALL&;t t
21168$ac_datarootdir_hack
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021169" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021170
21171test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21172 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21173 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021174 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021175which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021176echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021177which seems to be undefined. Please make sure it is defined." >&2;}
21178
21179 rm -f "$tmp/stdin"
21180 case $ac_file in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021181 -) cat "$tmp/out"; rm -f "$tmp/out";;
21182 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21183 esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021184 ;;
21185 :H)
21186 #
21187 # CONFIG_HEADER
21188 #
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021189_ACEOF
21190
21191# Transform confdefs.h into a sed script `conftest.defines', that
21192# substitutes the proper values into config.h.in to produce config.h.
21193rm -f conftest.defines conftest.tail
21194# First, append a space to every undef/define line, to ease matching.
21195echo 's/$/ /' >conftest.defines
21196# Then, protect against being on the right side of a sed subst, or in
21197# an unquoted here document, in config.status. If some macros were
21198# called several times there might be several #defines for the same
21199# symbol, which is useless. But do not sort them, since the last
21200# AC_DEFINE must be honored.
21201ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21202# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21203# NAME is the cpp macro being defined, VALUE is the value it is being given.
21204# PARAMS is the parameter list in the macro definition--in most cases, it's
21205# just an empty string.
21206ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21207ac_dB='\\)[ (].*,\\1define\\2'
21208ac_dC=' '
21209ac_dD=' ,'
21210
21211uniq confdefs.h |
21212 sed -n '
21213 t rset
21214 :rset
21215 s/^[ ]*#[ ]*define[ ][ ]*//
21216 t ok
21217 d
21218 :ok
21219 s/[\\&,]/\\&/g
21220 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21221 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21222 ' >>conftest.defines
21223
21224# Remove the space that was appended to ease matching.
21225# Then replace #undef with comments. This is necessary, for
21226# example, in the case of _POSIX_SOURCE, which is predefined and required
21227# on some systems where configure will not decide to define it.
21228# (The regexp can be short, since the line contains either #define or #undef.)
21229echo 's/ $//
21230s,^[ #]*u.*,/* & */,' >>conftest.defines
21231
21232# Break up conftest.defines:
21233ac_max_sed_lines=50
21234
21235# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21236# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21237# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21238# et cetera.
21239ac_in='$ac_file_inputs'
21240ac_out='"$tmp/out1"'
21241ac_nxt='"$tmp/out2"'
21242
21243while :
21244do
21245 # Write a here document:
21246 cat >>$CONFIG_STATUS <<_ACEOF
21247 # First, check the format of the line:
21248 cat >"\$tmp/defines.sed" <<\\CEOF
21249/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21250/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21251b
21252:def
21253_ACEOF
21254 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21255 echo 'CEOF
21256 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21257 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21258 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21259 grep . conftest.tail >/dev/null || break
21260 rm -f conftest.defines
21261 mv conftest.tail conftest.defines
21262done
21263rm -f conftest.defines conftest.tail
21264
21265echo "ac_result=$ac_in" >>$CONFIG_STATUS
21266cat >>$CONFIG_STATUS <<\_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021267 if test x"$ac_file" != x-; then
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021268 echo "/* $configure_input */" >"$tmp/config.h"
21269 cat "$ac_result" >>"$tmp/config.h"
21270 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21271 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21272echo "$as_me: $ac_file is unchanged" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021273 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021274 rm -f $ac_file
21275 mv "$tmp/config.h" $ac_file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021276 fi
21277 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021278 echo "/* $configure_input */"
21279 cat "$ac_result"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021280 fi
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021281 rm -f "$tmp/out12"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021282 ;;
21283
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021284 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21285echo "$as_me: executing $ac_file commands" >&6;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021286 ;;
21287 esac
21288
21289
21290 case $ac_file$ac_mode in
21291 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021292 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021293 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Edwin Törökab4193b2009-08-28 16:12:48 +000021294 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021295 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021296 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021297 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021298 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021299 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021300 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021301 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021302 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021303 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Edwin Törökab4193b2009-08-28 16:12:48 +000021304 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000021305 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021306 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021307 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021308 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021309 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021310 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021311 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021312 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021313 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000021314 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000021315 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Edwin Törökab4193b2009-08-28 16:12:48 +000021316 ${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 +000021317
21318 esac
21319done # for ac_tag
21320
21321
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021322{ (exit 0); exit 0; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021323_ACEOF
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021324chmod +x $CONFIG_STATUS
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021325ac_clean_files=$ac_clean_files_save
21326
21327
21328# configure is writing to config.log, and then calls config.status.
21329# config.status does its own redirection, appending to config.log.
21330# Unfortunately, on DOS this fails, as config.log is still kept open
21331# by configure, so config.status won't be able to write to it; its
21332# output is simply discarded. So we exec the FD to /dev/null,
21333# effectively closing config.log, so it can be properly (re)opened and
21334# appended to by config.status. When coming back to configure, we
21335# need to make the FD available again.
21336if test "$no_create" != yes; then
21337 ac_cs_success=:
21338 ac_config_status_args=
21339 test "$silent" = yes &&
21340 ac_config_status_args="$ac_config_status_args --quiet"
21341 exec 5>/dev/null
21342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21343 exec 5>>config.log
21344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21345 # would make configure fail if this is the last instruction.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021346 $ac_cs_success || { (exit 1); exit 1; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021347fi
21348
21349#
21350# CONFIG_SUBDIRS section.
21351#
21352if test "$no_recursion" != yes; then
21353
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021354 # Remove --cache-file and --srcdir arguments so they do not pile up.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021355 ac_sub_configure_args=
21356 ac_prev=
21357 eval "set x $ac_configure_args"
21358 shift
21359 for ac_arg
21360 do
21361 if test -n "$ac_prev"; then
21362 ac_prev=
21363 continue
21364 fi
21365 case $ac_arg in
21366 -cache-file | --cache-file | --cache-fil | --cache-fi \
21367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21368 ac_prev=cache_file ;;
21369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21371 | --c=*)
21372 ;;
21373 --config-cache | -C)
21374 ;;
21375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21376 ac_prev=srcdir ;;
21377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21378 ;;
21379 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21380 ac_prev=prefix ;;
21381 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21382 ;;
21383 *)
21384 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021385 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021386 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021387 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021388 esac
21389 done
21390
21391 # Always prepend --prefix to ensure using the same prefix
21392 # in subdir configurations.
21393 ac_arg="--prefix=$prefix"
21394 case $ac_arg in
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021395 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021396 esac
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021397 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021398
21399 ac_popdir=`pwd`
21400 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21401
21402 # Do not complain, so a configure script can configure whichever
21403 # parts of a large source tree are present.
21404 test -d "$srcdir/$ac_dir" || continue
21405
21406 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021407 echo "$as_me:$LINENO: $ac_msg" >&5
21408 echo "$ac_msg" >&6
21409 { as_dir="$ac_dir"
21410 case $as_dir in #(
21411 -*) as_dir=./$as_dir;;
21412 esac
21413 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21414 as_dirs=
21415 while :; do
21416 case $as_dir in #(
21417 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21418 *) as_qdir=$as_dir;;
21419 esac
21420 as_dirs="'$as_qdir' $as_dirs"
21421 as_dir=`$as_dirname -- "$as_dir" ||
21422$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21423 X"$as_dir" : 'X\(//\)[^/]' \| \
21424 X"$as_dir" : 'X\(//\)$' \| \
21425 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21426echo X"$as_dir" |
21427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21428 s//\1/
21429 q
21430 }
21431 /^X\(\/\/\)[^/].*/{
21432 s//\1/
21433 q
21434 }
21435 /^X\(\/\/\)$/{
21436 s//\1/
21437 q
21438 }
21439 /^X\(\/\).*/{
21440 s//\1/
21441 q
21442 }
21443 s/.*/./; q'`
21444 test -d "$as_dir" && break
21445 done
21446 test -z "$as_dirs" || eval "mkdir $as_dirs"
21447 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21448echo "$as_me: error: cannot create directory $as_dir" >&2;}
21449 { (exit 1); exit 1; }; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021450 ac_builddir=.
21451
21452case "$ac_dir" in
21453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21454*)
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021456 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021457 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021458 case $ac_top_builddir_sub in
21459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21461 esac ;;
21462esac
21463ac_abs_top_builddir=$ac_pwd
21464ac_abs_builddir=$ac_pwd$ac_dir_suffix
21465# for backward compatibility:
21466ac_top_builddir=$ac_top_build_prefix
21467
21468case $srcdir in
21469 .) # We are building in place.
21470 ac_srcdir=.
21471 ac_top_srcdir=$ac_top_builddir_sub
21472 ac_abs_top_srcdir=$ac_pwd ;;
21473 [\\/]* | ?:[\\/]* ) # Absolute name.
21474 ac_srcdir=$srcdir$ac_dir_suffix;
21475 ac_top_srcdir=$srcdir
21476 ac_abs_top_srcdir=$srcdir ;;
21477 *) # Relative name.
21478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21479 ac_top_srcdir=$ac_top_build_prefix$srcdir
21480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21481esac
21482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21483
21484
21485 cd "$ac_dir"
21486
21487 # Check for guested configure; otherwise get Cygnus style configure.
21488 if test -f "$ac_srcdir/configure.gnu"; then
21489 ac_sub_configure=$ac_srcdir/configure.gnu
21490 elif test -f "$ac_srcdir/configure"; then
21491 ac_sub_configure=$ac_srcdir/configure
21492 elif test -f "$ac_srcdir/configure.in"; then
21493 # This should be Cygnus configure.
21494 ac_sub_configure=$ac_aux_dir/configure
21495 else
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021496 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21497echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021498 ac_sub_configure=
21499 fi
21500
21501 # The recursion is here.
21502 if test -n "$ac_sub_configure"; then
21503 # Make the cache file name correct relative to the subdirectory.
21504 case $cache_file in
21505 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21506 *) # Relative name.
21507 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21508 esac
21509
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021510 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21511echo "$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 +000021512 # The eval makes quoting arguments work.
21513 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21514 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinb6450492010-02-03 02:11:49 +000021515 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21516echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21517 { (exit 1); exit 1; }; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021518 fi
21519
21520 cd "$ac_popdir"
21521 done
21522fi
21523